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;
13 led-boot = &led_status_red;
14 led-failsafe = &led_status_green;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_red;
20 compatible = "gpio-keys";
24 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 debounce-interval = <60>;
31 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
39 led_status_red: status_red {
40 function = LED_FUNCTION_STATUS;
41 color = <LED_COLOR_ID_RED>;
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45 led_status_green: status_green {
46 function = LED_FUNCTION_STATUS;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 label = "red:rssilow";
53 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
57 label = "green:rssilow";
58 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
62 label = "green:rssimed";
63 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
67 label = "green:rssihigh";
68 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <50000000>;
82 compatible = "fixed-partitions";
94 reg = <0x30000 0x10000>;
100 reg = <0x40000 0x10000>;
104 compatible = "fixed-layout";
105 #address-cells = <1>;
108 eeprom_factory_0: eeprom@0 {
112 macaddr_factory_e000: macaddr@e000 {
119 compatible = "denx,uimage";
121 reg = <0x50000 0xfb0000>;
133 compatible = "mediatek,mt76";
134 reg = <0x0000 0 0 0 0>;
135 nvmem-cells = <&eeprom_factory_0>;
136 nvmem-cell-names = "eeprom";
137 /* The correct MAC addresses are set in 10_fix_wifi_mac. */
142 nvmem-cells = <&macaddr_factory_e000>;
143 nvmem-cell-names = "mac-address";
156 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
161 groups = "uart3", "jtag", "wdt";