1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 label-mac-device = &wan;
18 compatible = "gpio-leds";
20 led_power_green: power_green {
21 label = "green:power";
22 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
27 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
32 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
37 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
42 compatible = "gpio-keys";
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
58 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
60 linux,input-type = <EV_SW>;
65 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
67 linux,input-type = <EV_SW>;
72 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
74 linux,input-type = <EV_SW>;
79 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
81 linux,input-type = <EV_SW>;
119 compatible = "jedec,spi-nor";
121 spi-max-frequency = <40000000>;
123 partitions: partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
135 label = "u-boot-env";
136 reg = <0x30000 0x10000>;
140 factory: partition@40000 {
142 reg = <0x40000 0x10000>;