1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2013 Freescale Semiconductor, Inc.
5 * Author: Fabio Estevam <fabio.estevam@freescale.com>
8 #include <dt-bindings/gpio/gpio.h>
12 compatible = "fsl,imx6-wandboard-sgtl5000",
13 "fsl,imx-audio-sgtl5000";
14 model = "imx6-wandboard-sgtl5000";
15 ssi-controller = <&ssi1>;
16 audio-codec = <&codec>;
19 "Mic Jack", "Mic Bias",
20 "Headphone Jack", "HP_OUT";
26 compatible = "fsl,imx-audio-spdif";
28 spdif-controller = <&spdif>;
32 reg_2p5v: regulator-2p5v {
33 compatible = "regulator-fixed";
34 regulator-name = "2P5V";
35 regulator-min-microvolt = <2500000>;
36 regulator-max-microvolt = <2500000>;
40 reg_3p3v: regulator-3p3v {
41 compatible = "regulator-fixed";
42 regulator-name = "3P3V";
43 regulator-min-microvolt = <3300000>;
44 regulator-max-microvolt = <3300000>;
48 reg_usb_otg_vbus: regulator-usbotgvbus {
49 compatible = "regulator-fixed";
50 regulator-name = "usb_otg_vbus";
51 regulator-min-microvolt = <5000000>;
52 regulator-max-microvolt = <5000000>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&pinctrl_usbotgvbus>;
55 gpio = <&gpio3 22 GPIO_ACTIVE_LOW>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&pinctrl_audmux>;
66 ddc-i2c-bus = <&i2c1>;
71 clock-frequency = <100000>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_i2c1>;
78 clock-frequency = <100000>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&pinctrl_i2c2>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&pinctrl_mclk>;
86 compatible = "fsl,sgtl5000";
88 clocks = <&clks IMX6QDL_CLK_CKO>;
89 VDDA-supply = <®_2p5v>;
90 VDDIO-supply = <®_3p3v>;
96 pinctrl-names = "default";
100 pinctrl_audmux: audmuxgrp {
102 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0
103 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0
104 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0
105 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0
109 pinctrl_enet: enetgrp {
111 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
112 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
113 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
114 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
115 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
116 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
117 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
118 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
119 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
120 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
121 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
122 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
123 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
124 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
125 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
126 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
127 MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1
131 pinctrl_i2c1: i2c1grp {
133 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
134 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
138 pinctrl_i2c2: i2c2grp {
140 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
141 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
145 pinctrl_mclk: mclkgrp {
147 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0
151 pinctrl_spdif: spdifgrp {
153 MX6QDL_PAD_ENET_RXD0__SPDIF_OUT 0x1b0b0
157 pinctrl_uart1: uart1grp {
159 MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
160 MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
164 pinctrl_uart3: uart3grp {
166 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
167 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
168 MX6QDL_PAD_EIM_D23__UART3_CTS_B 0x1b0b1
169 MX6QDL_PAD_EIM_EB3__UART3_RTS_B 0x1b0b1
173 pinctrl_usbotg: usbotggrp {
175 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
179 pinctrl_usbotgvbus: usbotgvbusgrp {
181 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x130b0
185 pinctrl_usdhc1: usdhc1grp {
187 MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17059
188 MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10059
189 MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17059
190 MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17059
191 MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17059
192 MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17059
196 pinctrl_usdhc2: usdhc2grp {
198 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
199 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
200 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
201 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
202 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
203 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059
207 pinctrl_usdhc3: usdhc3grp {
209 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
210 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
211 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
212 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
213 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
214 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
221 pinctrl-names = "default";
222 pinctrl-0 = <&pinctrl_enet>;
224 phy-reset-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
225 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
226 <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
227 fsl,err006687-workaround-present;
232 pinctrl-names = "default";
233 pinctrl-0 = <&pinctrl_spdif>;
242 pinctrl-names = "default";
243 pinctrl-0 = <&pinctrl_uart1>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&pinctrl_uart3>;
259 vbus-supply = <®_usb_otg_vbus>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&pinctrl_usbotg>;
262 disable-over-current;
268 pinctrl-names = "default";
269 pinctrl-0 = <&pinctrl_usdhc1>;
270 cd-gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
275 pinctrl-names = "default";
276 pinctrl-0 = <&pinctrl_usdhc3>;
277 cd-gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;