From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 8 May 2019 11:42:31 +0200 From: Simon Horman Subject: Re: [PATCH 10/10] ARM: dts: r7s9210-rza2mevb: Add USB host support Message-ID: <20190508094230.5j2skmmlkzlmy2ls@verge.net.au> References: <20190506234631.113226-1-chris.brandt@renesas.com> <20190506234631.113226-11-chris.brandt@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190506234631.113226-11-chris.brandt@renesas.com> To: Chris Brandt Cc: Rob Herring , Mark Rutland , Greg Kroah-Hartman , Yoshihiro Shimoda , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org List-ID: On Mon, May 06, 2019 at 06:46:31PM -0500, Chris Brandt wrote: > Enable USB Host support for both the Type-C connector on the CPU board > and the Type-A plug on the sub board. > > Both boards are also capable of USB Device operation as well after the > appropriate Device Tree modifications. > > Signed-off-by: Chris Brandt > --- > arch/arm/boot/dts/r7s9210-rza2mevb.dts | 37 ++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts > index 1eba37db7cdc..79d9d4b4779f 100644 > --- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts > +++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts > @@ -100,6 +100,18 @@ > pinmux = , /* SD1_CD */ > ; /* SD1_WP */ > }; > + > + usb0_pins: usb0 { > + pinmux = , /* VBUSIN0 */ > + , /* VBUSEN0 */ > + ; /* OVRCUR0 */ > + }; > + > + usb1_pins: usb1 { > + pinmux = , /* VBUSIN1 */ > + , /* VBUSEN1 */ > + ; /* OVRCUR1 */ > + }; > }; > > /* High resolution System tick timers */ > @@ -154,3 +166,28 @@ > bus-width = <4>; > status = "okay"; > }; > + > +/* USB-0 as Host */ > +/* NOTE: Requires JP3 to be fitted */ > +&usb2_phy0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&usb0_pins>; > + renesas,uses_usb_x1; > + dr_mode = "host"; > + status = "okay"; > +}; Hi Chris, Please add a space between the usb2_phy0 and ehci0 nodes. Likewise below between the usb2_phy1 and ehci1 nodes. Otherwise this patch looks good to me. > +&ehci0 { > + status = "okay"; > +}; > + > +/* USB-1 as Host */ > +&usb2_phy1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&usb1_pins>; > + renesas,uses_usb_x1; > + dr_mode = "host"; > + status = "okay"; > +}; > +&ehci1 { > + status = "okay"; > +}; > -- > 2.16.1 >