1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.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 device_type = "memory";
22 reg = <0x0 0x4000000>;
26 bootargs = "console=ttyS0,57600";
30 compatible = "gpio-leds";
32 power_amber: power_amber {
33 label = "ex6150:amber:power";
34 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
37 power_green: power_green {
38 label = "ex6150:green:power";
39 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
43 label = "ex6150:green:wps";
44 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
48 label = "ex6150:blue:rightarrow";
49 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
53 label = "ex6150:blue:leftarrow";
54 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
58 label = "ex6150:green:router";
59 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy1tpt";
64 label = "ex6150:red:router";
65 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
69 label = "ex6150:green:client";
70 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
75 label = "ex6150:red:client";
76 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-keys-polled";
86 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_WPS_BUTTON>;
92 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_RESTART>;
97 label = "AP/Extender toggle";
98 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
100 /* Active when switch is set to "Access Point" */
109 compatible = "jedec,spi-nor";
111 spi-max-frequency = <10000000>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
126 reg = <0x30000 0x10000>;
130 factory: partition@40000 {
132 reg = <0x40000 0x10000>;
137 compatible = "denx,uimage";
139 reg = <0x50000 0xe80000>;
144 reg = <0xed0000 0x10000>;
150 reg = <0xef0000 0x20000>;
156 reg = <0xf10000 0x20000>;
162 reg = <0xf30000 0x20000>;
168 reg = <0xf50000 0x20000>;
174 reg = <0xf70000 0x20000>;
180 reg = <0xf90000 0x20000>;
186 reg = <0xfb0000 0x10000>;
192 reg = <0xfc0000 0x10000>;
198 reg = <0xfd0000 0x10000>;
203 label = "board_data";
204 reg = <0xfe0000 0x10000>;
210 reg = <0xff0000 0x10000>;
223 reg = <0x0000 0 0 0 0>;
224 mediatek,mtd-eeprom = <&factory 0x8000>;
225 ieee80211-freq-limit = <5000000 6000000>;
231 reg = <0x0000 0 0 0 0>;
232 mediatek,mtd-eeprom = <&factory 0x0000>;
233 ieee80211-freq-limit = <2400000 2500000>;
238 mtd-mac-address = <&factory 0x00000004>;
242 state_default: pinctrl0 {
244 ralink,group = "sdhci", "rgmii2", "jtag";
245 ralink,function = "gpio";