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