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_sys_yellow;
11 led-failsafe = &led_sys_yellow;
12 led-running = &led_sys_blue;
13 led-upgrade = &led_sys_yellow;
14 label-mac-device = &gmac0;
18 bootargs = "console=ttyS0,115200n8";
22 compatible = "gpio-leds";
24 led_sys_yellow: sys_yellow {
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 led_sys_blue: sys_blue {
31 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_WPS_BUTTON>;
66 compatible = "fixed-partitions";
78 reg = <0x80000 0x40000>;
84 reg = <0xc0000 0x40000>;
88 factory: partition@100000 {
90 reg = <0x100000 0x80000>;
96 reg = <0x180000 0x40000>;
102 reg = <0x1c0000 0x40000>;
106 /* "kernel" and "ubi" partition is the result of
107 * squashing next consecutive stock partitions:
108 * 1. firmware 0x0200000 - 0x2000000 (Stock firmware 0)
109 * 2. firmware1 0x2000000 - 0x3e00000 (Stock firmware 1)
110 * 3. overlay 0x3e00000 - 0x7000000 (Stock fw Ubi overlay)
111 * 4. obr 0x7000000 - 0x8000000 (Unallocated?)
116 reg = <0x200000 0x400000>;
121 reg = <0x600000 0x7980000>;
125 * Leave 512 KiB for the bad block table
136 compatible = "mediatek,mt76";
137 reg = <0x0000 0 0 0 0>;
138 mediatek,mtd-eeprom = <&factory 0x0>;
139 mediatek,disable-radar-background;
144 nvmem-cells = <&macaddr_factory_3fff4>;
145 nvmem-cell-names = "mac-address";
151 phy-handle = <ðphy4>;
153 nvmem-cells = <&macaddr_factory_3fffa>;
154 nvmem-cell-names = "mac-address";
158 ethphy4: ethernet-phy@4 {
184 groups = "jtag", "uart3", "wdt";
190 compatible = "nvmem-cells";
191 #address-cells = <1>;
194 macaddr_factory_3fff4: macaddr@3fff4 {
198 macaddr_factory_3fffa: macaddr@3fffa {