ramips: remove model name from LED labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_edimax_ew-747x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ralink,mt7620a-soc";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset_wps {
22 label = "reset_wps";
23 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 switch_high {
28 label = "switch high";
29 gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
30 linux,code = <BTN_0>;
31 linux,input-type = <EV_SW>;
32 };
33
34 switch_off {
35 label = "switch off";
36 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
37 linux,code = <BTN_1>;
38 linux,input-type = <EV_SW>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 led_power: power {
46 label = "green:power";
47 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
48 };
49
50 lan {
51 label = "green:lan";
52 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
53 };
54
55 wlan2g {
56 label = "blue:wlan2g";
57 gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy1radio";
59 };
60
61 wlan5g {
62 label = "blue:wlan5g";
63 gpios = <&gpio2 31 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy0radio";
65 };
66
67 wps {
68 label = "green:wps";
69 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
70 };
71
72 crossband {
73 label = "green:crossband";
74 gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &gpio1 {
80 status = "okay";
81 };
82
83 &gpio2 {
84 status = "okay";
85 };
86
87 &spi0 {
88 status = "okay";
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <10000000>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 partition@0 {
101 label = "u-boot";
102 reg = <0x0 0x30000>;
103 read-only;
104 };
105
106 partition@30000 {
107 label = "u-boot-env";
108 reg = <0x30000 0x10000>;
109 read-only;
110 };
111
112 factory: partition@40000 {
113 label = "factory";
114 reg = <0x40000 0x10000>;
115 read-only;
116 };
117
118 partition@50000 {
119 label = "cimage";
120 reg = <0x50000 0x20000>;
121 read-only;
122 };
123
124 partition@70000 {
125 compatible = "edimax,uimage";
126 label = "firmware";
127 reg = <0x00070000 0x00790000>;
128 };
129 };
130 };
131 };
132
133 &state_default {
134 gpio {
135 groups = "i2c", "uartf", "nd_sd", "rgmii2";
136 function = "gpio";
137 };
138 };
139
140 &pinctrl {
141 phy_reset_pins: phy-reset {
142 gpio {
143 groups = "spi refclk";
144 function = "gpio";
145 };
146 };
147 };
148
149 &ethernet {
150 pinctrl-names = "default";
151 pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
152
153 mtd-mac-address = <&factory 0x4>;
154
155 mediatek,mdio-mode = <1>;
156
157 phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
158 phy-reset-duration = <30>;
159
160 port@5 {
161 status = "okay";
162 mediatek,fixed-link = <1000 1 1 1>;
163 phy-mode = "rgmii";
164 };
165
166 mdio-bus {
167 status = "okay";
168
169 phy0: ethernet-phy@0 {
170 status = "disabled";
171 reg = <0>;
172 phy-mode = "rgmii";
173 };
174
175 phy1: ethernet-phy@1 {
176 status = "disabled";
177 reg = <1>;
178 phy-mode = "rgmii";
179 };
180
181 phy2: ethernet-phy@2 {
182 status = "disabled";
183 reg = <2>;
184 phy-mode = "rgmii";
185 };
186
187 phy3: ethernet-phy@3 {
188 status = "disabled";
189 reg = <3>;
190 phy-mode = "rgmii";
191 };
192
193 phy4: ethernet-phy@4 {
194 status = "disabled";
195 reg = <4>;
196 phy-mode = "rgmii";
197 };
198 };
199 };
200
201 &gsw {
202 mediatek,port5 = "gmac";
203 };
204
205 &wmac {
206 ralink,mtd-eeprom = <&factory 0x0>;
207 };
208
209 &pcie {
210 status = "okay";
211 };
212
213 &pcie0 {
214 wifi@0,0 {
215 reg = <0x0000 0 0 0 0>;
216 mediatek,mtd-eeprom = <&factory 0x8000>;
217 mediatek,2ghz = <0>;
218 };
219 };