ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_comfast_cf-e375ac.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 = "COMFAST CF-E375AC";
11 compatible = "comfast,cf-e375ac", "qca,qca9563";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_lan;
16 led-failsafe = &led_lan;
17 led-running = &led_lan;
18 led-upgrade = &led_lan;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_lan: lan {
25 function = LED_FUNCTION_LAN;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
28 };
29
30 wan {
31 function = LED_FUNCTION_WAN;
32 color = <LED_COLOR_ID_RED>;
33 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
34 };
35
36 wlan2g {
37 label = "blue:wlan2g";
38 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
39 linux,default-trigger = "phy1tpt";
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
50 };
51 };
52
53 watchdog {
54 compatible = "linux,wdt-gpio";
55
56 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
57 hw_algo = "toggle";
58 hw_margin_ms = <500>;
59 always-running;
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 = <&precal_art_5000>, <&macaddr_art_0 2>;
70 nvmem-cell-names = "pre-calibration", "mac-address";
71 };
72 };
73
74 &spi {
75 status = "okay";
76
77 flash@0 {
78 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <25000000>;
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 0x040000>;
90 read-only;
91 };
92
93 art: partition@40000 {
94 label = "art";
95 reg = <0x040000 0x010000>;
96 read-only;
97
98 nvmem-layout {
99 compatible = "fixed-layout";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 macaddr_art_0: macaddr@0 {
104 compatible = "mac-base";
105 reg = <0x0 0x6>;
106 #nvmem-cell-cells = <1>;
107 };
108
109 precal_art_5000: pre-calibration@5000 {
110 reg = <0x5000 0x2f20>;
111 };
112 };
113 };
114
115 partition@50000 {
116 compatible = "denx,uimage";
117 label = "firmware";
118 reg = <0x050000 0xfa0000>;
119 };
120
121 partition@ff0000 {
122 label = "art-backup";
123 reg = <0xff0000 0x010000>;
124 read-only;
125 };
126 };
127 };
128 };
129
130 &mdio0 {
131 status = "okay";
132
133 phy0: ethernet-phy@0 {
134 reg = <0>;
135 phy-mode = "sgmii";
136 qca,mib-poll-interval = <500>;
137
138 qca,ar8327-initvals = <
139 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
140 0x7c 0x0000007e /* PORT0_STATUS */
141 >;
142 };
143 };
144
145 &eth0 {
146 status = "okay";
147
148 pll-data = <0x03000101 0x00000101 0x00001919>;
149
150 phy-mode = "sgmii";
151 nvmem-cells = <&macaddr_art_0 0>;
152 nvmem-cell-names = "mac-address";
153 phy-handle = <&phy0>;
154 };
155
156 &wmac {
157 status = "okay";
158
159 mtd-cal-data = <&art 0x1000>;
160 nvmem-cells = <&macaddr_art_0 10>;
161 nvmem-cell-names = "mac-address";
162 };