ramips: remove model name from LED labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_edimax_ew-7478apc.dts
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 = "edimax,ew-7478apc", "ralink,mt7620a-soc";
10 model = "Edimax EW-7478APC";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset_wps {
23 label = "reset_wps";
24 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_power: power {
33 label = "white:power";
34 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
35 };
36
37 internet {
38 label = "blue:internet";
39 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
40 };
41
42 wlan {
43 label = "blue:wlan";
44 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
45 };
46
47 usb {
48 label = "blue:usb";
49 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&ohci_port1>, <&ehci_port1>;
51 linux,default-trigger = "usbport";
52 };
53 };
54 };
55
56 &gpio2 {
57 status = "okay";
58
59 enable_usb_power {
60 gpio-hog;
61 line-name = "enable USB power";
62 gpios = <5 GPIO_ACTIVE_HIGH>;
63 output-high;
64 };
65 };
66
67 &spi0 {
68 status = "okay";
69
70 flash@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <10000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 factory: partition@40000 {
93 label = "factory";
94 reg = <0x40000 0x10000>;
95 read-only;
96 };
97
98 partition@50000 {
99 label = "cimage";
100 reg = <0x50000 0x20000>;
101 read-only;
102 };
103
104 partition@70000 {
105 compatible = "edimax,uimage";
106 label = "firmware";
107 reg = <0x00070000 0x00790000>;
108 };
109 };
110 };
111 };
112
113 &state_default {
114 gpio {
115 groups = "i2c", "uartf", "nd_sd";
116 function = "gpio";
117 };
118 };
119
120 &ethernet {
121 pinctrl-names = "default";
122 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
123
124 mtd-mac-address = <&factory 0x4>;
125
126 mediatek,portmap = "wllll";
127
128 port@5 {
129 status = "okay";
130 mediatek,fixed-link = <1000 1 1 1>;
131 phy-mode = "rgmii";
132 };
133
134 mdio-bus {
135 status = "okay";
136
137 phy0: ethernet-phy@0 {
138 reg = <0>;
139 phy-mode = "rgmii";
140 };
141
142 phy1: ethernet-phy@1 {
143 reg = <1>;
144 phy-mode = "rgmii";
145 };
146
147 phy2: ethernet-phy@2 {
148 reg = <2>;
149 phy-mode = "rgmii";
150 };
151
152 phy3: ethernet-phy@3 {
153 reg = <3>;
154 phy-mode = "rgmii";
155 };
156
157 phy4: ethernet-phy@4 {
158 reg = <4>;
159 phy-mode = "rgmii";
160 };
161
162 phy1f: ethernet-phy@1f {
163 reg = <0x1f>;
164 phy-mode = "rgmii";
165 };
166 };
167 };
168
169 &gsw {
170 mediatek,port4 = "gmac";
171 };
172
173 &wmac {
174 ralink,mtd-eeprom = <&factory 0x0>;
175 };
176
177 &pcie {
178 status = "okay";
179 };
180
181 &pcie0 {
182 wifi@0,0 {
183 reg = <0x0000 0 0 0 0>;
184 mediatek,mtd-eeprom = <&factory 0x8000>;
185 mediatek,2ghz = <0>;
186 };
187 };
188
189 &ehci {
190 status = "okay";
191 };
192
193 &ohci {
194 status = "okay";
195 };