ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_openmesh_mr.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_power_blue;
17 led-failsafe = &led_power_blue;
18 led-running = &led_power_blue;
19 led-upgrade = &led_power_blue;
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 lan_blue {
37 function = LED_FUNCTION_LAN;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
40 };
41
42 led_wifi2g: wifi2g {
43 label = "blue:wifi2g";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 };
46
47 status_green {
48 function = LED_FUNCTION_STATUS;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
51 };
52
53 status_red {
54 function = LED_FUNCTION_STATUS;
55 color = <LED_COLOR_ID_RED>;
56 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
57 };
58
59 led_power_blue: power_blue {
60 function = LED_FUNCTION_POWER;
61 color = <LED_COLOR_ID_BLUE>;
62 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
63 default-state = "on";
64 };
65
66 led_wifi5g: wifi5g {
67 label = "blue:wifi5g";
68 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
69 };
70 };
71
72 watchdog {
73 compatible = "linux,wdt-gpio";
74 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
75 hw_algo = "toggle";
76 /* hw_margin_ms is actually 300s but driver limits it to 60s */
77 hw_margin_ms = <60000>;
78 always-running;
79 };
80 };
81
82 &spi {
83 status = "okay";
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <40000000>;
89
90 /* partitions are passed via bootloader */
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 partition@0 {
97 label = "u-boot";
98 reg = <0x000000 0x040000>;
99 read-only;
100 };
101
102 partition@40000 {
103 label = "u-boot-env";
104 reg = <0x040000 0x010000>;
105 };
106
107 partition@50000 {
108 label = "custom";
109 reg = <0x050000 0x060000>;
110 read-only;
111 };
112
113 partition@b0000 {
114 label = "inactive";
115 reg = <0x0b0000 0x7a0000>;
116 };
117
118 partition@850000 {
119 label = "inactive2";
120 reg = <0x850000 0x7a0000>;
121 };
122
123 art: partition@ff0000 {
124 label = "ART";
125 reg = <0xff0000 0x010000>;
126 read-only;
127
128 nvmem-layout {
129 compatible = "fixed-layout";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 macaddr_art_0: macaddr@0 {
134 compatible = "mac-base";
135 reg = <0x0 0x6>;
136 #nvmem-cell-cells = <1>;
137 };
138
139 cal_art_5000: calibration@5000 {
140 reg = <0x5000 0x844>;
141 };
142 };
143 };
144 };
145 };
146 };
147
148 &mdio0 {
149 status = "okay";
150
151 phy5: ethernet-phy@5 {
152 reg = <5>;
153 eee-broken-100tx;
154 eee-broken-1000t;
155 };
156 };
157
158 &eth0 {
159 status = "okay";
160
161 pll-data = <0x82000000 0x80000101 0x80001313>;
162
163 nvmem-cells = <&macaddr_art_0 0>;
164 nvmem-cell-names = "mac-address";
165
166 phy-mode = "rgmii-id";
167 phy-handle = <&phy5>;
168
169 gmac-config {
170 device = <&gmac>;
171 rgmii-enabled = <1>;
172 };
173 };
174
175 &wmac {
176 status = "okay";
177
178 mtd-cal-data = <&art 0x1000>;
179 nvmem-cells = <&macaddr_art_0 1>;
180 nvmem-cell-names = "mac-address";
181 };
182
183 &pcie0 {
184 status = "okay";
185
186 wifi@0,0 {
187 compatible = "qcom,ath10k";
188 reg = <0x0000 0 0 0 0>;
189 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 16>;
190 nvmem-cell-names = "calibration", "mac-address";
191 };
192 };