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 label-mac-device = &gmac1;
12 led-boot = &led_status_red;
13 led-failsafe = &led_status_blue;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_blue;
19 bootargs = "console=ttyS0,115200";
20 bootargs-override = "console=ttyS0,115200";
24 compatible = "gpio-keys";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
40 compatible = "gpio-leds";
42 led_status_blue: led-0 {
43 label = "blue:status";
44 color = <LED_COLOR_ID_BLUE>;
45 function = LED_FUNCTION_STATUS;
46 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
49 led_status_green: led-1 {
50 label = "green:status";
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_STATUS;
53 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
56 led_status_red: led-2 {
58 color = <LED_COLOR_ID_RED>;
59 function = LED_FUNCTION_STATUS;
60 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
66 nvmem-cells = <&macaddr_factory_8004 0>;
67 nvmem-cell-names = "mac-address";
73 phy-handle = <ðphy4>;
75 nvmem-cells = <&macaddr_factory_8004 (-3)>;
76 nvmem-cell-names = "mac-address";
80 ethphy4: ethernet-phy@4 {
89 compatible = "fixed-partitions";
95 reg = <0x0000000 0x0080000>;
100 label = "u-boot-env";
101 reg = <0x0080000 0x0080000>;
104 factory: partition@100000 {
106 reg = <0x0100000 0x0080000>;
110 compatible = "fixed-layout";
111 #address-cells = <1>;
114 eeprom_factory_0: eeprom@0 {
118 macaddr_factory_8004: macaddr@8004 {
119 compatible = "mac-base";
121 #nvmem-cell-cells = <1>;
128 reg = <0x0180000 0x7a80000>;
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
136 reg = <0x0000000 0x0400000>;
141 reg = <0x0400000 0x7680000>;
145 /* last 128KiB *32 is reserved for bad blocks management */
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_0>;
158 nvmem-cell-names = "eeprom";
159 mediatek,disable-radar-background;
165 groups = "i2c", "uart3", "wdt";