Skip to content

Commit 1bb39f4

Browse files
Kriskura176767swatagar
authored andcommitted
FROMLIST: arm64: dts: qcom: talos: Flatten usb controller nodes
Flatten usb controller nodes and update to using latest bindings and flattened driver approach. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/all/20260128062720.437712-2-krishna.kurapati@oss.qualcomm.com/ Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
1 parent 93be04f commit 1bb39f4

3 files changed

Lines changed: 46 additions & 65 deletions

File tree

arch/arm64/boot/dts/qcom/qcs615-ride.dts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -670,11 +670,9 @@
670670
};
671671

672672
&usb_1 {
673-
status = "okay";
674-
};
675-
676-
&usb_1_dwc3 {
677673
dr_mode = "peripheral";
674+
675+
status = "okay";
678676
};
679677

680678
&usb_hsphy_2 {
@@ -686,11 +684,9 @@
686684
};
687685

688686
&usb_2 {
689-
status = "okay";
690-
};
691-
692-
&usb_2_dwc3 {
693687
dr_mode = "host";
688+
689+
status = "okay";
694690
};
695691

696692
&ufs_mem_hc {

arch/arm64/boot/dts/qcom/talos-evk-som.dtsi

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,9 @@
549549
};
550550

551551
&usb_1 {
552-
status = "okay";
553-
};
554-
555-
&usb_1_dwc3 {
556552
dr_mode = "host";
553+
554+
status = "okay";
557555
};
558556

559557
&usb_hsphy_1 {
@@ -565,11 +563,9 @@
565563
};
566564

567565
&usb_2 {
568-
status = "okay";
569-
};
570-
571-
&usb_2_dwc3 {
572566
dr_mode = "host";
567+
568+
status = "okay";
573569
};
574570

575571
&usb_hsphy_2 {

arch/arm64/boot/dts/qcom/talos.dtsi

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4935,9 +4935,9 @@
49354935
status = "disabled";
49364936
};
49374937

4938-
usb_1: usb@a6f8800 {
4939-
compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
4940-
reg = <0x0 0x0a6f8800 0x0 0x400>;
4938+
usb_1: usb@a600000 {
4939+
compatible = "qcom,qcs615-dwc3", "qcom,snps-dwc3";
4940+
reg = <0x0 0x0a600000 0x0 0xfc100>;
49414941

49424942
clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>,
49434943
<&gcc GCC_USB30_PRIM_MASTER_CLK>,
@@ -4956,52 +4956,47 @@
49564956
<&gcc GCC_USB30_PRIM_MASTER_CLK>;
49574957
assigned-clock-rates = <19200000>, <200000000>;
49584958

4959-
interrupts-extended = <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH 0>,
4959+
interrupts-extended = <&intc GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>,
4960+
<&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH 0>,
49604961
<&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>,
49614962
<&pdc 9 IRQ_TYPE_EDGE_BOTH>,
49624963
<&pdc 8 IRQ_TYPE_EDGE_BOTH>,
49634964
<&pdc 6 IRQ_TYPE_LEVEL_HIGH>;
4964-
interrupt-names = "pwr_event",
4965+
interrupt-names = "dwc_usb3",
4966+
"pwr_event",
49654967
"hs_phy_irq",
49664968
"dp_hs_phy_irq",
49674969
"dm_hs_phy_irq",
49684970
"ss_phy_irq";
49694971

4972+
iommus = <&apps_smmu 0x140 0x0>;
49704973
power-domains = <&gcc USB30_PRIM_GDSC>;
49714974
required-opps = <&rpmhpd_opp_nom>;
49724975

4976+
phys = <&usb_hsphy_1>, <&usb_qmpphy>;
4977+
phy-names = "usb2-phy", "usb3-phy";
4978+
49734979
resets = <&gcc GCC_USB30_PRIM_BCR>;
49744980

49754981
#address-cells = <2>;
49764982
#size-cells = <2>;
49774983
ranges;
49784984

4979-
status = "disabled";
4980-
4981-
usb_1_dwc3: usb@a600000 {
4982-
compatible = "snps,dwc3";
4983-
reg = <0x0 0x0a600000 0x0 0xcd00>;
4984-
4985-
iommus = <&apps_smmu 0x140 0x0>;
4986-
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>;
4985+
snps,dis-u1-entry-quirk;
4986+
snps,dis-u2-entry-quirk;
4987+
snps,dis_u2_susphy_quirk;
4988+
snps,dis_u3_susphy_quirk;
4989+
snps,dis_enblslpm_quirk;
4990+
snps,has-lpm-erratum;
4991+
snps,hird-threshold = /bits/ 8 <0x10>;
4992+
snps,usb3_lpm_capable;
49874993

4988-
phys = <&usb_hsphy_1>, <&usb_qmpphy>;
4989-
phy-names = "usb2-phy", "usb3-phy";
4990-
4991-
snps,dis-u1-entry-quirk;
4992-
snps,dis-u2-entry-quirk;
4993-
snps,dis_u2_susphy_quirk;
4994-
snps,dis_u3_susphy_quirk;
4995-
snps,dis_enblslpm_quirk;
4996-
snps,has-lpm-erratum;
4997-
snps,hird-threshold = /bits/ 8 <0x10>;
4998-
snps,usb3_lpm_capable;
4999-
};
4994+
status = "disabled";
50004995
};
50014996

5002-
usb_2: usb@a8f8800 {
5003-
compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
5004-
reg = <0x0 0x0a8f8800 0x0 0x400>;
4997+
usb_2: usb@a800000 {
4998+
compatible = "qcom,qcs615-dwc3", "qcom,snps-dwc3";
4999+
reg = <0x0 0x0a800000 0x0 0xfc100>;
50055000

50065001
clocks = <&gcc GCC_CFG_NOC_USB2_SEC_AXI_CLK>,
50075002
<&gcc GCC_USB20_SEC_MASTER_CLK>,
@@ -5020,18 +5015,24 @@
50205015
<&gcc GCC_USB20_SEC_MASTER_CLK>;
50215016
assigned-clock-rates = <19200000>, <200000000>;
50225017

5023-
interrupts-extended = <&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
5018+
interrupts-extended = <&intc GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>,
5019+
<&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
50245020
<&intc GIC_SPI 662 IRQ_TYPE_LEVEL_HIGH 0>,
50255021
<&pdc 11 IRQ_TYPE_EDGE_BOTH>,
50265022
<&pdc 10 IRQ_TYPE_EDGE_BOTH>;
5027-
interrupt-names = "pwr_event",
5023+
interrupt-names = "dwc_usb3",
5024+
"pwr_event",
50285025
"hs_phy_irq",
50295026
"dp_hs_phy_irq",
50305027
"dm_hs_phy_irq";
50315028

5029+
iommus = <&apps_smmu 0xe0 0x0>;
50325030
power-domains = <&gcc USB20_SEC_GDSC>;
50335031
required-opps = <&rpmhpd_opp_nom>;
50345032

5033+
phys = <&usb_hsphy_2>;
5034+
phy-names = "usb2-phy";
5035+
50355036
resets = <&gcc GCC_USB20_SEC_BCR>;
50365037

50375038
qcom,select-utmi-as-pipe-clk;
@@ -5040,26 +5041,14 @@
50405041
#size-cells = <2>;
50415042
ranges;
50425043

5043-
status = "disabled";
5044-
5045-
usb_2_dwc3: usb@a800000 {
5046-
compatible = "snps,dwc3";
5047-
reg = <0x0 0x0a800000 0x0 0xcd00>;
5048-
5049-
iommus = <&apps_smmu 0xe0 0x0>;
5050-
interrupts = <GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>;
5051-
5052-
phys = <&usb_hsphy_2>;
5053-
phy-names = "usb2-phy";
5044+
snps,dis_u2_susphy_quirk;
5045+
snps,dis_u3_susphy_quirk;
5046+
snps,dis_enblslpm_quirk;
5047+
snps,has-lpm-erratum;
5048+
snps,hird-threshold = /bits/ 8 <0x10>;
5049+
maximum-speed = "high-speed";
50545050

5055-
snps,dis_u2_susphy_quirk;
5056-
snps,dis_u3_susphy_quirk;
5057-
snps,dis_enblslpm_quirk;
5058-
snps,has-lpm-erratum;
5059-
snps,hird-threshold = /bits/ 8 <0x10>;
5060-
5061-
maximum-speed = "high-speed";
5062-
};
5051+
status = "disabled";
50635052
};
50645053

50655054
tsens0: thermal-sensor@c263000 {

0 commit comments

Comments
 (0)