zhang / rpms / kernel

Forked from rpms/kernel 5 years ago
Clone
f2c60e
From e9e601215d294d473a593641b1ecfd1fa4586a90 Mon Sep 17 00:00:00 2001
f2c60e
From: Peter Robinson <pbrobinson@gmail.com>
f2c60e
Date: Thu, 6 Apr 2017 13:52:54 +0100
f2c60e
Subject: [PATCH 1/4] [RFC,v2,1/4] ARM: dts: imx6qdl: add HummingBoard2 boards
f2c60e
f2c60e
From: Jon Nettleton <jon@solid-run.com>
f2c60e
f2c60e
This adds support for the Hummingboard Gate and Edge devices from
f2c60e
SolidRun.
f2c60e
f2c60e
Signed-off-by: Jon Nettleton <jon@solid-run.com>
f2c60e
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
f2c60e
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
f2c60e
---
f2c60e
 arch/arm/boot/dts/Makefile                   |   2 +
f2c60e
 arch/arm/boot/dts/imx6dl-hummingboard2.dts   |  52 +++
f2c60e
 arch/arm/boot/dts/imx6q-hummingboard2.dts    |  60 +++
f2c60e
 arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi | 543 +++++++++++++++++++++++++++
f2c60e
 4 files changed, 657 insertions(+)
f2c60e
 create mode 100644 arch/arm/boot/dts/imx6dl-hummingboard2.dts
f2c60e
 create mode 100644 arch/arm/boot/dts/imx6q-hummingboard2.dts
f2c60e
 create mode 100644 arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
f2c60e
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
f2c60e
index 011808490fed..ccdff6650541 100644
f2c60e
--- a/arch/arm/boot/dts/Makefile
f2c60e
+++ b/arch/arm/boot/dts/Makefile
f2c60e
@@ -353,6 +353,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
f2c60e
 	imx6dl-gw5903.dtb \
f2c60e
 	imx6dl-gw5904.dtb \
f2c60e
 	imx6dl-hummingboard.dtb \
f2c60e
+	imx6dl-hummingboard2.dtb \
f2c60e
 	imx6dl-icore.dtb \
f2c60e
 	imx6dl-icore-rqs.dtb \
f2c60e
 	imx6dl-nit6xlite.dtb \
f2c60e
@@ -397,6 +398,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
f2c60e
 	imx6q-gw5904.dtb \
f2c60e
 	imx6q-h100.dtb \
f2c60e
 	imx6q-hummingboard.dtb \
f2c60e
+	imx6q-hummingboard2.dtb \
f2c60e
 	imx6q-icore.dtb \
f2c60e
 	imx6q-icore-ofcap10.dtb \
f2c60e
 	imx6q-icore-ofcap12.dtb \
f2c60e
diff --git a/arch/arm/boot/dts/imx6dl-hummingboard2.dts b/arch/arm/boot/dts/imx6dl-hummingboard2.dts
f2c60e
new file mode 100644
f2c60e
index 000000000000..990b5050de5b
f2c60e
--- /dev/null
f2c60e
+++ b/arch/arm/boot/dts/imx6dl-hummingboard2.dts
f2c60e
@@ -0,0 +1,52 @@
f2c60e
+/*
f2c60e
+ * Device Tree file for SolidRun HummingBoard2
f2c60e
+ * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com>
f2c60e
+ * Based on work by Russell King
f2c60e
+ *
f2c60e
+ * This file is dual-licensed: you can use it either under the terms
f2c60e
+ * of the GPL or the X11 license, at your option. Note that this dual
f2c60e
+ * licensing only applies to this file, and not this project as a
f2c60e
+ * whole.
f2c60e
+ *
f2c60e
+ *  a) This file is free software; you can redistribute it and/or
f2c60e
+ *     modify it under the terms of the GNU General Public License as
f2c60e
+ *     published by the Free Software Foundation; either version 2 of the
f2c60e
+ *     License.
f2c60e
+ *
f2c60e
+ *     This file is distributed in the hope that it will be useful
f2c60e
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
f2c60e
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f2c60e
+ *     GNU General Public License for more details.
f2c60e
+ *
f2c60e
+ * Or, alternatively
f2c60e
+ *
f2c60e
+ *  b) Permission is hereby granted, free of charge, to any person
f2c60e
+ *     obtaining a copy of this software and associated documentation
f2c60e
+ *     files (the "Software"), to deal in the Software without
f2c60e
+ *     restriction, including without limitation the rights to use
f2c60e
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
f2c60e
+ *     sell copies of the Software, and to permit persons to whom the
f2c60e
+ *     Software is furnished to do so, subject to the following
f2c60e
+ *     conditions:
f2c60e
+ *
f2c60e
+ *     The above copyright notice and this permission notice shall be
f2c60e
+ *     included in all copies or substantial portions of the Software.
f2c60e
+ *
f2c60e
+ *     THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
f2c60e
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
f2c60e
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
f2c60e
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
f2c60e
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
f2c60e
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f2c60e
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
f2c60e
+ *     OTHER DEALINGS IN THE SOFTWARE.
f2c60e
+ */
f2c60e
+/dts-v1/;
f2c60e
+
f2c60e
+#include "imx6dl.dtsi"
f2c60e
+#include "imx6qdl-hummingboard2.dtsi"
f2c60e
+
f2c60e
+/ {
f2c60e
+	model = "SolidRun HummingBoard2 Solo/DualLite";
f2c60e
+	compatible = "solidrun,hummingboard2/dl", "fsl,imx6dl";
f2c60e
+};
f2c60e
diff --git a/arch/arm/boot/dts/imx6q-hummingboard2.dts b/arch/arm/boot/dts/imx6q-hummingboard2.dts
f2c60e
new file mode 100644
f2c60e
index 000000000000..f5eec9163bb8
f2c60e
--- /dev/null
f2c60e
+++ b/arch/arm/boot/dts/imx6q-hummingboard2.dts
f2c60e
@@ -0,0 +1,60 @@
f2c60e
+/*
f2c60e
+ * Device Tree file for SolidRun HummingBoard2
f2c60e
+ * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com>
f2c60e
+ * Based on work by Russell King
f2c60e
+ *
f2c60e
+ * This file is dual-licensed: you can use it either under the terms
f2c60e
+ * of the GPL or the X11 license, at your option. Note that this dual
f2c60e
+ * licensing only applies to this file, and not this project as a
f2c60e
+ * whole.
f2c60e
+ *
f2c60e
+ *  a) This file is free software; you can redistribute it and/or
f2c60e
+ *     modify it under the terms of the GNU General Public License as
f2c60e
+ *     published by the Free Software Foundation; either version 2 of the
f2c60e
+ *     License.
f2c60e
+ *
f2c60e
+ *     This file is distributed in the hope that it will be useful
f2c60e
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
f2c60e
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f2c60e
+ *     GNU General Public License for more details.
f2c60e
+ *
f2c60e
+ * Or, alternatively
f2c60e
+ *
f2c60e
+ *  b) Permission is hereby granted, free of charge, to any person
f2c60e
+ *     obtaining a copy of this software and associated documentation
f2c60e
+ *     files (the "Software"), to deal in the Software without
f2c60e
+ *     restriction, including without limitation the rights to use
f2c60e
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
f2c60e
+ *     sell copies of the Software, and to permit persons to whom the
f2c60e
+ *     Software is furnished to do so, subject to the following
f2c60e
+ *     conditions:
f2c60e
+ *
f2c60e
+ *     The above copyright notice and this permission notice shall be
f2c60e
+ *     included in all copies or substantial portions of the Software.
f2c60e
+ *
f2c60e
+ *     THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
f2c60e
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
f2c60e
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
f2c60e
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
f2c60e
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
f2c60e
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f2c60e
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
f2c60e
+ *     OTHER DEALINGS IN THE SOFTWARE.
f2c60e
+ */
f2c60e
+/dts-v1/;
f2c60e
+
f2c60e
+#include "imx6q.dtsi"
f2c60e
+#include "imx6qdl-hummingboard2.dtsi"
f2c60e
+
f2c60e
+/ {
f2c60e
+	model = "SolidRun HummingBoard2 Dual/Quad";
f2c60e
+	compatible = "solidrun,hummingboard2/q", "fsl,imx6q";
f2c60e
+};
f2c60e
+
f2c60e
+&sata {
f2c60e
+	status = "okay";
f2c60e
+	fsl,transmit-level-mV = <1104>;
f2c60e
+	fsl,transmit-boost-mdB = <0>;
f2c60e
+	fsl,transmit-atten-16ths = <9>;
f2c60e
+	fsl,no-spread-spectrum;
f2c60e
+};
f2c60e
diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
new file mode 100644
f2c60e
index 000000000000..11b63f6f2b89
f2c60e
--- /dev/null
f2c60e
+++ b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
@@ -0,0 +1,543 @@
f2c60e
+/*
f2c60e
+ * Device Tree file for SolidRun HummingBoard2
f2c60e
+ * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com>
f2c60e
+ *
f2c60e
+ * This file is dual-licensed: you can use it either under the terms
f2c60e
+ * of the GPL or the X11 license, at your option. Note that this dual
f2c60e
+ * licensing only applies to this file, and not this project as a
f2c60e
+ * whole.
f2c60e
+ *
f2c60e
+ *  a) This file is free software; you can redistribute it and/or
f2c60e
+ *     modify it under the terms of the GNU General Public License as
f2c60e
+ *     published by the Free Software Foundation; either version 2 of the
f2c60e
+ *     License.
f2c60e
+ *
f2c60e
+ *     This file is distributed in the hope that it will be useful,
f2c60e
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
f2c60e
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f2c60e
+ *     GNU General Public License for more details.
f2c60e
+ *
f2c60e
+ * Or, alternatively,
f2c60e
+ *
f2c60e
+ *  b) Permission is hereby granted, free of charge, to any person
f2c60e
+ *     obtaining a copy of this software and associated documentation
f2c60e
+ *     files (the "Software"), to deal in the Software without
f2c60e
+ *     restriction, including without limitation the rights to use
f2c60e
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
f2c60e
+ *     sell copies of the Software, and to permit persons to whom the
f2c60e
+ *     Software is furnished to do so, subject to the following
f2c60e
+ *     conditions:
f2c60e
+ *
f2c60e
+ *     The above copyright notice and this permission notice shall be
f2c60e
+ *     included in all copies or substantial portions of the Software.
f2c60e
+ *
f2c60e
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
f2c60e
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
f2c60e
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
f2c60e
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
f2c60e
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
f2c60e
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f2c60e
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
f2c60e
+ *     OTHER DEALINGS IN THE SOFTWARE.
f2c60e
+ */
f2c60e
+#include "imx6qdl-microsom.dtsi"
f2c60e
+#include "imx6qdl-microsom-ar8035.dtsi"
f2c60e
+
f2c60e
+/ {
f2c60e
+	chosen {
f2c60e
+		stdout-path = &uart;;
f2c60e
+	};
f2c60e
+
f2c60e
+	ir_recv: ir-receiver {
f2c60e
+		compatible = "gpio-ir-receiver";
f2c60e
+		gpios = <&gpio7 9 1>;
f2c60e
+		pinctrl-names = "default";
f2c60e
+		pinctrl-0 = <&pinctrl_hummingboard2_gpio7_9>;
f2c60e
+		linux,rc-map-name = "rc-rc6-mce";
f2c60e
+	};
f2c60e
+
f2c60e
+	usdhc2_pwrseq: usdhc2-pwrseq {
f2c60e
+		compatible = "mmc-pwrseq-simple";
f2c60e
+		reset-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
f2c60e
+	};
f2c60e
+
f2c60e
+	reg_3p3v: regulator-3p3v {
f2c60e
+		compatible = "regulator-fixed";
f2c60e
+		regulator-name = "3P3V";
f2c60e
+		regulator-min-microvolt = <3300000>;
f2c60e
+		regulator-max-microvolt = <3300000>;
f2c60e
+		regulator-always-on;
f2c60e
+	};
f2c60e
+
f2c60e
+	reg_1p8v: regulator-1p8v {
f2c60e
+		compatible = "regulator-fixed";
f2c60e
+		regulator-name = "1P8V";
f2c60e
+		regulator-min-microvolt = <1800000>;
f2c60e
+		regulator-max-microvolt = <1800000>;
f2c60e
+		regulator-always-on;
f2c60e
+	};
f2c60e
+
f2c60e
+	reg_usbh1_vbus: regulator-usb-h1-vbus {
f2c60e
+		compatible = "regulator-fixed";
f2c60e
+		enable-active-high;
f2c60e
+		gpio = <&gpio1 0 0>;
f2c60e
+		pinctrl-names = "default";
f2c60e
+		pinctrl-0 = <&pinctrl_hummingboard2_usbh1_vbus>;
f2c60e
+		regulator-name = "usb_h1_vbus";
f2c60e
+		regulator-min-microvolt = <5000000>;
f2c60e
+		regulator-max-microvolt = <5000000>;
f2c60e
+	};
f2c60e
+
f2c60e
+	reg_usbotg_vbus: regulator-usb-otg-vbus {
f2c60e
+		compatible = "regulator-fixed";
f2c60e
+		enable-active-high;
f2c60e
+		gpio = <&gpio3 22 0>;
f2c60e
+		pinctrl-names = "default";
f2c60e
+		pinctrl-0 = <&pinctrl_hummingboard2_usbotg_vbus>;
f2c60e
+		regulator-name = "usb_otg_vbus";
f2c60e
+		regulator-min-microvolt = <5000000>;
f2c60e
+		regulator-max-microvolt = <5000000>;
f2c60e
+	};
f2c60e
+
f2c60e
+	reg_usbh2_vbus: regulator-usb-h2-vbus {
f2c60e
+		compatible = "regulator-gpio";
f2c60e
+		enable-active-high;
f2c60e
+		enable-gpio = <&gpio2 13 0>;
f2c60e
+		pinctrl-names = "default";
f2c60e
+		pinctrl-0 = <&pinctrl_hummingboard2_usbh2_vbus>;
f2c60e
+		regulator-name = "usb_h2_vbus";
f2c60e
+		regulator-min-microvolt = <5000000>;
f2c60e
+		regulator-max-microvolt = <5000000>;
f2c60e
+		regulator-boot-on;
f2c60e
+	};
f2c60e
+
f2c60e
+	reg_usbh3_vbus: regulator-usb-h3-vbus {
f2c60e
+		compatible = "regulator-gpio";
f2c60e
+		enable-active-high;
f2c60e
+		enable-gpio = <&gpio7 10 0>;
f2c60e
+		pinctrl-names = "default";
f2c60e
+		pinctrl-0 = <&pinctrl_hummingboard2_usbh3_vbus>;
f2c60e
+		regulator-name = "usb_h3_vbus";
f2c60e
+		regulator-min-microvolt = <5000000>;
f2c60e
+		regulator-max-microvolt = <5000000>;
f2c60e
+		regulator-boot-on;
f2c60e
+	};
f2c60e
+
f2c60e
+	sound-sgtl5000 {
f2c60e
+		audio-codec = <&sgtl5000>;
f2c60e
+		audio-routing =
f2c60e
+			"MIC_IN", "Mic Jack",
f2c60e
+			"Mic Jack", "Mic Bias",
f2c60e
+			"Headphone Jack", "HP_OUT";
f2c60e
+		compatible = "fsl,imx-audio-sgtl5000";
f2c60e
+		model = "On-board Codec";
f2c60e
+		mux-ext-port = <5>;
f2c60e
+		mux-int-port = <1>;
f2c60e
+		ssi-controller = <&ssi1>;
f2c60e
+	};
f2c60e
+};
f2c60e
+
f2c60e
+&audmux {
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&ecspi2 {
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_ecspi2>;
f2c60e
+	cs-gpios = <&gpio2 26 0>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&hdmi {
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_hdmi>;
f2c60e
+	ddc-i2c-bus = <&i2c2>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&i2c1 {
f2c60e
+	clock-frequency = <100000>;
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_i2c1>;
f2c60e
+	status = "okay";
f2c60e
+
f2c60e
+	pcf8523: rtc@68 {
f2c60e
+		compatible = "nxp,pcf8523";
f2c60e
+		reg = <0x68>;
f2c60e
+		nxp,12p5_pf;
f2c60e
+	};
f2c60e
+
f2c60e
+	sgtl5000: codec@0a {
f2c60e
+		clocks = <&clks IMX6QDL_CLK_CKO>;
f2c60e
+		compatible = "fsl,sgtl5000";
f2c60e
+		pinctrl-names = "default";
f2c60e
+		pinctrl-0 = <&pinctrl_hummingboard2_sgtl5000>;
f2c60e
+		reg = <0x0a>;
f2c60e
+		VDDA-supply = <&reg_3p3v>;
f2c60e
+		VDDIO-supply = <&reg_3p3v>;
f2c60e
+	};
f2c60e
+};
f2c60e
+
f2c60e
+&i2c2 {
f2c60e
+	clock-frequency = <100000>;
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_i2c2>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&i2c3 {
f2c60e
+	clock-frequency = <100000>;
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_i2c3>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&iomuxc {
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hog>;
f2c60e
+
f2c60e
+	hummingboard2 {
f2c60e
+		pinctrl_hog: hoggrp {
f2c60e
+		fsl,pins = <
f2c60e
+				/*
f2c60e
+				 * 36 pin headers GPIO description. The pins
f2c60e
+				 * numbering as following -
f2c60e
+				 *
f2c60e
+				 * 	3.2v	5v	74	75
f2c60e
+				 *	73	72	71	70
f2c60e
+				 *	69	68	67	66
f2c60e
+				 *
f2c60e
+				 *	77	78	79	76
f2c60e
+				 *	65	64	61	60
f2c60e
+				 *	53	52	51	50
f2c60e
+				 *	49	48	166	132
f2c60e
+				 *	95	94	90	91
f2c60e
+				 *	GND	54	24	204
f2c60e
+				 *
f2c60e
+				 * The GPIO numbers can be extracted using
f2c60e
+				 * signal name from below.
f2c60e
+				 * Example -
f2c60e
+				 * MX6QDL_PAD_EIM_DA10__GPIO3_IO10 is
f2c60e
+				 * GPIO(3,10) which is (3-1)*32+10 = gpio 74
f2c60e
+				 *
f2c60e
+				 * i.e. The mapping of GPIO(X,Y) to Linux gpio
f2c60e
+				 * number is : gpio number = (X-1) * 32 + Y
f2c60e
+				 */
f2c60e
+				/* DI1_PIN15 */
f2c60e
+				MX6QDL_PAD_EIM_DA10__GPIO3_IO10 0x400130b1
f2c60e
+				/* DI1_PIN02 */
f2c60e
+				MX6QDL_PAD_EIM_DA11__GPIO3_IO11 0x400130b1
f2c60e
+				/* DISP1_DATA00 */
f2c60e
+				MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x400130b1
f2c60e
+				/* DISP1_DATA01 */
f2c60e
+				MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x400130b1
f2c60e
+				/* DISP1_DATA02 */
f2c60e
+				MX6QDL_PAD_EIM_DA7__GPIO3_IO07 0x400130b1
f2c60e
+				/* DISP1_DATA03 */
f2c60e
+				MX6QDL_PAD_EIM_DA6__GPIO3_IO06 0x400130b1
f2c60e
+				/* DISP1_DATA04 */
f2c60e
+				MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x400130b1
f2c60e
+				/* DISP1_DATA05 */
f2c60e
+				MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x400130b1
f2c60e
+				/* DISP1_DATA06 */
f2c60e
+				MX6QDL_PAD_EIM_DA3__GPIO3_IO03 0x400130b1
f2c60e
+				/* DISP1_DATA07 */
f2c60e
+				MX6QDL_PAD_EIM_DA2__GPIO3_IO02 0x400130b1
f2c60e
+				/* DI1_D0_CS */
f2c60e
+				MX6QDL_PAD_EIM_DA13__GPIO3_IO13 0x400130b1
f2c60e
+				/* DI1_D1_CS */
f2c60e
+				MX6QDL_PAD_EIM_DA14__GPIO3_IO14 0x400130b1
f2c60e
+				/* DI1_PIN01 */
f2c60e
+				MX6QDL_PAD_EIM_DA15__GPIO3_IO15 0x400130b1
f2c60e
+				/* DI1_PIN03 */
f2c60e
+				MX6QDL_PAD_EIM_DA12__GPIO3_IO12 0x400130b1
f2c60e
+				/* DISP1_DATA08 */
f2c60e
+				MX6QDL_PAD_EIM_DA1__GPIO3_IO01 0x400130b1
f2c60e
+				/* DISP1_DATA09 */
f2c60e
+				MX6QDL_PAD_EIM_DA0__GPIO3_IO00 0x400130b1
f2c60e
+				/* DISP1_DATA10 */
f2c60e
+				MX6QDL_PAD_EIM_EB1__GPIO2_IO29 0x400130b1
f2c60e
+				/* DISP1_DATA11 */
f2c60e
+				MX6QDL_PAD_EIM_EB0__GPIO2_IO28 0x400130b1
f2c60e
+				/* DISP1_DATA12 */
f2c60e
+				MX6QDL_PAD_EIM_A17__GPIO2_IO21 0x400130b1
f2c60e
+				/* DISP1_DATA13 */
f2c60e
+				MX6QDL_PAD_EIM_A18__GPIO2_IO20 0x400130b1
f2c60e
+				/* DISP1_DATA14 */
f2c60e
+				MX6QDL_PAD_EIM_A19__GPIO2_IO19 0x400130b1
f2c60e
+				/* DISP1_DATA15 */
f2c60e
+				MX6QDL_PAD_EIM_A20__GPIO2_IO18 0x400130b1
f2c60e
+				/* DISP1_DATA16 */
f2c60e
+				MX6QDL_PAD_EIM_A21__GPIO2_IO17 0x400130b1
f2c60e
+				/* DISP1_DATA17 */
f2c60e
+				MX6QDL_PAD_EIM_A22__GPIO2_IO16 0x400130b1
f2c60e
+				/* DISP1_DATA18 */
f2c60e
+				MX6QDL_PAD_EIM_A23__GPIO6_IO06 0x400130b1
f2c60e
+				/* DISP1_DATA19 */
f2c60e
+				MX6QDL_PAD_EIM_A24__GPIO5_IO04 0x400130b1
f2c60e
+				/* DISP1_DATA20 */
f2c60e
+				MX6QDL_PAD_EIM_D31__GPIO3_IO31 0x400130b1
f2c60e
+				/* DISP1_DATA21 */
f2c60e
+				MX6QDL_PAD_EIM_D30__GPIO3_IO30 0x400130b1
f2c60e
+				/* DISP1_DATA22 */
f2c60e
+				MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x400130b1
f2c60e
+				/* DISP1_DATA23 */
f2c60e
+				MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x400130b1
f2c60e
+				/* DI1_DISP_CLK */
f2c60e
+				MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x400130b1
f2c60e
+				/* SPDIF_IN */
f2c60e
+				MX6QDL_PAD_ENET_RX_ER__GPIO1_IO24 0x400130b1
f2c60e
+				/* SPDIF_OUT */
f2c60e
+				MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x400130b1
f2c60e
+
f2c60e
+				/* MikroBUS GPIO pin number 10 */
f2c60e
+				MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_ecspi2: hummingboard2-ecspi2grp {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_EIM_OE__ECSPI2_MISO	0x100b1
f2c60e
+				MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI	0x100b1
f2c60e
+				MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK	0x100b1
f2c60e
+				MX6QDL_PAD_EIM_RW__GPIO2_IO26	0x000b1 /* CS */
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_gpio7_9: hummingboard2-gpio7_9 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_SD4_CMD__GPIO7_IO09 0x80000000
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_hdmi: hummingboard2-hdmi {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_i2c1: hummingboard2-i2c1 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
f2c60e
+				MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_i2c2: hummingboard2-i2c2 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
f2c60e
+				MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_i2c3: hummingboard2-i2c3 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
f2c60e
+				MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_mipi: hummingboard2_mipi {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x4001b8b1
f2c60e
+				MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x4001b8b1
f2c60e
+				MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x130b0
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_pcie_reset: hummingboard2-pcie-reset {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_SD4_DAT3__GPIO2_IO11 0x1b0b1
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_pwm1: pwm1grp {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_sgtl5000: hummingboard2-sgtl5000 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
f2c60e
+				MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0
f2c60e
+				MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0
f2c60e
+				MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0
f2c60e
+				MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usbh1_vbus: hummingboard2-usbh1-vbus {
f2c60e
+			fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usbh2_vbus: hummingboard2-usbh2-vbus {
f2c60e
+			fsl,pins = <MX6QDL_PAD_SD4_DAT5__GPIO2_IO13 0x1b0b0>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usbh3_vbus: hummingboard2-usbh3-vbus {
f2c60e
+			fsl,pins = <MX6QDL_PAD_SD4_CLK__GPIO7_IO10 0x1b0b0>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usbotg_id: hummingboard2-usbotg-id {
f2c60e
+			/*
f2c60e
+			 * Similar to pinctrl_usbotg_2, but we want it
f2c60e
+			 * pulled down for a fixed host connection.
f2c60e
+			 */
f2c60e
+			fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usbotg_vbus: hummingboard2-usbotg-vbus {
f2c60e
+			fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usdhc2_aux: hummingboard2-usdhc2-aux {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_GPIO_4__GPIO1_IO04    0x13071
f2c60e
+				MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
f2c60e
+				MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usdhc2: hummingboard2-usdhc2 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_SD2_CMD__SD2_CMD    0x17059
f2c60e
+				MX6QDL_PAD_SD2_CLK__SD2_CLK    0x10059
f2c60e
+				MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
f2c60e
+				MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
f2c60e
+				MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
f2c60e
+				MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usdhc2_100mhz: hummingboard2-usdhc2-100mhz {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_SD2_CMD__SD2_CMD    0x170b9
f2c60e
+				MX6QDL_PAD_SD2_CLK__SD2_CLK    0x100b9
f2c60e
+				MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170b9
f2c60e
+				MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170b9
f2c60e
+				MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170b9
f2c60e
+				MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x130b9
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usdhc2_200mhz: hummingboard2-usdhc2-200mhz {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_SD2_CMD__SD2_CMD    0x170f9
f2c60e
+				MX6QDL_PAD_SD2_CLK__SD2_CLK    0x100f9
f2c60e
+				MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170f9
f2c60e
+				MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170f9
f2c60e
+				MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170f9
f2c60e
+				MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x130f9
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_usdhc3: hummingboard2-usdhc3 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_SD3_CMD__SD3_CMD    0x17059
f2c60e
+				MX6QDL_PAD_SD3_CLK__SD3_CLK    0x10059
f2c60e
+				MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
f2c60e
+				MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
f2c60e
+				MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
f2c60e
+				MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
f2c60e
+				MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
f2c60e
+				MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
f2c60e
+				MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
f2c60e
+				MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
f2c60e
+				MX6QDL_PAD_SD3_RST__SD3_RESET  0x17059
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
+		pinctrl_hummingboard2_uart3: hummingboard2-uart3 {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_EIM_D25__UART3_TX_DATA	0x1b0b1
f2c60e
+				MX6QDL_PAD_EIM_D24__UART3_RX_DATA	0x40013000
f2c60e
+			>;
f2c60e
+		};
f2c60e
+	};
f2c60e
+};
f2c60e
+
f2c60e
+&ldb {
f2c60e
+	status = "disabled";
f2c60e
+
f2c60e
+	lvds-channel@0 {
f2c60e
+		fsl,data-mapping = "spwg";
f2c60e
+		fsl,data-width = <18>;
f2c60e
+	};
f2c60e
+};
f2c60e
+
f2c60e
+&pcie {
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_pcie_reset>;
f2c60e
+	reset-gpio = <&gpio2 11 0>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&pwm1 {
f2c60e
+        pinctrl-names = "default";
f2c60e
+        pinctrl-0 = <&pinctrl_hummingboard2_pwm1>;
f2c60e
+        status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&pwm3 {
f2c60e
+	status = "disabled";
f2c60e
+};
f2c60e
+
f2c60e
+&pwm4 {
f2c60e
+	status = "disabled";
f2c60e
+};
f2c60e
+
f2c60e
+&ssi1 {
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&usbh1 {
f2c60e
+	disable-over-current;
f2c60e
+	vbus-supply = <&reg_usbh1_vbus>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&usbotg {
f2c60e
+	disable-over-current;
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_usbotg_id>;
f2c60e
+	vbus-supply = <&reg_usbotg_vbus>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&usdhc2 {
f2c60e
+	pinctrl-names = "default", "state_100mhz", "state_200mhz";
f2c60e
+	pinctrl-0 = <
f2c60e
+		&pinctrl_hummingboard2_usdhc2_aux
f2c60e
+		&pinctrl_hummingboard2_usdhc2
f2c60e
+	>;
f2c60e
+	pinctrl-1 = <
f2c60e
+		&pinctrl_hummingboard2_usdhc2_aux
f2c60e
+		&pinctrl_hummingboard2_usdhc2_100mhz
f2c60e
+	>;
f2c60e
+	pinctrl-2 = <
f2c60e
+		&pinctrl_hummingboard2_usdhc2_aux
f2c60e
+		&pinctrl_hummingboard2_usdhc2_200mhz
f2c60e
+	>;
f2c60e
+	mmc-pwrseq = <&usdhc2_pwrseq>;
f2c60e
+	cd-gpios = <&gpio1 4 0>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&usdhc3 {
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <
f2c60e
+		&pinctrl_hummingboard2_usdhc3
f2c60e
+	>;
f2c60e
+	vmmc-supply = <&reg_3p3v>;
f2c60e
+	vqmmc-supply = <&reg_3p3v>;
f2c60e
+	bus-width = <8>;
f2c60e
+	non-removable;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
+
f2c60e
+&uart3 {
f2c60e
+	pinctrl-names = "default";
f2c60e
+	pinctrl-0 = <&pinctrl_hummingboard2_uart3>;
f2c60e
+	status = "okay";
f2c60e
+};
f2c60e
-- 
f2c60e
2.12.2
f2c60e
f2c60e
From 3da2a99c4a8f19e846b19071441d2c6b88e00c06 Mon Sep 17 00:00:00 2001
f2c60e
From: Russell King <rmk+kernel@arm.linux.org.uk>
f2c60e
Date: Fri, 13 Jan 2017 14:45:30 +0000
f2c60e
Subject: [PATCH 2/4] ARM: dts: imx6*-hummingboard2: fix SD card detect
f2c60e
f2c60e
Fix the SD card detect signal, which was missing the polarity
f2c60e
specification, and the pull-up necessary for proper signalling.
f2c60e
f2c60e
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
f2c60e
---
f2c60e
 arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi | 4 ++--
f2c60e
 1 file changed, 2 insertions(+), 2 deletions(-)
f2c60e
f2c60e
diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
index 11b63f6f2b89..734487edf200 100644
f2c60e
--- a/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
+++ b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
@@ -393,7 +393,7 @@
f2c60e
 
f2c60e
 		pinctrl_hummingboard2_usdhc2_aux: hummingboard2-usdhc2-aux {
f2c60e
 			fsl,pins = <
f2c60e
-				MX6QDL_PAD_GPIO_4__GPIO1_IO04    0x13071
f2c60e
+				MX6QDL_PAD_GPIO_4__GPIO1_IO04    0x1f071
f2c60e
 				MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
f2c60e
 				MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
f2c60e
 			>;
f2c60e
@@ -520,7 +520,7 @@
f2c60e
 		&pinctrl_hummingboard2_usdhc2_200mhz
f2c60e
 	>;
f2c60e
 	mmc-pwrseq = <&usdhc2_pwrseq>;
f2c60e
-	cd-gpios = <&gpio1 4 0>;
f2c60e
+	cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
f2c60e
 	status = "okay";
f2c60e
 };
f2c60e
 
f2c60e
-- 
f2c60e
2.12.2
f2c60e
f2c60e
From 57b0103b600a535a35e5ff9714649519a0b3a77a Mon Sep 17 00:00:00 2001
f2c60e
From: Russell King <rmk+kernel@armlinux.org.uk>
f2c60e
Date: Fri, 13 Jan 2017 14:45:35 +0000
f2c60e
Subject: [PATCH 3/4] ARM: dts: imx6*-hummingboard2: use proper gpio flags
f2c60e
 definitions
f2c60e
f2c60e
Use proper gpio flag definitions for GPIOs rather than using opaque
f2c60e
uninformative numbers.
f2c60e
f2c60e
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
f2c60e
---
f2c60e
 arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi | 10 +++++-----
f2c60e
 1 file changed, 5 insertions(+), 5 deletions(-)
f2c60e
f2c60e
diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
index 734487edf200..88aaed26dd77 100644
f2c60e
--- a/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
+++ b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
@@ -50,7 +50,7 @@
f2c60e
 
f2c60e
 	ir_recv: ir-receiver {
f2c60e
 		compatible = "gpio-ir-receiver";
f2c60e
-		gpios = <&gpio7 9 1>;
f2c60e
+		gpios = <&gpio7 9 GPIO_ACTIVE_LOW>;
f2c60e
 		pinctrl-names = "default";
f2c60e
 		pinctrl-0 = <&pinctrl_hummingboard2_gpio7_9>;
f2c60e
 		linux,rc-map-name = "rc-rc6-mce";
f2c60e
@@ -80,7 +80,7 @@
f2c60e
 	reg_usbh1_vbus: regulator-usb-h1-vbus {
f2c60e
 		compatible = "regulator-fixed";
f2c60e
 		enable-active-high;
f2c60e
-		gpio = <&gpio1 0 0>;
f2c60e
+		gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
f2c60e
 		pinctrl-names = "default";
f2c60e
 		pinctrl-0 = <&pinctrl_hummingboard2_usbh1_vbus>;
f2c60e
 		regulator-name = "usb_h1_vbus";
f2c60e
@@ -91,7 +91,7 @@
f2c60e
 	reg_usbotg_vbus: regulator-usb-otg-vbus {
f2c60e
 		compatible = "regulator-fixed";
f2c60e
 		enable-active-high;
f2c60e
-		gpio = <&gpio3 22 0>;
f2c60e
+		gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
f2c60e
 		pinctrl-names = "default";
f2c60e
 		pinctrl-0 = <&pinctrl_hummingboard2_usbotg_vbus>;
f2c60e
 		regulator-name = "usb_otg_vbus";
f2c60e
@@ -102,7 +102,7 @@
f2c60e
 	reg_usbh2_vbus: regulator-usb-h2-vbus {
f2c60e
 		compatible = "regulator-gpio";
f2c60e
 		enable-active-high;
f2c60e
-		enable-gpio = <&gpio2 13 0>;
f2c60e
+		enable-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
f2c60e
 		pinctrl-names = "default";
f2c60e
 		pinctrl-0 = <&pinctrl_hummingboard2_usbh2_vbus>;
f2c60e
 		regulator-name = "usb_h2_vbus";
f2c60e
@@ -114,7 +114,7 @@
f2c60e
 	reg_usbh3_vbus: regulator-usb-h3-vbus {
f2c60e
 		compatible = "regulator-gpio";
f2c60e
 		enable-active-high;
f2c60e
-		enable-gpio = <&gpio7 10 0>;
f2c60e
+		enable-gpio = <&gpio7 10 GPIO_ACTIVE_HIGH>;
f2c60e
 		pinctrl-names = "default";
f2c60e
 		pinctrl-0 = <&pinctrl_hummingboard2_usbh3_vbus>;
f2c60e
 		regulator-name = "usb_h3_vbus";
f2c60e
-- 
f2c60e
2.12.2
f2c60e
f2c60e
From f931de70370ff576f381cb9745bc54225a1a8056 Mon Sep 17 00:00:00 2001
f2c60e
From: Russell King <rmk+kernel@arm.linux.org.uk>
f2c60e
Date: Fri, 13 Jan 2017 14:45:40 +0000
f2c60e
Subject: [PATCH 4/4] ARM: dts: imx6*-hummingboard2: convert to more
f2c60e
 conventional vmmc-supply
f2c60e
f2c60e
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
f2c60e
---
f2c60e
 arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi | 26 +++++++++++++++++++-------
f2c60e
 1 file changed, 19 insertions(+), 7 deletions(-)
f2c60e
f2c60e
diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
index 88aaed26dd77..f19d30b34ac4 100644
f2c60e
--- a/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
+++ b/arch/arm/boot/dts/imx6qdl-hummingboard2.dtsi
f2c60e
@@ -56,11 +56,6 @@
f2c60e
 		linux,rc-map-name = "rc-rc6-mce";
f2c60e
 	};
f2c60e
 
f2c60e
-	usdhc2_pwrseq: usdhc2-pwrseq {
f2c60e
-		compatible = "mmc-pwrseq-simple";
f2c60e
-		reset-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
f2c60e
-	};
f2c60e
-
f2c60e
 	reg_3p3v: regulator-3p3v {
f2c60e
 		compatible = "regulator-fixed";
f2c60e
 		regulator-name = "3P3V";
f2c60e
@@ -123,6 +118,18 @@
f2c60e
 		regulator-boot-on;
f2c60e
 	};
f2c60e
 
f2c60e
+	reg_usdhc2_vmmc: reg-usdhc2-vmmc {
f2c60e
+		compatible = "regulator-fixed";
f2c60e
+		gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
f2c60e
+		pinctrl-names = "default";
f2c60e
+		pinctrl-0 = <&pinctrl_hummingboard2_vmmc>;
f2c60e
+		regulator-boot-on;
f2c60e
+		regulator-max-microvolt = <3300000>;
f2c60e
+		regulator-min-microvolt = <3300000>;
f2c60e
+		regulator-name = "usdhc2_vmmc";
f2c60e
+		startup-delay-us = <1000>;
f2c60e
+	};
f2c60e
+
f2c60e
 	sound-sgtl5000 {
f2c60e
 		audio-codec = <&sgtl5000>;
f2c60e
 		audio-routing =
f2c60e
@@ -393,7 +400,6 @@
f2c60e
 
f2c60e
 		pinctrl_hummingboard2_usdhc2_aux: hummingboard2-usdhc2-aux {
f2c60e
 			fsl,pins = <
f2c60e
-				MX6QDL_PAD_GPIO_4__GPIO1_IO04    0x1f071
f2c60e
 				MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
f2c60e
 				MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
f2c60e
 			>;
f2c60e
@@ -432,6 +438,12 @@
f2c60e
 			>;
f2c60e
 		};
f2c60e
 
f2c60e
+		pinctrl_hummingboard2_vmmc: hummingboard2-vmmc {
f2c60e
+			fsl,pins = <
f2c60e
+				MX6QDL_PAD_GPIO_4__GPIO1_IO04    0x1f071
f2c60e
+			>;
f2c60e
+		};
f2c60e
+
f2c60e
 		pinctrl_hummingboard2_usdhc3: hummingboard2-usdhc3 {
f2c60e
 			fsl,pins = <
f2c60e
 				MX6QDL_PAD_SD3_CMD__SD3_CMD    0x17059
f2c60e
@@ -519,7 +531,7 @@
f2c60e
 		&pinctrl_hummingboard2_usdhc2_aux
f2c60e
 		&pinctrl_hummingboard2_usdhc2_200mhz
f2c60e
 	>;
f2c60e
-	mmc-pwrseq = <&usdhc2_pwrseq>;
f2c60e
+	vmmc-supply = <&reg_usdhc2_vmmc>;
f2c60e
 	cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
f2c60e
 	status = "okay";
f2c60e
 };
f2c60e
-- 
f2c60e
2.12.2
f2c60e