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