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			   <IMX8QXP_QSPI0A_DATA1_LSIO_GPIO3_IO10	0x06700041>;	/* SODIMM  45 */
53	};
54
55	pinctrl_uart1_forceoff: uart1forceoffgrp {
56		fsl,pins = <IMX8QXP_QSPI0A_SS0_B_LSIO_GPIO3_IO14	0x20>;	/* SODIMM 22 */
57	};
58
59	pinctrl_uart23_forceoff: uart23forceoffgrp {
60		fsl,pins = <IMX8QXP_MIPI_DSI1_GPIO0_01_LSIO_GPIO2_IO00	0x20>; /* SODIMM 23 */
61	};
62};
63
64/* Colibri SPI */
65&lpspi2 {
66	status = "okay";
67};
68
69/* Colibri UART_B */
70&lpuart0 {
71	status = "okay";
72};
73
74/* Colibri UART_C */
75&lpuart2 {
76	status = "okay";
77};
78
79/* Colibri UART_A */
80&lpuart3 {
81	status= "okay";
82};
83
84&lsio_gpio3 {
85	/*
86	 * This turns the LVDS transceiver on. If one wants to turn the
87	 * transceiver off, that property has to be deleted and the gpio handled
88	 * in userspace.
89	 */
90	lvds-tx-on-hog {
91		gpio-hog;
92		gpios = <18 0>;
93		output-high;
94	};
95};
96
97/* Colibri PWM_B */
98&lsio_pwm0 {
99	status = "okay";
100};
101
102/* Colibri PWM_C */
103&lsio_pwm1 {
104	status = "okay";
105};
106
107/* Colibri PWM_D */
108&lsio_pwm2 {
109	status = "okay";
110};
111
112/* Colibri SD/MMC Card */
113&usdhc2 {
114	status = "okay";
115};
116