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 label-mac-device = &gmac0;
11 led-boot = &led_power_orange;
12 led-failsafe = &led_power_white;
13 led-running = &led_power_white;
14 led-upgrade = &led_net_orange;
18 compatible = "gpio-keys";
22 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
34 compatible = "gpio-leds";
36 led_power_orange: power_orange {
37 label = "orange:power";
38 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
41 led_power_white: power_white {
42 label = "white:power";
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 led_net_orange: net_orange {
48 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62 compatible = "fixed-partitions";
74 reg = <0x80000 0x80000>;
78 factory: partition@100000 {
80 reg = <0x100000 0x40000>;
84 compatible = "fixed-layout";
88 eeprom_factory_0: eeprom@0 {
92 eeprom_factory_8000: eeprom@8000 {
93 reg = <0x8000 0x4da8>;
96 macaddr_factory_e000: macaddr@e000 {
97 compatible = "mac-base";
99 #nvmem-cell-cells = <1>;
102 macaddr_factory_e006: macaddr@e006 {
110 reg = <0x140000 0x40000>;
116 compatible = "openwrt,uimage", "denx,uimage";
117 openwrt,padding = <96>;
118 reg = <0x180000 0x2800000>;
123 reg = <0x2980000 0x2000000>;
129 reg = <0x4980000 0x2800000>;
134 reg = <0x7180000 0x600000>;
140 reg = <0x7780000 0x880000>;
152 compatible = "mediatek,mt76";
153 reg = <0x0000 0 0 0 0>;
154 nvmem-cells = <&macaddr_factory_e000 1>;
155 nvmem-cell-names = "eeprom";
156 ieee80211-freq-limit = <2400000 2500000>;
166 compatible = "mediatek,mt76";
167 reg = <0x0000 0 0 0 0>;
168 nvmem-cells = <&macaddr_factory_e000 2>;
169 nvmem-cell-names = "eeprom";
170 ieee80211-freq-limit = <5000000 6000000>;
179 nvmem-cells = <&macaddr_factory_e000 0>;
180 nvmem-cell-names = "mac-address";
186 phy-handle = <ðphy4>;
188 nvmem-cells = <&macaddr_factory_e006>;
189 nvmem-cell-names = "mac-address";
193 ethphy4: ethernet-phy@4 {
224 groups = "i2c", "uart3", "jtag", "wdt";