ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_edimax_br-6478ac-v2.dts
1 /*
2 * Device Tree file for the Edimax BR-6478AC V2
3 * based on Linksys E1700
4 *
5 * Copyright (C) 2016 Rohan Murch <rohan.murch@gmail.com>
6 * Copyright (C) 2016 Hans Ulli Kroll <ulli.kroll@googlemail.com>
7 * Copyright (C) 2017 James McKenzie <openwrt@madingley.org>
8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
12 */
13
14 #include "mt7620a.dtsi"
15
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/input/input.h>
18
19 / {
20 compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
21 model = "Edimax BR-6478AC v2";
22
23 aliases {
24 led-boot = &led_power;
25 led-failsafe = &led_power;
26 led-running = &led_power;
27 led-upgrade = &led_power;
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset_wps {
34 label = "reset_wps";
35 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led_power: power {
44 label = "white:power";
45 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
46 };
47
48 internet {
49 label = "blue:internet";
50 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
51 };
52
53 wlan {
54 label = "blue:wlan";
55 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
56 };
57
58 usb {
59 label = "blue:usb";
60 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
61 trigger-sources = <&ohci_port1>, <&ehci_port1>;
62 linux,default-trigger = "usbport";
63 };
64 };
65
66 gpio_export {
67 compatible = "gpio-export";
68 #size-cells = <0>;
69 usb-power {
70 gpio-export,name="usb-power";
71 gpio-export,output=<1>;
72 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
73 };
74 };
75 };
76
77 &gpio2 {
78 status = "okay";
79 };
80
81 &spi0 {
82 status = "okay";
83
84 flash@0 {
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <10000000>;
88
89 partitions {
90 compatible = "fixed-partitions";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 partition@0 {
95 label = "u-boot";
96 reg = <0x0 0x30000>;
97 read-only;
98 };
99
100 partition@30000 {
101 label = "u-boot-env";
102 reg = <0x30000 0x10000>;
103 read-only;
104 };
105
106 factory: partition@40000 {
107 label = "factory";
108 reg = <0x40000 0x10000>;
109 read-only;
110 };
111
112 partition@50000 {
113 label = "cimage";
114 reg = <0x50000 0x20000>;
115 read-only;
116 };
117
118 partition@70000 {
119 compatible = "edimax,uimage";
120 label = "firmware";
121 reg = <0x00070000 0x00790000>;
122 };
123 };
124 };
125 };
126
127 &state_default {
128 gpio {
129 groups = "i2c", "uartf", "nd_sd";
130 function = "gpio";
131 };
132 };
133
134 &ethernet {
135 pinctrl-names = "default";
136 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
137
138 mtd-mac-address = <&factory 0x4>;
139
140 mediatek,portmap = "wllll";
141
142 port@5 {
143 status = "okay";
144 mediatek,fixed-link = <1000 1 1 1>;
145 phy-mode = "rgmii";
146 };
147
148 mdio-bus {
149 status = "okay";
150
151 phy0: ethernet-phy@0 {
152 reg = <0>;
153 phy-mode = "rgmii";
154 };
155
156 phy1: ethernet-phy@1 {
157 reg = <1>;
158 phy-mode = "rgmii";
159 };
160
161 phy2: ethernet-phy@2 {
162 reg = <2>;
163 phy-mode = "rgmii";
164 };
165
166 phy3: ethernet-phy@3 {
167 reg = <3>;
168 phy-mode = "rgmii";
169 };
170
171 phy4: ethernet-phy@4 {
172 reg = <4>;
173 phy-mode = "rgmii";
174 };
175
176 phy1f: ethernet-phy@1f {
177 reg = <0x1f>;
178 phy-mode = "rgmii";
179 };
180 };
181 };
182
183 &gsw {
184 mediatek,port4 = "gmac";
185 };
186
187 &wmac {
188 ralink,mtd-eeprom = <&factory 0x0>;
189 };
190
191 &pcie {
192 status = "okay";
193 };
194
195 &pcie0 {
196 wifi@0,0 {
197 reg = <0x0000 0 0 0 0>;
198 mediatek,mtd-eeprom = <&factory 0x8000>;
199 mediatek,2ghz = <0>;
200 };
201 };
202
203 &ehci {
204 status = "okay";
205 };
206
207 &ohci {
208 status = "okay";
209 };