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