ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ArcherC50.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 compatible = "tplink,c50", "ralink,mt7620a-soc";
10 model = "TP-Link Archer C50";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 lan {
24 label = "c50:green:lan";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 };
27
28 led_power: power {
29 label = "c50:green:power";
30 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
31 default-state = "on";
32 };
33
34 usb {
35 label = "c50:green:usb";
36 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
37 };
38
39 wan {
40 label = "c50:green:wan";
41 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
42 };
43
44 wan_orange {
45 label = "c50:orange:wan";
46 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
47 };
48
49 wlan5g {
50 label = "c50:green:wlan5g";
51 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
52 };
53
54 wlan2g {
55 label = "c50:green:wlan2g";
56 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
57 };
58
59 wps {
60 label = "c50:green:wps";
61 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 gpio-keys-polled {
66 compatible = "gpio-keys-polled";
67 poll-interval = <20>;
68
69 reset {
70 label = "reset";
71 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
73 };
74
75 rfkill {
76 label = "rfkill";
77 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RFKILL>;
79 }; };
80 };
81
82 &gpio1 {
83 status = "okay";
84 };
85
86 &gpio2 {
87 status = "okay";
88 };
89
90 &gpio3 {
91 status = "okay";
92 };
93
94 &spi0 {
95 status = "okay";
96
97 m25p80@0 {
98 #address-cells = <1>;
99 #size-cells = <1>;
100 compatible = "jedec,spi-nor";
101 reg = <0>;
102 spi-max-frequency = <10000000>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0 0x20000>;
107 read-only;
108 };
109
110 partition@20000 {
111 label = "firmware";
112 reg = <0x20000 0x7a0000>;
113 };
114
115 partition@7c0000 {
116 label = "config";
117 reg = <0x7c0000 0x10000>;
118 read-only;
119 };
120
121 rom: partition@7d0000 {
122 label = "rom";
123 reg = <0x7d0000 0x10000>;
124 read-only;
125 };
126
127 partition@7e0000 {
128 label = "romfile";
129 reg = <0x7e0000 0x10000>;
130 read-only;
131 };
132
133 radio: partition@7f0000 {
134 label = "radio";
135 reg = <0x7f0000 0x10000>;
136 read-only;
137 };
138 };
139 };
140
141 &pinctrl {
142 state_default: pinctrl0 {
143 gpio {
144 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
145 ralink,function = "gpio";
146 };
147 };
148 };
149
150 &ethernet {
151 pinctrl-names = "default";
152 mtd-mac-address = <&rom 0xf100>;
153 mediatek,portmap = "wllll";
154 };
155
156 &ehci {
157 status = "okay";
158 };
159
160 &ohci {
161 status = "okay";
162 };
163
164 &gsw {
165 mediatek,port4 = "ephy";
166 };
167
168 &wmac {
169 ralink,mtd-eeprom = <&radio 0>;
170 mtd-mac-address = <&rom 0xf100>;
171 mtd-mac-address-increment = <(-2)>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&pa_pins>;
174 };
175
176 &pcie {
177 status = "okay";
178 };
179
180 &pcie0 {
181 mt76@0,0 {
182 reg = <0x0000 0 0 0 0>;
183 mediatek,mtd-eeprom = <&radio 32768>;
184 ieee80211-freq-limit = <5000000 6000000>;
185 mtd-mac-address = <&rom 0xf100>;
186 mtd-mac-address-increment = <(-1)>;
187 };
188 };