]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qcs8300: Flatten usb controller nodes
authorKrishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Sat, 13 Sep 2025 18:23:18 +0000 (23:53 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 16 Sep 2025 15:25:20 +0000 (10:25 -0500)
Flatten usb controller nodes and update to using latest bindings and
flattened driver approach. Enumeration of ADB has been tested on EVK
Platform.

Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250913182318.3547789-1-krishna.kurapati@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/monaco-evk.dts
arch/arm64/boot/dts/qcom/qcs8300-ride.dts
arch/arm64/boot/dts/qcom/qcs8300.dtsi

index f3c5d363921e324f53cf55a0e8427a7f1e903bd6..116378d4ce7af4c4b37f5f818fd65c693bfa88db 100644 (file)
 };
 
 &usb_1 {
-       status = "okay";
-};
-
-&usb_1_dwc3 {
        dr_mode = "peripheral";
+
+       status = "okay";
 };
 
 &usb_1_hsphy {
index 9c37a0f5ba25c7b20133dd374918cfea252c6882..f8ed510477cf2d23c6bd1bb042abe46b45ad35e4 100644 (file)
 };
 
 &usb_1 {
-       status = "okay";
-};
-
-&usb_1_dwc3 {
        dr_mode = "peripheral";
-};
 
-&usb_2 {
        status = "okay";
 };
 
-&usb_2_dwc3 {
+&usb_2 {
        dr_mode = "host";
+
+       status = "okay";
 };
index 8afd77a2d737e0db4b7206ab57a1e93c255fc2c5..d35bfece60d1afa5205d71c3b1b621dce49c805e 100644 (file)
                        interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
                };
 
-               usb_1: usb@a6f8800 {
-                       compatible = "qcom,qcs8300-dwc3", "qcom,dwc3";
-                       reg = <0x0 0x0a6f8800 0x0 0x400>;
+               usb_1: usb@a600000 {
+                       compatible = "qcom,qcs8300-dwc3", "qcom,snps-dwc3";
+                       reg = <0x0 0x0a600000 0x0 0xfc100>;
 
                        clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>,
                                 <&gcc GCC_USB30_PRIM_MASTER_CLK>,
                                          <&gcc GCC_USB30_PRIM_MASTER_CLK>;
                        assigned-clock-rates = <19200000>, <200000000>;
 
-                       interrupts-extended = <&intc GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>,
+                       interrupts-extended = <&intc GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>,
+                                             <&intc GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>,
                                              <&intc GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
                                              <&pdc 14 IRQ_TYPE_EDGE_BOTH>,
                                              <&pdc 15 IRQ_TYPE_EDGE_BOTH>,
                                              <&pdc 12 IRQ_TYPE_LEVEL_HIGH>;
-                       interrupt-names = "pwr_event",
+                       interrupt-names = "dwc_usb3",
+                                         "pwr_event",
                                          "hs_phy_irq",
                                          "dp_hs_phy_irq",
                                          "dm_hs_phy_irq",
                                         &config_noc SLAVE_USB3_0 QCOM_ICC_TAG_ALWAYS>;
                        interconnect-names = "usb-ddr", "apps-usb";
 
-                       wakeup-source;
+                       iommus = <&apps_smmu 0x80 0x0>;
+                       phys = <&usb_1_hsphy>, <&usb_qmpphy>;
+                       phy-names = "usb2-phy", "usb3-phy";
+                       snps,dis_enblslpm_quirk;
+                       snps,dis-u1-entry-quirk;
+                       snps,dis-u2-entry-quirk;
+                       snps,dis_u2_susphy_quirk;
+                       snps,dis_u3_susphy_quirk;
 
-                       #address-cells = <2>;
-                       #size-cells = <2>;
-                       ranges;
+                       wakeup-source;
 
                        status = "disabled";
-
-                       usb_1_dwc3: usb@a600000 {
-                               compatible = "snps,dwc3";
-                               reg = <0x0 0x0a600000 0x0 0xe000>;
-                               interrupts = <GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>;
-                               iommus = <&apps_smmu 0x80 0x0>;
-                               phys = <&usb_1_hsphy>, <&usb_qmpphy>;
-                               phy-names = "usb2-phy", "usb3-phy";
-                               snps,dis_enblslpm_quirk;
-                               snps,dis-u1-entry-quirk;
-                               snps,dis-u2-entry-quirk;
-                               snps,dis_u2_susphy_quirk;
-                               snps,dis_u3_susphy_quirk;
-                       };
                };
 
-               usb_2: usb@a4f8800 {
-                       compatible = "qcom,qcs8300-dwc3", "qcom,dwc3";
-                       reg = <0x0 0x0a4f8800 0x0 0x400>;
+               usb_2: usb@a400000 {
+                       compatible = "qcom,qcs8300-dwc3", "qcom,snps-dwc3";
+                       reg = <0x0 0x0a400000 0x0 0xfc100>;
 
                        clocks = <&gcc GCC_CFG_NOC_USB2_PRIM_AXI_CLK>,
                                 <&gcc GCC_USB20_MASTER_CLK>,
                                          <&gcc GCC_USB20_MASTER_CLK>;
                        assigned-clock-rates = <19200000>, <120000000>;
 
-                       interrupts-extended = <&intc GIC_SPI 444 IRQ_TYPE_LEVEL_HIGH>,
+                       interrupts-extended = <&intc GIC_SPI 442 IRQ_TYPE_LEVEL_HIGH>,
+                                             <&intc GIC_SPI 444 IRQ_TYPE_LEVEL_HIGH>,
                                              <&intc GIC_SPI 443 IRQ_TYPE_LEVEL_HIGH>,
                                              <&pdc 10 IRQ_TYPE_EDGE_BOTH>,
                                              <&pdc 9 IRQ_TYPE_EDGE_BOTH>;
-                       interrupt-names = "pwr_event",
+                       interrupt-names = "dwc_usb3",
+                                         "pwr_event",
                                          "hs_phy_irq",
                                          "dp_hs_phy_irq",
                                          "dm_hs_phy_irq";
                                         &config_noc SLAVE_USB2 QCOM_ICC_TAG_ALWAYS>;
                        interconnect-names = "usb-ddr", "apps-usb";
 
-                       qcom,select-utmi-as-pipe-clk;
-                       wakeup-source;
+                       iommus = <&apps_smmu 0x20 0x0>;
 
-                       #address-cells = <2>;
-                       #size-cells = <2>;
-                       ranges;
-
-                       status = "disabled";
-
-                       usb_2_dwc3: usb@a400000 {
-                               compatible = "snps,dwc3";
-                               reg = <0x0 0x0a400000 0x0 0xe000>;
+                       phys = <&usb_2_hsphy>;
+                       phy-names = "usb2-phy";
+                       maximum-speed = "high-speed";
 
-                               interrupts = <GIC_SPI 442 IRQ_TYPE_LEVEL_HIGH>;
-                               iommus = <&apps_smmu 0x20 0x0>;
+                       snps,dis-u1-entry-quirk;
+                       snps,dis-u2-entry-quirk;
+                       snps,dis_u2_susphy_quirk;
+                       snps,dis_u3_susphy_quirk;
+                       snps,dis_enblslpm_quirk;
 
-                               phys = <&usb_2_hsphy>;
-                               phy-names = "usb2-phy";
-                               maximum-speed = "high-speed";
+                       qcom,select-utmi-as-pipe-clk;
+                       wakeup-source;
 
-                               snps,dis-u1-entry-quirk;
-                               snps,dis-u2-entry-quirk;
-                               snps,dis_u2_susphy_quirk;
-                               snps,dis_u3_susphy_quirk;
-                               snps,dis_enblslpm_quirk;
-                       };
+                       status = "disabled";
                };
 
                iris: video-codec@aa00000 {