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>
11 led-boot = &led_status_amber;
12 led-failsafe = &led_status_green;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_amber;
18 bootargs = "console=ttyS0,115200";
19 bootargs-override = "console=ttyS0,115200";
23 compatible = "gpio-keys";
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
39 compatible = "gpio-leds";
41 led_status_amber: led-0 {
42 label = "amber:status";
43 color = <LED_COLOR_ID_AMBER>;
44 function = LED_FUNCTION_STATUS;
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 led_status_green: led-1 {
49 label = "green:status";
50 color = <LED_COLOR_ID_GREEN>;
51 function = LED_FUNCTION_STATUS;
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
60 phy-handle = <ðphy4>;
64 ethphy4: ethernet-phy@4 {
73 mediatek,bmt-max-ratio = <1>;
74 mediatek,bmt-max-reserved-blocks = <64>;
75 mediatek,bmt-remap-range = <0x0000000 0x0a00000>;
78 compatible = "fixed-partitions";
84 reg = <0x0000000 0x0080000>;
90 reg = <0x0080000 0x0080000>;
95 reg = <0x0100000 0x0080000>;
99 factory: partition@180000 {
100 compatible = "nvmem-cells";
102 reg = <0x0180000 0x0080000>;
103 #address-cells = <1>;
107 eeprom_factory_0: eeprom@0 {
114 reg = <0x0200000 0x7600000>;
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
122 reg = <0x0000000 0x0800000>;
127 reg = <0x0800000 0x6e00000>;
131 /* last 8 MiB is reserved for NMBM bad block table */
141 compatible = "mediatek,mt76";
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&eeprom_factory_0>;
144 nvmem-cell-names = "eeprom";
145 mediatek,disable-radar-background;