bffd4ff7a99001660fb1469e26a32a77ca8d44bf
[openwrt/staging/lynxis/omap.git] / target / linux / ramips / dts / WITI.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7 model = "MQmaker WiTi";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x10000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 palmbus: palmbus@1E000000 {
19 i2c@900 {
20 status = "okay";
21
22 pcf8563: rtc@51 {
23 status = "okay";
24 compatible = "nxp,pcf8563";
25 reg = <0x51>;
26 };
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 #address-cells = <1>;
33 #size-cells = <0>;
34 poll-interval = <20>;
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 18 1>;
39 linux,code = <0x198>;
40 };
41 };
42 };
43
44
45 &sdhci {
46 status = "okay";
47 };
48
49 &xhci {
50 status = "okay";
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 linux,modalias = "m25p80";
62 spi-max-frequency = <10000000>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 };
80
81 partition@50000 {
82 label = "firmware";
83 reg = <0x50000 0xfb0000>;
84 };
85 };
86 };
87
88 &pcie {
89 status = "okay";
90
91 pcie0 {
92 mt76@0,0 {
93 reg = <0x0000 0 0 0 0>;
94 device_type = "pci";
95 mediatek,mtd-eeprom = <&factory 0x8000>;
96 mediatek,2ghz = <0>;
97 mtd-mac-address = <&factory 0xe000>;
98 };
99 };
100
101 pcie1 {
102 mt76@1,0 {
103 reg = <0x0000 0 0 0 0>;
104 device_type = "pci";
105 mediatek,mtd-eeprom = <&factory 0x0000>;
106 mediatek,5ghz = <0>;
107 mtd-mac-address = <&factory 0xe000>;
108 };
109 };
110 };
111
112 &ethernet {
113 mtd-mac-address = <&factory 0xe000>;
114 };
115
116 &pinctrl {
117 state_default: pinctrl0 {
118 gpio {
119 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
120 ralink,function = "gpio";
121 };
122 };
123 };