All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Simon Horman <horms@verge.net.au>,
	Magnus Damm <magnus.damm@gmail.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Subject: Re: [PATCH 09/18] arm64: dts: ulcb-kf: enable USB2 PHY of channel 0
Date: Fri, 6 Oct 2017 20:28:52 +0300	[thread overview]
Message-ID: <1c5fc090-af98-0041-be8b-b06dc81d4670@cogentembedded.com> (raw)
In-Reply-To: <CAMuHMdXL1P5vhoBU9W+S1qX8maXLRmyg88cjgbYpCGZSQ1FBtQ@mail.gmail.com>

Hi Geert,

On 06.10.2017 10:15, Geert Uytterhoeven wrote:
> Hi Vladimir,
>
> CC Shimoda-san
>
> On Fri, Oct 6, 2017 at 4:38 AM, Vladimir Barinov
> <vladimir.barinov@cogentembedded.com> wrote:
>> On 20.09.2017 15:59, Geert Uytterhoeven wrote:
>>> On Thu, Sep 7, 2017 at 12:36 AM, Vladimir Barinov
>>> <vladimir.barinov@cogentembedded.com> wrote:
>>>> This supports USB2 PHY channel #0 on ULCB Kingfisher board
>>>>
>>>> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
>>> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
>>>
>>>> index ca8de1a..0854600 100644
>>>> --- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
>>>> +++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
>>>> @@ -60,6 +60,11 @@
>>>>                   groups = "scif1_data_b";
>>>>                   function = "scif1";
>>>>           };
>>>> +
>>>> +       usb0_pins: usb0 {
>>>> +               groups = "usb0";
>>>> +               function = "usb0";
>>>> +       };
>>>>    };
>>>>
>>>>    &scif1 {
>>>> @@ -68,3 +73,10 @@
>>>>
>>>>           status = "okay";
>>>>    };
>>>> +
>>>> +&usb2_phy0 {
>>>> +       pinctrl-0 = <&usb0_pins>;
>>>> +       pinctrl-names = "default";
>>>> +
>>> Don't you need
>>>
>>>       vbus-supply = <&vbus0_usb2>;
>>>
>>> with vbus0_usb2 a fixed regulator controlled by GPIO P11 (OTG_EXTLPn) from
>>> GPIO expander U11 (TCA9539)?
>>> May be optional, though. salvator-common.dtsi has it.
>> Yes, I need this gpio.
>> I need both OTG_EXTLPn and OTG_OFFVBUSn from the same gpio expander.
>>
>> I've been considering to use either vbus-supply + gpio hog or use gpio hog
>> for both of them for consistency.
>> What do you think about this?
> For OTG_EXTLPn you don't really need a hog, as it will be controlled by the
> USB driver/subsystem, like on Salvator-X(S), right?
Agreed.
>
> For OTG_OFFVBUSn, which is (optionally) driven from USB0_PWEN on
> Salvator-X(S) I don't know if you need a GPIO hog or not. I have to defer your
> question to Shimoda-san.
This pin should be tied permanently low to disable internal MAX3355 
internal VBUS charge pump.
Hence probably gpio hog is enough for OTG_OFFVBUSn.

KF has dedicated VBUS power supply controlled by USB0_PWEN.


-- 
Regards,
Vladimir

  reply	other threads:[~2017-10-06 17:28 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-06 22:34 [PATCH 0/18] arm64: renesas: add ULCB Kingfisher board Vladimir Barinov
2017-09-06 22:34 ` Vladimir Barinov
2017-09-06 22:35 ` [PATCH 02/18] dt: arm: shmobile: add H3ULCB Kingfisher board DT bindings Vladimir Barinov
2017-09-06 22:35 ` [PATCH 03/18] arm64: dts: ulcb-kf: initial device tree Vladimir Barinov
     [not found]   ` <1504737322-22954-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2017-09-20 12:20     ` Geert Uytterhoeven
2017-09-20 12:20       ` Geert Uytterhoeven
2017-09-20 14:43       ` Vladimir Barinov
2017-09-06 22:35 ` [PATCH 05/18] arm64: dts: h3ulcb-kf: ES1.x SoC " Vladimir Barinov
2017-09-06 22:35 ` [PATCH 06/18] arm64: dts: h3ulcb-kf: ES2.0+ " Vladimir Barinov
2017-09-06 22:36 ` [PATCH 08/18] arm64: dts: ulcb-kf: enable CAN0/1 Vladimir Barinov
2017-09-07  9:50   ` Sergei Shtylyov
2017-09-06 22:36 ` [PATCH 10/18] arm64: dts: ulcb-kf: enable HSUSB Vladimir Barinov
2017-09-20 12:51   ` Geert Uytterhoeven
     [not found]     ` <CAMuHMdVVCBUgOrFrTQgVpwkShr8SgE9C7agEov5u5PE2F=h8ng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-09  7:17       ` Simon Horman
2017-10-09  7:17         ` Simon Horman
     [not found] ` <1504737267-22829-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2017-09-06 22:35   ` [PATCH 01/18] dt: arm: shmobile: add M3ULCB Kingfisher board DT bindings Vladimir Barinov
2017-09-06 22:35     ` Vladimir Barinov
2017-09-07 10:58     ` Geert Uytterhoeven
     [not found]       ` <CAMuHMdUi9THE7nTd54C22K6kOo_Ye5LkhTrRZPNfcHfWCiBsUQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-08  7:05         ` Vladimir Barinov
2017-09-08  7:05           ` Vladimir Barinov
2017-09-06 22:35   ` [PATCH 04/18] arm64: dts: m3ulcb-kf: initial device tree Vladimir Barinov
2017-09-06 22:35     ` Vladimir Barinov
2017-09-06 22:35   ` [PATCH 07/18] arm64: dts: ulcb-kf: enable SCIF1 Vladimir Barinov
2017-09-06 22:35     ` Vladimir Barinov
     [not found]     ` <1504737358-23113-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2017-09-20 12:40       ` Geert Uytterhoeven
2017-09-20 12:40         ` Geert Uytterhoeven
2017-09-06 22:36   ` [PATCH 09/18] arm64: dts: ulcb-kf: enable USB2 PHY of channel 0 Vladimir Barinov
2017-09-06 22:36     ` Vladimir Barinov
     [not found]     ` <1504737377-23191-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2017-09-20 12:59       ` Geert Uytterhoeven
2017-09-20 12:59         ` Geert Uytterhoeven
2017-10-06  2:38         ` Vladimir Barinov
2017-10-06  7:15           ` Geert Uytterhoeven
2017-10-06 17:28             ` Vladimir Barinov [this message]
     [not found]               ` <1c5fc090-af98-0041-be8b-b06dc81d4670-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2017-10-09  7:17                 ` Simon Horman
2017-10-09  7:17                   ` Simon Horman
2017-10-12 11:41                 ` Yoshihiro Shimoda
2017-10-12 11:41                   ` Yoshihiro Shimoda
2017-10-12 12:27                   ` Geert Uytterhoeven
2017-09-06 22:36   ` [PATCH 11/18] arm64: dts: ulcb-kf: enable USB2.0 Host " Vladimir Barinov
2017-09-06 22:36     ` Vladimir Barinov
2017-09-20 12:52     ` Geert Uytterhoeven
     [not found]       ` <CAMuHMdW9e-hSEHDbN9PNjLQHYdoXy6jFF=PgbCFb0neN_0Ho2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-09  7:17         ` Simon Horman
2017-10-09  7:17           ` Simon Horman
2017-09-06 22:36   ` [PATCH 12/18] arm64: dts: ulcb-kf: enable PCIE0/1 Vladimir Barinov
2017-09-06 22:36     ` Vladimir Barinov
2017-09-20 13:06     ` Geert Uytterhoeven
2017-09-06 22:36   ` [PATCH 14/18] arm64: dts: ulcb-kf: enable PCA9539 on I2C2 Vladimir Barinov
2017-09-06 22:36     ` Vladimir Barinov
2017-09-07 10:49     ` Geert Uytterhoeven
2017-09-06 22:37   ` [PATCH 16/18] arm64: dts: ulcb-kf: enable PCA9548 " Vladimir Barinov
2017-09-06 22:37     ` Vladimir Barinov
2017-09-07 10:37     ` Geert Uytterhoeven
2017-09-06 22:36 ` [PATCH 13/18] arm64: dts: ulcb-kf: enable USB3.0 Host Vladimir Barinov
2017-09-20 13:07   ` Geert Uytterhoeven
2017-10-09  7:16     ` Simon Horman
2017-09-06 22:37 ` [PATCH 15/18] arm64: dts: ulcb-kf: enable PCA9539 on I2C4 Vladimir Barinov
2017-09-07 10:50   ` Geert Uytterhoeven
2017-09-06 22:37 ` [PATCH 17/18] arm64: dts: ulcb-kf: enable PCA9548 " Vladimir Barinov
     [not found]   ` <1504737438-23504-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2017-09-07 10:51     ` Geert Uytterhoeven
2017-09-07 10:51       ` Geert Uytterhoeven
2017-09-06 22:37 ` [PATCH 18/18] arm64: dts: ulcb-kf: hog USB3 hub control gpios Vladimir Barinov
     [not found]   ` <1504737444-23544-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2017-09-20 13:50     ` Geert Uytterhoeven
2017-09-20 13:50       ` Geert Uytterhoeven
     [not found]       ` <CAMuHMdUqvdQZXrsf_p0rTUfKicvWBNPjk+Dt-ke_tSwmU1O=7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-09  7:15         ` Simon Horman
2017-10-09  7:15           ` Simon Horman
2017-09-06 22:45 ` [PATCH 0/18] arm64: renesas: add ULCB Kingfisher board Vladimir Barinov

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=1c5fc090-af98-0041-be8b-b06dc81d4670@cogentembedded.com \
    --to=vladimir.barinov@cogentembedded.com \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=horms@verge.net.au \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=will.deacon@arm.com \
    --cc=yoshihiro.shimoda.uh@renesas.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.