From: Gary Bisson <gary.bisson@boundarydevices.com>
To: devicetree@vger.kernel.org
Cc: shawnguo@kernel.org, kernel@pengutronix.de, robh+dt@kernel.org,
fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Gary Bisson <gary.bisson@boundarydevices.com>
Subject: [PATCH 2/2] ARM: dts: imx6qdl-nitrogen6x: fix USB PHY reset
Date: Mon, 24 Jul 2017 10:50:05 +0200 [thread overview]
Message-ID: <20170724085005.22101-3-gary.bisson@boundarydevices.com> (raw)
In-Reply-To: <20170724085005.22101-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.
This is a workaround until a proper mechanism is provided to reset such
devices like the pwrseq library [1] for instance.
[1] https://lkml.org/lkml/2017/2/10/779
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 f22e5879340b..989376643cf6 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 {
@@ -515,6 +528,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
@@ -629,6 +648,7 @@
};
&usbh1 {
+ vbus-supply = <®_usb_h1_vbus>;
status = "okay";
};
--
2.11.0
next prev parent reply other threads:[~2017-07-24 8:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-24 8:50 [PATCH 0/2] ARM: dts: sabrelite/nitrogen6x: fix USB PHY reset Gary Bisson
2017-07-24 8:50 ` Gary Bisson [this message]
[not found] ` <20170724085005.22101-1-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2017-07-24 8:50 ` [PATCH 1/2] ARM: dts: imx6qdl-sabrelite: " Gary Bisson
[not found] ` <20170724085005.22101-2-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2017-07-24 12:49 ` Fabio Estevam
[not found] ` <CAOMZO5C2kzvT7UYw8Zw8ztr1w6_C=MjcFPgU1Wfgjrag=dVwbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-24 12:52 ` Gary Bisson
2017-07-24 12:59 ` [PATCH v2 0/2] ARM: dts: sabrelite/nitrogen6x: " Gary Bisson
[not found] ` <20170724125958.11939-1-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2017-07-24 12:59 ` [PATCH v2 1/2] ARM: dts: imx6qdl-sabrelite: " Gary Bisson
2017-07-24 13:03 ` Fabio Estevam
2017-07-24 12:59 ` [PATCH v2 2/2] ARM: dts: imx6qdl-nitrogen6x: " Gary Bisson
[not found] ` <20170724125958.11939-3-gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>
2017-07-24 13:04 ` Fabio Estevam
2017-07-26 2:39 ` [PATCH v2 0/2] ARM: dts: sabrelite/nitrogen6x: " 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=20170724085005.22101-3-gary.bisson@boundarydevices.com \
--to=gary.bisson@boundarydevices.com \
--cc=devicetree@vger.kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).