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