From: t.figa@samsung.com (Tomasz Figa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: dts: Enable USB 3503 hub on exynos5250-snow
Date: Thu, 08 May 2014 18:07:09 +0200 [thread overview]
Message-ID: <536BABAD.5030605@samsung.com> (raw)
In-Reply-To: <1399293056-17143-1-git-send-email-gautam.vivek@samsung.com>
Hi Vivek,
On 05.05.2014 14:30, Vivek Gautam wrote:
> The exynos5250-snow has a SMSC USB3503 connected in
> hardware only mode like a PHY. Enable support for it,
> and add necessary 'reset-gpio' for it.
>
> This is in correspondance to similar patch by Mark Brown
> 7c1b0ec ARM: dts: Enable USB hub on Arndale
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> ---
>
> Based on 'for-next' branch of kgene's linux-samsung tree.
>
> arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++
> arch/arm/boot/dts/exynos5250-snow.dts | 14 ++++++++++++++
> 2 files changed, 21 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi
> index 9a49e68..bd8c8f1 100644
> --- a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi
> +++ b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi
> @@ -706,6 +706,13 @@
> samsung,pin-pud = <0>;
> samsung,pin-drv = <0>;
> };
> +
> + usb_hub_reset: usb-hub-reset {
> + samsung,pins = "gpe1-0";
> + samsung,pin-function = <1>;
> + samsung,pin-pud = <0>;
> + samsung,pin-drv = <0>;
> + };
This is not a generic pin config group and should not be added to this
file. Btw. it just sets the pin to output, which is what the consumer
driver can do as well by calling gpio_direction_output. Do you really
need this?
> };
>
> pinctrl at 10d10000 {
> diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
> index 1ce1088..2e48f27 100644
> --- a/arch/arm/boot/dts/exynos5250-snow.dts
> +++ b/arch/arm/boot/dts/exynos5250-snow.dts
> @@ -200,6 +200,20 @@
> samsung,vbus-gpio = <&gpx1 1 0>;
> };
>
> + usb_hub_bus {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <0>;
Why do you need this bus?
> +
> + // SMSC USB3503 connected in hardware only mode as a PHY
Wrong comment style. Also basically the comment says exactly the same as
could be inferred from the node below.
> + usb_hub {
> + compatible = "smsc,usb3503a";
> + reset-gpios = <&gpe1 0 1>;
> + pinctrl-0 = <&usb_hub_reset>;
> + pinctrl-names = "default";
As above, do you really need to use pinctrl here?
I believe the same comments apply for patch 2/2 as well.
Best regards,
Tomasz
prev parent reply other threads:[~2014-05-08 16:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 12:30 [PATCH 1/2] ARM: dts: Enable USB 3503 hub on exynos5250-snow Vivek Gautam
2014-05-05 12:30 ` [PATCH 2/2] ARM: dts: Enable USB 3503 hub on exynos5420-peach-pit Vivek Gautam
2014-05-08 15:59 ` [PATCH 1/2] ARM: dts: Enable USB 3503 hub on exynos5250-snow Andreas Färber
2014-05-08 16:12 ` Tomasz Figa
2014-05-28 22:37 ` Julius Werner
2014-06-02 12:09 ` Vivek Gautam
2014-06-02 17:15 ` Julius Werner
2014-05-08 16:07 ` Tomasz Figa [this message]
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=536BABAD.5030605@samsung.com \
--to=t.figa@samsung.com \
--cc=linux-arm-kernel@lists.infradead.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).