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-505";
11 compatible = "dlink,dir-505", "qca,ar9330";
14 led-boot = &led_power_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_status_red;
21 compatible = "gpio-keys";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
30 label = "Reset button";
31 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
38 pinctrl-names = "default";
39 pinctrl-0 = <&jtag_disable_pins>;
41 led_power_green: power {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
47 led_status_red: status {
48 function = LED_FUNCTION_STATUS;
49 color = <LED_COLOR_ID_RED>;
50 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
59 gpios = <1 GPIO_ACTIVE_LOW>;
60 line-name = "d-link:power:led";
78 switch-phy-addr-swap = <0>;
79 switch-phy-swap = <0>;
84 compatible = "syscon", "simple-mfd";
92 compatible = "jedec,spi-nor";
93 spi-max-frequency = <50000000>;
97 compatible = "fixed-partitions";
107 art: partition@10000 {
109 reg = <0x10000 0x10000>;
113 mac: partition@20000 {
115 reg = <0x20000 0x10000>;
121 reg = <0x30000 0x10000>;
127 reg = <0x40000 0x40000>;
132 compatible = "denx,uimage";
134 reg = <0x80000 0x780000>;