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-override = "console=ttyS0,115200";
23 compatible = "gpio-keys";
27 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
39 compatible = "gpio-leds";
41 led_status_blue: led-0 {
42 label = "blue:status";
43 color = <LED_COLOR_ID_BLUE>;
44 function = LED_FUNCTION_STATUS;
45 gpios = <&gpio 6 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 8 GPIO_ACTIVE_LOW>;
55 led_status_red: led-2 {
57 color = <LED_COLOR_ID_RED>;
58 function = LED_FUNCTION_STATUS;
59 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
65 nvmem-cells = <&macaddr_factory_8004>;
66 nvmem-cell-names = "mac-address";
72 phy-handle = <ðphy4>;
74 nvmem-cells = <&macaddr_factory_8004>;
75 nvmem-cell-names = "mac-address";
76 mac-address-increment = <(-3)>;
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>;
109 compatible = "nvmem-cells";
110 #address-cells = <1>;
113 macaddr_factory_8004: macaddr@8004 {
120 reg = <0x0180000 0x7a80000>;
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
128 reg = <0x0000000 0x0400000>;
133 reg = <0x0400000 0x7680000>;
137 /* last 128KiB *32 is reserved for bad blocks management */
147 compatible = "mediatek,mt76";
148 reg = <0x0000 0 0 0 0>;
149 mediatek,mtd-eeprom = <&factory 0x0>;
150 mediatek,disable-radar-background;
160 groups = "i2c", "uart3", "wdt";