Skip to content

Commit 837c333

Browse files
abelvesaandersson
authored andcommitted
arm64: dts: qcom: x1e80100: Fix PCIe 6a lanes description
Fix the description and compatible for PCIe 6a, as it is in fact a 4-lanes controller and PHY, but it can also be used in 2-lanes mode. For 4-lanes mode, it uses the lanes provided by PCIe 6b. For 2-lanes mode, PCIe 6a uses 2 lanes and then PCIe 6b uses the other 2 lanes. The number of lanes in which the PHY should be configured depends on a TCSR register value on each individual board. Cc: [email protected] # Depends on pcie-qcom 16.0 GT/s support Fixes: 5eb83fc ("arm64: dts: qcom: x1e80100: Add PCIe nodes") Signed-off-by: Abel Vesa <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Reviewed-by: Johan Hovold <[email protected]> Tested-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 5d3d966 commit 837c333

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2931,7 +2931,7 @@
29312931
dma-coherent;
29322932

29332933
linux,pci-domain = <6>;
2934-
num-lanes = <2>;
2934+
num-lanes = <4>;
29352935

29362936
interrupts = <GIC_SPI 773 IRQ_TYPE_LEVEL_HIGH>,
29372937
<GIC_SPI 774 IRQ_TYPE_LEVEL_HIGH>,
@@ -2997,8 +2997,9 @@
29972997
};
29982998

29992999
pcie6a_phy: phy@1bfc000 {
3000-
compatible = "qcom,x1e80100-qmp-gen4x2-pcie-phy";
3001-
reg = <0 0x01bfc000 0 0x2000>;
3000+
compatible = "qcom,x1e80100-qmp-gen4x4-pcie-phy";
3001+
reg = <0 0x01bfc000 0 0x2000>,
3002+
<0 0x01bfe000 0 0x2000>;
30023003

30033004
clocks = <&gcc GCC_PCIE_6A_PHY_AUX_CLK>,
30043005
<&gcc GCC_PCIE_6A_CFG_AHB_CLK>,
@@ -3023,6 +3024,8 @@
30233024

30243025
power-domains = <&gcc GCC_PCIE_6_PHY_GDSC>;
30253026

3027+
qcom,4ln-config-sel = <&tcsr 0x1a000 0>;
3028+
30263029
#clock-cells = <0>;
30273030
clock-output-names = "pcie6a_pipe_clk";
30283031

0 commit comments

Comments
 (0)