devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com>
To: Rob Herring <robh+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>
Cc: Device Tree Mailing List <devicetree@vger.kernel.org>,
	Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 3/4] arm64: dts: imx8mm-venice-gw7901: add support for USB hub subload
Date: Sat, 24 Jul 2021 11:21:01 -0700	[thread overview]
Message-ID: <CAJ+vNU1ORho1WJuTX0Rp_FrZJpenWpUcwSQZ2wWwVU2JuqLsYw@mail.gmail.com> (raw)
In-Reply-To: <20210601174917.1979-3-tharvey@gateworks.com>

On Tue, Jun 1, 2021 at 10:49 AM Tim Harvey <tharvey@gateworks.com> wrote:
>
> The USB hub has it's reset as GPIO4_IO17 but can be sub-loaded and
> VBUS provided by a VBUS regulator with GPIO4_IO2 as the enable and
> GPIO1_IO15 as the active-low over-current.
>
> Enable pull-up for GPIO4_IO17 to keep hub out of reset and move VBUS
> enable to GPIO4_IO2. Additionally enable pull-up on GPIO1_IO15 so that
> if the hub is loaded it never over-currents.
>
> This allows USB to work in both configurations without a device-tree
> change.
>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
>  arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
> index 5a1e9df39bec..db43ee28bdb6 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
> @@ -216,7 +216,7 @@
>                 pinctrl-0 = <&pinctrl_reg_usb2>;
>                 compatible = "regulator-fixed";
>                 regulator-name = "usb_usb2_vbus";
> -               gpio = <&gpio4 17 GPIO_ACTIVE_HIGH>;
> +               gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>;
>                 enable-active-high;
>                 regulator-min-microvolt = <5000000>;
>                 regulator-max-microvolt = <5000000>;
> @@ -824,8 +824,9 @@
>
>         pinctrl_reg_usb2: regusb1grp {
>                 fsl,pins = <
> -                       MX8MM_IOMUXC_SAI1_TXD5_GPIO4_IO17       0x41
> -                       MX8MM_IOMUXC_GPIO1_IO15_USB2_OTG_OC     0x41
> +                       MX8MM_IOMUXC_SAI1_RXD0_GPIO4_IO2        0x41
> +                       MX8MM_IOMUXC_SAI1_TXD5_GPIO4_IO17       0x140
> +                       MX8MM_IOMUXC_GPIO1_IO15_USB2_OTG_OC     0x140
>                 >;
>         };
>
> --
> 2.17.1
>

Shawn,

Is there anything you want changed here?

Best regards,

Tim

  reply	other threads:[~2021-07-24 18:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 17:49 [PATCH 1/4] arm64: dts: imx8mm-venice-gw700x: override thermal cfg for industrial temp Tim Harvey
2021-06-01 17:49 ` [PATCH 2/4] arm64: dts: imx8mm-venice-gw700x: fix mp5416 pmic config Tim Harvey
2021-07-24 18:19   ` Tim Harvey
2021-07-26  1:01     ` Shawn Guo
2021-07-27 16:05       ` Tim Harvey
2021-06-01 17:49 ` [PATCH 3/4] arm64: dts: imx8mm-venice-gw7901: add support for USB hub subload Tim Harvey
2021-07-24 18:21   ` Tim Harvey [this message]
2021-06-01 17:49 ` [PATCH 4/4] arm64: dts: imx8mm-venice-gw7901: enable pull-down on gpio outputs Tim Harvey
2021-07-24 18:19   ` Tim Harvey
2021-06-02  7:10 ` [PATCH 1/4] arm64: dts: imx8mm-venice-gw700x: override thermal cfg for industrial temp Frieder Schrempf
2021-06-04 15:42   ` Tim Harvey
2021-06-07  7:20     ` Frieder Schrempf
2021-06-07  7:30       ` Jacky Bai
2021-06-07  7:53         ` Frieder Schrempf
2021-06-07  8:00           ` Jacky Bai
2021-06-07  8:34             ` Frieder Schrempf
2021-06-11 18:55               ` Tim Harvey
2021-06-29  7:48                 ` Frieder Schrempf

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=CAJ+vNU1ORho1WJuTX0Rp_FrZJpenWpUcwSQZ2wWwVU2JuqLsYw@mail.gmail.com \
    --to=tharvey@gateworks.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --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).