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>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 label-mac-device = &wan;
18 compatible = "gpio-leds";
22 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
26 label = "green:power";
27 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
32 compatible = "gpio-keys";
36 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
44 linux,input-type = <EV_SW>;
49 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
58 partitions: partitions {
59 compatible = "fixed-partitions";
65 reg = <0x0 0x0100000>;
71 reg = <0x0100000 0x0100000>;
75 factory: partition@200000 {
77 reg = <0x0200000 0x0100000>;
82 reg = <0x0300000 0x0100000>;
88 reg = <0x0400000 0x0400000>;
93 reg = <0x0800000 0x2e00000>;
98 reg = <0x3600000 0x0100000>;
103 label = "firmware_2";
104 reg = <0x3700000 0x3200000>;
109 reg = <0x6900000 0x0100000>;
115 reg = <0x6a00000 0x0100000>;
121 nvmem-cells = <&macaddr_factory_e000>;
122 nvmem-cell-names = "mac-address";
130 nvmem-cells = <&macaddr_factory_e006>;
131 nvmem-cell-names = "mac-address";
162 groups = "uart2", "uart3", "wdt";
172 compatible = "nvmem-cells";
173 #address-cells = <1>;
176 macaddr_factory_e000: macaddr@e000 {
180 macaddr_factory_e006: macaddr@e006 {