ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / WCR-1166DS.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
10 model = "Buffalo WCR-1166DS";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 aoss {
21 label = "aoss";
22 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25
26 ap {
27 label = "ap";
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
29 linux,code = <BTN_0>;
30 linux,input-type = <EV_SW>;
31 };
32
33 reset {
34 label = "reset";
35 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39
40 gpio-leds {
41 compatible = "gpio-leds";
42
43 router_o {
44 label = "wcr-1166ds:orange:router";
45 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
46 };
47
48 router_g {
49 label = "wcr-1166ds:green:router";
50 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
51 };
52
53 internet_o {
54 label = "wcr-1166ds:orange:internet";
55 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
56 };
57
58 internet_g {
59 label = "wcr-1166ds:green:internet";
60 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
61 };
62
63 wireless_o {
64 label = "wcr-1166ds:orange:wireless";
65 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
66 };
67
68 wireless_g {
69 label = "wcr-1166ds:green:wireless";
70 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
71 };
72
73 diag {
74 label = "wcr-1166ds:orange:diag";
75 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
76 };
77
78 led_power: power {
79 label = "wcr-1166ds:green:power";
80 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
81 };
82 };
83 };
84
85 &ehci {
86 status = "disabled";
87 };
88
89 &esw {
90 mediatek,portmap = <0x2f>;
91 mediatek,portdisable = <0x27>;
92 };
93
94 &ohci {
95 status = "disabled";
96 };
97
98 &pcie {
99 status = "okay";
100 };
101
102 &pcie0 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x8000>;
106 ieee80211-freq-limit = <5000000 6000000>;
107 };
108 };
109
110 &pinctrl {
111 state_default: pinctrl0 {
112 gpio {
113 ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
114 ralink,function = "gpio";
115 };
116 };
117 };
118
119 &spi0 {
120 status = "okay";
121
122 m25p80@0 {
123 #address-cells = <1>;
124 #size-cells = <1>;
125 compatible = "jedec,spi-nor";
126 reg = <0>;
127 spi-max-frequency = <10000000>;
128 m25p,chunked-io = <32>;
129
130 partition@0 {
131 label = "u-boot";
132 reg = <0x0 0x30000>;
133 read-only;
134 };
135
136 partition@30000 {
137 label = "u-boot-env";
138 reg = <0x30000 0x10000>;
139 read-only;
140 };
141
142 factory: partition@40000 {
143 label = "factory";
144 reg = <0x40000 0x10000>;
145 read-only;
146 };
147
148 partition@50000 {
149 label = "firmware";
150 reg = <0x50000 0x7c0000>;
151 };
152
153 partition@810000 {
154 label = "firmware2";
155 reg = <0x810000 0x7c0000>;
156 };
157
158 partition@fd0000 {
159 label = "glbcfg";
160 reg = <0xfd0000 0x10000>;
161 read-only;
162 };
163
164 partition@fe0000 {
165 label = "board_data";
166 reg = <0xfe0000 0x10000>;
167 read-only;
168 };
169 };
170 };
171
172 &wmac {
173 status = "okay";
174 };