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>
9 compatible = "netgear,eax12", "mediatek,mt7621-soc";
10 model = "Netgear EAX12";
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_red;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_red;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-keys";
28 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
40 compatible = "gpio-leds";
42 led_power_green: power_green {
43 label = "green:power";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
47 led_power_red: power_red {
49 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
53 label = "green:client";
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
63 label = "green:router";
64 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
69 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
74 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
79 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
84 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
93 compatible = "fixed-partitions";
105 reg = <0x80000 0x80000>;
109 factory: partition@100000 {
111 reg = <0x100000 0x80000>;
115 compatible = "fixed-layout";
116 #address-cells = <1>;
119 eeprom_factory_0: eeprom@0 {
123 precal_factory_e10: precal@e10 {
124 reg = <0xe10 0x19c10>;
131 reg = <0x180000 0x3800000>;
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
139 reg = <0x0 0x400000>;
144 reg = <0x400000 0x3400000>;
149 label = "firmware_backup";
150 reg = <0x3980000 0x3800000>;
156 reg = <0x7180000 0x200000>;
162 reg = <0x7380000 0x600000>;
168 reg = <0x7980000 0x020000>;
174 reg = <0x79A0000 0x40000>;
186 compatible = "mediatek,mt76";
187 reg = <0x0000 0 0 0 0>;
188 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
189 nvmem-cell-names = "eeprom", "precal";