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>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 label-mac-device = &gmac1;
18 compatible = "gpio-leds";
22 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
26 label = "green:power";
27 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
32 compatible = "gpio-keys";
36 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
44 linux,input-type = <EV_SW>;
49 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
59 mediatek,bmt-remap-range =
60 <0x0000000 0x0800000>,
61 <0x3600000 0x4980000>;
63 partitions: partitions {
64 compatible = "fixed-partitions";
70 reg = <0x0 0x0100000>;
76 reg = <0x0100000 0x0100000>;
80 factory: partition@200000 {
82 reg = <0x0200000 0x0100000>;
85 compatible = "fixed-layout";
89 eeprom_factory_0: eeprom@0 {
93 eeprom_factory_8000: eeprom@8000 {
94 reg = <0x8000 0x4da8>;
97 macaddr_factory_e000: macaddr@e000 {
101 macaddr_factory_e006: macaddr@e006 {
108 label = "SecondBoot";
109 reg = <0x0300000 0x0100000>;
115 reg = <0x0400000 0x0400000>;
120 reg = <0x0800000 0x2e00000>;
125 reg = <0x3600000 0x0100000>;
130 label = "firmware_2";
131 reg = <0x3700000 0x3200000>;
136 reg = <0x6900000 0x0100000>;
142 reg = <0x6a00000 0x0100000>;
148 nvmem-cells = <&macaddr_factory_e000>;
149 nvmem-cell-names = "mac-address";
155 phy-handle = <ðphy0>;
157 nvmem-cells = <&macaddr_factory_e006>;
158 nvmem-cell-names = "mac-address";
162 ethphy0: ethernet-phy@0 {
197 groups = "uart2", "uart3", "wdt";