All of lore.kernel.org
 help / color / mirror / Atom feed
From: gary.bisson@boundarydevices.com (Gary Bisson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/5] ARM: dts: imx6qdl-nitrogen6x: add missing USB PHY reset control
Date: Tue, 25 Oct 2016 23:19:55 +0200	[thread overview]
Message-ID: <20161025211955.5345-6-gary.bisson@boundarydevices.com> (raw)
In-Reply-To: <20161025211955.5345-1-gary.bisson@boundarydevices.com>

Declared as a regulator since the driver doesn't have a reset-gpios
property for this.

This ensures that the PHY is woken up, not depending on the state the
second stage bootloader leaves the pin.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
index c7016b2..d471ced 100644
--- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
@@ -108,6 +108,19 @@
 			startup-delay-us = <70000>;
 			enable-active-high;
 		};
+
+		reg_usb_h1_vbus: regulator at 5 {
+			compatible = "regulator-fixed";
+			reg = <5>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&pinctrl_usbh1>;
+			regulator-name = "usb_h1_vbus";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>;
+			enable-active-high;
+			regulator-always-on;
+		};
 	};
 
 	gpio-keys {
@@ -516,6 +529,12 @@
 			>;
 		};
 
+		pinctrl_usbh1: usbh1grp {
+			fsl,pins = <
+				MX6QDL_PAD_GPIO_17__GPIO7_IO12		0x030b0
+			>;
+		};
+
 		pinctrl_usbotg: usbotggrp {
 			fsl,pins = <
 				MX6QDL_PAD_GPIO_1__USB_OTG_ID	0x17059
@@ -633,6 +652,7 @@
 };
 
 &usbh1 {
+	vbus-supply = <&reg_usb_h1_vbus>;
 	status = "okay";
 };
 
-- 
2.9.3

WARNING: multiple messages have this Message-ID (diff)
From: Gary Bisson <gary.bisson@boundarydevices.com>
To: devicetree@vger.kernel.org
Cc: fabio.estevam@freescale.com, linux@arm.linux.org.uk,
	Gary Bisson <gary.bisson@boundarydevices.com>,
	robh+dt@kernel.org, kernel@pengutronix.de, shawnguo@kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/5] ARM: dts: imx6qdl-nitrogen6x: add missing USB PHY reset control
Date: Tue, 25 Oct 2016 23:19:55 +0200	[thread overview]
Message-ID: <20161025211955.5345-6-gary.bisson@boundarydevices.com> (raw)
In-Reply-To: <20161025211955.5345-1-gary.bisson@boundarydevices.com>

Declared as a regulator since the driver doesn't have a reset-gpios
property for this.

This ensures that the PHY is woken up, not depending on the state the
second stage bootloader leaves the pin.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
index c7016b2..d471ced 100644
--- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
@@ -108,6 +108,19 @@
 			startup-delay-us = <70000>;
 			enable-active-high;
 		};
+
+		reg_usb_h1_vbus: regulator@5 {
+			compatible = "regulator-fixed";
+			reg = <5>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&pinctrl_usbh1>;
+			regulator-name = "usb_h1_vbus";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>;
+			enable-active-high;
+			regulator-always-on;
+		};
 	};
 
 	gpio-keys {
@@ -516,6 +529,12 @@
 			>;
 		};
 
+		pinctrl_usbh1: usbh1grp {
+			fsl,pins = <
+				MX6QDL_PAD_GPIO_17__GPIO7_IO12		0x030b0
+			>;
+		};
+
 		pinctrl_usbotg: usbotggrp {
 			fsl,pins = <
 				MX6QDL_PAD_GPIO_1__USB_OTG_ID	0x17059
@@ -633,6 +652,7 @@
 };
 
 &usbh1 {
+	vbus-supply = <&reg_usb_h1_vbus>;
 	status = "okay";
 };
 
-- 
2.9.3

  parent reply	other threads:[~2016-10-25 21:19 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 21:19 [PATCH 0/5] ARM: dts: imx: update Boundary Devices boards support Gary Bisson
2016-10-25 21:19 ` Gary Bisson
2016-10-25 21:19 ` [PATCH 1/5] ARM: dts: imx: add Boundary Devices Nitrogen6_SOM2 support Gary Bisson
2016-10-25 21:19   ` Gary Bisson
2016-11-01 14:13   ` Shawn Guo
2016-11-01 14:13     ` Shawn Guo
2016-11-01 14:54     ` Gary Bisson
2016-11-01 14:54       ` Gary Bisson
2016-11-02  7:35       ` Shawn Guo
2016-11-02  7:35         ` Shawn Guo
2016-10-25 21:19 ` [PATCH 2/5] ARM: dts: imx6qdl-sabrelite: rename panel nodes Gary Bisson
2016-10-25 21:19   ` Gary Bisson
2016-10-25 21:19 ` [PATCH 3/5] ARM: dts: imx6qdl-sabrelite: add missing USB PHY reset control Gary Bisson
2016-10-25 21:19   ` Gary Bisson
2016-10-25 21:28   ` Fabio Estevam
2016-10-25 21:28     ` Fabio Estevam
2016-10-25 21:53     ` Gary Bisson
2016-10-25 21:53       ` Gary Bisson
2016-11-01 14:17       ` Shawn Guo
2016-11-01 14:17         ` Shawn Guo
2016-10-25 21:19 ` [PATCH 4/5] ARM: dts: imx6qdl-nitrogen6x: rename panel nodes Gary Bisson
2016-10-25 21:19   ` Gary Bisson
2016-10-25 21:19 ` Gary Bisson [this message]
2016-10-25 21:19   ` [PATCH 5/5] ARM: dts: imx6qdl-nitrogen6x: add missing USB PHY reset control Gary Bisson
2016-11-01 17:10 ` [PATCH v2 0/5] ARM: dts: imx: update Boundary Devices boards support Gary Bisson
2016-11-01 17:10   ` Gary Bisson
2016-11-01 17:10   ` [PATCH v2 1/5] ARM: dts: imx: add Boundary Devices Nitrogen6_SOM2 support Gary Bisson
2016-11-01 17:10     ` Gary Bisson
2016-11-01 17:10   ` [PATCH v2 2/5] ARM: dts: imx6qdl-sabrelite: use hyphens for nodes name Gary Bisson
2016-11-01 17:10     ` Gary Bisson
2016-11-01 17:10   ` [PATCH v2 3/5] ARM: dts: imx6qdl-nitrogen6x: " Gary Bisson
2016-11-01 17:10     ` Gary Bisson
2016-11-01 17:10   ` [PATCH v2 4/5] ARM: dts: imx6qdl-nit6xlite: " Gary Bisson
2016-11-01 17:10     ` Gary Bisson
2016-11-01 17:10   ` [PATCH v2 5/5] ARM: dts: imx6qdl-nitrogen6_max: " Gary Bisson
2016-11-01 17:10     ` Gary Bisson
2016-11-02  7:40   ` [PATCH v2 0/5] ARM: dts: imx: update Boundary Devices boards support Shawn Guo
2016-11-02  7:40     ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161025211955.5345-6-gary.bisson@boundarydevices.com \
    --to=gary.bisson@boundarydevices.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.