1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 label-mac-device = &gmac0;
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 bootargs = "console=ttyS0,115200n8";
22 compatible = "gpio-keys";
26 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
35 linux,code = <KEY_RESTART>;
40 compatible = "gpio-leds";
43 label = "green:power";
44 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
58 label = "green:wifi5g";
59 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy1tpt";
64 label = "green:wifi2g";
65 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy0tpt";
71 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <40000000>;
85 compatible = "fixed-partitions";
97 compatible = "denx,uimage";
98 reg = <0x40000 0xf60000>;
101 config: partition@fa0000 {
102 compatible = "nvmem-cells";
104 reg = <0xfa0000 0x50000>;
105 #address-cells = <1>;
109 macaddr_config_8: macaddr@8 {
114 radio: partition@ff0000 {
115 compatible = "nvmem-cells";
117 reg = <0xff0000 0x10000>;
118 #address-cells = <1>;
122 eeprom_radio_0: eeprom@0 {
126 eeprom_radio_8000: eeprom@8000 {
127 reg = <0x8000 0x4da8>;
136 groups = "i2c", "rgmii2", "uart2", "uart3", "jtag", "wdt";
147 compatible = "mediatek,mt76";
148 reg = <0x0000 0 0 0 0>;
149 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
150 nvmem-cell-names = "eeprom", "mac-address";
151 mac-address-increment = <1>;
152 ieee80211-freq-limit = <2400000 2500000>;
158 compatible = "mediatek,mt76";
159 reg = <0x0000 0 0 0 0>;
160 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8>;
161 nvmem-cell-names = "eeprom", "mac-address";
162 mac-address-increment = <2>;
163 ieee80211-freq-limit = <5000000 6000000>;
168 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
172 nvmem-cells = <&macaddr_config_8>;
173 nvmem-cell-names = "mac-address";