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