ARM: dts: dra7: Fix duplicate USB4 target module node
authorGowtham Tammana <g-tammana@ti.com>
Wed, 2 Jun 2021 22:04:58 +0000 (17:04 -0500)
committerTony Lindgren <tony@atomide.com>
Fri, 11 Jun 2021 05:30:42 +0000 (08:30 +0300)
With [1] USB4 target-module node got defined in dra74x.dtsi file.
However, the earlier definition in [2] was not removed, and this
duplication of the target module is causing boot failure on dra74
variant boards - dra7-evm, dra76-evm.

USB4 is only present in DRA74x variants, so keeping the entry in
dra74x.dtsi and removing it from the top level interconnect hierarchy
dra7-l4.dtsi file. This change makes the USB4 target module no longer
visible to AM5718, DRA71x and DRA72x so removing references to it in
their respective dts files.

[1]: commit c7b72abca61ec ("ARM: OMAP2+: Drop legacy platform data for
dra7 dwc3")
[2]: commit 549fce068a311 ("ARM: dts: dra7: Add l4 interconnect
hierarchy and ti-sysc data")

Fixes: c7b72abca61ec ("ARM: OMAP2+: Drop legacy platform data for dra7 dwc3")
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am5718.dtsi
arch/arm/boot/dts/dra7-l4.dtsi
arch/arm/boot/dts/dra71x.dtsi
arch/arm/boot/dts/dra72x.dtsi
arch/arm/boot/dts/dra74x.dtsi

index ebf4d3c..6d7530a 100644 (file)
  * VCP1, VCP2
  * MLB
  * ISS
- * USB3, USB4
+ * USB3
  */
 
 &usb3_tm {
        status = "disabled";
 };
 
-&usb4_tm {
-       status = "disabled";
-};
-
 &atl_tm {
        status = "disabled";
 };
index 149144c..648d23f 100644 (file)
                        };
                };
 
-               usb4_tm: target-module@140000 {         /* 0x48940000, ap 75 3c.0 */
-                       compatible = "ti,sysc-omap4", "ti,sysc";
-                       reg = <0x140000 0x4>,
-                             <0x140010 0x4>;
-                       reg-names = "rev", "sysc";
-                       ti,sysc-mask = <SYSC_OMAP4_DMADISABLE>;
-                       ti,sysc-midle = <SYSC_IDLE_FORCE>,
-                                       <SYSC_IDLE_NO>,
-                                       <SYSC_IDLE_SMART>,
-                                       <SYSC_IDLE_SMART_WKUP>;
-                       ti,sysc-sidle = <SYSC_IDLE_FORCE>,
-                                       <SYSC_IDLE_NO>,
-                                       <SYSC_IDLE_SMART>,
-                                       <SYSC_IDLE_SMART_WKUP>;
-                       /* Domains (P, C): l3init_pwrdm, l3init_clkdm */
-                       clocks = <&l3init_clkctrl DRA7_L3INIT_USB_OTG_SS4_CLKCTRL 0>;
-                       clock-names = "fck";
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-                       ranges = <0x0 0x140000 0x20000>;
-               };
-
                target-module@170000 {                  /* 0x48970000, ap 21 0a.0 */
                        compatible = "ti,sysc-omap4", "ti,sysc";
                        reg = <0x170010 0x4>;
index cad0e4a..9c270d8 100644 (file)
@@ -11,7 +11,3 @@
 &rtctarget {
        status = "disabled";
 };
-
-&usb4_tm {
-       status = "disabled";
-};
index d403acc..f3e934e 100644 (file)
 &pcie2_rc {
        compatible = "ti,dra726-pcie-rc", "ti,dra7-pcie";
 };
-
-&usb4_tm {
-       status = "disabled";
-};
index e1850d6..b4e07d9 100644 (file)
                        reg = <0x41500000 0x100>;
                };
 
-               target-module@48940000 {
-                       compatible = "ti,sysc-omap4", "ti,sysc";
-                       reg = <0x48940000 0x4>,
-                             <0x48940010 0x4>;
-                       reg-names = "rev", "sysc";
-                       ti,sysc-mask = <SYSC_OMAP4_DMADISABLE>;
-                       ti,sysc-midle = <SYSC_IDLE_FORCE>,
-                                       <SYSC_IDLE_NO>,
-                                       <SYSC_IDLE_SMART>,
-                                       <SYSC_IDLE_SMART_WKUP>;
-                       ti,sysc-sidle = <SYSC_IDLE_FORCE>,
-                                       <SYSC_IDLE_NO>,
-                                       <SYSC_IDLE_SMART>,
-                                       <SYSC_IDLE_SMART_WKUP>;
-                       clocks = <&l3init_clkctrl DRA7_L3INIT_USB_OTG_SS4_CLKCTRL 0>;
-                       clock-names = "fck";
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-                       ranges = <0x0 0x48940000 0x20000>;
-
-                       omap_dwc3_4: omap_dwc3_4@0 {
-                               compatible = "ti,dwc3";
-                               reg = <0 0x10000>;
-                               interrupts = <GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-                               utmi-mode = <2>;
-                               ranges;
-                               status = "disabled";
-                               usb4: usb@10000 {
-                                       compatible = "snps,dwc3";
-                                       reg = <0x10000 0x17000>;
-                                       interrupts = <GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>,
-                                                    <GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>,
-                                                    <GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>;
-                                       interrupt-names = "peripheral",
-                                                         "host",
-                                                         "otg";
-                                       maximum-speed = "high-speed";
-                                       dr_mode = "otg";
-                               };
-                       };
-               };
 
                target-module@41501000 {
                        compatible = "ti,sysc-omap2", "ti,sysc";
 &pcie2_rc {
        compatible = "ti,dra746-pcie-rc", "ti,dra7-pcie";
 };
+
+&l4_per3 {
+       segment@0 {
+               usb4_tm: target-module@140000 {         /* 0x48940000, ap 75 3c.0 */
+                       compatible = "ti,sysc-omap4", "ti,sysc";
+                       reg = <0x140000 0x4>,
+                             <0x140010 0x4>;
+                       reg-names = "rev", "sysc";
+                       ti,sysc-mask = <SYSC_OMAP4_DMADISABLE>;
+                       ti,sysc-midle = <SYSC_IDLE_FORCE>,
+                                       <SYSC_IDLE_NO>,
+                                       <SYSC_IDLE_SMART>,
+                                       <SYSC_IDLE_SMART_WKUP>;
+                       ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+                                       <SYSC_IDLE_NO>,
+                                       <SYSC_IDLE_SMART>,
+                                       <SYSC_IDLE_SMART_WKUP>;
+                       /* Domains (P, C): l3init_pwrdm, l3init_clkdm */
+                       clocks = <&l3init_clkctrl DRA7_L3INIT_USB_OTG_SS4_CLKCTRL 0>;
+                       clock-names = "fck";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0x0 0x140000 0x20000>;
+
+                       omap_dwc3_4: omap_dwc3_4@0 {
+                               compatible = "ti,dwc3";
+                               reg = <0 0x10000>;
+                               interrupts = <GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               utmi-mode = <2>;
+                               ranges;
+                               status = "disabled";
+                               usb4: usb@10000 {
+                                       compatible = "snps,dwc3";
+                                       reg = <0x10000 0x17000>;
+                                       interrupts = <GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>,
+                                                    <GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>,
+                                                    <GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>;
+                                       interrupt-names = "peripheral",
+                                                         "host",
+                                                         "otg";
+                                       maximum-speed = "high-speed";
+                                       dr_mode = "otg";
+                               };
+                       };
+               };
+       };
+};