2 * Copyright 2014 FEDEVEL, Inc.
4 * Author: Robert Nelson <robertcnelson@gmail.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
21 compatible = "simple-bus";
25 reg_3p3v: regulator@0 {
26 compatible = "regulator-fixed";
28 regulator-name = "3P3V";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
34 reg_usbh1_vbus: regulator@1 {
35 compatible = "regulator-fixed";
37 pinctrl-names = "default";
38 regulator-name = "usbh1_vbus";
39 regulator-min-microvolt = <5000000>;
40 regulator-max-microvolt = <5000000>;
41 gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>;
45 reg_usb_otg_vbus: regulator@2 {
46 compatible = "regulator-fixed";
48 pinctrl-names = "default";
49 regulator-name = "usb_otg_vbus";
50 regulator-min-microvolt = <5000000>;
51 regulator-max-microvolt = <5000000>;
52 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
58 compatible = "gpio-leds";
59 pinctrl-names = "default";
60 pinctrl-0 = <&pinctrl_led>;
64 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
65 default-state = "off";
66 linux,default-trigger = "heartbeat";
71 compatible = "fsl,imx6-rex-sgtl5000",
72 "fsl,imx-audio-sgtl5000";
73 model = "imx6-rex-sgtl5000";
74 ssi-controller = <&ssi1>;
75 audio-codec = <&codec>;
78 "Mic Jack", "Mic Bias",
79 "Headphone Jack", "HP_OUT";
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_audmux>;
92 cs-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&pinctrl_ecspi2>;
99 cs-gpios = <&gpio4 26 GPIO_ACTIVE_LOW>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_ecspi3>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_enet>;
109 phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
114 ddc-i2c-bus = <&i2c2>;
119 clock-frequency = <100000>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&pinctrl_i2c1>;
125 compatible = "fsl,sgtl5000";
127 clocks = <&clks IMX6QDL_CLK_CKO>;
128 VDDA-supply = <®_3p3v>;
129 VDDIO-supply = <®_3p3v>;
134 clock-frequency = <100000>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_i2c2>;
140 compatible = "at,24c02";
146 clock-frequency = <100000>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_i2c3>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_hog>;
157 pinctrl_hog: hoggrp {
159 /* SGTL5000 sys_mclk */
160 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x030b0
164 pinctrl_audmux: audmuxgrp {
166 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0
167 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0
168 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0
169 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0
173 pinctrl_ecspi2: ecspi2grp {
175 MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
176 MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
177 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
179 MX6QDL_PAD_DISP0_DAT5__GPIO4_IO26 0x000b1
183 pinctrl_ecspi3: ecspi3grp {
185 MX6QDL_PAD_DISP0_DAT17__ECSPI2_MISO 0x100b1
186 MX6QDL_PAD_DISP0_DAT16__ECSPI2_MOSI 0x100b1
187 MX6QDL_PAD_DISP0_DAT19__ECSPI2_SCLK 0x100b1
189 MX6QDL_PAD_DISP0_DAT18__GPIO5_IO12 0x000b1
193 pinctrl_enet: enetgrp {
195 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
196 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
197 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
198 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
199 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
200 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
201 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
202 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
203 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
204 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
205 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
206 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
207 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
208 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
209 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
210 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
212 MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x000b0
216 pinctrl_i2c1: i2c1grp {
218 MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1
219 MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b8b1
223 pinctrl_i2c2: i2c2grp {
225 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
226 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
230 pinctrl_i2c3: i2c3grp {
232 MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
233 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
237 pinctrl_led: ledgrp {
240 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000
244 pinctrl_uart1: uart1grp {
246 MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
247 MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
251 pinctrl_uart2: uart2grp {
253 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
254 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
258 pinctrl_usbh1: usbh1grp {
260 /* power enable, high active */
261 MX6QDL_PAD_EIM_D31__GPIO3_IO31 0x10b0
265 pinctrl_usbotg: usbotggrp {
267 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
268 MX6QDL_PAD_EIM_D21__USB_OTG_OC 0x1b0b0
269 /* power enable, high active */
270 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x10b0
274 pinctrl_usdhc2: usdhc2grp {
276 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
277 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
278 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
279 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
280 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
281 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059
283 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
285 MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1f0b0
289 pinctrl_usdhc3: usdhc3grp {
291 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
292 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
293 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
294 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
295 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
296 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
298 MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x1b0b0
300 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1f0b0
311 pinctrl-names = "default";
312 pinctrl-0 = <&pinctrl_uart1>;
317 pinctrl-names = "default";
318 pinctrl-0 = <&pinctrl_uart2>;
323 vbus-supply = <®_usbh1_vbus>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&pinctrl_usbh1>;
330 vbus-supply = <®_usb_otg_vbus>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&pinctrl_usbotg>;
337 pinctrl-names = "default";
338 pinctrl-0 = <&pinctrl_usdhc2>;
340 cd-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
341 wp-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
346 pinctrl-names = "default";
347 pinctrl-0 = <&pinctrl_usdhc3>;
349 cd-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
350 wp-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;