Debian Codegraph @

arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright 2021 NXP
4 * Copyright 2023 Variscite Ltd.
5 */
6
7 /dts-v1/;
8
9 #include <dt-bindings/leds/common.h>
10 #include "imx93-var-som.dtsi"
11
12 /{
13 model = "Variscite VAR-SOM-MX93 on Symphony evaluation board";
14 compatible = "variscite,var-som-mx93-symphony",
15 "variscite,var-som-mx93", "fsl,imx93";
16
17 aliases {
18 ethernet0 = &eqos;
19 ethernet1 = &fec;
20 gpio0 = &gpio1;
21 gpio1 = &gpio2;
22 gpio2 = &gpio3;
23 gpio3 = &gpio4;
24 gpio4 = &pca9534;
25 i2c0 = &lpi2c1;
26 i2c1 = &lpi2c2;
27 i2c2 = &lpi2c3;
28 i2c3 = &lpi2c4;
29 i2c4 = &lpi2c5;
30 mmc0 = &usdhc1;
31 mmc1 = &usdhc2;
32 serial0 = &lpuart1;
33 serial1 = &lpuart2;
34 serial2 = &lpuart3;
35 serial3 = &lpuart4;
36 serial4 = &lpuart5;
37 serial5 = &lpuart6;
38 };
39
40
41 chosen {
42 stdout-path = &lpuart1;
43 };
44
45 /*
46 * Needed only for Symphony <= v1.5
47 */
48 reg_fec_phy: regulator-fec-phy {
49 compatible = "regulator-fixed";
50 regulator-name = "fec-phy";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <1800000>;
53 regulator-enable-ramp-delay = <20000>;
54 gpio = <&pca9534 7 GPIO_ACTIVE_HIGH>;
55 enable-active-high;
56 regulator-always-on;
57 };
58
59 reg_usdhc2_vmmc: regulator-usdhc2 {
60 compatible = "regulator-fixed";
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
63 regulator-name = "VSD_3V3";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66 gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>;
67 off-on-delay-us = <20000>;
68 enable-active-high;
69 };
70
71 reg_vref_1v8: regulator-adc-vref {
72 compatible = "regulator-fixed";
73 regulator-name = "vref_1v8";
74 regulator-min-microvolt = <1800000>;
75 regulator-max-microvolt = <1800000>;
76 };
77
78 reserved-memory {
79 #address-cells = <2>;
80 #size-cells = <2>;
81 ranges;
82
83 ethosu_mem: ethosu-region@88000000 {
84 compatible = "shared-dma-pool";
85 reusable;
86 reg = <0x0 0x88000000 0x0 0x8000000>;
87 };
88
89 vdev0vring0: vdev0vring0@87ee0000 {
90 reg = <0 0x87ee0000 0 0x8000>;
91 no-map;
92 };
93
94 vdev0vring1: vdev0vring1@87ee8000 {
95 reg = <0 0x87ee8000 0 0x8000>;
96 no-map;
97 };
98
99 vdev1vring0: vdev1vring0@87ef0000 {
100 reg = <0 0x87ef0000 0 0x8000>;
101 no-map;
102 };
103
104 vdev1vring1: vdev1vring1@87ef8000 {
105 reg = <0 0x87ef8000 0 0x8000>;
106 no-map;
107 };
108
109 rsc_table: rsc-table@2021f000 {
110 reg = <0 0x2021f000 0 0x1000>;
111 no-map;
112 };
113
114 vdevbuffer: vdevbuffer@87f00000 {
115 compatible = "shared-dma-pool";
116 reg = <0 0x87f00000 0 0x100000>;
117 no-map;
118 };
119
120 ele_reserved: ele-reserved@87de0000 {
121 compatible = "shared-dma-pool";
122 reg = <0 0x87de0000 0 0x100000>;
123 no-map;
124 };
125 };
126
127 gpio-keys {
128 compatible = "gpio-keys";
129
130 key-back {
131 label = "Back";
132 gpios = <&pca9534 1 GPIO_ACTIVE_LOW>;
133 linux,code = <KEY_BACK>;
134 };
135
136 key-home {
137 label = "Home";
138 gpios = <&pca9534 2 GPIO_ACTIVE_LOW>;
139 linux,code = <KEY_HOME>;
140 };
141
142 key-menu {
143 label = "Menu";
144 gpios = <&pca9534 3 GPIO_ACTIVE_LOW>;
145 linux,code = <KEY_MENU>;
146 };
147 };
148
149 leds {
150 compatible = "gpio-leds";
151
152 led-0 {
153 function = LED_FUNCTION_STATUS;
154 color = <LED_COLOR_ID_GREEN>;
155 gpios = <&pca9534 0 GPIO_ACTIVE_HIGH>;
156 linux,default-trigger = "heartbeat";
157 };
158 };
159 };
160
161 /* Use external instead of internal RTC*/
162 &bbnsm_rtc {
163 status = "disabled";
164 };
165
166 &eqos {
167 mdio {
168 ethphy1: ethernet-phy@5 {
169 compatible = "ethernet-phy-ieee802.3-c22";
170 reg = <5>;
171 qca,disable-smarteee;
172 eee-broken-1000t;
173 reset-gpios = <&pca9534 5 GPIO_ACTIVE_LOW>;
174 reset-assert-us = <10000>;
175 reset-deassert-us = <20000>;
176 vddio-supply = <&vddio1>;
177
178 vddio1: vddio-regulator {
179 regulator-min-microvolt = <1800000>;
180 regulator-max-microvolt = <1800000>;
181 };
182 };
183 };
184 };
185
186 &fec {
187 pinctrl-names = "default";
188 pinctrl-0 = <&pinctrl_fec>;
189 phy-mode = "rgmii";
190 phy-handle = <&ethphy1>;
191 phy-supply = <&reg_fec_phy>;
192 status = "okay";
193 };
194
195 &flexcan1 {
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_flexcan1>;
198 status = "okay";
199 };
200
201 &lpi2c1 {
202 clock-frequency = <400000>;
203 pinctrl-names = "default", "sleep", "gpio";
204 pinctrl-0 = <&pinctrl_lpi2c1>;
205 pinctrl-1 = <&pinctrl_lpi2c1_gpio>;
206 pinctrl-2 = <&pinctrl_lpi2c1_gpio>;
207 scl-gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
208 sda-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
209 status = "okay";
210
211 /* Capacitive touch controller */
212 ft5x06_ts: touchscreen@38 {
213 compatible = "edt,edt-ft5206";
214 reg = <0x38>;
215 pinctrl-names = "default";
216 pinctrl-0 = <&pinctrl_captouch>;
217 interrupt-parent = <&gpio2>;
218 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
219 touchscreen-size-x = <800>;
220 touchscreen-size-y = <480>;
221 touchscreen-inverted-x;
222 touchscreen-inverted-y;
223 wakeup-source;
224 };
225
226 /* DS1337 RTC module */
227 rtc@68 {
228 compatible = "dallas,ds1337";
229 reg = <0x68>;
230 };
231 };
232
233 &lpi2c5 {
234 clock-frequency = <400000>;
235 pinctrl-names = "default", "sleep", "gpio";
236 pinctrl-0 = <&pinctrl_lpi2c5>;
237 pinctrl-1 = <&pinctrl_lpi2c5_gpio>;
238 pinctrl-2 = <&pinctrl_lpi2c5_gpio>;
239 scl-gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
240 sda-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
241 status = "okay";
242
243 pca9534: gpio@20 {
244 compatible = "nxp,pca9534";
245 reg = <0x20>;
246 gpio-controller;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pinctrl_pca9534>;
249 interrupt-parent = <&gpio3>;
250 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
251 #gpio-cells = <2>;
252 wakeup-source;
253 };
254
255 /* USB Type-C Controller */
256 ptn5150: typec@3d {
257 compatible = "nxp,ptn5150";
258 reg = <0x3d>;
259 pinctrl-names = "default";
260 pinctrl-0 = <&pinctrl_ptn5150>;
261 interrupt-parent = <&gpio1>;
262 interrupts = <10 IRQ_TYPE_NONE>;
263
264 port {
265 typec1_dr_sw: endpoint {
266 remote-endpoint = <&usb1_drd_sw>;
267 };
268 };
269 };
270 };
271
272 /* Console */
273 &lpuart1 {
274 pinctrl-names = "default";
275 pinctrl-0 = <&pinctrl_uart1>;
276 status = "okay";
277 };
278
279 &lpspi6 {
280 pinctrl-names = "default";
281 pinctrl-0 = <&pinctrl_lpspi6>;
282 cs-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
283 status = "okay";
284 };
285
286 /* J18.7, J18.9 */
287 &lpuart6 {
288 pinctrl-names = "default";
289 pinctrl-0 = <&pinctrl_uart6>;
290 status = "okay";
291 };
292
293 &usbotg1 {
294 dr_mode = "otg";
295 hnp-disable;
296 srp-disable;
297 adp-disable;
298 usb-role-switch;
299 samsung,picophy-pre-emp-curr-control = <3>;
300 samsung,picophy-dc-vol-level-adjust = <7>;
301 status = "okay";
302
303 port {
304 usb1_drd_sw: endpoint {
305 remote-endpoint = <&typec1_dr_sw>;
306 };
307 };
308 };
309
310 &usbotg2 {
311 dr_mode = "host";
312 disable-over-current;
313 status = "okay";
314 };
315
316 /* SD */
317 &usdhc2 {
318 pinctrl-names = "default", "state_100mhz", "state_200mhz";
319 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
320 pinctrl-1 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
321 pinctrl-2 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
322 cd-gpios = <&gpio3 00 GPIO_ACTIVE_LOW>;
323 vmmc-supply = <&reg_usdhc2_vmmc>;
324 bus-width = <4>;
325 status = "okay";
326 no-sdio;
327 no-mmc;
328 };
329
330 /* Watchdog */
331 &wdog3 {
332 status = "okay";
333 };
334
335 &iomuxc {
336 pinctrl_captouch: captouchgrp {
337 fsl,pins = <
338 MX93_PAD_GPIO_IO25__GPIO2_IO25 0x31e
339 >;
340 };
341
342 pinctrl_fec: fecgrp {
343 fsl,pins = <
344 MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0 0x57e
345 MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1 0x57e
346 MX93_PAD_ENET2_RD2__ENET1_RGMII_RD2 0x57e
347 MX93_PAD_ENET2_RD3__ENET1_RGMII_RD3 0x57e
348 MX93_PAD_ENET2_RXC__ENET1_RGMII_RXC 0x5fe
349 MX93_PAD_ENET2_RX_CTL__ENET1_RGMII_RX_CTL 0x57e
350 MX93_PAD_ENET2_TD0__ENET1_RGMII_TD0 0x57e
351 MX93_PAD_ENET2_TD1__ENET1_RGMII_TD1 0x57e
352 MX93_PAD_ENET2_TD2__ENET1_RGMII_TD2 0x57e
353 MX93_PAD_ENET2_TD3__ENET1_RGMII_TD3 0x57e
354 MX93_PAD_ENET2_TXC__ENET1_RGMII_TXC 0x5fe
355 MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x57e
356 >;
357 };
358
359 pinctrl_flexcan1: flexcan1grp {
360 fsl,pins = <
361 MX93_PAD_PDM_CLK__CAN1_TX 0x139e
362 MX93_PAD_PDM_BIT_STREAM0__CAN1_RX 0x139e
363 >;
364 };
365
366 pinctrl_lpi2c1: lpi2c1grp {
367 fsl,pins = <
368 MX93_PAD_I2C1_SCL__LPI2C1_SCL 0x40000b9e
369 MX93_PAD_I2C1_SDA__LPI2C1_SDA 0x40000b9e
370 >;
371 };
372
373 pinctrl_lpi2c1_gpio: lpi2c1gpiogrp {
374 fsl,pins = <
375 MX93_PAD_I2C1_SCL__GPIO1_IO00 0x31e
376 MX93_PAD_I2C1_SDA__GPIO1_IO01 0x31e
377 >;
378 };
379
380 pinctrl_lpi2c5: lpi2c5grp {
381 fsl,pins = <
382 MX93_PAD_GPIO_IO23__LPI2C5_SCL 0x40000b9e
383 MX93_PAD_GPIO_IO22__LPI2C5_SDA 0x40000b9e
384 >;
385 };
386
387 pinctrl_lpi2c5_gpio: lpi2c5gpiogrp {
388 fsl,pins = <
389 MX93_PAD_GPIO_IO23__GPIO2_IO23 0x31e
390 MX93_PAD_GPIO_IO22__GPIO2_IO22 0x31e
391 >;
392 };
393
394 pinctrl_lpspi6: lpspi6grp {
395 fsl,pins = <
396 MX93_PAD_GPIO_IO00__GPIO2_IO00 0x31e
397 MX93_PAD_GPIO_IO01__LPSPI6_SIN 0x31e
398 MX93_PAD_GPIO_IO02__LPSPI6_SOUT 0x31e
399 MX93_PAD_GPIO_IO03__LPSPI6_SCK 0x31e
400 >;
401 };
402
403 pinctrl_pca9534: pca9534grp {
404 fsl,pins = <
405 MX93_PAD_CCM_CLKO1__GPIO3_IO26 0x31e
406 >;
407 };
408
409 pinctrl_ptn5150: ptn5150grp {
410 fsl,pins = <
411 MX93_PAD_PDM_BIT_STREAM1__GPIO1_IO10 0x31e
412 >;
413 };
414
415 pinctrl_uart1: uart1grp {
416 fsl,pins = <
417 MX93_PAD_UART1_RXD__LPUART1_RX 0x31e
418 MX93_PAD_UART1_TXD__LPUART1_TX 0x31e
419 >;
420 };
421
422 pinctrl_uart6: uart6grp {
423 fsl,pins = <
424 MX93_PAD_GPIO_IO05__LPUART6_RX 0x31e
425 MX93_PAD_GPIO_IO04__LPUART6_TX 0x31e
426 >;
427 };
428
429 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
430 fsl,pins = <
431 MX93_PAD_GPIO_IO18__GPIO2_IO18 0x31e
432 >;
433 };
434
435 pinctrl_usdhc2: usdhc2grp {
436 fsl,pins = <
437 MX93_PAD_SD2_CLK__USDHC2_CLK 0x15fe
438 MX93_PAD_SD2_CMD__USDHC2_CMD 0x13fe
439 MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x13fe
440 MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x13fe
441 MX93_PAD_SD2_DATA2__USDHC2_DATA2 0x13fe
442 MX93_PAD_SD2_DATA3__USDHC2_DATA3 0x13fe
443 MX93_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e
444 >;
445 };
446
447 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
448 fsl,pins = <
449 MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e
450 >;
451 };
452 };