Skip to content

Commit 0d43c66

Browse files
Kriskura176767Yuanjie Yang
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 c950ddc commit 0d43c66

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_2_hsphy {
@@ -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
@@ -555,11 +555,9 @@
555555
*/
556556

557557
&usb_1 {
558-
status = "okay";
559-
};
560-
561-
&usb_1_dwc3 {
562558
dr_mode = "host";
559+
560+
status = "okay";
563561
};
564562

565563
&usb_1_hsphy {
@@ -571,11 +569,9 @@
571569
};
572570

573571
&usb_2 {
574-
status = "okay";
575-
};
576-
577-
&usb_2_dwc3 {
578572
dr_mode = "host";
573+
574+
status = "okay";
579575
};
580576

581577
&usb_2_hsphy {

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

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4956,9 +4956,9 @@
49564956
status = "disabled";
49574957
};
49584958

4959-
usb_1: usb@a6f8800 {
4960-
compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
4961-
reg = <0x0 0x0a6f8800 0x0 0x400>;
4959+
usb_1: usb@a600000 {
4960+
compatible = "qcom,qcs615-dwc3", "qcom,snps-dwc3";
4961+
reg = <0x0 0x0a600000 0x0 0xfc100>;
49624962

49634963
clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>,
49644964
<&gcc GCC_USB30_PRIM_MASTER_CLK>,
@@ -4977,52 +4977,47 @@
49774977
<&gcc GCC_USB30_PRIM_MASTER_CLK>;
49784978
assigned-clock-rates = <19200000>, <200000000>;
49794979

4980-
interrupts-extended = <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH 0>,
4980+
interrupts-extended = <&intc GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>,
4981+
<&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH 0>,
49814982
<&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>,
49824983
<&pdc 9 IRQ_TYPE_EDGE_BOTH>,
49834984
<&pdc 8 IRQ_TYPE_EDGE_BOTH>,
49844985
<&pdc 6 IRQ_TYPE_LEVEL_HIGH>;
4985-
interrupt-names = "pwr_event",
4986+
interrupt-names = "dwc_usb3",
4987+
"pwr_event",
49864988
"hs_phy_irq",
49874989
"dp_hs_phy_irq",
49884990
"dm_hs_phy_irq",
49894991
"ss_phy_irq";
49904992

4993+
iommus = <&apps_smmu 0x140 0x0>;
49914994
power-domains = <&gcc USB30_PRIM_GDSC>;
49924995
required-opps = <&rpmhpd_opp_nom>;
49934996

4997+
phys = <&usb_hsphy_1>, <&usb_qmpphy>;
4998+
phy-names = "usb2-phy", "usb3-phy";
4999+
49945000
resets = <&gcc GCC_USB30_PRIM_BCR>;
49955001

49965002
#address-cells = <2>;
49975003
#size-cells = <2>;
49985004
ranges;
49995005

5000-
status = "disabled";
5001-
5002-
usb_1_dwc3: usb@a600000 {
5003-
compatible = "snps,dwc3";
5004-
reg = <0x0 0x0a600000 0x0 0xcd00>;
5005-
5006-
iommus = <&apps_smmu 0x140 0x0>;
5007-
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>;
5006+
snps,dis-u1-entry-quirk;
5007+
snps,dis-u2-entry-quirk;
5008+
snps,dis_u2_susphy_quirk;
5009+
snps,dis_u3_susphy_quirk;
5010+
snps,dis_enblslpm_quirk;
5011+
snps,has-lpm-erratum;
5012+
snps,hird-threshold = /bits/ 8 <0x10>;
5013+
snps,usb3_lpm_capable;
50085014

5009-
phys = <&usb_1_hsphy>, <&usb_qmpphy>;
5010-
phy-names = "usb2-phy", "usb3-phy";
5011-
5012-
snps,dis-u1-entry-quirk;
5013-
snps,dis-u2-entry-quirk;
5014-
snps,dis_u2_susphy_quirk;
5015-
snps,dis_u3_susphy_quirk;
5016-
snps,dis_enblslpm_quirk;
5017-
snps,has-lpm-erratum;
5018-
snps,hird-threshold = /bits/ 8 <0x10>;
5019-
snps,usb3_lpm_capable;
5020-
};
5015+
status = "disabled";
50215016
};
50225017

5023-
usb_2: usb@a8f8800 {
5024-
compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
5025-
reg = <0x0 0x0a8f8800 0x0 0x400>;
5018+
usb_2: usb@a800000 {
5019+
compatible = "qcom,qcs615-dwc3", "qcom,snps-dwc3";
5020+
reg = <0x0 0x0a800000 0x0 0xfc100>;
50265021

50275022
clocks = <&gcc GCC_CFG_NOC_USB2_SEC_AXI_CLK>,
50285023
<&gcc GCC_USB20_SEC_MASTER_CLK>,
@@ -5041,18 +5036,24 @@
50415036
<&gcc GCC_USB20_SEC_MASTER_CLK>;
50425037
assigned-clock-rates = <19200000>, <200000000>;
50435038

5044-
interrupts-extended = <&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
5039+
interrupts-extended = <&intc GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>,
5040+
<&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
50455041
<&intc GIC_SPI 662 IRQ_TYPE_LEVEL_HIGH 0>,
50465042
<&pdc 11 IRQ_TYPE_EDGE_BOTH>,
50475043
<&pdc 10 IRQ_TYPE_EDGE_BOTH>;
5048-
interrupt-names = "pwr_event",
5044+
interrupt-names = "dwc_usb3",
5045+
"pwr_event",
50495046
"hs_phy_irq",
50505047
"dp_hs_phy_irq",
50515048
"dm_hs_phy_irq";
50525049

5050+
iommus = <&apps_smmu 0xe0 0x0>;
50535051
power-domains = <&gcc USB20_SEC_GDSC>;
50545052
required-opps = <&rpmhpd_opp_nom>;
50555053

5054+
phys = <&usb_hsphy_2>;
5055+
phy-names = "usb2-phy";
5056+
50565057
resets = <&gcc GCC_USB20_SEC_BCR>;
50575058

50585059
qcom,select-utmi-as-pipe-clk;
@@ -5061,26 +5062,14 @@
50615062
#size-cells = <2>;
50625063
ranges;
50635064

5064-
status = "disabled";
5065-
5066-
usb_2_dwc3: usb@a800000 {
5067-
compatible = "snps,dwc3";
5068-
reg = <0x0 0x0a800000 0x0 0xcd00>;
5069-
5070-
iommus = <&apps_smmu 0xe0 0x0>;
5071-
interrupts = <GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>;
5072-
5073-
phys = <&usb_2_hsphy>;
5074-
phy-names = "usb2-phy";
5065+
snps,dis_u2_susphy_quirk;
5066+
snps,dis_u3_susphy_quirk;
5067+
snps,dis_enblslpm_quirk;
5068+
snps,has-lpm-erratum;
5069+
snps,hird-threshold = /bits/ 8 <0x10>;
5070+
maximum-speed = "high-speed";
50755071

5076-
snps,dis_u2_susphy_quirk;
5077-
snps,dis_u3_susphy_quirk;
5078-
snps,dis_enblslpm_quirk;
5079-
snps,has-lpm-erratum;
5080-
snps,hird-threshold = /bits/ 8 <0x10>;
5081-
5082-
maximum-speed = "high-speed";
5083-
};
5072+
status = "disabled";
50845073
};
50855074

50865075
tsens0: thermal-sensor@c263000 {

0 commit comments

Comments
 (0)