Skip to content

Commit 479236a

Browse files
Krishna chaitanya chundruquic-tingweiz
authored andcommitted
FORMLIST: arm64: dts: qcom: qcs615: enable pcie
Add configurations in devicetree for PCIe0, including registers, clocks, interrupts and phy setting sequence. Add PCIe lane equalization preset properties for 8 GT/s. Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com> Signed-off-by: Ziyue Zhang <ziyue.zhang@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://lore.kernel.org/all/20250702103549.712039-3-ziyue.zhang@oss.qualcomm.com/
1 parent 1db28a9 commit 479236a

1 file changed

Lines changed: 138 additions & 0 deletions

File tree

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

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,144 @@
11001100
qcom,bcm-voters = <&apps_bcm_voter>;
11011101
};
11021102

1103+
pcie: pcie@1c08000 {
1104+
device_type = "pci";
1105+
compatible = "qcom,pcie-qcs615", "qcom,pcie-sm8150";
1106+
reg = <0x0 0x01c08000 0x0 0x3000>,
1107+
<0x0 0x40000000 0x0 0xf1d>,
1108+
<0x0 0x40000f20 0x0 0xa8>,
1109+
<0x0 0x40001000 0x0 0x1000>,
1110+
<0x0 0x40100000 0x0 0x100000>,
1111+
<0x0 0x01c0b000 0x0 0x1000>;
1112+
reg-names = "parf",
1113+
"dbi",
1114+
"elbi",
1115+
"atu",
1116+
"config",
1117+
"mhi";
1118+
#address-cells = <3>;
1119+
#size-cells = <2>;
1120+
ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>,
1121+
<0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>;
1122+
bus-range = <0x00 0xff>;
1123+
1124+
dma-coherent;
1125+
1126+
linux,pci-domain = <0>;
1127+
num-lanes = <1>;
1128+
1129+
interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
1130+
<GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
1131+
<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
1132+
<GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
1133+
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
1134+
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
1135+
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
1136+
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
1137+
<GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
1138+
interrupt-names = "msi0",
1139+
"msi1",
1140+
"msi2",
1141+
"msi3",
1142+
"msi4",
1143+
"msi5",
1144+
"msi6",
1145+
"msi7",
1146+
"global";
1147+
1148+
#interrupt-cells = <1>;
1149+
interrupt-map-mask = <0 0 0 0x7>;
1150+
interrupt-map = <0 0 0 1 &intc GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
1151+
<0 0 0 2 &intc GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
1152+
<0 0 0 3 &intc GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>,
1153+
<0 0 0 4 &intc GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
1154+
1155+
clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
1156+
<&gcc GCC_PCIE_0_AUX_CLK>,
1157+
<&gcc GCC_PCIE_0_CFG_AHB_CLK>,
1158+
<&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
1159+
<&gcc GCC_PCIE_0_SLV_AXI_CLK>,
1160+
<&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>;
1161+
clock-names = "pipe",
1162+
"aux",
1163+
"cfg",
1164+
"bus_master",
1165+
"bus_slave",
1166+
"slave_q2a";
1167+
assigned-clocks = <&gcc GCC_PCIE_0_AUX_CLK>;
1168+
assigned-clock-rates = <19200000>;
1169+
1170+
interconnects = <&aggre1_noc MASTER_PCIE QCOM_ICC_TAG_ALWAYS
1171+
&mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
1172+
<&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
1173+
&config_noc SLAVE_PCIE_0 QCOM_ICC_TAG_ACTIVE_ONLY>;
1174+
interconnect-names = "pcie-mem", "cpu-pcie";
1175+
1176+
iommu-map = <0x0 &apps_smmu 0x400 0x1>,
1177+
<0x100 &apps_smmu 0x401 0x1>;
1178+
1179+
resets = <&gcc GCC_PCIE_0_BCR>;
1180+
reset-names = "pci";
1181+
1182+
power-domains = <&gcc PCIE_0_GDSC>;
1183+
1184+
phys = <&pcie_phy>;
1185+
phy-names = "pciephy";
1186+
1187+
max-link-speed = <2>;
1188+
1189+
operating-points-v2 = <&pcie_opp_table>;
1190+
1191+
status = "disabled";
1192+
1193+
pcie_opp_table: opp-table {
1194+
compatible = "operating-points-v2";
1195+
1196+
/* GEN 1 x1 */
1197+
opp-2500000 {
1198+
opp-hz = /bits/ 64 <2500000>;
1199+
required-opps = <&rpmhpd_opp_low_svs>;
1200+
opp-peak-kBps = <250000 1>;
1201+
};
1202+
1203+
/* GEN 2 x1 */
1204+
opp-5000000 {
1205+
opp-hz = /bits/ 64 <5000000>;
1206+
required-opps = <&rpmhpd_opp_low_svs>;
1207+
opp-peak-kBps = <500000 1>;
1208+
};
1209+
};
1210+
};
1211+
1212+
pcie_phy: phy@1c0e000 {
1213+
compatible = "qcom,qcs615-qmp-gen3x1-pcie-phy";
1214+
reg = <0x0 0x01c0e000 0x0 0x1000>;
1215+
1216+
clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
1217+
<&gcc GCC_PCIE_0_CFG_AHB_CLK>,
1218+
<&gcc GCC_PCIE_0_CLKREF_CLK>,
1219+
<&gcc GCC_PCIE0_PHY_REFGEN_CLK>,
1220+
<&gcc GCC_PCIE_0_PIPE_CLK>;
1221+
clock-names = "aux",
1222+
"cfg_ahb",
1223+
"ref",
1224+
"refgen",
1225+
"pipe";
1226+
1227+
resets = <&gcc GCC_PCIE_0_PHY_BCR>;
1228+
reset-names = "phy";
1229+
1230+
assigned-clocks = <&gcc GCC_PCIE0_PHY_REFGEN_CLK>;
1231+
assigned-clock-rates = <100000000>;
1232+
1233+
#clock-cells = <0>;
1234+
clock-output-names = "pcie_0_pipe_clk";
1235+
1236+
#phy-cells = <0>;
1237+
1238+
status = "disabled";
1239+
};
1240+
11031241
ufs_mem_hc: ufshc@1d84000 {
11041242
compatible = "qcom,qcs615-ufshc", "qcom,ufshc", "jedec,ufs-2.0";
11051243
reg = <0x0 0x01d84000 0x0 0x3000>,

0 commit comments

Comments
 (0)