ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_qxwlan_e1700ac.dtsi
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 aliases {
11 label-mac-device = &eth0;
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_system: system {
33 label = "green:system";
34 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
35 default-state = "on";
36 };
37
38 usb {
39 function = LED_FUNCTION_USB;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
42 trigger-sources = <&hub_port0>;
43 linux,default-trigger = "usbport";
44 };
45
46 wlan2g {
47 label = "green:wlan2g";
48 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy1tpt";
50 };
51 };
52 };
53
54 &pcie {
55 status = "okay";
56
57 wifi@0,0 {
58 compatible = "qcom,ath10k";
59 reg = <0x0000 0 0 0 0>;
60 nvmem-cells = <&cal_art_5000>;
61 nvmem-cell-names = "calibration";
62 };
63 };
64
65 &spi {
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <25000000>;
72
73 partitions: partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x000000 0x040000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "u-boot-env";
86 reg = <0x040000 0x010000>;
87 read-only;
88 };
89
90 pridata: partition@50000 {
91 label = "pri-data";
92 reg = <0x050000 0x010000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 macaddr_pridata_400: macaddr@400 {
101 reg = <0x400 0x6>;
102 };
103 };
104 };
105
106 art: partition@60000 {
107 label = "art";
108 reg = <0x060000 0x010000>;
109 read-only;
110
111 nvmem-layout {
112 compatible = "fixed-layout";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 cal_art_5000: calibration@5000 {
117 reg = <0x5000 0x844>;
118 };
119 };
120 };
121 };
122 };
123 };
124
125 &mdio0 {
126 status = "okay";
127
128 phy0: ethernet-phy@0 {
129 reg = <0>;
130 phy-mode = "sgmii";
131 qca,mib-poll-interval = <500>;
132
133 qca,ar8327-initvals = <
134 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
135 0x7c 0x0000007e /* PORT0_STATUS */
136 >;
137 };
138 };
139
140 &eth0 {
141 status = "okay";
142
143 pll-data = <0x03000101 0x00000101 0x00001919>;
144
145 phy-mode = "sgmii";
146 phy-handle = <&phy0>;
147
148 nvmem-cells = <&macaddr_pridata_400>;
149 nvmem-cell-names = "mac-address";
150 };
151
152 &usb_phy0 {
153 status = "okay";
154 };
155
156 &usb0 {
157 status = "okay";
158 };
159
160 &usb_phy1 {
161 status = "okay";
162 };
163
164 &usb1 {
165 status = "okay";
166 };
167
168 &wmac {
169 status = "okay";
170
171 mtd-cal-data = <&art 0x1000>;
172 };