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