diff mbox series

[U-Boot,v1,6/6] dts: dra7x: enable host on USB2 for all the platforms of the DRA7 family

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

Commit Message

Jean-Jacques Hiblot Jan. 5, 2018, 1:50 p.m. UTC
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(+)

Comments

Tom Rini Jan. 9, 2018, 7:18 p.m. UTC | #1
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 mbox series

Patch

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";
 		};