ipq40xx: drop ESSEDMA + AR40xx DTS nodes
[openwrt/staging/jow.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-orbi.dtsi
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/soc/qcom,tcsr.h>
7
8 / {
9 aliases {
10 led-boot = &led_status_white;
11 led-failsafe = &led_status_red;
12 led-running = &led_status_green;
13 led-upgrade = &led_status_blue;
14 };
15
16 soc {
17 rng@22000 {
18 status = "okay";
19 };
20
21 mdio@90000 {
22 status = "okay";
23
24 pinctrl-0 = <&mdio_pins>;
25 pinctrl-names = "default";
26 };
27
28 counter@4a1000 {
29 compatible = "qcom,qca-gcnt";
30 reg = <0x4a1000 0x4>;
31 };
32
33 tcsr@1949000 {
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
37 };
38
39 tcsr@194b000 {
40 status = "okay";
41
42 compatible = "qcom,tcsr";
43 reg = <0x194b000 0x100>;
44 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
45 };
46
47 ess_tcsr@1953000 {
48 compatible = "qcom,tcsr";
49 reg = <0x1953000 0x1000>;
50 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
51 };
52
53 tcsr@1957000 {
54 compatible = "qcom,tcsr";
55 reg = <0x1957000 0x100>;
56 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
57 };
58
59 crypto@8e3a000 {
60 status = "okay";
61 };
62
63 watchdog@b017000 {
64 status = "okay";
65 };
66 };
67
68 keys {
69 compatible = "gpio-keys";
70
71 reset {
72 label = "reset";
73 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
75 };
76
77 wps {
78 label = "wps";
79 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_WPS_BUTTON>;
81 };
82 };
83
84 leds {
85 compatible = "gpio-leds";
86
87 led-0 {
88 label = "green:power";
89 gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
90 default-state = "on";
91 };
92
93 led-1 {
94 label = "red:power";
95 gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
96 panic-indicator;
97 };
98
99 led_status_green: led-2 {
100 label = "green:status";
101 gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>;
102 };
103
104 led_status_red: led-3 {
105 label = "red:status";
106 gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
107 };
108
109 led_status_blue: led-4 {
110 label = "blue:status";
111 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
112 };
113
114 led_status_white: led-5 {
115 label = "white:status";
116 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
117 };
118 };
119 };
120
121 &vqmmc {
122 status = "okay";
123 };
124
125 &sdhci {
126 status = "okay";
127
128 pinctrl-0 = <&sd_pins>;
129 pinctrl-names = "default";
130 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
131 vqmmc-supply = <&vqmmc>;
132 };
133
134 &qpic_bam {
135 status = "okay";
136 };
137
138 &tlmm {
139 mdio_pins: mdio_pinmux {
140 mux_1 {
141 pins = "gpio6";
142 function = "mdio";
143 bias-pull-up;
144 };
145
146 mux_2 {
147 pins = "gpio7";
148 function = "mdc";
149 bias-pull-up;
150 };
151 };
152
153 serial_pins: serial_pinmux {
154 mux {
155 pins = "gpio16", "gpio17";
156 function = "blsp_uart0";
157 bias-disable;
158 };
159 };
160
161 i2c_0_pins: i2c_0_pinmux {
162 pinmux {
163 function = "blsp_i2c0";
164 pins = "gpio58", "gpio59";
165 bias-disable;
166 };
167 };
168
169 sd_pins: sd_pins {
170 pinmux {
171 function = "sdio";
172 pins = "gpio23", "gpio24", "gpio25", "gpio26",
173 "gpio28", "gpio29", "gpio30", "gpio31";
174 drive-strength = <10>;
175 };
176
177 pinmux_sd_clk {
178 function = "sdio";
179 pins = "gpio27";
180 drive-strength = <16>;
181 };
182
183 pinmux_sd7 {
184 function = "sdio";
185 pins = "gpio32";
186 drive-strength = <10>;
187 bias-disable;
188 };
189 };
190 };
191
192 &blsp_dma {
193 status = "okay";
194 };
195
196 &blsp1_i2c3 {
197 pinctrl-0 = <&i2c_0_pins>;
198 pinctrl-names = "default";
199
200 status = "okay";
201
202 led-controller@27 {
203 #address-cells = <1>;
204 #size-cells = <0>;
205 compatible = "ti,tlc59108"; /* really is tlc59208f */
206 reg = <0x27>;
207
208 led0@0 {
209 label = "rgb:led0";
210 reg = <0x0>;
211 linux,default-trigger = "default-on";
212 };
213
214 led1@1 {
215 label = "rgb:led1";
216 reg = <0x1>;
217 linux,default-trigger = "default-on";
218 };
219
220 led2@2 {
221 label = "rgb:led2";
222 reg = <0x2>;
223 linux,default-trigger = "default-on";
224 };
225
226 led3@3 {
227 label = "rgb:led3";
228 reg = <0x3>;
229 linux,default-trigger = "default-on";
230 };
231
232 led4@4 {
233 label = "rgb:led4";
234 reg = <0x4>;
235 linux,default-trigger = "default-on";
236 };
237
238 led5@5 {
239 label = "rgb:led5";
240 reg = <0x5>;
241 linux,default-trigger = "default-on";
242 };
243
244 led6@6 {
245 label = "rgb:led6";
246 reg = <0x6>;
247 linux,default-trigger = "default-on";
248 };
249
250 led7@7 {
251 label = "rgb:led7";
252 reg = <0x7>;
253 linux,default-trigger = "default-on";
254 };
255 };
256 };
257
258 &blsp1_uart1 {
259 status = "okay";
260
261 pinctrl-0 = <&serial_pins>;
262 pinctrl-names = "default";
263 };
264
265 &cryptobam {
266 status = "okay";
267 };
268
269 &pcie0 {
270 status = "okay";
271
272 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
273 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
274
275 bridge@0,0 {
276 reg = <0x00000000 0 0 0 0>;
277 #address-cells = <3>;
278 #size-cells = <2>;
279 ranges;
280
281 wifi@1,0 {
282 compatible = "qcom,ath10k";
283 status = "okay";
284 reg = <0x00010000 0 0 0 0>;
285 ieee80211-freq-limit = <5470000 5875000>;
286 qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
287 };
288 };
289 };
290
291 &wifi0 {
292 status = "okay";
293
294 qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
295 };
296
297 &wifi1 {
298 status = "okay";
299
300 qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
301 };