ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_asus_pl-ac56.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 PL-AC56";
11 compatible = "asus,pl-ac56", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &eth0;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 linux,code = <BTN_0>;
25 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_power: power {
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_RED>;
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43 };
44
45 lan {
46 function = LED_FUNCTION_LAN;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
49 };
50
51 wlan2g {
52 label = "green:wlan2g";
53 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
54 };
55
56 wlan5g {
57 label = "green:wlan5g";
58 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &pcie {
64 status = "okay";
65
66 wifi@0,0 {
67 compatible = "qcom,ath10k";
68 reg = <0x0000 0 0 0 0>;
69 nvmem-cells = <&cal_art_5000>;
70 nvmem-cell-names = "calibration";
71 };
72 };
73
74 &spi {
75 status = "okay";
76
77 flash@0 {
78 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <50000000>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x000000 0x40000>;
90 read-only;
91 };
92
93 partition@40000 {
94 label = "u-boot-env";
95 reg = <0x040000 0x10000>;
96 read-only;
97 };
98
99 art: partition@50000 {
100 label = "art";
101 reg = <0x050000 0x10000>;
102 read-only;
103
104 nvmem-layout {
105 compatible = "fixed-layout";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 macaddr_art_1002: macaddr@1002 {
110 reg = <0x1002 0x6>;
111 };
112
113 cal_art_5000: calibration@5000 {
114 reg = <0x5000 0x844>;
115 };
116 };
117 };
118
119 partition@60000 {
120 compatible = "denx,uimage";
121 label = "firmware";
122 reg = <0x060000 0xf20000>;
123 };
124
125 partition@f80000 {
126 label = "plc";
127 reg = <0xf80000 0x80000>;
128 read-only;
129 };
130 };
131 };
132 };
133
134 &mdio0 {
135 status = "okay";
136
137 phy-mask = <0>;
138
139 phy0: ethernet-phy@0 {
140 reg = <0>;
141 phy-mode = "sgmii";
142 qca,mib-poll-interval = <500>;
143
144 qca,ar8327-initvals = <
145 0x04 0x80000080 /* AR8327_REG_PAD0_MODE */
146 0x08 0x01000000 /* AR8327_REG_PAD5_MODE */
147 0x0c 0x07500000 /* AR8327_REG_PAD6_MODE */
148 0x10 0x602613a0 /* AR8327_REG_POWER_ON_STRAP */
149 0x50 0xcc35cc35 /* AR8327_REG_LED_CTRL0 */
150 0x54 0xca35ca35 /* AR8327_REG_LED_CTRL1 */
151 0x58 0xc935c935 /* AR8327_REG_LED_CTRL2 */
152 0x5c 0x03ffff00 /* AR8327_REG_LED_CTRL3 */
153 0x7c 0x0000007e /* AR8327_REG_PORT_STATUS(0) */
154 0x94 0x0000007e /* AR8327_REG_PORT_STATUS(6) */
155 >;
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 };