1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
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 DAP-1720 A1";
11 compatible = "dlink,dap-1720-a1", "qca,qca9563";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
19 label-mac-device = ð0;
23 compatible = "gpio-keys";
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 debounce-interval = <60>;
34 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 debounce-interval = <60>;
41 compatible = "gpio-leds";
43 led_status_red: led-status-red {
44 color = <LED_COLOR_ID_RED>;
45 function = LED_FUNCTION_STATUS;
46 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
50 led_status_green: led-status-green {
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_STATUS;
53 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
58 color = <LED_COLOR_ID_GREEN>;
59 function = "signal"; //LED_FUNCTION_SIGNAL;
60 function-enumerator = <2>;
61 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
65 color = <LED_COLOR_ID_GREEN>;
66 function = "signal"; //LED_FUNCTION_SIGNAL;
67 function-enumerator = <3>;
68 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 led-rssi-bottom-green {
72 color = <LED_COLOR_ID_GREEN>;
73 function = "signal"; //LED_FUNCTION_SIGNAL;
74 function-enumerator = <1>;
75 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
79 color = <LED_COLOR_ID_RED>;
80 function = "signal"; //LED_FUNCTION_SIGNAL;
81 function-enumerator = <1>;
82 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <25000000>;
96 compatible = "fixed-partitions";
101 label = "u-boot"; // vendor calls it `bootloader`
102 reg = <0x000000 0x40000>;
107 compatible = "u-boot,env";
108 label = "u-boot-env"; // vendor calls it `bdcfg`
109 reg = <0x040000 0x10000>;
115 reg = <0x050000 0x10000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 macaddr_ath10k: macaddr@94 {
124 compatible = "mac-base";
126 #nvmem-cell-cells = <1>;
129 macaddr_ath9k: macaddr@b0 {
130 compatible = "mac-base";
132 #nvmem-cell-cells = <1>;
135 macaddr_lan: macaddr@c9 {
136 compatible = "mac-base";
138 #nvmem-cell-cells = <1>;
145 reg = <0x060000 0x10000>;
150 compatible = "seama";
152 reg = <0x070000 0xf80000>;
156 label = "art"; // vendor calls it `radiocfg`
157 reg = <0xff0000 0x010000>;
161 compatible = "fixed-layout";
162 #address-cells = <1>;
165 cal_ath9k: cal@1000 {
166 reg = <0x1000 0x440>;
169 cal_ath10k: cal@5000 {
170 reg = <0x5000 0x844>;
181 phy0: ethernet-phy@0 {
183 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
190 phy-handle = <&phy0>;
193 nvmem-cells = <&macaddr_lan 0>;
194 nvmem-cell-names = "mac-address";
201 compatible = "qcom,ath10k";
202 reg = <0x0000 0 0 0 0>;
204 nvmem-cells = <&cal_ath10k>, <&macaddr_ath10k 0>;
205 nvmem-cell-names = "calibration", "mac-address";
212 nvmem-cells = <&cal_ath9k>, <&macaddr_ath9k 0>;
213 nvmem-cell-names = "calibration", "mac-address";