ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
28 };
29
30 led_orange: wps {
31 function = LED_FUNCTION_WPS;
32 color = <LED_COLOR_ID_ORANGE>;
33 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
34 };
35
36 rssilow-wlan0 {
37 label = "blue:rssilow-wlan0";
38 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
39 };
40
41 rssimedium-wlan0 {
42 label = "red:rssimedium-wlan0";
43 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
44 };
45
46 rssihigh-wlan0 {
47 label = "green:rssihigh-wlan0";
48 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
49 };
50
51 rssilow-wlan1 {
52 label = "blue:rssilow-wlan1";
53 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
54 };
55
56 rssimedium-wlan1 {
57 label = "red:rssimedium-wlan1";
58 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
59 };
60
61 rssihigh-wlan1 {
62 label = "green:rssihigh-wlan1";
63 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
64 };
65 };
66
67 keys {
68 compatible = "gpio-keys";
69
70 wps {
71 linux,code = <KEY_WPS_BUTTON>;
72 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
74 };
75
76 reset {
77 linux,code = <KEY_RESTART>;
78 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
79 debounce-interval = <60>;
80 };
81 };
82 };
83
84 &pcie {
85 status = "okay";
86
87 wifi@0,0 {
88 compatible = "qcom,ath10k";
89 reg = <0x0000 0 0 0 0>;
90 nvmem-cells = <&cal_art_5000>;
91 nvmem-cell-names = "calibration";
92 };
93 };
94
95 &spi {
96 status = "okay";
97
98 flash@0 {
99 compatible = "jedec,spi-nor";
100 reg = <0>;
101 spi-max-frequency = <50000000>;
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partition@0 {
109 label = "u-boot";
110 reg = <0x000000 0x40000>;
111 read-only;
112 };
113
114 partition@40000 {
115 label = "u-boot-env";
116 reg = <0x040000 0x10000>;
117 read-only;
118 };
119
120 art: partition@50000 {
121 label = "art";
122 reg = <0x050000 0x10000>;
123 read-only;
124
125 nvmem-layout {
126 compatible = "fixed-layout";
127 #address-cells = <1>;
128 #size-cells = <1>;
129
130 macaddr_art_1002: macaddr@1002 {
131 reg = <0x1002 0x6>;
132 };
133
134 cal_art_5000: calibration@5000 {
135 reg = <0x5000 0x844>;
136 };
137 };
138 };
139
140 partition@60000 {
141 compatible = "denx,uimage";
142 label = "firmware";
143 reg = <0x060000 0xfa0000>;
144 };
145 };
146 };
147 };
148
149 &mdio0 {
150 status = "okay";
151
152 phy0: ethernet-phy@3 {
153 reg = <0x3>;
154 phy-mode = "sgmii";
155 qca,mib-poll-interval = <500>;
156 };
157 };
158
159 &eth0 {
160 status = "okay";
161
162 phy-mode = "sgmii";
163 nvmem-cells = <&macaddr_art_1002>;
164 nvmem-cell-names = "mac-address";
165 phy-handle = <&phy0>;
166 };
167
168 &wmac {
169 status = "okay";
170
171 qca,no-eeprom;
172 };