xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx7-colibri-iris-v2.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright 2022 Toradex
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/ {
7*f126890aSEmmanuel Vadot	reg_3v3_vmmc: regulator-3v3-vmmc {
8*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
9*f126890aSEmmanuel Vadot		enable-active-high;
10*f126890aSEmmanuel Vadot		gpio = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* SODIMM 100 */
11*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
12*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
13*f126890aSEmmanuel Vadot		regulator-name = "3v3_vmmc";
14*f126890aSEmmanuel Vadot		startup-delay-us = <100>;
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot/* Colibri AD0 to AD3 */
19*f126890aSEmmanuel Vadot&adc1 {
20*f126890aSEmmanuel Vadot	status = "okay";
21*f126890aSEmmanuel Vadot};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot/* Colibri SSP */
24*f126890aSEmmanuel Vadot&ecspi3 {
25*f126890aSEmmanuel Vadot	status = "okay";
26*f126890aSEmmanuel Vadot};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot/* Colibri Fast Ethernet */
29*f126890aSEmmanuel Vadot&fec1 {
30*f126890aSEmmanuel Vadot	status = "okay";
31*f126890aSEmmanuel Vadot};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot&gpio2 {
34*f126890aSEmmanuel Vadot	/*
35*f126890aSEmmanuel Vadot	 * uart_b_c_on_x14_enable turns the UART transceiver for UART2 and 5 on. If one wants to
36*f126890aSEmmanuel Vadot	 * turn the transceiver off, that property has to be deleted and the gpio handled in
37*f126890aSEmmanuel Vadot	 * userspace.
38*f126890aSEmmanuel Vadot	 * The same applies to uart_a_on_x13_enable where the UART_A transceiver is turned on.
39*f126890aSEmmanuel Vadot	 */
40*f126890aSEmmanuel Vadot	uart-b-c-on-x14-enable-hog {
41*f126890aSEmmanuel Vadot		gpio-hog;
42*f126890aSEmmanuel Vadot		gpios = <27 GPIO_ACTIVE_HIGH>; /* SODIMM 104 */
43*f126890aSEmmanuel Vadot		output-high;
44*f126890aSEmmanuel Vadot	};
45*f126890aSEmmanuel Vadot};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot&gpio5 {
48*f126890aSEmmanuel Vadot	uart-a-on-x13-enable-hog {
49*f126890aSEmmanuel Vadot		gpio-hog;
50*f126890aSEmmanuel Vadot		gpios = <17 GPIO_ACTIVE_HIGH>; /* SODIMM 102 */
51*f126890aSEmmanuel Vadot		output-high;
52*f126890aSEmmanuel Vadot	};
53*f126890aSEmmanuel Vadot};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot/* Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 */
56*f126890aSEmmanuel Vadot&i2c4 {
57*f126890aSEmmanuel Vadot	status = "okay";
58*f126890aSEmmanuel Vadot};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot/* Colibri PWM<A> */
61*f126890aSEmmanuel Vadot&pwm1 {
62*f126890aSEmmanuel Vadot	status = "okay";
63*f126890aSEmmanuel Vadot};
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot/* Colibri PWM<B> */
66*f126890aSEmmanuel Vadot&pwm2 {
67*f126890aSEmmanuel Vadot	status = "okay";
68*f126890aSEmmanuel Vadot};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot/* Colibri PWM<C> */
71*f126890aSEmmanuel Vadot&pwm3 {
72*f126890aSEmmanuel Vadot	status = "okay";
73*f126890aSEmmanuel Vadot};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot/* Colibri PWM<D> */
76*f126890aSEmmanuel Vadot&pwm4 {
77*f126890aSEmmanuel Vadot	status = "okay";
78*f126890aSEmmanuel Vadot};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot/* M41T0M6 real time clock */
81*f126890aSEmmanuel Vadot&rtc {
82*f126890aSEmmanuel Vadot	status = "okay";
83*f126890aSEmmanuel Vadot};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot/* Colibri UART_A */
86*f126890aSEmmanuel Vadot&uart1 {
87*f126890aSEmmanuel Vadot	status = "okay";
88*f126890aSEmmanuel Vadot};
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot/* Colibri UART_B */
91*f126890aSEmmanuel Vadot&uart2 {
92*f126890aSEmmanuel Vadot	status = "okay";
93*f126890aSEmmanuel Vadot};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot/* Colibri UART_C */
96*f126890aSEmmanuel Vadot&uart3 {
97*f126890aSEmmanuel Vadot	status = "okay";
98*f126890aSEmmanuel Vadot};
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot/* Colibri USBC */
101*f126890aSEmmanuel Vadot&usbotg1 {
102*f126890aSEmmanuel Vadot	disable-over-current;
103*f126890aSEmmanuel Vadot	status = "okay";
104*f126890aSEmmanuel Vadot};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot/* Colibri MMC/SD, UHS-I capable uSD slot */
107*f126890aSEmmanuel Vadot&usdhc1 {
108*f126890aSEmmanuel Vadot	cap-power-off-card;
109*f126890aSEmmanuel Vadot	/delete-property/ keep-power-in-suspend;
110*f126890aSEmmanuel Vadot	/delete-property/ no-1-8-v;
111*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_3v3_vmmc>;
112*f126890aSEmmanuel Vadot	status = "okay";
113*f126890aSEmmanuel Vadot};
114