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