Commit Graph

20 Commits

Author SHA1 Message Date
Vivek Pernamitta
a3a111ed95 ARM: dts: msm: Increase pipe clock toggles during L1SS entry
Increase the number of pipe clock toggles that will occur after
phystatus goes high at the output of the PHY during L1SS/P2 entry
in PCS_PCIE_POWER_STATE_CONFIG6 register, so that if the phy and
controller goes out of sync this may help us. The number of pipe
clock toggles is equal to (4*value)+1.

Change-Id: I7a31882f18879ef990825aa2d978fc7f39233472
Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
2025-03-03 02:19:47 -08:00
Vivek Pernamitta
5d615962e8 ARM: dts: msm: pcie: Set ultrashort channel settings sun PCIe
Set RX settings mode to zero for Ultrashort channel
settings for sun PCIe controller.

Change-Id: I50b7896e6dabb2cda069c9242340dee02a225b8c
Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
2024-08-19 21:35:00 -07:00
Prudhvi Yarlagadda
cf4836e995 ARM: dts: msm: Remove SLV_ADDR_SPACE_SIZE register value from dt
No need to configure the SLV_ADDR_SPACE_SIZE register value
from devicetree node because the PCIe driver is taking care
of configure it to the maximum possible size.

Change-Id: I925b51a913be06d14c62ce65a954cdb0d96a814f
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2024-06-03 16:00:04 -07:00
Prudhvi Yarlagadda
f69088c645 Revert "ARM: dts: msm: Add GenPD phy regulator to PCIe node"
This reverts commit 9ff494b311.

Facing issue where PCIe PHY GDSC is getting turned off when system
suspend is happening. So reverting this change till we find a fix.

Change-Id: I7ea0393f3948a49d8eb012ee548d200f040badd6
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2024-04-04 16:56:19 -07:00
qctecmdr
778b868263 Merge "ARM: dts: msm: Add GenPD phy regulator to PCIe node" 2024-03-27 13:57:44 -07:00
Prudhvi Yarlagadda
1b00a46e8d ARM: dts: msm: Add PCIe SM debug registers to PCIe dt node
Add the list of PCIe SM registers that need to be dumped
to the PCIe dt node in sun.

Change-Id: Ic2e0518ac611ef5e409f88dcd0f69eb2ce4d8566
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2024-03-08 11:28:47 -08:00
Prudhvi Yarlagadda
84b882a86f ARM: dts: msm: Update pcie phy settings for sun
Update pcie phy settings for sun to version 94.

Change-Id: I5af8d79cecba0ee1088f379b0d823f3a841e8420
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2024-02-21 17:08:47 -08:00
Prudhvi Yarlagadda
9ff494b311 ARM: dts: msm: Add GenPD phy regulator to PCIe node
Replace the PCIe phy gdsc handler with GenPD based PCIe phy
regulator handler to the pcie devicetree node in sun.

Change-Id: I3710e1d90cfd1387e3ac41a5b76bebb5b61d80ba
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2024-02-20 15:40:31 -08:00
Prudhvi Yarlagadda
ae6bff3315 ARM: dts: msm: Enable PCIe CESTA drv for sun
Enable PCIe CESTA based drv functionality for sun platform.

Change-Id: I601398b92f7d7d28956573dd413548aaf7716340
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-12-20 15:36:46 -08:00
Prudhvi Yarlagadda
a7d6099a6d ARM: dts: msm: PCIe CESTA related dt properties
PCIe CESTA related dtsi node properties and cesta
based is not yet enabled.

Change-Id: I5846df725b690d95ef54ec5f7b85cbe1fe206325
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-12-20 15:36:33 -08:00
Prudhvi Yarlagadda
3f805a805c ARM: dts: msm: Update the pcie BAR address in ranges property
Update the pcie BAR address in ranges property for sun.

ADSP subsystem is not having access to the previously given
(0x60300000) memory region. So, moving to the lower memory
region to avoid NOC errors for adsp.

Change-Id: Id8223a78cf13d8f2c83095de30b193e85da6829d
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-11-21 15:45:04 -08:00
qctecmdr
b2eefcaa01 Merge "ARM: dts: msm: Add the qref regulator for pcie in sun" 2023-11-20 11:14:25 -08:00
Prudhvi Yarlagadda
f2ee5066d4 ARM: dts: msm: Add the qref regulator for pcie in sun
Add the qref regulator for pcie node in sun.

Change-Id: I8959a683a5d73429069cd6795f00a5b1fe91c082
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-11-17 15:46:01 -08:00
Prudhvi Yarlagadda
37824f4ca3 ARM: dts: msm: Add pcie phy settings for sun
Add pcie phy settings sequence in sun.

Change-Id: I58dfb2ecb586ac4ce4f2e06bbc02a6cb1e803960
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-11-16 18:19:44 -08:00
Prudhvi Yarlagadda
9a8cfbfe05 ARM: dts: msm: Modify the pcie dt node names for sun
Change the pcie devicetree node names to be in line with the
pci-bus.yaml format.

Change-Id: I46b56b7aee492c746554ac2a3575cd11c2108efb
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-11-08 14:29:54 -08:00
qctecmdr
501a7fcfc5 Merge "ARM: dts: msm: Disable SW DRV for pcie in sun" 2023-10-31 15:55:52 -07:00
Prudhvi Yarlagadda
b3ed3392eb ARM: dts: msm: Disable SW DRV for pcie in sun
Disable software DRV (L1SS sleep) with PCIe instance
on sun platform as ADSP subsystem (software DRV component)
doesn't support this functionality.
Only CESTA based hardware DRV is supported.

Change-Id: I75368fab37e8bcaaa3c65320b6fdd37e023d3297
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-10-25 10:52:52 -07:00
Prudhvi Yarlagadda
da81454996 ARM: dts: msm: Add phy gdsc for pcie node in sun
Add the missing phy gdsc node in the pcie dt node for sun.

Change-Id: I0257c6123d4d3e8fe2740569bd4def68fa3c92a8
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-10-24 17:43:14 -07:00
Prudhvi Yarlagadda
bc6d0ca2a9 ARM: dts: msm: Add device_type property for pcie node
Add device_type property for the pcie devicetree nodes
in sun.

This is needed to make sure that the pcie devicetree node
is associated with the pci bus when ranges property gets
parsed by the of/address.c driver.

And this change is mandatory for pci devicetree nodes with
the introduction of the following change in of/address.c
upstream commit <3d5089c4263d> "of/address: Add support
for 3 address cell bus".

Without this change, BAR address allocation failure will
happen as error logs below as the flags cell in ranges
property in devicetree will be read wrong.
pci-msm 1c00000.qcom,pcie:err 0x0060200000..0x00602fffff -> 0x0060200000.
pci-msm 1c00000.qcom,pcie:err 0x0060300000..0x0063ffffff -> 0x0060300000.
pci-msm 1c00000.qcom,pcie: non-prefetchable memory resource required.
pci 0000:00:00.0: BAR 0: no space for [mem size 0x00001000 64bit].
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00001000 64bit].

Change-Id: I8b1591ea83784ffc19c928e1af73117657ac7f15
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-10-16 20:15:04 -07:00
Lazarus Motha
6e6d4bacc1 ARM: dts: msm: Add PCIe Root port configuration for sun
Add initial devicetree nodes and entries to support
PCIe RC0 port configuration on sun.

Change-Id: I3b7419bfd376a51388785cc4e2f9702ddaabe397
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2023-09-22 14:21:32 -07:00