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>
11 label-mac-device = &gmac0;
12 led-boot = &led_power_orange;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_net_orange;
19 compatible = "gpio-keys";
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RFKILL>;
41 compatible = "gpio-leds";
43 led_power_orange: power_orange {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_ORANGE>;
46 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
49 led_power_green: power_green {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
55 led_net_orange: net_orange {
57 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
73 compatible = "mediatek,mt76";
74 reg = <0x0000 0 0 0 0>;
75 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
76 nvmem-cell-names = "eeprom", "mac-address";
77 ieee80211-freq-limit = <2400000 2500000>;
87 compatible = "mediatek,mt76";
88 reg = <0x0000 0 0 0 0>;
89 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 2>;
90 nvmem-cell-names = "eeprom", "mac-address";
91 ieee80211-freq-limit = <5000000 6000000>;
100 nvmem-cells = <&macaddr_factory_e000 0>;
101 nvmem-cell-names = "mac-address";
107 phy-handle = <ðphy4>;
109 nvmem-cells = <&macaddr_factory_e006 0>;
110 nvmem-cell-names = "mac-address";
114 ethphy4: ethernet-phy@4 {
145 groups = "i2c", "uart3", "jtag", "wdt";