1 // SPDX-License-Identifier: GPL-2.0-only
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;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 bootargs = "console=ttyS0,115200n8";
23 compatible = "gpio-keys";
27 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 linux,code = <KEY_RESTART>;
41 compatible = "gpio-leds";
43 led_power: led-power {
44 label = "green:power";
45 color = <LED_COLOR_ID_GREEN>;
46 function = LED_FUNCTION_POWER;
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
51 color = <LED_COLOR_ID_AMBER>;
52 function = LED_FUNCTION_WAN;
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 color = <LED_COLOR_ID_GREEN>;
58 function = LED_FUNCTION_LAN;
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
63 color = <LED_COLOR_ID_GREEN>;
64 function = LED_FUNCTION_WLAN;
65 function-enumerator = <5>;
66 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy1tpt";
71 color = <LED_COLOR_ID_GREEN>;
72 function = LED_FUNCTION_WLAN;
73 function-enumerator = <2>;
74 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
75 linux,default-trigger = "phy0tpt";
79 color = <LED_COLOR_ID_GREEN>;
80 function = LED_FUNCTION_WAN;
81 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <40000000>;
95 compatible = "fixed-partitions";
107 compatible = "denx,uimage";
108 reg = <0x40000 0xf60000>;
111 config: partition@fa0000 {
112 compatible = "nvmem-cells";
114 reg = <0xfa0000 0x50000>;
115 #address-cells = <1>;
119 macaddr_config_8: macaddr@8 {
124 radio: partition@ff0000 {
125 compatible = "nvmem-cells";
127 reg = <0xff0000 0x10000>;
128 #address-cells = <1>;
132 eeprom_radio_0: eeprom@0 {
136 eeprom_radio_8000: eeprom@8000 {
137 reg = <0x8000 0x4da8>;
146 groups = "i2c", "rgmii2", "uart2", "uart3", "jtag", "wdt";
157 compatible = "mediatek,mt76";
158 reg = <0x0000 0 0 0 0>;
159 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
160 nvmem-cell-names = "eeprom", "mac-address";
161 mac-address-increment = <1>;
162 ieee80211-freq-limit = <2400000 2500000>;
168 compatible = "mediatek,mt76";
169 reg = <0x0000 0 0 0 0>;
170 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8>;
171 nvmem-cell-names = "eeprom", "mac-address";
172 mac-address-increment = <2>;
173 ieee80211-freq-limit = <5000000 6000000>;
178 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
182 nvmem-cells = <&macaddr_config_8>;
183 nvmem-cell-names = "mac-address";