From: Rob Herring <robh@kernel.org>
To: Stephen Boyd <stephen.boyd@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] usb: misc: Add driver for usb4604
Date: Tue, 28 Jun 2016 15:56:37 -0500 [thread overview]
Message-ID: <20160628205637.GO3737@rob-hp-laptop> (raw)
In-Reply-To: <20160626052454.7743-1-stephen.boyd@linaro.org>
On Sat, Jun 25, 2016 at 10:24:54PM -0700, Stephen Boyd wrote:
> This is a minimal driver to support bringing a usb4604 device
> from microchip out of reset and into hub mode. The usb4604 device
> is related to the usb3503 device, but it didn't seem close enough
> to warrant putting both into the same file. This patch borrows
> some of the usb3503 structure and trims it down to just handle
> the optional reset gpio and adds the i2c command to put the
> device into hub mode.
>
> Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/00001716A.pdf
> Cc: <devicetree@vger.kernel.org>
> Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
> ---
> Documentation/devicetree/bindings/usb/usb4604.txt | 19 +++
> drivers/usb/misc/Kconfig | 6 +
> drivers/usb/misc/Makefile | 1 +
> drivers/usb/misc/usb4604.c | 175 ++++++++++++++++++++++
> 4 files changed, 201 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/usb/usb4604.txt
> create mode 100644 drivers/usb/misc/usb4604.c
>
> diff --git a/Documentation/devicetree/bindings/usb/usb4604.txt b/Documentation/devicetree/bindings/usb/usb4604.txt
> new file mode 100644
> index 000000000000..82506d17712c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/usb4604.txt
> @@ -0,0 +1,19 @@
> +SMSC USB4604 High-Speed Hub Controller
> +
> +Required properties:
> +- compatible: Should be "smsc,usb4604"
> +
> +Optional properties:
> +- reg: Specifies the i2c slave address, it is required and should be 0x2d
> + if I2C is used.
> +- reset-gpios: Should specify GPIO for reset.
> +- initial-mode: Should specify initial mode.
> + (1 for HUB mode, 2 for STANDBY mode)
I was going to ask what would be the purpose of standby mode, and
say it needs a vendor prefix, but I see you are re-using this from the
3503.
> +
> +Examples:
> + usb-hub@2d {
I'm not sure what we'll do when/if we need this as a USB bus child node.
Acked-by: Rob Herring <robh@kernel.org>
> + compatible = "smsc,usb4604";
> + reg = <0x2d>;
> + reset-gpios = <&gpx3 5 1>;
> + initial-mode = <1>;
> + };
next prev parent reply other threads:[~2016-06-28 20:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-26 5:24 [PATCH] usb: misc: Add driver for usb4604 Stephen Boyd
2016-06-28 20:56 ` Rob Herring [this message]
2016-06-28 22:24 ` Stephen Boyd
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=20160628205637.GO3737@rob-hp-laptop \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stephen.boyd@linaro.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