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>
12 led-failsafe = &led_cpu;
13 led-running = &led_cpu;
14 led-upgrade = &led_cpu;
15 label-mac-device = &gmac0;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_USB;
23 color = <LED_COLOR_ID_BLUE>;
24 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
25 trigger-sources = <&xhci_ehci_port1>;
26 linux,default-trigger = "usbport";
30 label = "blue:wlan5g";
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy0radio";
36 label = "blue:wlan2g";
37 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy1radio";
42 function = LED_FUNCTION_CPU;
43 color = <LED_COLOR_ID_BLUE>;
44 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys";
53 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_WPS_BUTTON>;
59 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <80000000>;
75 compatible = "fixed-partitions";
85 compatible = "fixed-layout";
89 macaddr_uboot_1fc20: macaddr@1fc20 {
93 macaddr_uboot_1fc40: macaddr@1fc40 {
101 reg = <0x20000 0x10000>;
105 factory: partition@30000 {
107 reg = <0x30000 0x10000>;
111 compatible = "fixed-layout";
112 #address-cells = <1>;
115 eeprom_factory_0: eeprom@0 {
119 eeprom_factory_8000: eeprom@8000 {
120 reg = <0x8000 0x4da8>;
126 compatible = "denx,uimage";
128 reg = <0x40000 0xfc0000>;
136 groups = "i2c", "uart3", "jtag", "wdt";
142 nvmem-cells = <&macaddr_uboot_1fc20>;
143 nvmem-cell-names = "mac-address";
149 phy-handle = <ðphy0>;
151 nvmem-cells = <&macaddr_uboot_1fc40>;
152 nvmem-cell-names = "mac-address";
156 ethphy0: ethernet-phy@0 {
191 compatible = "mediatek,mt76";
192 reg = <0x0000 0 0 0 0>;
193 nvmem-cells = <&eeprom_factory_0>;
194 nvmem-cell-names = "eeprom";
195 ieee80211-freq-limit = <5000000 6000000>;
201 compatible = "mediatek,mt76";
202 reg = <0x0000 0 0 0 0>;
203 nvmem-cells = <&eeprom_factory_8000>;
204 nvmem-cell-names = "eeprom";
205 ieee80211-freq-limit = <2400000 2500000>;