1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2018-2021 Toradex
4 */
5
6/ {
7	aliases {
8		rtc0 = &rtc_i2c;
9		rtc1 = &rtc;
10	};
11
12	reg_3v3: regulator-3v3 {
13		compatible = "regulator-fixed";
14		regulator-max-microvolt = <3300000>;
15		regulator-min-microvolt = <3300000>;
16		regulator-name = "3.3V";
17	};
18};
19
20&colibri_gpio_keys {
21	status = "okay";
22};
23
24/* Colibri FastEthernet */
25&fec1 {
26	status = "okay";
27};
28
29/* Colibri I2C */
30&i2c1 {
31	status = "okay";
32
33	/* M41T0M6 real time clock on carrier board */
34	rtc_i2c: rtc@68 {
35		compatible = "st,m41t0";
36		reg = <0x68>;
37	};
38};
39
40&iomuxc {
41	pinctrl-names = "default";
42	pinctrl-0 = <&pinctrl_gpio_iris>;
43
44	pinctrl_gpio_iris: gpioirisgrp {
45		fsl,pins = <IMX8QXP_QSPI0B_DATA3_LSIO_GPIO3_IO21	0x20>,		/* SODIMM  98 */
46			   <IMX8QXP_USB_SS3_TC1_LSIO_GPIO4_IO04		0x20>,		/* SODIMM 133 */
47			   <IMX8QXP_SAI0_TXD_LSIO_GPIO0_IO25		0x20>,		/* SODIMM 103 */
48			   <IMX8QXP_SAI0_TXFS_LSIO_GPIO0_IO28		0x20>,		/* SODIMM 101 */
49			   <IMX8QXP_SAI0_RXD_LSIO_GPIO0_IO27		0x20>,		/* SODIMM  97 */
50			   <IMX8QXP_ENET0_RGMII_RXC_LSIO_GPIO5_IO03	0x06000020>,	/* SODIMM  85 */
51			   <IMX8QXP_SAI0_TXC_LSIO_GPIO0_IO26		0x20>;		/* SODIMM  79 */
52	};
53
54	pinctrl_uart1_forceoff: uart1forceoffgrp {
55		fsl,pins = <IMX8QXP_QSPI0A_SS0_B_LSIO_GPIO3_IO14	0x20>;	/* SODIMM 22 */
56	};
57
58	pinctrl_uart23_forceoff: uart23forceoffgrp {
59		fsl,pins = <IMX8QXP_MIPI_DSI1_GPIO0_01_LSIO_GPIO2_IO00	0x20>; /* SODIMM 23 */
60	};
61};
62
63/* Colibri SPI */
64&lpspi2 {
65	status = "okay";
66};
67
68/* Colibri UART_B */
69&lpuart0 {
70	status = "okay";
71};
72
73/* Colibri UART_C */
74&lpuart2 {
75	status = "okay";
76};
77
78/* Colibri UART_A */
79&lpuart3 {
80	status = "okay";
81};
82
83&lsio_gpio3 {
84	/*
85	 * This turns the LVDS transceiver on. If one wants to turn the
86	 * transceiver off, that property has to be deleted and the gpio handled
87	 * in userspace.
88	 */
89	lvds-tx-on-hog {
90		gpio-hog;
91		gpios = <18 0>;
92		output-high;
93	};
94};
95
96/* Colibri PWM_B */
97&lsio_pwm0 {
98	status = "okay";
99};
100
101/* Colibri PWM_C */
102&lsio_pwm1 {
103	status = "okay";
104};
105
106/* Colibri PWM_D */
107&lsio_pwm2 {
108	status = "okay";
109};
110
111/* Colibri SD/MMC Card */
112&usdhc2 {
113	status = "okay";
114};
115