1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "netgear,ex6150", "mediatek,mt7621-soc";
11 model = "Netgear EX6150";
14 led-boot = &power_green;
15 led-failsafe = &power_amber;
16 led-running = &power_green;
17 led-upgrade = &power_amber;
21 compatible = "gpio-leds";
23 power_amber: power_amber {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_AMBER>;
26 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
29 power_green: power_green {
30 function = LED_FUNCTION_POWER;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 function = LED_FUNCTION_WPS;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 label = "blue:rightarrow";
43 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
47 label = "blue:leftarrow";
48 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
52 label = "green:router";
53 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
59 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
63 label = "green:client";
64 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy0tpt";
70 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
75 compatible = "gpio-keys";
79 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_WPS_BUTTON>;
85 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
90 label = "AP/Extender toggle";
91 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
93 linux,input-type = <EV_SW>;
94 /* Active when switch is set to "Access Point" */
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
120 reg = <0x30000 0x10000>;
124 factory: partition@40000 {
126 reg = <0x40000 0x10000>;
130 compatible = "fixed-layout";
131 #address-cells = <1>;
134 eeprom_factory_0: eeprom@0 {
138 eeprom_factory_8000: eeprom@8000 {
139 reg = <0x8000 0x200>;
142 macaddr_factory_4: macaddr@4 {
149 compatible = "denx,uimage";
151 reg = <0x50000 0xe80000>;
156 reg = <0xed0000 0x10000>;
162 reg = <0xef0000 0x20000>;
168 reg = <0xf10000 0x20000>;
174 reg = <0xf30000 0x20000>;
180 reg = <0xf50000 0x20000>;
186 reg = <0xf70000 0x20000>;
192 reg = <0xf90000 0x20000>;
198 reg = <0xfb0000 0x10000>;
204 reg = <0xfc0000 0x10000>;
210 reg = <0xfd0000 0x10000>;
215 label = "board_data";
216 reg = <0xfe0000 0x10000>;
222 reg = <0xff0000 0x10000>;
232 reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
233 <&gpio 8 GPIO_ACTIVE_LOW>;
238 reg = <0x0000 0 0 0 0>;
239 nvmem-cells = <&eeprom_factory_8000>;
240 nvmem-cell-names = "eeprom";
241 ieee80211-freq-limit = <5000000 6000000>;
247 reg = <0x0000 0 0 0 0>;
248 nvmem-cells = <&eeprom_factory_0>;
249 nvmem-cell-names = "eeprom";
250 ieee80211-freq-limit = <2400000 2500000>;
255 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
259 nvmem-cells = <&macaddr_factory_4>;
260 nvmem-cell-names = "mac-address";
274 groups = "sdhci", "rgmii2", "jtag";