ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / ArcherC20i.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ralink,mt7620a-soc";
9 model = "TP-Link Archer C20i";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17 lan {
18 label = "c20i:blue:lan";
19 gpios = <&gpio0 1 1>;
20 };
21 usb {
22 label = "c20i:blue:usb";
23 gpios = <&gpio0 11 1>;
24 };
25 wps {
26 label = "c20i:blue:wps";
27 gpios = <&gpio1 15 1>;
28 };
29 wan {
30 label = "c20i:blue:wan";
31 gpios = <&gpio2 0 1>;
32 };
33 wlan {
34 label = "c20i:blue:wlan";
35 gpios = <&gpio3 0 1>;
36 };
37 };
38
39 gpio-keys {
40 compatible = "gpio-keys";
41 #address-cells = <1>;
42 #size-cells = <0>;
43 rfkill {
44 label = "rfkill";
45 gpios = <&gpio0 2 1>;
46 linux,code = <KEY_RFKILL>;
47 };
48 reset_wps {
49 label = "reset_wps";
50 gpios = <&gpio0 13 1>;
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 pcie-bridge {
146 mt76@0,0 {
147 reg = <0x0000 0 0 0 0>;
148 device_type = "pci";
149 mediatek,mtd-eeprom = <&radio 32768>;
150 };
151 };
152 };