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 model = "D-Link DIR-615 E4";
11 compatible = "dlink,dir-615-e4", "qca,ar7240";
14 led-boot = &led_power_amber;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
39 compatible = "gpio-leds";
40 pinctrl-names = "default";
41 pinctrl-0 = <&switch_led_pins>;
43 led_power_green: power_green {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
49 led_power_amber: power_amber {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_AMBER>;
52 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
56 function = LED_FUNCTION_WPS;
57 color = <LED_COLOR_ID_BLUE>;
58 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
68 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
73 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
78 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
82 function = LED_FUNCTION_WAN;
83 color = <LED_COLOR_ID_AMBER>;
84 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
88 function = LED_FUNCTION_WAN;
89 color = <LED_COLOR_ID_GREEN>;
90 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
95 compatible = "gpio-leds";
98 function = LED_FUNCTION_WLAN;
99 color = <LED_COLOR_ID_GREEN>;
100 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
101 linux,default-trigger = "phy0tpt";
110 compatible = "jedec,spi-nor";
112 spi-max-frequency = <33000000>;
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
126 reg = <0x30000 0x10000>;
132 compatible = "denx,uimage";
133 reg = <0x40000 0x3b0000>;
138 reg = <0x3f0000 0x10000>;
154 compatible = "pci168c,002b";
155 reg = <0x0000 0 0 0 0>;
163 switch_led_pins: pinmux_switch_led_pins {
164 pinctrl-single,bits = <0x0 0x0 0xf8>;