ramips: fix pci/pcie related 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 #address-cells = <1>;
68 #size-cells = <0>;
69 poll-interval = <20>;
70
71 reset {
72 label = "reset";
73 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
75 };
76
77 rfkill {
78 label = "rfkill";
79 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RFKILL>;
81 }; };
82 };
83
84 &gpio1 {
85 status = "okay";
86 };
87
88 &gpio2 {
89 status = "okay";
90 };
91
92 &gpio3 {
93 status = "okay";
94 };
95
96 &spi0 {
97 status = "okay";
98
99 m25p80@0 {
100 #address-cells = <1>;
101 #size-cells = <1>;
102 compatible = "jedec,spi-nor";
103 reg = <0>;
104 spi-max-frequency = <10000000>;
105
106 partition@0 {
107 label = "u-boot";
108 reg = <0x0 0x20000>;
109 read-only;
110 };
111
112 partition@20000 {
113 label = "firmware";
114 reg = <0x20000 0x7a0000>;
115 };
116
117 partition@7c0000 {
118 label = "config";
119 reg = <0x7c0000 0x10000>;
120 read-only;
121 };
122
123 rom: partition@7d0000 {
124 label = "rom";
125 reg = <0x7d0000 0x10000>;
126 read-only;
127 };
128
129 partition@7e0000 {
130 label = "romfile";
131 reg = <0x7e0000 0x10000>;
132 read-only;
133 };
134
135 radio: partition@7f0000 {
136 label = "radio";
137 reg = <0x7f0000 0x10000>;
138 read-only;
139 };
140 };
141 };
142
143 &pinctrl {
144 state_default: pinctrl0 {
145 gpio {
146 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
147 ralink,function = "gpio";
148 };
149 };
150 };
151
152 &ethernet {
153 pinctrl-names = "default";
154 mtd-mac-address = <&rom 0xf100>;
155 mediatek,portmap = "wllll";
156 };
157
158 &ehci {
159 status = "okay";
160 };
161
162 &ohci {
163 status = "okay";
164 };
165
166 &gsw {
167 mediatek,port4 = "ephy";
168 };
169
170 &wmac {
171 ralink,mtd-eeprom = <&radio 0>;
172 mtd-mac-address = <&rom 0xf100>;
173 mtd-mac-address-increment = <(-2)>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pa_pins>;
176 };
177
178 &pcie {
179 status = "okay";
180 };
181
182 &pcie0 {
183 mt76@0,0 {
184 reg = <0x0000 0 0 0 0>;
185 mediatek,mtd-eeprom = <&radio 32768>;
186 ieee80211-freq-limit = <5000000 6000000>;
187 mtd-mac-address = <&rom 0xf100>;
188 mtd-mac-address-increment = <(-1)>;
189 };
190 };