Skip to content

Commit 1064dfd

Browse files
authored
Merge pull request #284 from swatagar/qcs615_usb
Qcs615 usb
2 parents f92dc8e + b14bb2c commit 1064dfd

3 files changed

Lines changed: 48 additions & 63 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
@@ -772,11 +772,9 @@
772772
};
773773

774774
&usb_1 {
775-
status = "okay";
776-
};
777-
778-
&usb_1_dwc3 {
779775
dr_mode = "peripheral";
776+
777+
status = "okay";
780778
};
781779

782780
&usb_hsphy_2 {
@@ -788,11 +786,9 @@
788786
};
789787

790788
&usb_2 {
791-
status = "okay";
792-
};
793-
794-
&usb_2_dwc3 {
795789
dr_mode = "host";
790+
791+
status = "okay";
796792
};
797793

798794
&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
@@ -652,11 +652,9 @@
652652
};
653653

654654
&usb_1 {
655-
status = "okay";
656-
};
657-
658-
&usb_1_dwc3 {
659655
dr_mode = "host";
656+
657+
status = "okay";
660658
};
661659

662660
&usb_hsphy_1 {
@@ -668,11 +666,9 @@
668666
};
669667

670668
&usb_2 {
671-
status = "okay";
672-
};
673-
674-
&usb_2_dwc3 {
675669
dr_mode = "host";
670+
671+
status = "okay";
676672
};
677673

678674
&usb_hsphy_2 {

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

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4989,9 +4989,9 @@
49894989
status = "disabled";
49904990
};
49914991

4992-
usb_1: usb@a6f8800 {
4993-
compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
4994-
reg = <0x0 0x0a6f8800 0x0 0x400>;
4992+
usb_1: usb@a600000 {
4993+
compatible = "qcom,qcs615-dwc3", "qcom,snps-dwc3";
4994+
reg = <0x0 0x0a600000 0x0 0xfc100>;
49954995

49964996
clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>,
49974997
<&gcc GCC_USB30_PRIM_MASTER_CLK>,
@@ -5010,52 +5010,49 @@
50105010
<&gcc GCC_USB30_PRIM_MASTER_CLK>;
50115011
assigned-clock-rates = <19200000>, <200000000>;
50125012

5013-
interrupts-extended = <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH 0>,
5013+
interrupts-extended = <&intc GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>,
5014+
<&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH 0>,
50145015
<&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>,
50155016
<&pdc 9 IRQ_TYPE_EDGE_BOTH>,
50165017
<&pdc 8 IRQ_TYPE_EDGE_BOTH>,
50175018
<&pdc 6 IRQ_TYPE_LEVEL_HIGH>;
5018-
interrupt-names = "pwr_event",
5019+
interrupt-names = "dwc_usb3",
5020+
"pwr_event",
50195021
"hs_phy_irq",
50205022
"dp_hs_phy_irq",
50215023
"dm_hs_phy_irq",
50225024
"ss_phy_irq";
50235025

5026+
iommus = <&apps_smmu 0x140 0x0>;
50245027
power-domains = <&gcc USB30_PRIM_GDSC>;
50255028
required-opps = <&rpmhpd_opp_nom>;
50265029

5030+
phys = <&usb_hsphy_1>, <&usb_qmpphy>;
5031+
phy-names = "usb2-phy", "usb3-phy";
5032+
50275033
resets = <&gcc GCC_USB30_PRIM_BCR>;
50285034

50295035
#address-cells = <2>;
50305036
#size-cells = <2>;
50315037
ranges;
50325038

5033-
status = "disabled";
5034-
5035-
usb_1_dwc3: usb@a600000 {
5036-
compatible = "snps,dwc3";
5037-
reg = <0x0 0x0a600000 0x0 0xcd00>;
5038-
5039-
iommus = <&apps_smmu 0x140 0x0>;
5040-
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH 0>;
5039+
snps,dis-u1-entry-quirk;
5040+
snps,dis-u2-entry-quirk;
5041+
snps,dis_u2_susphy_quirk;
5042+
snps,dis_u3_susphy_quirk;
5043+
snps,dis_enblslpm_quirk;
5044+
snps,has-lpm-erratum;
5045+
snps,hird-threshold = /bits/ 8 <0x10>;
5046+
snps,usb3_lpm_capable;
50415047

5042-
phys = <&usb_hsphy_1>, <&usb_qmpphy>;
5043-
phy-names = "usb2-phy", "usb3-phy";
5048+
wakeup-source;
50445049

5045-
snps,dis-u1-entry-quirk;
5046-
snps,dis-u2-entry-quirk;
5047-
snps,dis_u2_susphy_quirk;
5048-
snps,dis_u3_susphy_quirk;
5049-
snps,dis_enblslpm_quirk;
5050-
snps,has-lpm-erratum;
5051-
snps,hird-threshold = /bits/ 8 <0x10>;
5052-
snps,usb3_lpm_capable;
5053-
};
5050+
status = "disabled";
50545051
};
50555052

5056-
usb_2: usb@a8f8800 {
5057-
compatible = "qcom,qcs615-dwc3", "qcom,dwc3";
5058-
reg = <0x0 0x0a8f8800 0x0 0x400>;
5053+
usb_2: usb@a800000 {
5054+
compatible = "qcom,qcs615-dwc3", "qcom,snps-dwc3";
5055+
reg = <0x0 0x0a800000 0x0 0xfc100>;
50595056

50605057
clocks = <&gcc GCC_CFG_NOC_USB2_SEC_AXI_CLK>,
50615058
<&gcc GCC_USB20_SEC_MASTER_CLK>,
@@ -5074,18 +5071,24 @@
50745071
<&gcc GCC_USB20_SEC_MASTER_CLK>;
50755072
assigned-clock-rates = <19200000>, <200000000>;
50765073

5077-
interrupts-extended = <&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
5074+
interrupts-extended = <&intc GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>,
5075+
<&intc GIC_SPI 663 IRQ_TYPE_LEVEL_HIGH 0>,
50785076
<&intc GIC_SPI 662 IRQ_TYPE_LEVEL_HIGH 0>,
50795077
<&pdc 11 IRQ_TYPE_EDGE_BOTH>,
50805078
<&pdc 10 IRQ_TYPE_EDGE_BOTH>;
5081-
interrupt-names = "pwr_event",
5079+
interrupt-names = "dwc_usb3",
5080+
"pwr_event",
50825081
"hs_phy_irq",
50835082
"dp_hs_phy_irq",
50845083
"dm_hs_phy_irq";
50855084

5085+
iommus = <&apps_smmu 0xe0 0x0>;
50865086
power-domains = <&gcc USB20_SEC_GDSC>;
50875087
required-opps = <&rpmhpd_opp_nom>;
50885088

5089+
phys = <&usb_hsphy_2>;
5090+
phy-names = "usb2-phy";
5091+
50895092
resets = <&gcc GCC_USB20_SEC_BCR>;
50905093

50915094
qcom,select-utmi-as-pipe-clk;
@@ -5094,26 +5097,16 @@
50945097
#size-cells = <2>;
50955098
ranges;
50965099

5097-
status = "disabled";
5098-
5099-
usb_2_dwc3: usb@a800000 {
5100-
compatible = "snps,dwc3";
5101-
reg = <0x0 0x0a800000 0x0 0xcd00>;
5102-
5103-
iommus = <&apps_smmu 0xe0 0x0>;
5104-
interrupts = <GIC_SPI 664 IRQ_TYPE_LEVEL_HIGH 0>;
5100+
snps,dis_u2_susphy_quirk;
5101+
snps,dis_u3_susphy_quirk;
5102+
snps,dis_enblslpm_quirk;
5103+
snps,has-lpm-erratum;
5104+
snps,hird-threshold = /bits/ 8 <0x10>;
5105+
maximum-speed = "high-speed";
51055106

5106-
phys = <&usb_hsphy_2>;
5107-
phy-names = "usb2-phy";
5107+
wakeup-source;
51085108

5109-
snps,dis_u2_susphy_quirk;
5110-
snps,dis_u3_susphy_quirk;
5111-
snps,dis_enblslpm_quirk;
5112-
snps,has-lpm-erratum;
5113-
snps,hird-threshold = /bits/ 8 <0x10>;
5114-
5115-
maximum-speed = "high-speed";
5116-
};
5109+
status = "disabled";
51175110
};
51185111

51195112
tsens0: thermal-sensor@c263000 {

0 commit comments

Comments
 (0)