ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e560ac.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 compatible = "comfast,cf-e560ac", "qca,qca9531";
11 model = "COMFAST CF-E560AC";
12
13 aliases {
14 serial0 = &uart;
15 label-mac-device = &eth1;
16 led-boot = &led_system;
17 led-failsafe = &led_system;
18 led-upgrade = &led_system;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 pinctrl-names = "default";
36 pinctrl-0 = <&jtag_disable_pins>;
37
38 lan1 {
39 label = "blue:lan1";
40 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
41 };
42
43 lan2 {
44 label = "blue:lan2";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 };
47
48 lan3 {
49 label = "blue:lan3";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 };
52
53 lan4 {
54 label = "blue:lan4";
55 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
56 };
57
58 led_system: system {
59 label = "blue:system";
60 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
61 };
62
63 wan {
64 function = LED_FUNCTION_WAN;
65 color = <LED_COLOR_ID_BLUE>;
66 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
67 };
68
69 wlan {
70 function = LED_FUNCTION_WLAN;
71 color = <LED_COLOR_ID_BLUE>;
72 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
74 };
75 };
76
77 watchdog {
78 compatible = "linux,wdt-gpio";
79 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
80 hw_algo = "toggle";
81 hw_margin_ms = <1200>;
82 always-running;
83 };
84 };
85
86 &spi {
87 status = "okay";
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <25000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x010000>;
102 read-only;
103 };
104
105 art: partition@10000 {
106 label = "art";
107 reg = <0x010000 0x010000>;
108 read-only;
109
110 nvmem-layout {
111 compatible = "fixed-layout";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 macaddr_art_0: macaddr@0 {
116 compatible = "mac-base";
117 reg = <0x0 0x6>;
118 #nvmem-cell-cells = <1>;
119 };
120
121 precal_art_5000: pre-calibration@5000 {
122 reg = <0x5000 0x2f20>;
123 };
124 };
125 };
126
127 partition@20000 {
128 compatible = "denx,uimage";
129 label = "firmware";
130 reg = <0x020000 0xfc0000>;
131 };
132
133 partition@fe0000 {
134 label = "configs";
135 reg = <0xfe0000 0x010000>;
136 read-only;
137 };
138
139 partition@ff0000 {
140 label = "nvram";
141 reg = <0xff0000 0x010000>;
142 read-only;
143 };
144 };
145 };
146 };
147
148 &pcie0 {
149 status = "okay";
150
151 wifi@0,0 {
152 compatible = "qcom,ath10k";
153 reg = <0x0000 0 0 0 0>;
154 nvmem-cells = <&precal_art_5000>, <&macaddr_art_0 2>;
155 nvmem-cell-names = "pre-calibration", "mac-address";
156 };
157 };
158
159 &usb_phy {
160 status = "okay";
161 };
162
163 &usb0 {
164 status = "okay";
165 };
166
167 &eth0 {
168 status = "okay";
169
170 phy-handle = <&swphy4>;
171
172 nvmem-cells = <&macaddr_art_0 1>;
173 nvmem-cell-names = "mac-address";
174 };
175
176 &eth1 {
177 nvmem-cells = <&macaddr_art_0 0>;
178 nvmem-cell-names = "mac-address";
179 };
180
181 &wmac {
182 status = "okay";
183
184 mtd-cal-data = <&art 0x1000>;
185 nvmem-cells = <&macaddr_art_0 10>;
186 nvmem-cell-names = "mac-address";
187 };