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,eax12", "mediatek,mt7621-soc";
11 model = "Netgear EAX12";
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_red;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
43 led_power_green: power_green {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 led_power_red: power_red {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
56 label = "green:client";
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
66 label = "green:router";
67 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
72 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
76 function = LED_FUNCTION_WPS;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
83 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
88 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
97 compatible = "fixed-partitions";
102 label = "Bootloader";
109 reg = <0x80000 0x80000>;
113 factory: partition@100000 {
115 reg = <0x100000 0x80000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 eeprom_factory_0: eeprom@0 {
127 precal_factory_e10: precal@e10 {
128 reg = <0xe10 0x19c10>;
135 reg = <0x180000 0x3800000>;
137 compatible = "fixed-partitions";
138 #address-cells = <1>;
143 reg = <0x0 0x400000>;
148 reg = <0x400000 0x3400000>;
153 label = "firmware_backup";
154 reg = <0x3980000 0x3800000>;
160 reg = <0x7180000 0x200000>;
166 reg = <0x7380000 0x600000>;
172 reg = <0x7980000 0x020000>;
178 reg = <0x79A0000 0x40000>;
190 compatible = "mediatek,mt76";
191 reg = <0x0000 0 0 0 0>;
192 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
193 nvmem-cell-names = "eeprom", "precal";