ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_yuncore_a770.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 model = "YunCore A770";
11 compatible = "yuncore,a770", "qca,qca9531";
12
13 aliases {
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 lan {
35 function = LED_FUNCTION_LAN;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38 };
39
40 led_status: status {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 default-state = "keep";
45 };
46
47 wan {
48 function = LED_FUNCTION_WAN;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
51 };
52
53 wlan2g {
54 label = "red:wlan2g";
55 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy1tpt";
57 };
58 };
59 };
60
61 &spi {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <25000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x000000 0x040000>;
77 read-only;
78 };
79
80 partition@40000 {
81 label = "u-boot-env";
82 reg = <0x040000 0x010000>;
83 };
84
85 partition@50000 {
86 compatible = "denx,uimage";
87 label = "firmware";
88 reg = <0x050000 0xfa0000>;
89 };
90
91 art: partition@ff0000 {
92 label = "art";
93 reg = <0xff0000 0x010000>;
94 read-only;
95
96 nvmem-layout {
97 compatible = "fixed-layout";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 macaddr_art_0: macaddr@0 {
102 reg = <0x0 0x6>;
103 };
104
105 macaddr_art_6: macaddr@6 {
106 reg = <0x6 0x6>;
107 };
108
109 cal_art_5000: calibration@5000 {
110 reg = <0x5000 0x844>;
111 };
112 };
113 };
114 };
115 };
116 };
117
118 &eth0 {
119 status = "okay";
120
121 phy-handle = <&swphy4>;
122
123 nvmem-cells = <&macaddr_art_0>;
124 nvmem-cell-names = "mac-address";
125 };
126
127 &eth1 {
128 nvmem-cells = <&macaddr_art_6>;
129 nvmem-cell-names = "mac-address";
130 };
131
132 &pcie0 {
133 status = "okay";
134
135 wifi@0,0 {
136 compatible = "qcom,ath10k";
137 reg = <0x0000 0 0 0 0>;
138 nvmem-cells = <&cal_art_5000>;
139 nvmem-cell-names = "calibration";
140 };
141 };
142
143 &wmac {
144 status = "okay";
145
146 mtd-cal-data = <&art 0x1000>;
147 };