1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022 Toradex
4 */
5
6/* Colibri AD0 to AD3 */
7&adc1 {
8	status = "okay";
9};
10
11/*
12 * The Atmel maxtouch controller uses SODIMM 28/30, also used for PWM<B>, PWM<C>, aka pwm2, pwm3.
13 * So if you enable following capacitive touch controller, disable pwm2/pwm3 first.
14 */
15&atmel_mxt_ts {
16	interrupt-parent = <&gpio1>;
17	interrupts = <9 IRQ_TYPE_EDGE_FALLING>;		/* SODIMM 28 / INT */
18	pinctrl-0 = <&pinctrl_atmel_adapter>;
19	reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;	/* SODIMM 30 / RST */
20};
21
22/* Colibri SSP */
23&ecspi3 {
24	status = "okay";
25};
26
27/* Colibri Fast Ethernet */
28&fec1 {
29	status = "okay";
30};
31
32&gpio2 {
33	/*
34	 * uart25 turns the UART transceiver for UART2 and 5 on. If one wants to turn the
35	 * transceiver off, that property has to be deleted and the gpio handled in userspace.
36	 * The same applies to uart1_tx_on where the UART1 transceiver is turned on.
37	 */
38	uart25-tx-on-hog {
39		gpio-hog;
40		gpios = <27 GPIO_ACTIVE_HIGH>; /* SODIMM 104 */
41		output-high;
42	};
43};
44
45&gpio5 {
46	uart1-tx-on-hog {
47		gpio-hog;
48		gpios = <17 GPIO_ACTIVE_HIGH>; /* SODIMM 102 */
49		output-high;
50	};
51};
52
53/* Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 */
54&i2c4 {
55	status = "okay";
56};
57
58/* Colibri PWM<A> */
59&pwm1 {
60	status = "okay";
61};
62
63/* Colibri PWM<B> */
64&pwm2 {
65	/* The pwm2 should be disabled to enable atmel_mxt_ts touchscreen for adapter. */
66	status = "okay";
67};
68
69/* Colibri PWM<C> */
70&pwm3 {
71	/* The pwm3 should be disabled to enable atmel_mxt_ts touchscreen for adapter. */
72	status = "okay";
73};
74
75/* Colibri PWM<D> */
76&pwm4 {
77	status = "okay";
78};
79
80/* M41T0M6 real time clock */
81&rtc {
82	status = "okay";
83};
84
85/* Colibri UART_A */
86&uart1 {
87	status = "okay";
88};
89
90/* Colibri UART_B */
91&uart2 {
92	status = "okay";
93};
94
95/* Colibri UART_C */
96&uart3 {
97	status = "okay";
98};
99
100/* Colibri USBC */
101&usbotg1 {
102	disable-over-current;
103	status = "okay";
104};
105
106/* Colibri MMC/SD */
107&usdhc1 {
108	status = "okay";
109};
110