PCI: qcom: Add support for SC8280XP
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 14 Jul 2022 07:13:44 +0000 (09:13 +0200)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Tue, 23 Aug 2022 07:25:01 +0000 (09:25 +0200)
commit70574511f3fc2eea360043aaf7fcbbe4b1ea22b9
tree827a0ad26f6ccd92b5769d84d1ee8703e6ef99bc
parent76c4207f4085f00d03c96c72c528ee0810692f57
PCI: qcom: Add support for SC8280XP

The SC8280XP platform has seven PCIe controllers: two used with USB4,
two 4-lane, two 2-lane and one 1-lane.

Add a new "qcom,pcie-sc8280xp" compatible string and reuse the 1.9.0
ops.

Note that the SC8280XP controllers need two or three interconnect
clocks to be enabled. Model these as optional clocks to avoid encoding
devicetree data in the PCIe driver.

Note that the same could be done for the SM8450 interconnect clocks and
possibly also for the TBU clocks.

Link: https://lore.kernel.org/r/20220714071348.6792-5-johan+linaro@kernel.org
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com>
drivers/pci/controller/dwc/pcie-qcom.c