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>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "dlink,covr-p2500-a1", "qca,qca9563";
12 model = "D-Link COVR-P2500 A1";
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_red;
22 compatible = "gpio-keys";
26 linux,code = <KEY_WPS_BUTTON>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-leds";
39 pinctrl-names = "default";
40 pinctrl-0 = <&jtag_disable_pins>;
43 function = LED_FUNCTION_LAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
48 led_power_green: power_green {
49 function = LED_FUNCTION_POWER;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
56 label = "green:wlan5g";
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0radio";
61 led_power_red: power_red {
62 function = LED_FUNCTION_POWER;
63 color = <LED_COLOR_ID_RED>;
64 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
68 label = "green:wlan2g";
69 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy1radio";
75 compatible = "mtd-concat";
77 devices = <&fwconcat0 &fwconcat1>;
80 compatible = "fixed-partitions";
85 compatible = "openwrt,uimage", "denx,uimage";
86 openwrt,ih-magic = <0x68737173>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <50000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
114 label = "u-boot-env";
115 reg = <0x40000 0x10000>;
119 fwconcat0: partition@50000 {
121 reg = <0x50000 0xe30000>;
126 reg = <0xe80000 0x10000>;
130 fwconcat1: partition@e90000 {
132 reg = <0xe90000 0x160000>;
135 art: partition@ff0000 {
137 reg = <0xff0000 0x10000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 calibration_ath9k: calibration@1000 {
146 reg = <0x1000 0x440>;
149 precalibration_ath10k: pre-calibration@5000 {
150 reg = <0x5000 0x2f20>;
162 compatible = "qcom,ath10k";
165 nvmem-cells = <&precalibration_ath10k>;
166 nvmem-cell-names = "pre-calibration";
173 gpios = <11 GPIO_ACTIVE_LOW>;
175 line-name = "phy-reset";
182 phy0: ethernet-phy@0 {
185 qca,mib-poll-interval = <500>;
187 qca,ar8327-initvals = <
188 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
189 0x10 0x81000080 /* POWER_ON_STRAP */
190 0x50 0xcc35cc35 /* LED_CTRL0 */
191 0x54 0xcb37cb37 /* LED_CTRL1 */
192 0x58 0x00000000 /* LED_CTRL2 */
193 0x5c 0x00f3cf00 /* LED_CTRL3 */
194 0x7c 0x0000007e /* PORT0_STATUS */
202 pll-data = <0x03000101 0x00000101 0x00001919>;
205 phy-handle = <&phy0>;
211 nvmem-cells = <&calibration_ath9k>;
212 nvmem-cell-names = "calibration";