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>;
94 compatible = "fixed-layout";
98 eeprom_factory_0: eeprom@0 {
102 macaddr_factory_3fff4: macaddr@3fff4 {
106 macaddr_factory_3fffa: macaddr@3fffa {
114 reg = <0x180000 0x40000>;
120 reg = <0x1c0000 0x40000>;
124 /* "kernel" and "ubi" partition is the result of
125 * squashing next consecutive stock partitions:
126 * 1. firmware 0x0200000 - 0x2000000 (Stock firmware 0)
127 * 2. firmware1 0x2000000 - 0x3e00000 (Stock firmware 1)
128 * 3. overlay 0x3e00000 - 0x7000000 (Stock fw Ubi overlay)
129 * 4. obr 0x7000000 - 0x8000000 (Unallocated?)
134 reg = <0x200000 0x400000>;
139 reg = <0x600000 0x7980000>;
143 * Leave 512 KiB for the bad block table
154 compatible = "mediatek,mt76";
155 reg = <0x0000 0 0 0 0>;
156 nvmem-cells = <&eeprom_factory_0>;
157 nvmem-cell-names = "eeprom";
158 mediatek,disable-radar-background;
163 nvmem-cells = <&macaddr_factory_3fff4>;
164 nvmem-cell-names = "mac-address";
170 phy-handle = <ðphy4>;
172 nvmem-cells = <&macaddr_factory_3fffa>;
173 nvmem-cell-names = "mac-address";
177 ethphy4: ethernet-phy@4 {
203 groups = "jtag", "uart3", "wdt";