From: Stephen Warren <swarren@wwwdotorg.org>
To: Venu Byravarasu <vbyravarasu@nvidia.com>
Cc: gregkh@linuxfoundation.org, balbi@ti.com,
stern@rowland.harvard.edu, linux-tegra@vger.kernel.org,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/7] ARM: tegra: update device trees for USB binding rework
Date: Wed, 03 Apr 2013 13:16:52 -0600 [thread overview]
Message-ID: <515C8024.30204@wwwdotorg.org> (raw)
In-Reply-To: <1364978502-22887-3-git-send-email-vbyravarasu@nvidia.com>
On 04/03/2013 02:41 AM, Venu Byravarasu wrote:
> This patch updates all Tegra board files so that they contain all the
> properties required by the updated USB DT binding. Note that this patch
> only adds the new properties and does not yet remove the old properties,
> in order to maintain bisectability. The old properties will be removed
> once the driver has been updated to assume the new bindings.
The binding documentation says that the vbus-supply property is required
in all cases. However, many of the DT files still don't have that
property even after this patch. That's inconsistent.
> diff --git a/arch/arm/boot/dts/tegra20-iris-512.dts b/arch/arm/boot/dts/tegra20-iris-512.dts
> index 52f1103..c99eccc 100644
> --- a/arch/arm/boot/dts/tegra20-iris-512.dts
> +++ b/arch/arm/boot/dts/tegra20-iris-512.dts
> @@ -41,6 +41,10 @@
> dr_mode = "otg";
> };
>
> + usb-phy@c5000000 {
> + dr_mode = "otg";
> + };
Since this port claims to be OTG-capable, presumably a vbus-supply
property is mandatory here? If you don't know enough about the board to
correctly set up such a regulator, lets just mark this port as host-only
for now; we can switch it back to OTG-mode later once someone implements
the required regulator. This won't lose any functionality, since we
don't support OTG-mode yet anyway. However, it will allow the device
tree to be correct/consistent in the mean time.
> diff --git a/arch/arm/boot/dts/tegra20-seaboard.dts b/arch/arm/boot/dts/tegra20-seaboard.dts
> + usb-phy@c5000000 {
> + vbus-supply = <&vbus_reg>;
> + dr_mode = "otg";
> + };
Where is the nvidia,vbus-gpio property? Since your code changes don't
actually implement use of the vbus-supply property yet, they will expect
the vbus-gpio property to exist in the PHY node.
> diff --git a/arch/arm/boot/dts/tegra20-trimslice.dts b/arch/arm/boot/dts/tegra20-trimslice.dts
> index 955bf49..8f2bb9b 100644
> --- a/arch/arm/boot/dts/tegra20-trimslice.dts
> +++ b/arch/arm/boot/dts/tegra20-trimslice.dts
> @@ -305,17 +305,21 @@
> nvidia,vbus-gpio = <&gpio 170 0>; /* gpio PV2 */
> };
>
> + usb-phy@c5000000 {
> + vbus-supply = <&vbus_reg>;
> + };
Same here; isn't nvidia,vbus-gpio needed in the PHY node until the
driver is converted to use vbus-supply?
I guess this is a case of a host-only port where there is SW-control
over VBUS...
next prev parent reply other threads:[~2013-04-03 19:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-03 8:41 [PATCH v2 0/7] Tegra USB PHY driver series Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
2013-04-03 8:41 ` [PATCH v2 1/7] ARM: tegra: finalize USB EHCI and PHY bindings Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
[not found] ` <1364978502-22887-2-git-send-email-vbyravarasu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-04-03 19:07 ` Stephen Warren
2013-04-03 19:07 ` Stephen Warren
2013-04-04 12:21 ` Venu Byravarasu
[not found] ` <1364978502-22887-1-git-send-email-vbyravarasu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-04-03 8:41 ` [PATCH v2 2/7] ARM: tegra: update device trees for USB binding rework Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
2013-04-03 19:16 ` Stephen Warren [this message]
[not found] ` <515C8024.30204-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-04-04 13:01 ` Venu Byravarasu
2013-04-04 13:01 ` Venu Byravarasu
[not found] ` <D958900912E20642BCBC71664EFECE3E6E50BE48AE-QZ+emBqkIFBDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2013-04-04 18:01 ` Stephen Warren
2013-04-04 18:01 ` Stephen Warren
[not found] ` <1364978502-22887-3-git-send-email-vbyravarasu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-04-03 19:33 ` Stephen Warren
2013-04-03 19:33 ` Stephen Warren
2013-04-03 8:41 ` [PATCH v2 4/7] usb: phy: tegra: Return correct error value provided by clk_get_sys Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
2013-04-03 8:41 ` [PATCH v2 3/7] usb: phy: tegra: Get PHY mode using DT Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
2013-04-03 8:41 ` [PATCH v2 5/7] usb: phy: tegra: get ULPI reset GPIO info " Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
2013-04-03 8:41 ` [PATCH v2 6/7] usb: phy: tegra: Add error handling & clean up Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
2013-04-03 19:35 ` Stephen Warren
[not found] ` <515C8484.507-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-04-04 12:29 ` Venu Byravarasu
2013-04-04 12:29 ` Venu Byravarasu
2013-04-03 8:41 ` [PATCH v2 7/7] usb: phy: registering Tegra USB PHY as platform driver Venu Byravarasu
2013-04-03 8:41 ` Venu Byravarasu
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=515C8024.30204@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=vbyravarasu@nvidia.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.