Message ID | 1515160243-19815-7-git-send-email-jjhiblot@ti.com |
---|---|
State | Superseded |
Delegated to: | Marek Vasut |
Headers | show |
Series | Add support for DM_USB for TI's DRA7 platforms | expand |
On Fri, Jan 05, 2018 at 02:50:43PM +0100, Jean-Jacques Hiblot wrote: > This enables the USB2. USB1 is not enabled because it's managed by platform > code not by DM. > > Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> > > --- > > arch/arm/dts/dra7-evm-common.dtsi | 7 +++++++ > arch/arm/dts/dra72-evm-common.dtsi | 4 ++++ > arch/arm/dts/omap5-u-boot.dtsi | 4 ++++ > 3 files changed, 15 insertions(+) We need to make this only touch arch/arm/dts/omap5-u-boot.dtsi and if needed new -u-boot.dtsi files so the upstream kernel oens remain unchanged, thanks!
diff --git a/arch/arm/dts/dra7-evm-common.dtsi b/arch/arm/dts/dra7-evm-common.dtsi index 343e95f..4b11c16 100644 --- a/arch/arm/dts/dra7-evm-common.dtsi +++ b/arch/arm/dts/dra7-evm-common.dtsi @@ -191,15 +191,22 @@ &omap_dwc3_1 { extcon = <&extcon_usb1>; + status = "disabled"; }; &usb1 { dr_mode = "otg"; extcon = <&extcon_usb1>; + status = "disabled"; +}; + +&omap_dwc3_2 { + status = "okay"; }; &usb2 { dr_mode = "host"; + status = "okay"; }; &atl { diff --git a/arch/arm/dts/dra72-evm-common.dtsi b/arch/arm/dts/dra72-evm-common.dtsi index 2e485a1..dae3de0 100644 --- a/arch/arm/dts/dra72-evm-common.dtsi +++ b/arch/arm/dts/dra72-evm-common.dtsi @@ -386,19 +386,23 @@ &omap_dwc3_1 { extcon = <&extcon_usb1>; + status = "disabled"; }; &omap_dwc3_2 { extcon = <&extcon_usb2>; + status = "okay"; }; &usb1 { dr_mode = "otg"; extcon = <&extcon_usb1>; + status = "disabled"; }; &usb2 { dr_mode = "host"; + status = "okay"; }; &mmc1 { diff --git a/arch/arm/dts/omap5-u-boot.dtsi b/arch/arm/dts/omap5-u-boot.dtsi index bf2684c..a6a7801 100644 --- a/arch/arm/dts/omap5-u-boot.dtsi +++ b/arch/arm/dts/omap5-u-boot.dtsi @@ -15,6 +15,10 @@ ocp { u-boot,dm-spl; + ocp2scp@4a080000 { + compatible = "ti,omap-ocp2scp", "simple-bus"; + }; + ocp2scp@4a090000 { compatible = "ti,omap-ocp2scp", "simple-bus"; };
This enables the USB2. USB1 is not enabled because it's managed by platform code not by DM. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> --- arch/arm/dts/dra7-evm-common.dtsi | 7 +++++++ arch/arm/dts/dra72-evm-common.dtsi | 4 ++++ arch/arm/dts/omap5-u-boot.dtsi | 4 ++++ 3 files changed, 15 insertions(+)