ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_tplink_archer-mr200.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "tplink,archer-mr200", "ralink,mt7620a-soc";
8 model = "TP-Link Archer MR200";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 lan {
25 label = "white:lan";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 };
28
29 wan {
30 label = "white:wan";
31 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
32 };
33
34 led_power: power {
35 label = "white:power";
36 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
37 };
38
39 4g {
40 label = "white:4g";
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
42 };
43
44 wps {
45 label = "white:wps";
46 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
47 };
48
49 signal1 {
50 label = "white:signal1";
51 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
52 };
53
54 signal2 {
55 label = "white:signal2";
56 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
57 };
58
59 signal3 {
60 label = "white:signal3";
61 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
62 };
63
64 signal4 {
65 label = "white:signal4";
66 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
67 };
68
69 wlan {
70 label = "white:wlan";
71 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy1tpt";
73 };
74 };
75
76 keys {
77 compatible = "gpio-keys";
78
79 reset {
80 label = "reset";
81 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
82 linux,code = <KEY_RESTART>;
83 };
84
85 rfkill {
86 label = "rfkill";
87 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
88 linux,code = <KEY_RFKILL>;
89 };
90 };
91
92 gpio_export {
93 compatible = "gpio-export";
94 #size-cells = <0>;
95
96 power_usb {
97 gpio-export,name = "power_usb1";
98 gpio-export,output = <1>;
99 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
100 };
101 };
102 };
103
104 &gpio1 {
105 status = "okay";
106 };
107
108 &gpio2 {
109 status = "okay";
110 };
111
112 &gpio3 {
113 status = "okay";
114 };
115
116 &spi0 {
117 status = "okay";
118
119 flash@0 {
120 compatible = "jedec,spi-nor";
121 reg = <0>;
122 spi-max-frequency = <30000000>;
123
124 partitions {
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
127 #size-cells = <1>;
128
129 partition@0 {
130 label = "u-boot";
131 reg = <0x0 0x20000>;
132 read-only;
133 };
134
135 partition@20000 {
136 compatible = "tplink,firmware";
137 label = "firmware";
138 reg = <0x20000 0x7b0000>;
139 };
140
141 rom: partition@7d0000 {
142 label = "rom";
143 reg = <0x7d0000 0x10000>;
144 read-only;
145 };
146
147 partition@7e0000 {
148 label = "romfile";
149 reg = <0x7e0000 0x10000>;
150 read-only;
151 };
152
153 radio: partition@7f0000 {
154 label = "radio";
155 reg = <0x7f0000 0x10000>;
156 read-only;
157 };
158 };
159 };
160 };
161
162 &state_default {
163 gpio {
164 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
165 function = "gpio";
166 };
167 };
168
169 &ethernet {
170 mtd-mac-address = <&rom 0xf100>;
171 };
172
173 &ehci {
174 status = "okay";
175 };
176
177 &ohci {
178 status = "okay";
179 };
180
181 &gsw {
182 mediatek,port4 = "ephy";
183 };
184
185 &wmac {
186 ralink,mtd-eeprom = <&radio 0x0>;
187 };
188
189 &pcie {
190 status = "okay";
191 };
192
193 &pcie0 {
194 mt76@0,0 {
195 reg = <0x0000 0 0 0 0>;
196 mediatek,mtd-eeprom = <&radio 0x8000>;
197 };
198 };