0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Copyright 2022 Toradex
0004 */
0005
0006 /* Colibri AD0 to AD3 */
0007 &adc1 {
0008 status = "okay";
0009 };
0010
0011 /*
0012 * The Atmel maxtouch controller uses SODIMM 28/30, also used for PWM<B>, PWM<C>, aka pwm2, pwm3.
0013 * So if you enable following capacitive touch controller, disable pwm2/pwm3 first.
0014 */
0015 &atmel_mxt_ts {
0016 interrupt-parent = <&gpio1>;
0017 interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 / INT */
0018 pinctrl-0 = <&pinctrl_atmel_adapter>;
0019 reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* SODIMM 30 / RST */
0020 };
0021
0022 /* Colibri SSP */
0023 &ecspi3 {
0024 status = "okay";
0025 };
0026
0027 /* Colibri Fast Ethernet */
0028 &fec1 {
0029 status = "okay";
0030 };
0031
0032 &gpio2 {
0033 /*
0034 * uart25 turns the UART transceiver for UART2 and 5 on. If one wants to turn the
0035 * transceiver off, that property has to be deleted and the gpio handled in userspace.
0036 * The same applies to uart1_tx_on where the UART1 transceiver is turned on.
0037 */
0038 uart25-tx-on-hog {
0039 gpio-hog;
0040 gpios = <27 GPIO_ACTIVE_HIGH>; /* SODIMM 104 */
0041 output-high;
0042 };
0043 };
0044
0045 &gpio5 {
0046 uart1-tx-on-hog {
0047 gpio-hog;
0048 gpios = <17 GPIO_ACTIVE_HIGH>; /* SODIMM 102 */
0049 output-high;
0050 };
0051 };
0052
0053 /* Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 */
0054 &i2c4 {
0055 status = "okay";
0056 };
0057
0058 /* Colibri PWM<A> */
0059 &pwm1 {
0060 status = "okay";
0061 };
0062
0063 /* Colibri PWM<B> */
0064 &pwm2 {
0065 /* The pwm2 should be disabled to enable atmel_mxt_ts touchscreen for adapter. */
0066 status = "okay";
0067 };
0068
0069 /* Colibri PWM<C> */
0070 &pwm3 {
0071 /* The pwm3 should be disabled to enable atmel_mxt_ts touchscreen for adapter. */
0072 status = "okay";
0073 };
0074
0075 /* Colibri PWM<D> */
0076 &pwm4 {
0077 status = "okay";
0078 };
0079
0080 /* M41T0M6 real time clock */
0081 &rtc {
0082 status = "okay";
0083 };
0084
0085 /* Colibri UART_A */
0086 &uart1 {
0087 status = "okay";
0088 };
0089
0090 /* Colibri UART_B */
0091 &uart2 {
0092 status = "okay";
0093 };
0094
0095 /* Colibri UART_C */
0096 &uart3 {
0097 status = "okay";
0098 };
0099
0100 /* Colibri USBC */
0101 &usbotg1 {
0102 status = "okay";
0103 };
0104
0105 /* Colibri MMC/SD */
0106 &usdhc1 {
0107 status = "okay";
0108 };