ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_dlink_dap-3662-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca955x_dlink_dap-2xxx.dtsi"
6
7 / {
8 compatible = "dlink,dap-3662-a1", "qca,qca9558";
9 model = "D-Link DAP-3662 A1";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_red;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_red;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_power_red: power_red {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_RED>;
34 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 };
36
37 led_power_green: power_green {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
41 default-state = "on";
42 };
43 };
44 };
45
46 &partitions {
47 partition@70000 {
48 label = "firmware";
49 reg = <0x70000 0xef0000>;
50 compatible = "wrg";
51 };
52
53 partition@f60000 {
54 label = "dlink";
55 reg = <0xf60000 0x90000>;
56 read-only;
57 };
58 };
59
60 &mdio0 {
61 status = "okay";
62
63 phy0: ethernet-phy@0 {
64 reg = <0>;
65
66 qca,ar8327-initvals = <
67 0x04 0x07600000 /* PORT0_PAD_CTRL */
68 0x0c 0x00080080 /* PORT6_PAD_CTRL */
69 0x7c 0x0000007e /* PORT0_STATUS */
70 0x94 0x0000007e /* PORT6_STATUS */
71 >;
72 };
73 };
74
75 &eth0 {
76 status = "okay";
77
78 phy-handle = <&phy0>;
79 pll-data = <0x56000000 0x00000101 0x00001616>;
80
81 fixed-link {
82 speed = <1000>;
83 full-duplex;
84 };
85 };
86
87 &eth1 {
88 status = "okay";
89
90 pll-data = <0x03000101 0x00000101 0x00001616>;
91
92 fixed-link {
93 speed = <1000>;
94 full-duplex;
95 };
96 };
97
98 &pcie0 {
99 status = "okay";
100
101 wifi@0,0 {
102 compatible = "qcom,ath10k";
103 reg = <0 0 0 0 0>;
104
105 nvmem-cells = <&cal_ath10k>;
106 nvmem-cell-names = "calibration";
107 };
108 };
109
110 &art {
111 nvmem-layout {
112 compatible = "fixed-layout";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 cal_ath9k: calibration@1000 {
117 reg = <0x1000 0x440>;
118 };
119
120 cal_ath10k: calibration@5000 {
121 reg = <0x5000 0x844>;
122 };
123 };
124 };