2 * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * version 2 as published by the Free Software Foundation.
13 * This file is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 * b) Permission is hereby granted, free of charge, to any person
21 * obtaining a copy of this software and associated documentation
22 * files (the "Software"), to deal in the Software without
23 * restriction, including without limitation the rights to use,
24 * copy, modify, merge, publish, distribute, sublicense, and/or
25 * sell copies of the Software, and to permit persons to whom the
26 * Software is furnished to do so, subject to the following
29 * The above copyright notice and this permission notice shall be
30 * included in all copies or substantial portions of the Software.
32 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39 * OTHER DEALINGS IN THE SOFTWARE.
41 #include <dt-bindings/sound/fsl-imx-audmux.h>
44 /* Will be filled by the bootloader */
53 ir_recv: ir-receiver {
54 compatible = "gpio-ir-receiver";
55 gpios = <&gpio7 9 GPIO_ACTIVE_LOW>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&pinctrl_hummingboard2_gpio7_9>;
58 linux,rc-map-name = "rc-rc6-mce";
61 v_3v2: regulator-v-3v2 {
62 compatible = "regulator-fixed";
64 regulator-max-microvolt = <3300000>;
65 regulator-min-microvolt = <3300000>;
66 regulator-name = "v_3v2";
69 v_5v0: regulator-v-5v0 {
70 compatible = "regulator-fixed";
72 regulator-max-microvolt = <5000000>;
73 regulator-min-microvolt = <5000000>;
74 regulator-name = "v_5v0";
77 vcc_1p8: regulator-vcc-1p8 {
78 compatible = "regulator-fixed";
80 regulator-max-microvolt = <1800000>;
81 regulator-min-microvolt = <1800000>;
82 regulator-name = "vcc_1p8";
83 vin-supply = <&v_3v2>;
86 v_sd: regulator-v-sd {
87 compatible = "regulator-fixed";
88 gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&pinctrl_hummingboard2_vmmc>;
92 regulator-max-microvolt = <3300000>;
93 regulator-min-microvolt = <3300000>;
94 regulator-name = "v_sd";
95 startup-delay-us = <1000>;
96 vin-supply = <&v_3v2>;
99 v_usb1: regulator-v-usb1 {
100 compatible = "regulator-fixed";
102 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
103 pinctrl-names = "default";
104 pinctrl-0 = <&pinctrl_hummingboard2_usbotg_vbus>;
106 regulator-max-microvolt = <5000000>;
107 regulator-min-microvolt = <5000000>;
108 regulator-name = "v_usb1";
109 vin-supply = <&v_5v0>;
112 v_usb2: regulator-v-usb2 {
114 compatible = "regulator-fixed";
116 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
117 pinctrl-names = "default";
118 pinctrl-0 = <&pinctrl_hummingboard2_usbh1_vbus>;
120 regulator-max-microvolt = <5000000>;
121 regulator-min-microvolt = <5000000>;
122 regulator-name = "v_usb2";
123 vin-supply = <&v_5v0>;
126 v_usb3: regulator-v-usb3 {
128 compatible = "regulator-fixed";
130 gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&pinctrl_hummingboard2_usbh2_vbus>;
134 regulator-max-microvolt = <5000000>;
135 regulator-min-microvolt = <5000000>;
136 regulator-name = "v_usb3";
137 vin-supply = <&v_5v0>;
140 v_usb4: regulator-v-usb4 {
142 compatible = "regulator-fixed";
144 gpio = <&gpio7 10 GPIO_ACTIVE_HIGH>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_hummingboard2_usbh3_vbus>;
148 regulator-max-microvolt = <5000000>;
149 regulator-min-microvolt = <5000000>;
150 regulator-name = "v_usb4";
151 vin-supply = <&v_5v0>;
154 audio: sound-sgtl5000 {
155 compatible = "simple-audio-card";
156 simple-audio-card,name = "On-board Codec";
157 simple-audio-card,format = "i2s";
158 simple-audio-card,bitclock-master = <&sound_codec>;
159 simple-audio-card,frame-master = <&sound_codec>;
160 simple-audio-card,widgets =
161 "Microphone", "Mic Jack",
162 "Headphone", "Headphone Jack";
163 simple-audio-card,routing =
164 "MIC_IN", "Mic Jack",
165 "Mic Jack", "Mic Bias",
166 "Headphone Jack", "HP_OUT";
168 sound_cpu: simple-audio-card,cpu {
172 sound_codec: simple-audio-card,codec {
173 sound-dai = <&sgtl5000>;
182 fsl,audmux-port = <0>;
184 (IMX_AUDMUX_V2_PTCR_SYN |
185 IMX_AUDMUX_V2_PTCR_TFSEL(4) |
186 IMX_AUDMUX_V2_PTCR_TCSEL(4) |
187 IMX_AUDMUX_V2_PTCR_TFSDIR |
188 IMX_AUDMUX_V2_PTCR_TCLKDIR)
189 IMX_AUDMUX_V2_PDCR_RXDSEL(4)
194 fsl,audmux-port = <4>;
196 IMX_AUDMUX_V2_PTCR_SYN
197 IMX_AUDMUX_V2_PDCR_RXDSEL(0)
203 pinctrl-names = "default";
204 pinctrl-0 = <&pinctrl_hummingboard2_ecspi2>;
205 cs-gpios = <&gpio2 26 0>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&pinctrl_hummingboard2_hdmi>;
212 ddc-i2c-bus = <&i2c2>;
217 clock-frequency = <100000>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_hummingboard2_i2c1>;
223 compatible = "nxp,pcf8523";
228 clocks = <&clks IMX6QDL_CLK_CKO>;
229 compatible = "fsl,sgtl5000";
230 #sound-dai-cells = <0>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&pinctrl_hummingboard2_sgtl5000>;
234 VDDA-supply = <&v_3v2>;
235 VDDD-supply = <&vcc_1p8>;
236 VDDIO-supply = <&v_3v2>;
241 clock-frequency = <100000>;
242 pinctrl-names = "default";
243 pinctrl-0 = <&pinctrl_hummingboard2_i2c2>;
248 clock-frequency = <100000>;
249 pinctrl-names = "default";
250 pinctrl-0 = <&pinctrl_hummingboard2_i2c3>;
255 pinctrl-names = "default";
256 pinctrl-0 = <&pinctrl_hog>;
259 pinctrl_hog: hoggrp {
262 * 36 pin headers GPIO description. The pins
263 * numbering as following -
276 * The GPIO numbers can be extracted using
277 * signal name from below.
279 * MX6QDL_PAD_EIM_DA10__GPIO3_IO10 is
280 * GPIO(3,10) which is (3-1)*32+10 = gpio 74
282 * i.e. The mapping of GPIO(X,Y) to Linux gpio
283 * number is : gpio number = (X-1) * 32 + Y
286 MX6QDL_PAD_EIM_DA10__GPIO3_IO10 0x400130b1
288 MX6QDL_PAD_EIM_DA11__GPIO3_IO11 0x400130b1
290 MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x400130b1
292 MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x400130b1
294 MX6QDL_PAD_EIM_DA7__GPIO3_IO07 0x400130b1
296 MX6QDL_PAD_EIM_DA6__GPIO3_IO06 0x400130b1
298 MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x400130b1
300 MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x400130b1
302 MX6QDL_PAD_EIM_DA3__GPIO3_IO03 0x400130b1
304 MX6QDL_PAD_EIM_DA2__GPIO3_IO02 0x400130b1
306 MX6QDL_PAD_EIM_DA13__GPIO3_IO13 0x400130b1
308 MX6QDL_PAD_EIM_DA14__GPIO3_IO14 0x400130b1
310 MX6QDL_PAD_EIM_DA15__GPIO3_IO15 0x400130b1
312 MX6QDL_PAD_EIM_DA12__GPIO3_IO12 0x400130b1
314 MX6QDL_PAD_EIM_DA1__GPIO3_IO01 0x400130b1
316 MX6QDL_PAD_EIM_DA0__GPIO3_IO00 0x400130b1
318 MX6QDL_PAD_EIM_EB1__GPIO2_IO29 0x400130b1
320 MX6QDL_PAD_EIM_EB0__GPIO2_IO28 0x400130b1
322 MX6QDL_PAD_EIM_A17__GPIO2_IO21 0x400130b1
324 MX6QDL_PAD_EIM_A18__GPIO2_IO20 0x400130b1
326 MX6QDL_PAD_EIM_A19__GPIO2_IO19 0x400130b1
328 MX6QDL_PAD_EIM_A20__GPIO2_IO18 0x400130b1
330 MX6QDL_PAD_EIM_A21__GPIO2_IO17 0x400130b1
332 MX6QDL_PAD_EIM_A22__GPIO2_IO16 0x400130b1
334 MX6QDL_PAD_EIM_A23__GPIO6_IO06 0x400130b1
336 MX6QDL_PAD_EIM_A24__GPIO5_IO04 0x400130b1
338 MX6QDL_PAD_EIM_D31__GPIO3_IO31 0x400130b1
340 MX6QDL_PAD_EIM_D30__GPIO3_IO30 0x400130b1
342 MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x400130b1
344 MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x400130b1
346 MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x400130b1
348 MX6QDL_PAD_ENET_RX_ER__GPIO1_IO24 0x400130b1
350 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x400130b1
352 /* MikroBUS GPIO pin number 10 */
353 MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1
357 pinctrl_hummingboard2_ecspi2: hummingboard2-ecspi2grp {
359 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
360 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
361 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
362 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x000b1 /* CS */
366 pinctrl_hummingboard2_gpio7_9: hummingboard2-gpio7_9 {
368 MX6QDL_PAD_SD4_CMD__GPIO7_IO09 0x80000000
372 pinctrl_hummingboard2_hdmi: hummingboard2-hdmi {
374 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
378 pinctrl_hummingboard2_i2c1: hummingboard2-i2c1 {
380 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
381 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
385 pinctrl_hummingboard2_i2c2: hummingboard2-i2c2 {
387 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
388 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
392 pinctrl_hummingboard2_i2c3: hummingboard2-i2c3 {
394 MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
395 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
399 pinctrl_hummingboard2_mipi: hummingboard2_mipi {
401 MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x4001b8b1
402 MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x4001b8b1
403 MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x130b0
407 pinctrl_hummingboard2_pcie_reset: hummingboard2-pcie-reset {
409 MX6QDL_PAD_SD4_DAT3__GPIO2_IO11 0x1b0b1
413 pinctrl_hummingboard2_pwm1: pwm1grp {
415 MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1
419 pinctrl_hummingboard2_pwm3: pwm3grp {
421 MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
425 pinctrl_hummingboard2_sgtl5000: hummingboard2-sgtl5000 {
427 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
428 MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0
429 MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0
430 MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0
431 MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0
435 pinctrl_hummingboard2_usbh1_vbus: hummingboard2-usbh1-vbus {
436 fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>;
439 pinctrl_hummingboard2_usbh2_vbus: hummingboard2-usbh2-vbus {
440 fsl,pins = <MX6QDL_PAD_SD4_DAT5__GPIO2_IO13 0x1b0b0>;
443 pinctrl_hummingboard2_usbh3_vbus: hummingboard2-usbh3-vbus {
444 fsl,pins = <MX6QDL_PAD_SD4_CLK__GPIO7_IO10 0x1b0b0>;
447 pinctrl_hummingboard2_usbotg_id: hummingboard2-usbotg-id {
449 * We want it pulled down for a fixed host connection.
451 fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>;
454 pinctrl_hummingboard2_usbotg_vbus: hummingboard2-usbotg-vbus {
455 fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>;
458 pinctrl_hummingboard2_usdhc2_aux: hummingboard2-usdhc2-aux {
460 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
461 MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
465 pinctrl_hummingboard2_usdhc2: hummingboard2-usdhc2 {
467 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
468 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
469 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
470 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
471 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
472 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
476 pinctrl_hummingboard2_usdhc2_100mhz: hummingboard2-usdhc2-100mhz {
478 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x170b9
479 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x100b9
480 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170b9
481 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170b9
482 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170b9
483 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x130b9
487 pinctrl_hummingboard2_usdhc2_200mhz: hummingboard2-usdhc2-200mhz {
489 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x170f9
490 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x100f9
491 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170f9
492 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170f9
493 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170f9
494 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x130f9
498 pinctrl_hummingboard2_vmmc: hummingboard2-vmmc {
500 MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
504 pinctrl_hummingboard2_uart3: hummingboard2-uart3 {
506 MX6QDL_PAD_EIM_D25__UART3_TX_DATA 0x1b0b1
507 MX6QDL_PAD_EIM_D24__UART3_RX_DATA 0x40013000
514 pinctrl-names = "default";
515 pinctrl-0 = <&pinctrl_hummingboard2_pcie_reset>;
516 reset-gpio = <&gpio2 11 GPIO_ACTIVE_LOW>;
521 pinctrl-names = "default";
522 pinctrl-0 = <&pinctrl_hummingboard2_pwm1>;
527 pinctrl-names = "default";
528 pinctrl-0 = <&pinctrl_hummingboard2_pwm3>;
537 disable-over-current;
542 disable-over-current;
543 pinctrl-names = "default";
544 pinctrl-0 = <&pinctrl_hummingboard2_usbotg_id>;
545 vbus-supply = <&v_usb1>;
550 pinctrl-names = "default", "state_100mhz", "state_200mhz";
552 &pinctrl_hummingboard2_usdhc2_aux
553 &pinctrl_hummingboard2_usdhc2
556 &pinctrl_hummingboard2_usdhc2_aux
557 &pinctrl_hummingboard2_usdhc2_100mhz
560 &pinctrl_hummingboard2_usdhc2_aux
561 &pinctrl_hummingboard2_usdhc2_200mhz
563 vmmc-supply = <&v_sd>;
564 cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
569 pinctrl-names = "default";
570 pinctrl-0 = <&pinctrl_hummingboard2_uart3>;
575 vin-supply = <&v_3v2>;