From: Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>
To: Philipp Zabel <philipp.zabel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb <linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v1 1/3] usb: phy: device-tree documentation for gpio-vbus
Date: Tue, 04 Nov 2014 22:27:09 +0100 [thread overview]
Message-ID: <87wq7a1wsy.fsf@free.fr> (raw)
In-Reply-To: <CA+gwMcco4-aOHd4tQRFkUts+C9G5+ymxEhGXYB_FaeuBLQSBrw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> (Philipp Zabel's message of "Tue, 4 Nov 2014 09:20:55 +0100")
Philipp Zabel <philipp.zabel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hi Robert,
>
> On Sun, Nov 2, 2014 at 7:11 PM, Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org> wrote:
> Maybe duplicate the comment from the driver here how his is about
> B peripheral only devices
Yeah sure, for v2.
>> +Required properties:
>> +- compatible : should be "generic,phy-gpio-vbus"
>
> I'm not sure about the compatible value. I have not seen the "generic,"
> vendor prefix, and all the other generic gpio-something bindings don't
> use any prefix: "gpio-gate-clock", "gpio-leds", "gpio-beeper",
> "pps-gpio", etc.
Okay, so we'll probably end up on "phy-gpio-vbus" then.
>> +- #phy-cells : from the generic PHY bindings, must be 1.
>> +- gpios : set of 2 gpio properties (see gpio.txt for gpio properties format)
>> + first gpio is required, it's the VBus sensing input gpio
>> + second gpio is optional, it's the D+ pullup controlling output
>> + gpio
>> +
>> +Optional properties:
>> +- wakeup : boolean, if true the VBus gpio will wakeup the platform
>
> The vbus_draw regulator should be part of this binding, I think.
Indeed. It should be optional, right ? Schedules for v2.
>> +Example:
>> + usb2phy : gpio-vbus@13 {
>> + compatible = "generic,phy-gpio-vbus";
>> + gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
>> + wakeup;
>
> This on the other hand might be too generic.
> I'd like to see just wakeup used here, but the other bindings prefix
> "linux," (or "gpio-key,").
If I write this, would you change to better suit you ?
usb2phy : gpio-vbus@13 {
compatible = "phy-gpio-vbus";
regulator-vbus: regulator@0 {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
vbus-gpio = <&gpio 13 GPIO_ACTIVE_LOW>;
wakeup;
};
Cheers.
--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-11-04 21:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-02 18:11 [PATCH v1 1/3] usb: phy: device-tree documentation for gpio-vbus Robert Jarzmik
[not found] ` <1414951910-16075-1-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2014-11-02 18:11 ` [PATCH v1 2/3] usb: phy: convert gpio-vbus to gpio_desc Robert Jarzmik
[not found] ` <1414951910-16075-2-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2014-11-04 8:01 ` Philipp Zabel
2014-11-05 19:29 ` Felipe Balbi
2014-11-05 19:46 ` Robert Jarzmik
[not found] ` <87sihx1lcd.fsf-GANU6spQydw@public.gmane.org>
2014-11-05 19:50 ` Felipe Balbi
2014-11-05 20:02 ` Robert Jarzmik
[not found] ` <87oasl1kn7.fsf-GANU6spQydw@public.gmane.org>
2014-11-05 20:09 ` Felipe Balbi
2014-11-08 17:45 ` Robert Jarzmik
[not found] ` <87a941wppk.fsf-GANU6spQydw@public.gmane.org>
2014-11-08 18:06 ` Felipe Balbi
2014-11-02 18:11 ` [PATCH v1 3/3] usb: phy: add device-tree support for gpio-vbus Robert Jarzmik
[not found] ` <1414951910-16075-3-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2014-11-04 8:28 ` Philipp Zabel
2014-11-05 19:31 ` Felipe Balbi
2014-11-04 8:20 ` [PATCH v1 1/3] usb: phy: device-tree documentation " Philipp Zabel
[not found] ` <CA+gwMcco4-aOHd4tQRFkUts+C9G5+ymxEhGXYB_FaeuBLQSBrw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-04 21:27 ` Robert Jarzmik [this message]
2014-11-05 12:59 ` Sergei Shtylyov
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=87wq7a1wsy.fsf@free.fr \
--to=robert.jarzmik-ganu6spqydw@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=philipp.zabel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.