0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * Copyright 2013 Eukréa Electromatique <denis@eukrea.com>
0004 */
0005
0006 /dts-v1/;
0007
0008 #include <dt-bindings/gpio/gpio.h>
0009 #include <dt-bindings/input/input.h>
0010 #include "imx25-eukrea-cpuimx25.dtsi"
0011
0012 / {
0013 model = "Eukrea MBIMXSD25";
0014 compatible = "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,imx25";
0015
0016 gpio_keys {
0017 compatible = "gpio-keys";
0018 pinctrl-names = "default";
0019 pinctrl-0 = <&pinctrl_gpiokeys>;
0020
0021 bp1 {
0022 label = "BP1";
0023 gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
0024 linux,code = <BTN_MISC>;
0025 wakeup-source;
0026 };
0027 };
0028
0029 leds {
0030 compatible = "gpio-leds";
0031 pinctrl-names = "default";
0032 pinctrl-0 = <&pinctrl_gpioled>;
0033
0034 led1 {
0035 label = "led1";
0036 gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
0037 linux,default-trigger = "heartbeat";
0038 };
0039 };
0040
0041 sound {
0042 compatible = "eukrea,asoc-tlv320";
0043 eukrea,model = "imx25-eukrea-tlv320aic23";
0044 ssi-controller = <&ssi1>;
0045 fsl,mux-int-port = <1>;
0046 fsl,mux-ext-port = <5>;
0047 };
0048 };
0049
0050 &audmux {
0051 pinctrl-names = "default";
0052 pinctrl-0 = <&pinctrl_audmux>;
0053 status = "okay";
0054 };
0055
0056 &esdhc1 {
0057 pinctrl-names = "default";
0058 pinctrl-0 = <&pinctrl_esdhc1>;
0059 cd-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
0060 status = "okay";
0061 };
0062
0063 &i2c1 {
0064 tlv320aic23: codec@1a {
0065 compatible = "ti,tlv320aic23";
0066 reg = <0x1a>;
0067 };
0068 };
0069
0070 &iomuxc {
0071 imx25-eukrea-mbimxsd25-baseboard {
0072 pinctrl_audmux: audmuxgrp {
0073 fsl,pins = <
0074 MX25_PAD_KPP_COL3__AUD5_TXFS 0xe0
0075 MX25_PAD_KPP_COL2__AUD5_TXC 0xe0
0076 MX25_PAD_KPP_COL1__AUD5_RXD 0xe0
0077 MX25_PAD_KPP_COL0__AUD5_TXD 0xe0
0078 >;
0079 };
0080
0081 pinctrl_esdhc1: esdhc1grp {
0082 fsl,pins = <
0083 MX25_PAD_SD1_CMD__ESDHC1_CMD 0x400000c0
0084 MX25_PAD_SD1_CLK__ESDHC1_CLK 0x400000c0
0085 MX25_PAD_SD1_DATA0__ESDHC1_DAT0 0x400000c0
0086 MX25_PAD_SD1_DATA1__ESDHC1_DAT1 0x400000c0
0087 MX25_PAD_SD1_DATA2__ESDHC1_DAT2 0x400000c0
0088 MX25_PAD_SD1_DATA3__ESDHC1_DAT3 0x400000c0
0089 >;
0090 };
0091
0092 pinctrl_gpiokeys: gpiokeysgrp {
0093 fsl,pins = <MX25_PAD_VSTBY_ACK__GPIO_3_18 0x80000000>;
0094 };
0095
0096 pinctrl_gpioled: gpioledgrp {
0097 fsl,pins = <MX25_PAD_POWER_FAIL__GPIO_3_19 0x80000000>;
0098 };
0099
0100 pinctrl_lcdc: lcdcgrp {
0101 fsl,pins = <
0102 MX25_PAD_LD0__LD0 0x1
0103 MX25_PAD_LD1__LD1 0x1
0104 MX25_PAD_LD2__LD2 0x1
0105 MX25_PAD_LD3__LD3 0x1
0106 MX25_PAD_LD4__LD4 0x1
0107 MX25_PAD_LD5__LD5 0x1
0108 MX25_PAD_LD6__LD6 0x1
0109 MX25_PAD_LD7__LD7 0x1
0110 MX25_PAD_LD8__LD8 0x1
0111 MX25_PAD_LD9__LD9 0x1
0112 MX25_PAD_LD10__LD10 0x1
0113 MX25_PAD_LD11__LD11 0x1
0114 MX25_PAD_LD12__LD12 0x1
0115 MX25_PAD_LD13__LD13 0x1
0116 MX25_PAD_LD14__LD14 0x1
0117 MX25_PAD_LD15__LD15 0x1
0118 MX25_PAD_GPIO_E__LD16 0x1
0119 MX25_PAD_GPIO_F__LD17 0x1
0120 MX25_PAD_HSYNC__HSYNC 0x80000000
0121 MX25_PAD_VSYNC__VSYNC 0x80000000
0122 MX25_PAD_LSCLK__LSCLK 0x80000000
0123 MX25_PAD_OE_ACD__OE_ACD 0x80000000
0124 MX25_PAD_CONTRAST__CONTRAST 0x80000000
0125 >;
0126 };
0127
0128 pinctrl_uart1: uart1grp {
0129 fsl,pins = <
0130 MX25_PAD_UART1_RTS__UART1_RTS 0xe0
0131 MX25_PAD_UART1_CTS__UART1_CTS 0xe0
0132 MX25_PAD_UART1_TXD__UART1_TXD 0x80000000
0133 MX25_PAD_UART1_RXD__UART1_RXD 0xc0
0134 >;
0135 };
0136
0137 pinctrl_uart2: uart2grp {
0138 fsl,pins = <
0139 MX25_PAD_UART2_RXD__UART2_RXD 0x80000000
0140 MX25_PAD_UART2_TXD__UART2_TXD 0x80000000
0141 MX25_PAD_UART2_RTS__UART2_RTS 0x80000000
0142 MX25_PAD_UART2_CTS__UART2_CTS 0x80000000
0143 >;
0144 };
0145 };
0146 };
0147
0148 &ssi1 {
0149 codec-handle = <&tlv320aic23>;
0150 status = "okay";
0151 };
0152
0153 &uart1 {
0154 pinctrl-names = "default";
0155 pinctrl-0 = <&pinctrl_uart1>;
0156 uart-has-rtscts;
0157 status = "okay";
0158 };
0159
0160 &uart2 {
0161 pinctrl-names = "default";
0162 pinctrl-0 = <&pinctrl_uart2>;
0163 uart-has-rtscts;
0164 status = "okay";
0165 };
0166
0167 &usbhost1 {
0168 status = "okay";
0169 };
0170
0171 &usbotg {
0172 external-vbus-divider;
0173 status = "okay";
0174 };