All of lore.kernel.org
 help / color / mirror / Atom feed
From: Enric Balletbo Serra <eballetbo@gmail.com>
To: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Cc: Benoit Cousson <bcousson@baylibre.com>,
	Tony Lindgren <tony@atomide.com>, Roger Quadros <rogerq@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 2/3] ARM: dts: omap3-igep0020: Add HS USB Host support
Date: Sun, 6 Oct 2013 12:27:47 +0200	[thread overview]
Message-ID: <CAFqH_53V-nsOMQH8UxrCqoBG8jeOEqthHWT+6gJURphEnxmWKg@mail.gmail.com> (raw)
In-Reply-To: <1380931479-16142-3-git-send-email-javier.martinez@collabora.co.uk>

Hi,

2013/10/5 Javier Martinez Canillas <javier.martinez@collabora.co.uk>:
> Add device nodes for the HS USB Host port 1, USB PHY and its
> required regulator and also pin mux setup for HS USB1 pins.
>
> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> ---
>  arch/arm/boot/dts/omap3-igep.dtsi    | 22 ++++++++++++++++++++++
>  arch/arm/boot/dts/omap3-igep0020.dts | 25 +++++++++++++++++++++++++
>  2 files changed, 47 insertions(+)
>
> diff --git a/arch/arm/boot/dts/omap3-igep.dtsi b/arch/arm/boot/dts/omap3-igep.dtsi
> index 0f92224..ec2ecd2 100644
> --- a/arch/arm/boot/dts/omap3-igep.dtsi
> +++ b/arch/arm/boot/dts/omap3-igep.dtsi
> @@ -27,6 +27,11 @@
>  };
>
>  &omap3_pmx_core {
> +       pinctrl-names = "default";
> +       pinctrl-0 = <
> +               &hsusbb1_pins
> +       >;
> +
>         uart1_pins: pinmux_uart1_pins {
>                 pinctrl-single,pins = <
>                         0x152 (PIN_INPUT | MUX_MODE0)           /* uart1_rx.uart1_rx */
> @@ -78,6 +83,23 @@
>                 >;
>         };
>
> +       hsusbb1_pins: pinmux_hsusbb1_pins {
> +               pinctrl-single,pins = <
> +                       0x5aa (PIN_OUTPUT | MUX_MODE3)          /* etk_ctl.hsusb1_clk */
> +                       0x5a8 (PIN_OUTPUT | MUX_MODE3)          /* etk_clk.hsusb1_stp */
> +                       0x5bc (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d8.hsusb1_dir */
> +                       0x5be (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d9.hsusb1_nxt */
> +                       0x5ac (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d0.hsusb1_data0 */
> +                       0x5ae (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d1.hsusb1_data1 */
> +                       0x5b0 (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d2.hsusb1_data2 */
> +                       0x5b2 (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d3.hsusb1_data7 */
> +                       0x5b4 (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d4.hsusb1_data4 */
> +                       0x5b6 (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d5.hsusb1_data5 */
> +                       0x5b8 (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d6.hsusb1_data6 */
> +                       0x5ba (PIN_INPUT_PULLDOWN | MUX_MODE3)  /* etk_d7.hsusb1_data3 */
> +               >;
> +       };
> +
>         leds_pins: pinmux_leds_pins { };
>  };
>
> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
> index 903e944..180b186 100644
> --- a/arch/arm/boot/dts/omap3-igep0020.dts
> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
> @@ -55,6 +55,23 @@
>                 regulator-name = "vdd33a";
>                 regulator-always-on;
>         };
> +
> +       /* HS USB Port 1 Power */
> +       hsusb1_power: hsusb1_power_reg {
> +               compatible = "regulator-fixed";
> +               regulator-name = "hsusb1_vbus";
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +               gpio = <&twl_gpio 18 GPIO_ACTIVE_LOW>;  /* GPIO LEDA */
> +               startup-delay-us = <70000>;
> +       };
> +
> +       /* HS USB Host PHY on PORT 1 */
> +       hsusb1_phy: hsusb1_phy {
> +               compatible = "usb-nop-xceiv";
> +               reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; /* gpio_24 */
> +               vcc-supply = <&hsusb1_power>;
> +       };
>  };
>
>  &leds_pins {
> @@ -173,3 +190,11 @@
>         mode = <3>;
>         power = <50>;
>  };
> +
> +&usbhshost {
> +       port1-mode = "ehci-phy";
> +};
> +
> +&usbhsehci {
> +       phys = <&hsusb1_phy>;
> +};
> --
> 1.8.4.rc3
>

Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>

  reply	other threads:[~2013-10-06 10:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-05  0:04 [PATCH 0/3] ARM: dts: omap3-igep0020: improvements for v3.13 Javier Martinez Canillas
2013-10-05  0:04 ` [PATCH 1/3] ARM: dts: omap3-igep0020: Add USB OTG support Javier Martinez Canillas
2013-10-06 10:26   ` Enric Balletbo Serra
2013-10-07 10:43   ` Roger Quadros
2013-10-07 11:54     ` Javier Martinez Canillas
2013-10-07 11:58       ` Benoit Cousson
2013-10-07 12:02         ` Javier Martinez Canillas
2013-10-07 12:09           ` Benoit Cousson
2013-10-07 16:05             ` Javier Martinez Canillas
2013-10-05  0:04 ` [PATCH 2/3] ARM: dts: omap3-igep0020: Add HS USB Host support Javier Martinez Canillas
2013-10-06 10:27   ` Enric Balletbo Serra [this message]
2013-10-07  8:33   ` Roger Quadros
2013-10-07  8:50     ` Javier Martinez Canillas
     [not found]       ` <525275C8.2050208-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
2013-10-07  9:06         ` Roger Quadros
2013-10-07  9:13           ` Javier Martinez Canillas
2013-10-07 10:22             ` Javier Martinez Canillas
2013-10-07 10:42               ` Roger Quadros
2013-10-07 11:53                 ` Javier Martinez Canillas
2013-10-05  0:04 ` [PATCH 3/3] ARM: dts: omap3-igep0020: use standard constant for IRQ flags Javier Martinez Canillas

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=CAFqH_53V-nsOMQH8UxrCqoBG8jeOEqthHWT+6gJURphEnxmWKg@mail.gmail.com \
    --to=eballetbo@gmail.com \
    --cc=bcousson@baylibre.com \
    --cc=javier.martinez@collabora.co.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=rogerq@ti.com \
    --cc=tony@atomide.com \
    /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.