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>
10 compatible = "zyxel,wap6805", "mediatek,mt7621-soc";
11 model = "ZyXEL WAP6805";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_green;
18 label-mac-device = &gmac0;
22 compatible = "gpio-leds";
24 led_status_red: status_red {
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_RED>;
27 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
31 label = "blink:status";
32 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
35 led_status_green: status_green {
36 function = LED_FUNCTION_STATUS;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
43 compatible = "gpio-keys";
47 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
53 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
63 compatible = "fixed-partitions";
75 reg = <0x100000 0x100000>;
79 factory: partition@200000 {
81 reg = <0x200000 0x100000>;
85 compatible = "fixed-layout";
89 eeprom_factory_0: eeprom@0 {
93 macaddr_factory_e000: macaddr@e000 {
101 reg = <0x300000 0x100000>;
106 reg = <0x400000 0x2000000>;
111 reg = <0x800000 0x1c00000>;
116 reg = <0x2400000 0x2000000>;
121 reg = <0x4400000 0x100000>;
126 reg = <0x4500000 0x1000000>;
131 reg = <0x5500000 0x2b00000>;
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&eeprom_factory_0>;
144 nvmem-cell-names = "eeprom";
149 nvmem-cells = <&macaddr_factory_e000>;
150 nvmem-cell-names = "mac-address";
189 groups = "i2c", "uart3", "jtag", "wdt";