RE: [PATCH v2] arm64: dts: renesas: r8a77990: Enable USB2.0 Host for Ebisu board

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Simon-san,

> From: Simon Horman, Sent: Friday, June 8, 2018 5:19 PM
> 
> On Wed, Jun 06, 2018 at 06:52:06PM +0900, Yoshihiro Shimoda wrote:
> > This patch adds USB2.0 PHY and Host(EHCI/OHCI) nodes and
> > enables them for R-Car E3 Ebisu board.
> >
> > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> > ---
> > This patch set is based on renesas-drivers.git /
> > renesas-drivers-2018-06-05-v4.17 tag.
> >
> > Changes from v1:
> >  - Squash 4 patches into a single patch.
> 
> Thanks Shimoda-san, I have applied this for v4.19.
> 
> I had to do so manually to resolve a trivial conflict in
> r8a779980-ebisu.dts. The result is below. Please check to make
> sure that I got it right.

Thank you very much for resolving the conflict.
I confirmed the resolved patch works correctly.

Best regards,
Yoshihiro Shimoda

> From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> Subject: [PATCH] arm64: dts: renesas: r8a77990: Enable USB2.0 Host for Ebisu
>  board
> 
> This patch adds USB2.0 PHY and Host(EHCI/OHCI) nodes and
> enables them for R-Car E3 Ebisu board.
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> Signed-off-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>
> ---
>  arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 20 ++++++++++++++
>  arch/arm64/boot/dts/renesas/r8a77990.dtsi      | 37 ++++++++++++++++++++++++++
>  2 files changed, 57 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> index 28945a8b9800..5e28c1b94b77 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> @@ -47,10 +47,18 @@
>  	};
>  };
> 
> +&ehci0 {
> +	status = "okay";
> +};
> +
>  &extal_clk {
>  	clock-frequency = <48000000>;
>  };
> 
> +&ohci0 {
> +	status = "okay";
> +};
> +
>  &pfc {
>  	avb_pins: avb {
>  		mux {
> @@ -58,6 +66,11 @@
>  			function = "avb";
>  		};
>  	};
> +
> +	usb0_pins: usb {
> +		groups = "usb0_b";
> +		function = "usb0";
> +	};
>  };
> 
>  &rwdt {
> @@ -68,3 +81,10 @@
>  &scif2 {
>  	status = "okay";
>  };
> +
> +&usb2_phy0 {
> +	pinctrl-0 = <&usb0_pins>;
> +	pinctrl-names = "default";
> +
> +	status = "okay";
> +};
> diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
> index 735881d4e57a..f8004608c595 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
> @@ -267,6 +267,43 @@
>  			status = "disabled";
>  		};
> 
> +		ohci0: usb@ee080000 {
> +			compatible = "generic-ohci";
> +			reg = <0 0xee080000 0 0x100>;
> +			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD 703>;
> +			phys = <&usb2_phy0>;
> +			phy-names = "usb";
> +			power-domains = <&sysc 32>;
> +			resets = <&cpg 703>;
> +			status = "disabled";
> +		};
> +
> +		ehci0: usb@ee080100 {
> +			compatible = "generic-ehci";
> +			reg = <0 0xee080100 0 0x100>;
> +			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD 703>;
> +			phys = <&usb2_phy0>;
> +			phy-names = "usb";
> +			companion = <&ohci0>;
> +			power-domains = <&sysc 32>;
> +			resets = <&cpg 703>;
> +			status = "disabled";
> +		};
> +
> +		usb2_phy0: usb-phy@ee080200 {
> +			compatible = "renesas,usb2-phy-r8a77990",
> +				     "renesas,rcar-gen3-usb2-phy";
> +			reg = <0 0xee080200 0 0x700>;
> +			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD 703>;
> +			power-domains = <&sysc 32>;
> +			resets = <&cpg 703>;
> +			#phy-cells = <0>;
> +			status = "disabled";
> +		};
> +
>  		gic: interrupt-controller@f1010000 {
>  			compatible = "arm,gic-400";
>  			#interrupt-cells = <3>;
> --
> 2.11.0





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux