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_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = &gmac1;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_WPS;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
35 compatible = "gpio-keys";
39 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
47 linux,input-type = <EV_SW>;
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
62 mediatek,bmt-remap-range =
63 <0x0000000 0x0800000>,
64 <0x3600000 0x4980000>;
66 partitions: partitions {
67 compatible = "fixed-partitions";
73 reg = <0x0 0x0100000>;
79 reg = <0x0100000 0x0100000>;
85 reg = <0x0200000 0x0100000>;
88 compatible = "fixed-layout";
92 eeprom_factory_0: eeprom@0 {
96 eeprom_factory_8000: eeprom@8000 {
97 reg = <0x8000 0x4da8>;
100 macaddr_factory_e000: macaddr@e000 {
104 macaddr_factory_e006: macaddr@e006 {
111 label = "SecondBoot";
112 reg = <0x0300000 0x0100000>;
118 reg = <0x0400000 0x0400000>;
123 reg = <0x0800000 0x2e00000>;
128 reg = <0x3600000 0x0100000>;
133 label = "firmware_2";
134 reg = <0x3700000 0x3200000>;
139 reg = <0x6900000 0x0100000>;
145 reg = <0x6a00000 0x0100000>;
151 nvmem-cells = <&macaddr_factory_e000>;
152 nvmem-cell-names = "mac-address";
158 phy-handle = <ðphy0>;
160 nvmem-cells = <&macaddr_factory_e006>;
161 nvmem-cell-names = "mac-address";
165 ethphy0: ethernet-phy@0 {
200 groups = "uart2", "uart3", "wdt";