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/mtd/partitions/uimage.h>
10 compatible = "dlink,covr-p2500-a1", "qca,qca9563";
11 model = "D-Link COVR-P2500 A1";
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_red;
21 compatible = "gpio-keys";
25 linux,code = <KEY_WPS_BUTTON>;
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-leds";
38 pinctrl-names = "default";
39 pinctrl-0 = <&jtag_disable_pins>;
43 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
46 led_power_green: power_green {
47 label = "green:power";
48 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
53 label = "green:wlan5g";
54 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy0radio";
58 led_power_red: power_red {
60 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 label = "green:wlan2g";
65 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy1radio";
71 compatible = "mtd-concat";
73 devices = <&fwconcat0 &fwconcat1>;
76 compatible = "fixed-partitions";
81 compatible = "openwrt,uimage", "denx,uimage";
82 openwrt,ih-magic = <0x68737173>;
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <50000000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
110 label = "u-boot-env";
111 reg = <0x40000 0x10000>;
115 fwconcat0: partition@50000 {
117 reg = <0x50000 0xe30000>;
122 reg = <0xe80000 0x10000>;
126 fwconcat1: partition@e90000 {
128 reg = <0xe90000 0x160000>;
131 art: partition@ff0000 {
133 reg = <0xff0000 0x10000>;
136 compatible = "nvmem-cells";
139 compatible = "fixed-layout";
140 #address-cells = <1>;
143 calibration_ath9k: calibration@1000 {
144 reg = <0x1000 0x440>;
147 precalibration_ath10k: pre-calibration@5000 {
148 reg = <0x5000 0x2f20>;
160 compatible = "qcom,ath10k";
163 nvmem-cells = <&precalibration_ath10k>;
164 nvmem-cell-names = "pre-calibration";
171 gpios = <11 GPIO_ACTIVE_LOW>;
173 line-name = "phy-reset";
180 phy0: ethernet-phy@0 {
183 qca,mib-poll-interval = <500>;
185 qca,ar8327-initvals = <
186 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
187 0x10 0x81000080 /* POWER_ON_STRAP */
188 0x50 0xcc35cc35 /* LED_CTRL0 */
189 0x54 0xcb37cb37 /* LED_CTRL1 */
190 0x58 0x00000000 /* LED_CTRL2 */
191 0x5c 0x00f3cf00 /* LED_CTRL3 */
192 0x7c 0x0000007e /* PORT0_STATUS */
200 pll-data = <0x03000101 0x00000101 0x00001919>;
203 phy-handle = <&phy0>;
209 nvmem-cells = <&calibration_ath9k>;
210 nvmem-cell-names = "calibration";