From: Phil Edworthy <phil.edworthy@renesas.com>
To: Kishon Vijay Abraham I <kishon@ti.com>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
Simon Horman <horms@verge.net.au>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
<linux-kernel@vger.kernel.org>, <linux-usb@vger.kernel.org>,
<linux-sh@vger.kernel.org>,
Phil Edworthy <phil.edworthy@renesas.com>
Subject: [PATCH 3/3] arm: koelsch: make USB0 perform Host/Function switching
Date: Mon, 22 Jun 2015 15:42:31 +0100 [thread overview]
Message-ID: <1434984151-27274-4-git-send-email-phil.edworthy@renesas.com> (raw)
In-Reply-To: <1434984151-27274-1-git-send-email-phil.edworthy@renesas.com>
Both USB Host (pci0) and Function (USBHS) drivers are enabled.
The USB PHY driver determines which IP block should be connected
based on vbus and id signals read via gpios.
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
---
arch/arm/boot/dts/r8a7791-koelsch.dts | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
index cffe33f..8f394be 100644
--- a/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -615,7 +615,6 @@
&pci0 {
status = "okay";
- pinctrl-0 = <&usb0_pins>;
pinctrl-names = "default";
};
@@ -627,13 +626,15 @@
&hsusb {
status = "okay";
- pinctrl-0 = <&usb0_pins>;
pinctrl-names = "default";
- renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
};
&usbphy {
status = "okay";
+ renesas,pwr = <&gpio2 4 GPIO_ACTIVE_HIGH>;
+ renesas,id = <&gpio5 31 GPIO_ACTIVE_HIGH>;
+ renesas,vbus = <&gpio7 24 GPIO_ACTIVE_HIGH>;
+ renesas,vbus-pwr = <&gpio7 23 GPIO_ACTIVE_HIGH>;
};
&pcie_bus_clk {
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2015-06-22 14:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-22 14:42 [PATCH 0/3] R-Car Gen2 USB0 " Phil Edworthy
2015-06-22 14:42 ` [PATCH 1/3] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS Phil Edworthy
2015-06-22 17:38 ` Sergei Shtylyov
2015-06-22 14:42 ` [PATCH 2/3] phy: rcar-gen2 usb: Add Host/Function switching for USB0 Phil Edworthy
2015-06-22 16:13 ` Kishon Vijay Abraham I
2015-07-02 8:22 ` Kishon Vijay Abraham I
2015-07-02 12:45 ` Phil Edworthy
2015-06-22 14:42 ` Phil Edworthy [this message]
2015-06-22 17:43 ` [PATCH 3/3] arm: koelsch: make USB0 perform Host/Function switching Sergei Shtylyov
2015-06-22 17:49 ` Sergei Shtylyov
2015-07-01 15:10 ` Phil Edworthy
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=1434984151-27274-4-git-send-email-phil.edworthy@renesas.com \
--to=phil.edworthy@renesas.com \
--cc=horms@verge.net.au \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®