ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_asus_rp-ac51.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.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-AC51";
11 compatible = "asus,rp-ac51", "qca,qca9531";
12
13 aliases {
14 led-boot = &led_wps;
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = &eth0;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 wps {
25 linux,code = <KEY_WPS_BUTTON>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29
30 reset {
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led_power: power {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
44 };
45
46 led_wps: wps {
47 function = LED_FUNCTION_WPS;
48 color = <LED_COLOR_ID_RED>;
49 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
50 };
51
52 lan {
53 function = LED_FUNCTION_LAN;
54 color = <LED_COLOR_ID_BLUE>;
55 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
56 };
57
58 wlan2g {
59 label = "blue:wlan2g";
60 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
61 };
62
63 wlan5g {
64 label = "blue:wlan5g";
65 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
66 };
67 };
68 };
69
70 &pcie0 {
71 status = "okay";
72
73 wifi@0,0 {
74 compatible = "qcom,ath10k";
75 reg = <0x0000 0 0 0 0>;
76 nvmem-cells = <&precal_art_5000>;
77 nvmem-cell-names = "pre-calibration";
78 };
79 };
80
81 &spi {
82 status = "okay";
83
84 flash@0 {
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <50000000>;
88
89 partitions {
90 compatible = "fixed-partitions";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 partition@0 {
95 label = "u-boot";
96 reg = <0x000000 0x40000>;
97 read-only;
98 };
99
100 partition@40000 {
101 label = "u-boot-env";
102 reg = <0x040000 0x10000>;
103 read-only;
104 };
105
106 art: partition@50000 {
107 label = "art";
108 reg = <0x050000 0x10000>;
109 read-only;
110
111 nvmem-layout {
112 compatible = "fixed-layout";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 macaddr_art_0: macaddr@0 {
117 reg = <0x0 0x6>;
118 };
119
120 macaddr_art_1002: macaddr@1002 {
121 reg = <0x1002 0x6>;
122 };
123
124 precal_art_5000: pre-calibration@5000 {
125 reg = <0x5000 0x2f20>;
126 };
127 };
128 };
129
130 partition@60000 {
131 compatible = "denx,uimage";
132 label = "firmware";
133 reg = <0x060000 0xfa0000>;
134 };
135 };
136 };
137 };
138
139 &eth0 {
140 status = "okay";
141
142 phy-handle = <&swphy4>;
143
144 nvmem-cells = <&macaddr_art_0>;
145 nvmem-cell-names = "mac-address";
146 };
147
148 &eth1 {
149 nvmem-cells = <&macaddr_art_1002>;
150 nvmem-cell-names = "mac-address";
151 };
152
153 &wmac {
154 status = "okay";
155
156 qca,no-eeprom;
157 };