ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_openmesh_a60.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.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 chosen {
11 /delete-property/ bootargs;
12 };
13
14 aliases {
15 serial0 = &uart;
16 led-boot = &led_status_green;
17 led-failsafe = &led_status_green;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_green;
20 label-mac-device = &eth0;
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 status_blue {
37 function = LED_FUNCTION_STATUS;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
40 };
41
42 status_red {
43 function = LED_FUNCTION_STATUS;
44 color = <LED_COLOR_ID_RED>;
45 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
46 };
47
48 led_status_green: status_green {
49 function = LED_FUNCTION_STATUS;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
52 };
53 };
54
55 watchdog {
56 compatible = "linux,wdt-gpio";
57 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 hw_algo = "toggle";
59 /* hw_margin_ms is actually 300s but driver limits it to 60s */
60 hw_margin_ms = <60000>;
61 always-running;
62 };
63 };
64
65 &usb_phy1 {
66 status = "okay";
67 };
68
69 &usb1 {
70 status = "okay";
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <40000000>;
80
81 /* partitions are passed via bootloader */
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 partition@40000 {
94 label = "u-boot-env";
95 reg = <0x040000 0x010000>;
96 };
97
98 partition@50000 {
99 label = "custom";
100 reg = <0x050000 0x060000>;
101 read-only;
102 };
103
104 partition@b0000 {
105 label = "inactive";
106 reg = <0x0b0000 0x7a0000>;
107 };
108
109 partition@850000 {
110 label = "inactive2";
111 reg = <0x850000 0x7a0000>;
112 };
113
114 art: partition@ff0000 {
115 label = "ART";
116 reg = <0xff0000 0x010000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 macaddr_art_0: macaddr@0 {
125 compatible = "mac-base";
126 reg = <0x0 0x6>;
127 #nvmem-cell-cells = <1>;
128 };
129
130 macaddr_art_6: macaddr@6 {
131 reg = <0x6 0x6>;
132 };
133
134 cal_art_5000: calibration@5000 {
135 reg = <0x5000 0x844>;
136 };
137 };
138 };
139 };
140 };
141 };
142
143 &mdio0 {
144 status = "okay";
145
146 phy1: ethernet-phy@1 {
147 reg = <1>;
148 eee-broken-100tx;
149 eee-broken-1000t;
150 };
151
152 phy2: ethernet-phy@2 {
153 reg = <2>;
154 eee-broken-100tx;
155 eee-broken-1000t;
156 at803x-override-sgmii-link-check;
157 };
158 };
159
160 &eth0 {
161 status = "okay";
162
163 pll-data = <0x82000101 0x80000101 0x80001313>;
164
165 nvmem-cells = <&macaddr_art_0 0>;
166 nvmem-cell-names = "mac-address";
167
168 phy-mode = "rgmii-id";
169 phy-handle = <&phy1>;
170
171 gmac-config {
172 device = <&gmac>;
173 rgmii-enabled = <1>;
174 rxd-delay = <3>;
175 rxdv-delay = <3>;
176 txd-delay = <0>;
177 txen-delay = <0>;
178 };
179 };
180
181 &eth1 {
182 status = "okay";
183
184 pll-data = <0x03000101 0x80000101 0x80001313>;
185
186 nvmem-cells = <&macaddr_art_6>;
187 nvmem-cell-names = "mac-address";
188
189 qca955x-sgmii-fixup;
190
191 phy-handle = <&phy2>;
192 };
193
194 &wmac {
195 status = "okay";
196
197 mtd-cal-data = <&art 0x1000>;
198 nvmem-cells = <&macaddr_art_0 2>;
199 nvmem-cell-names = "mac-address";
200 };
201
202 &pcie0 {
203 status = "okay";
204
205 wifi@0,0 {
206 compatible = "qcom,ath10k";
207 reg = <0x0000 0 0 0 0>;
208 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 16>;
209 nvmem-cell-names = "calibration", "mac-address";
210 };
211 };