ath79: convert ath10k calibration data to NVMEM (built-in MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9563_asus_rp-ac66.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "ASUS RP-AC66";
11 compatible = "asus,rp-ac66", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_orange;
15 led-failsafe = &led_orange;
16 led-running = &led_power;
17 led-upgrade = &led_orange;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_power: power {
25 label = "green:power";
26 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
27 };
28
29 led_orange: wps {
30 label = "orange:wps";
31 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
32 };
33
34 rssilow-wlan0 {
35 label = "blue:rssilow-wlan0";
36 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
37 };
38
39 rssimedium-wlan0 {
40 label = "red:rssimedium-wlan0";
41 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
42 };
43
44 rssihigh-wlan0 {
45 label = "green:rssihigh-wlan0";
46 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
47 };
48
49 rssilow-wlan1 {
50 label = "blue:rssilow-wlan1";
51 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
52 };
53
54 rssimedium-wlan1 {
55 label = "red:rssimedium-wlan1";
56 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
57 };
58
59 rssihigh-wlan1 {
60 label = "green:rssihigh-wlan1";
61 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
62 };
63 };
64
65 keys {
66 compatible = "gpio-keys";
67
68 wps {
69 linux,code = <KEY_WPS_BUTTON>;
70 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
71 debounce-interval = <60>;
72 };
73
74 reset {
75 linux,code = <KEY_RESTART>;
76 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
78 };
79 };
80 };
81
82 &pcie {
83 status = "okay";
84
85 wifi@0,0 {
86 compatible = "qcom,ath10k";
87 reg = <0x0000 0 0 0 0>;
88 nvmem-cells = <&cal_art_5000>;
89 nvmem-cell-names = "calibration";
90 };
91 };
92
93 &spi {
94 status = "okay";
95
96 flash@0 {
97 compatible = "jedec,spi-nor";
98 reg = <0>;
99 spi-max-frequency = <50000000>;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "u-boot";
108 reg = <0x000000 0x40000>;
109 read-only;
110 };
111
112 partition@40000 {
113 label = "u-boot-env";
114 reg = <0x040000 0x10000>;
115 read-only;
116 };
117
118 art: partition@50000 {
119 label = "art";
120 reg = <0x050000 0x10000>;
121 read-only;
122
123 nvmem-layout {
124 compatible = "fixed-layout";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 macaddr_art_1002: macaddr@1002 {
129 reg = <0x1002 0x6>;
130 };
131
132 cal_art_5000: calibration@5000 {
133 reg = <0x5000 0x844>;
134 };
135 };
136 };
137
138 partition@60000 {
139 compatible = "denx,uimage";
140 label = "firmware";
141 reg = <0x060000 0xfa0000>;
142 };
143 };
144 };
145 };
146
147 &mdio0 {
148 status = "okay";
149
150 phy0: ethernet-phy@3 {
151 reg = <0x3>;
152 phy-mode = "sgmii";
153 qca,mib-poll-interval = <500>;
154 };
155 };
156
157 &eth0 {
158 status = "okay";
159
160 phy-mode = "sgmii";
161 nvmem-cells = <&macaddr_art_1002>;
162 nvmem-cell-names = "mac-address";
163 phy-handle = <&phy0>;
164 };
165
166 &wmac {
167 status = "okay";
168
169 qca,no-eeprom;
170 };