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