0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Copyright 2014-2022 Toradex
0004 * Copyright 2012 Freescale Semiconductor, Inc.
0005 * Copyright 2011 Linaro Ltd.
0006 */
0007
0008 /dts-v1/;
0009
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 #include <dt-bindings/interrupt-controller/irq.h>
0013 #include "imx6q.dtsi"
0014 #include "imx6qdl-apalis.dtsi"
0015
0016 / {
0017 model = "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board";
0018 compatible = "toradex,apalis_imx6q-ixora", "toradex,apalis_imx6q",
0019 "fsl,imx6q";
0020
0021 aliases {
0022 i2c0 = &i2c1;
0023 i2c1 = &i2c3;
0024 i2c2 = &i2c2;
0025 rtc0 = &rtc_i2c;
0026 rtc1 = &snvs_rtc;
0027 };
0028
0029 chosen {
0030 stdout-path = "serial0:115200n8";
0031 };
0032
0033 leds {
0034 compatible = "gpio-leds";
0035 pinctrl-names = "default";
0036 pinctrl-0 = <&pinctrl_leds_ixora>;
0037
0038 led4-green {
0039 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
0040 label = "LED_4_GREEN";
0041 };
0042
0043 led4-red {
0044 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
0045 label = "LED_4_RED";
0046 };
0047
0048 led5-green {
0049 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
0050 label = "LED_5_GREEN";
0051 };
0052
0053 led5-red {
0054 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
0055 label = "LED_5_RED";
0056 };
0057 };
0058 };
0059
0060 &can1 {
0061 status = "okay";
0062 };
0063
0064 &can2 {
0065 status = "okay";
0066 };
0067
0068 /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
0069 &i2c1 {
0070 status = "okay";
0071
0072 eeprom@50 {
0073 compatible = "atmel,24c02";
0074 reg = <0x50>;
0075 };
0076
0077 /* M41T0M6 real time clock on carrier board */
0078 rtc_i2c: rtc@68 {
0079 compatible = "st,m41t0";
0080 reg = <0x68>;
0081 };
0082 };
0083
0084 /*
0085 * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
0086 * board)
0087 */
0088 &i2c3 {
0089 status = "okay";
0090 };
0091
0092 &pcie {
0093 pinctrl-names = "default";
0094 pinctrl-0 = <&pinctrl_reset_moci>;
0095 /* active-high meaning opposite of regular PERST# active-low polarity */
0096 reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
0097 reset-gpio-active-high;
0098 status = "okay";
0099 };
0100
0101 &pwm1 {
0102 status = "okay";
0103 };
0104
0105 &pwm2 {
0106 status = "okay";
0107 };
0108
0109 &pwm3 {
0110 status = "okay";
0111 };
0112
0113 &pwm4 {
0114 status = "okay";
0115 };
0116
0117 ®_usb_host_vbus {
0118 status = "okay";
0119 };
0120
0121 ®_usb_otg_vbus {
0122 status = "okay";
0123 };
0124
0125 &sata {
0126 status = "okay";
0127 };
0128
0129 &sound_spdif {
0130 status = "okay";
0131 };
0132
0133 &spdif {
0134 status = "okay";
0135 };
0136
0137 &uart1 {
0138 status = "okay";
0139 };
0140
0141 &uart2 {
0142 status = "okay";
0143 };
0144
0145 &uart4 {
0146 status = "okay";
0147 };
0148
0149 &uart5 {
0150 status = "okay";
0151 };
0152
0153 &usbh1 {
0154 vbus-supply = <®_usb_host_vbus>;
0155 status = "okay";
0156 };
0157
0158 &usbotg {
0159 vbus-supply = <®_usb_otg_vbus>;
0160 status = "okay";
0161 };
0162
0163 /* SD1 */
0164 &usdhc2 {
0165 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
0166 pinctrl-names = "default";
0167 pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>;
0168 status = "okay";
0169 };
0170
0171 &iomuxc {
0172 pinctrl_leds_ixora: ledsixoragrp {
0173 fsl,pins = <
0174 MX6QDL_PAD_SD1_DAT1__GPIO1_IO17 0x1b0b0
0175 MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x1b0b0
0176 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
0177 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
0178 >;
0179 };
0180 };