1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "dlink,dch-g020-a1", "qca,qca9531";
11 model = "D-Link DCH-G020 A1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "i2c-gpio";
25 sda-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26 scl-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
28 gpio_ext: gpio_ext@38 {
29 compatible = "nxp,pca9554";
37 compatible = "pericom,pt7c43390";
43 compatible = "gpio-export";
47 gpio-export,name = "d-link:power:usb";
48 gpio-export,output = <0>;
49 gpios = <&gpio_ext 3 GPIO_ACTIVE_LOW>;
53 label = "power:zwave";
54 gpio-export,name = "d-link:power:zwave";
55 gpio-export,output = <0>;
56 gpios = <&gpio_ext 1 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys";
65 linux,code = <KEY_WPS_BUTTON>;
66 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
77 compatible = "gpio-leds";
80 function = LED_FUNCTION_POWER;
81 color = <LED_COLOR_ID_GREEN>;
82 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
86 function = LED_FUNCTION_STATUS;
87 color = <LED_COLOR_ID_RED>;
88 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <50000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
112 art: partition@10000 {
114 reg = <0x10000 0x10000>;
120 reg = <0x20000 0x10000>;
126 reg = <0x30000 0x10000>;
132 reg = <0x40000 0x10000>;
138 reg = <0x50000 0xe70000>;
139 compatible = "denx,uimage";
144 reg = <0xec0000 0x140000>;
166 mtd-cal-data = <&art 0x1000>;