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