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 {
89 compatible = "nvmem-cells";
91 reg = <0x100000 0x80000>;
96 eeprom_factory_0: eeprom@0 {
100 macaddr_factory_3fff4: macaddr@3fff4 {
104 macaddr_factory_3fffa: macaddr@3fffa {
111 reg = <0x180000 0x40000>;
117 reg = <0x1c0000 0x40000>;
121 /* "kernel" and "ubi" partition is the result of
122 * squashing next consecutive stock partitions:
123 * 1. firmware 0x0200000 - 0x2000000 (Stock firmware 0)
124 * 2. firmware1 0x2000000 - 0x3e00000 (Stock firmware 1)
125 * 3. overlay 0x3e00000 - 0x7000000 (Stock fw Ubi overlay)
126 * 4. obr 0x7000000 - 0x8000000 (Unallocated?)
131 reg = <0x200000 0x400000>;
136 reg = <0x600000 0x7980000>;
140 * Leave 512 KiB for the bad block table
151 compatible = "mediatek,mt76";
152 reg = <0x0000 0 0 0 0>;
153 nvmem-cells = <&eeprom_factory_0>;
154 nvmem-cell-names = "eeprom";
155 mediatek,disable-radar-background;
160 nvmem-cells = <&macaddr_factory_3fff4>;
161 nvmem-cell-names = "mac-address";
167 phy-handle = <ðphy4>;
169 nvmem-cells = <&macaddr_factory_3fffa>;
170 nvmem-cell-names = "mac-address";
174 ethphy4: ethernet-phy@4 {
200 groups = "jtag", "uart3", "wdt";