xref: /linux/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022 Toradex
4 */
5
6#include <dt-bindings/leds/common.h>
7
8/ {
9	aliases {
10		rtc0 = &rtc_i2c;
11		rtc1 = &rtc;
12	};
13
14	leds {
15		compatible = "gpio-leds";
16		pinctrl-names = "default";
17		pinctrl-0 = <&pinctrl_leds_ixora>;
18
19		/* LED_4_GREEN / MXM3_188 */
20		led-1 {
21			color = <LED_COLOR_ID_GREEN>;
22			default-state = "off";
23			function = LED_FUNCTION_STATUS;
24			gpios = <&lsio_gpio5 27 GPIO_ACTIVE_HIGH>;
25		};
26
27		/* LED_4_RED / MXM3_178 */
28		led-2 {
29			color = <LED_COLOR_ID_RED>;
30			default-state = "off";
31			function = LED_FUNCTION_STATUS;
32			gpios = <&lsio_gpio5 29 GPIO_ACTIVE_HIGH>;
33		};
34
35		/* LED_5_GREEN / MXM3_152 */
36		led-3 {
37			color = <LED_COLOR_ID_GREEN>;
38			default-state = "off";
39			function = LED_FUNCTION_STATUS;
40			gpios = <&lsio_gpio5 20 GPIO_ACTIVE_HIGH>;
41		};
42
43		/* LED_5_RED / MXM3_156 */
44		led-4 {
45			color = <LED_COLOR_ID_RED>;
46			default-state = "off";
47			function = LED_FUNCTION_STATUS;
48			gpios = <&lsio_gpio5 21 GPIO_ACTIVE_HIGH>;
49		};
50	};
51
52	reg_usb_host_vbus: regulator-usb-host-vbus {
53		regulator-name = "VCC_USBH(2|4)";
54	};
55};
56
57&adc0 {
58	status = "okay";
59};
60
61&adc1 {
62	status = "okay";
63};
64
65&amix {
66	status = "okay";
67};
68
69&asrc0 {
70	status = "okay";
71};
72
73/* TODO: Display Controller */
74
75/* TODO: DPU */
76
77/* Apalis ETH1 */
78&fec1 {
79	status = "okay";
80};
81
82/* Apalis CAN1 */
83&flexcan1 {
84	status = "okay";
85};
86
87/* Apalis CAN2 */
88&flexcan2 {
89	status = "okay";
90};
91
92/* TODO: GPU */
93
94/* Apalis I2C1 */
95&i2c2 {
96	status = "okay";
97
98	/* M41T0M6 real time clock on carrier board */
99	rtc_i2c: rtc@68 {
100		status = "okay";
101	};
102};
103
104/* Apalis I2C3 (CAM) */
105&i2c3 {
106	status = "okay";
107};
108
109&iomuxc {
110	pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_dap1_gpios>,
111		    <&pinctrl_esai0_gpios>, <&pinctrl_fec2_gpios>,
112		    <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio_usbh_oc_n>,
113		    <&pinctrl_lpuart1ctrl>, <&pinctrl_lvds0_i2c0_gpio>,
114		    <&pinctrl_lvds1_i2c0_gpios>, <&pinctrl_mipi_dsi_0_1_en>,
115		    <&pinctrl_mipi_dsi1_gpios>, <&pinctrl_mlb_gpios>,
116		    <&pinctrl_qspi1a_gpios>, <&pinctrl_sata1_act>,
117		    <&pinctrl_sim0_gpios>, <&pinctrl_uart24_forceoff>,
118		    <&pinctrl_usdhc1_gpios>;
119
120	pinctrl_leds_ixora: ledsixoragrp {
121		fsl,pins = <IMX8QM_USDHC2_DATA1_LSIO_GPIO5_IO27	0x06000061>, /* LED_4_GREEN */
122			   <IMX8QM_USDHC2_DATA3_LSIO_GPIO5_IO29	0x06000061>, /* LED_4_RED */
123			   <IMX8QM_USDHC1_DATA5_LSIO_GPIO5_IO20	0x06000061>, /* LED_5_GREEN */
124			   <IMX8QM_USDHC1_DATA6_LSIO_GPIO5_IO21	0x06000061>; /* LED_5_RED */
125	};
126
127	pinctrl_uart24_forceoff: uart24forceoffgrp {
128		fsl,pins = <IMX8QM_USDHC2_CMD_LSIO_GPIO5_IO25		0x00000021>;
129	};
130};
131
132/* Apalis SPI1 */
133&lpspi0 {
134	status = "okay";
135};
136
137/* Apalis SPI2 */
138&lpspi2 {
139	status = "okay";
140};
141
142/* Apalis UART3 */
143&lpuart0 {
144	status = "okay";
145};
146
147/* Apalis UART1 */
148&lpuart1 {
149	status = "okay";
150};
151
152/* Apalis UART4 */
153&lpuart2 {
154	status = "okay";
155};
156
157/* Apalis UART2 */
158&lpuart3 {
159	status = "okay";
160};
161
162&lsio_gpio5 {
163	gpio-line-names = "gpio5-00", "gpio5-01", "gpio5-02", "gpio5-03",
164			  "gpio5-04", "gpio5-05", "gpio5-06", "gpio5-07",
165			  "gpio5-08", "gpio5-09", "gpio5-10", "gpio5-11",
166			  "gpio5-12", "gpio5-13", "gpio5-14", "gpio5-15",
167			  "gpio5-16", "gpio5-17", "gpio5-18", "gpio5-19",
168			  "LED-5-GREEN", "LED-5-RED", "gpio5-22", "gpio5-23",
169			  "gpio5-24", "UART24-FORCEOFF", "gpio5-26",
170			  "LED-4-GREEN", "gpio5-28", "LED-4-RED", "gpio5-30",
171			  "gpio5-31";
172};
173
174/* Apalis PWM3, MXM3 pin 6 */
175&lsio_pwm0 {
176	status = "okay";
177};
178
179/* Apalis PWM4, MXM3 pin 8 */
180&lsio_pwm1 {
181	status = "okay";
182};
183
184/* Apalis PWM1, MXM3 pin 2 */
185&lsio_pwm2 {
186	status = "okay";
187};
188
189/* Apalis PWM2, MXM3 pin 4 */
190&lsio_pwm3 {
191	status = "okay";
192};
193
194/* TODO: Apalis PCIE1 */
195
196/* TODO: Apalis BKL1_PWM */
197
198/* Apalis DAP1 */
199&sai1 {
200	status = "okay";
201};
202
203&sai5 {
204	status = "okay";
205};
206
207&sai5_lpcg {
208	status = "okay";
209};
210
211/* TODO: Apalis SATA1 */
212
213/* Apalis SPDIF1 */
214&spdif0 {
215	status = "okay";
216};
217
218/* TODO: Apalis USBH2, Apalis USBH3 and on-module Wi-Fi via on-module HSIC Hub */
219
220/* Apalis USBO1 */
221&usbotg1 {
222	status = "okay";
223};
224
225/* Apalis USBH4 SuperSpeed */
226&usbotg3_cdns3 {
227	status = "okay";
228};
229
230/* Apalis MMC1 */
231&usdhc2 {
232	pinctrl-0 = <&pinctrl_usdhc2_4bit>, <&pinctrl_mmc1_cd>;
233	pinctrl-1 = <&pinctrl_usdhc2_4bit_100mhz>, <&pinctrl_mmc1_cd>;
234	pinctrl-2 = <&pinctrl_usdhc2_4bit_200mhz>, <&pinctrl_mmc1_cd>;
235	pinctrl-3 = <&pinctrl_usdhc2_4bit_sleep>, <&pinctrl_mmc1_cd_sleep>;
236	bus-width = <4>;
237	status = "okay";
238};
239