]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: talos: Flatten usb controller nodes
authorKrishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Wed, 28 Jan 2026 06:27:19 +0000 (11:57 +0530)
committerBjorn Andersson <andersson@kernel.org>
Wed, 4 Mar 2026 19:01:05 +0000 (13:01 -0600)
Flatten usb controller nodes and update to using latest bindings
and flattened driver approach.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260128062720.437712-2-krishna.kurapati@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs615-ride.dts
arch/arm64/boot/dts/qcom/talos.dtsi

index 5a24c19c415e3fa92e3b543ed48b2fcd6b20c6ca..4f5dca49e15a3f6cea8658fd8c45ceb6d4696514 100644 (file)
 };
 
 &usb_1 {
-       status = "okay";
-};
-
-&usb_1_dwc3 {
        dr_mode = "peripheral";
+
+       status = "okay";
 };
 
 &usb_hsphy_2 {
 };
 
 &usb_2 {
-       status = "okay";
-};
-
-&usb_2_dwc3 {
        dr_mode = "host";
+
+       status = "okay";
 };
 
 &ufs_mem_hc {
index 75716b4a58d6d331337f8a4f3f41f62a45416ec9..8b2e8d335d80ba71154d594bb8f793339ead1a85 100644 (file)
                        status = "disabled";
                };
 
-               usb_1: usb@a6f8800 {
-                       compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
-                       reg = <0x0 0x0a6f8800 0x0 0x400>;
+               usb_1: usb@a600000 {
+                       compatible = "qcom,qcs615-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 130 IRQ_TYPE_LEVEL_HIGH 0>,
+                       interrupts-extended = <&intc GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>,
+                                             <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH 0>,
                                              <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>,
                                              <&pdc 9 IRQ_TYPE_EDGE_BOTH>,
                                              <&pdc 8 IRQ_TYPE_EDGE_BOTH>,
                                              <&pdc 6 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",
                                          "ss_phy_irq";
 
+                       iommus = <&apps_smmu 0x140 0x0>;
+
+                       phys = <&usb_1_hsphy>, <&usb_qmpphy>;
+                       phy-names = "usb2-phy", "usb3-phy";
+
                        power-domains = <&gcc USB30_PRIM_GDSC>;
                        required-opps = <&rpmhpd_opp_nom>;
 
                        resets = <&gcc GCC_USB30_PRIM_BCR>;
 
-                       #address-cells = <2>;
-                       #size-cells = <2>;
-                       ranges;
+                       snps,dis-u1-entry-quirk;
+                       snps,dis-u2-entry-quirk;
+                       snps,dis_u2_susphy_quirk;
+                       snps,dis_u3_susphy_quirk;
+                       snps,dis_enblslpm_quirk;
+                       snps,has-lpm-erratum;
+                       snps,hird-threshold = /bits/ 8 <0x10>;
+                       snps,usb3_lpm_capable;
 
                        status = "disabled";
-
-                       usb_1_dwc3: usb@a600000 {
-                               compatible = "snps,dwc3";
-                               reg = <0x0 0x0a600000 0x0 0xcd00>;
-
-                               iommus = <&apps_smmu 0x140 0x0>;
-                               interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>;
-
-                               phys = <&usb_1_hsphy>, <&usb_qmpphy>;
-                               phy-names = "usb2-phy", "usb3-phy";
-
-                               snps,dis-u1-entry-quirk;
-                               snps,dis-u2-entry-quirk;
-                               snps,dis_u2_susphy_quirk;
-                               snps,dis_u3_susphy_quirk;
-                               snps,dis_enblslpm_quirk;
-                               snps,has-lpm-erratum;
-                               snps,hird-threshold = /bits/ 8 <0x10>;
-                               snps,usb3_lpm_capable;
-                       };
                };
 
-               usb_2: usb@a8f8800 {
-                       compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
-                       reg = <0x0 0x0a8f8800 0x0 0x400>;
+               usb_2: usb@a800000 {
+                       compatible = "qcom,qcs615-dwc3", "qcom,snps-dwc3";
+                       reg = <0x0 0x0a800000 0x0 0xfc100>;
 
                        clocks = <&gcc GCC_CFG_NOC_USB2_SEC_AXI_CLK>,
                                 <&gcc GCC_USB20_SEC_MASTER_CLK>,
                                          <&gcc GCC_USB20_SEC_MASTER_CLK>;
                        assigned-clock-rates = <19200000>, <200000000>;
 
-                       interrupts-extended = <&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
+                       interrupts-extended = <&intc GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>,
+                                             <&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
                                              <&intc GIC_SPI 662 IRQ_TYPE_LEVEL_HIGH 0>,
                                              <&pdc 11 IRQ_TYPE_EDGE_BOTH>,
                                              <&pdc 10 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";
 
+                       iommus = <&apps_smmu 0xe0 0x0>;
+
+                       phys = <&usb_hsphy_2>;
+                       phy-names = "usb2-phy";
+
                        power-domains = <&gcc USB20_SEC_GDSC>;
                        required-opps = <&rpmhpd_opp_nom>;
 
 
                        qcom,select-utmi-as-pipe-clk;
 
-                       #address-cells = <2>;
-                       #size-cells = <2>;
-                       ranges;
-
-                       status = "disabled";
+                       snps,dis_u2_susphy_quirk;
+                       snps,dis_u3_susphy_quirk;
+                       snps,dis_enblslpm_quirk;
+                       snps,has-lpm-erratum;
+                       snps,hird-threshold = /bits/ 8 <0x10>;
 
-                       usb_2_dwc3: usb@a800000 {
-                               compatible = "snps,dwc3";
-                               reg = <0x0 0x0a800000 0x0 0xcd00>;
+                       maximum-speed = "high-speed";
 
-                               iommus = <&apps_smmu 0xe0 0x0>;
-                               interrupts = <GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>;
-
-                               phys = <&usb_hsphy_2>;
-                               phy-names = "usb2-phy";
-
-                               snps,dis_u2_susphy_quirk;
-                               snps,dis_u3_susphy_quirk;
-                               snps,dis_enblslpm_quirk;
-                               snps,has-lpm-erratum;
-                               snps,hird-threshold = /bits/ 8 <0x10>;
-
-                               maximum-speed = "high-speed";
-                       };
+                       status = "disabled";
                };
 
                tsens0: thermal-sensor@c263000 {