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 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-leds";
27 power_amber: power_amber {
28 label = "ex6150:amber:power";
29 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
32 power_green: power_green {
33 label = "ex6150:green:power";
34 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
38 label = "ex6150:green:wps";
39 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
43 label = "ex6150:blue:rightarrow";
44 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
48 label = "ex6150:blue:leftarrow";
49 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
53 label = "ex6150:green:router";
54 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy1tpt";
59 label = "ex6150:red:router";
60 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
64 label = "ex6150:green:client";
65 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy0tpt";
70 label = "ex6150:red:client";
71 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
76 compatible = "gpio-keys-polled";
81 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
92 label = "AP/Extender toggle";
93 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
95 /* Active when switch is set to "Access Point" */
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <10000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
121 reg = <0x30000 0x10000>;
125 factory: partition@40000 {
127 reg = <0x40000 0x10000>;
132 compatible = "denx,uimage";
134 reg = <0x50000 0xe80000>;
139 reg = <0xed0000 0x10000>;
145 reg = <0xef0000 0x20000>;
151 reg = <0xf10000 0x20000>;
157 reg = <0xf30000 0x20000>;
163 reg = <0xf50000 0x20000>;
169 reg = <0xf70000 0x20000>;
175 reg = <0xf90000 0x20000>;
181 reg = <0xfb0000 0x10000>;
187 reg = <0xfc0000 0x10000>;
193 reg = <0xfd0000 0x10000>;
198 label = "board_data";
199 reg = <0xfe0000 0x10000>;
205 reg = <0xff0000 0x10000>;
218 reg = <0x0000 0 0 0 0>;
219 mediatek,mtd-eeprom = <&factory 0x8000>;
220 ieee80211-freq-limit = <5000000 6000000>;
226 reg = <0x0000 0 0 0 0>;
227 mediatek,mtd-eeprom = <&factory 0x0000>;
228 ieee80211-freq-limit = <2400000 2500000>;
233 mtd-mac-address = <&factory 0x00000004>;
237 state_default: pinctrl0 {
239 ralink,group = "sdhci", "rgmii2", "jtag";
240 ralink,function = "gpio";