ipq40xx: use existing labels for MDIO node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4018-magic-2-wifi-next.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7
8 / {
9 model = "devolo Magic 2 WiFi next";
10 compatible = "devolo,magic-2-wifi-next";
11
12 memory {
13 device_type = "memory";
14 reg = <0x80000000 0x10000000>;
15 };
16
17 soc {
18 gpio_export {
19 compatible = "gpio-export";
20 #size-cells = <0>;
21
22 plc {
23 gpio-export,name = "plc-enable";
24 gpio-export,output = <1>;
25 gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
26 };
27 };
28
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 wlan {
35 label = "WLAN";
36 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
38 };
39
40 reset {
41 label = "Reset";
42 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46
47 leds {
48 compatible = "gpio-leds";
49
50 status_dlan {
51 label = "white:dlan";
52 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
53 default-state = "keep";
54 };
55
56 status_wlan {
57 function = LED_FUNCTION_WLAN;
58 color = <LED_COLOR_ID_WHITE>;
59 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
60 default-state = "keep";
61 };
62
63 error_dlan {
64 label = "red:dlan";
65 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
66 default-state = "keep";
67 };
68 };
69 };
70
71 &watchdog {
72 status = "okay";
73 };
74
75 &prng {
76 status = "okay";
77 };
78
79 &crypto {
80 status = "okay";
81 };
82
83 &tlmm {
84 spi_0_pins: spi_0_pinmux {
85 mux {
86 function = "blsp_spi0";
87 pins = "gpio55", "gpio56", "gpio57";
88 drive-strength = <12>;
89 bias-disable;
90 };
91
92 mux_cs {
93 function = "gpio";
94 pins = "gpio54";
95 drive-strength = <2>;
96 bias-disable;
97 output-high;
98 };
99 };
100
101 mdio_pins: mdio_pinmux {
102 mux_1 {
103 pins = "gpio53";
104 function = "mdio";
105 bias-pull-up;
106 };
107 mux_2 {
108 pins = "gpio52";
109 function = "mdc";
110 bias-pull-up;
111 };
112 };
113
114 serial_pins: serial_pinmux {
115 mux {
116 pins = "gpio61", "gpio60";
117 function = "blsp_uart0";
118 bias-disable;
119 };
120 };
121
122 button_pins: button_pinmux {
123 mux {
124 function = "gpio";
125 pins = "gpio0", "gpio5";
126 bias-disable;
127 input;
128 };
129 };
130 };
131
132 &cryptobam {
133 status = "okay";
134 };
135
136 &blsp_dma {
137 status = "okay";
138 };
139
140 &blsp1_uart1 {
141 pinctrl-0 = <&serial_pins>;
142 pinctrl-names = "default";
143 status = "okay";
144 };
145
146 &ethphy0 {
147 status = "disabled";
148 };
149
150 &ethphy1 {
151 status = "disabled";
152 };
153
154 &wifi0 {
155 status = "okay";
156 qcom,ath10k-calibration-variant = "devolo,magic-2-wifi-next";
157 };
158
159 &wifi1 {
160 status = "okay";
161 qcom,ath10k-calibration-variant = "devolo,magic-2-wifi-next";
162 };
163
164 &blsp1_spi1 {
165 pinctrl-0 = <&spi_0_pins>;
166 pinctrl-names = "default";
167 status = "okay";
168 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
169
170 flash@0 {
171 compatible = "jedec,spi-nor";
172 reg = <0>;
173 linux,modalias = "n25q128a11";
174 spi-max-frequency = <24000000>;
175
176 partitions {
177 compatible = "fixed-partitions";
178 #address-cells = <1>;
179 #size-cells = <1>;
180
181 partition@0 {
182 label = "SBL1";
183 reg = <0x00000000 0x00040000>;
184 read-only;
185 };
186 partition@40000 {
187 label = "MIBIB";
188 reg = <0x00040000 0x00020000>;
189 read-only;
190 };
191 partition@60000 {
192 label = "QSEE";
193 reg = <0x00060000 0x00060000>;
194 read-only;
195 };
196 partition@c0000 {
197 label = "CDT";
198 reg = <0x000c0000 0x00010000>;
199 read-only;
200 };
201 partition@d0000 {
202 label = "DDRPARAMS";
203 reg = <0x000d0000 0x00010000>;
204 read-only;
205 };
206 partition@e0000 {
207 label = "APPSBLENV"; /* uboot env*/
208 reg = <0x000e0000 0x00010000>;
209 };
210 partition@f0000 {
211 label = "APPSBL"; /* uboot */
212 reg = <0x000f0000 0x00080000>;
213 read-only;
214 };
215 partition@170000 {
216 label = "ART";
217 reg = <0x00170000 0x00010000>;
218 read-only;
219 };
220 firmware@180000 {
221 compatible = "denx,fit";
222 label = "firmware";
223 reg = <0x00180000 0x01a80000>;
224 };
225 };
226 };
227 };
228
229 &mdio {
230 status = "okay";
231 pinctrl-0 = <&mdio_pins>;
232 pinctrl-names = "default";
233 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
234 reset-delay-us = <2000>;
235 };
236
237 &gmac {
238 status = "okay";
239 };
240
241 &switch {
242 status = "okay";
243 };
244
245 &swport5 {
246 status = "okay";
247 label = "lan1";
248 };
249
250 &swport3 {
251 status = "okay";
252 label = "lan2";
253 };
254
255 &swport4 {
256 status = "okay";
257 label = "ghn";
258 };