Skip to content

PCI: qcom: Binding fix

Manivannan Sadhasivam linux-arm-msm linux-devicetree linux-pci lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20251010-pci-binding-7d4d7799c6ed

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review
  2. v13 patches 9 repliesApplied

Changes in v2 from the cover letter

- Dropped the binding patch that got applied.
- Dropped mandating the WAKE# property in binding as not all platforms are supplying it and also fixed the binding example reported by the bot.
- Reworked the driver patch to just make 'phy' property as optional since all platforms specify PERST#.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: PCI: qcom: Enforce check for PHY, PERST# propertiesDocumentation/devicetree/bindings/pci/qcom,pcie-common.yaml Documentation/devicetree/bindings/pci/qcom,pcie-sc8180x.yaml+19 -02 replies
2/2PCI: qcom: Treat PHY as optional for the new bindingdrivers/pci/controller/dwc/pcie-qcom.c+1 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchKonrad Dybcio
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] PCI: qcom: Binding fix

Hi,

This series fixes the binding issue around the PERST# and PHY properties. The binding issue was reported in [1], while discussing a DTS fix [2].

The binding fix provided in this series is not sufficient enough to spot all the shenanigans, especially keeping one property in Controller node and another in Root Port node. But this series does catch the DTS issue fixed by [2]:

arch/arm64/boot/dts/qcom/sm8750-mtp.dtb: pcie@1c00000 (qcom,pcie-sm8750): 'oneOf' conditional failed, one must be fixed:

	'phys' is a required property
	False schema does not allow [[148, 102, 1]]
	False schema does not allow [[148, 104, 0]]
	from schema $id: http://devicetree.org/schemas/pci/qcom,pcie-sm8550.yaml#

arch/arm64/boot/dts/qcom/sm8750-mtp.dtb: pcie@1c00000 (qcom,pcie-sm8750): pcie@0: 'oneOf' conditional failed, one must be fixed:
'reset-gpios' is a required property
'wake-gpios' is a required property
False schema does not allow [[34]]
from schema $id: http://devicetree.org/schemas/pci/qcom,pcie-sm8550.yaml#
arch/arm64/boot/dts/qcom/sm8750-mtp.dtb: pcie@1c00000 (qcom,pcie-sm8750): Unevaluated properties are not allowed ('#address-cells', '#interrupt-cells', '#size-cells', 'bus-range', 'device_type', 'dma-coherent', 'interconnect-names', 'interconnects', 'interrupt-map', 'interrupt-map-mask', 'iommu-map', 'linux,pci-domain', 'msi-map', 'msi-map-mask', 'num-lanes', 'operating-points-v2', 'opp-table', 'pcie@0', 'perst-gpios', 'power-domains', 'ranges', 'wake-gpios' were unexpected)
from schema $id: http://devicetree.org/schemas/pci/qcom,pcie-sm8550.yaml#

Thanks to Dmitry for suggesting the binding fix!

[1] https://lore.kernel.org/linux-pci/[email protected]
[2] https://lore.kernel.org/all/[email protected]

---
Changes in v2:
- Dropped the binding patch that got applied.
- Dropped mandating the WAKE# property in binding as not all platforms are supplying it and also fixed the binding example reported by the bot.
- Reworked the driver patch to just make 'phy' property as optional since all platforms specify PERST#.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Manivannan Sadhasivam (2):
dt-bindings: PCI: qcom: Enforce check for PHY, PERST# properties
PCI: qcom: Treat PHY as optional for the new binding

 .../devicetree/bindings/pci/qcom,pcie-common.yaml        | 16 ++++++++++++++++
 .../devicetree/bindings/pci/qcom,pcie-sc8180x.yaml       |  3 +++
 drivers/pci/controller/dwc/pcie-qcom.c                   |  2 +-
 3 files changed, 20 insertions(+), 1 deletion(-)

---
base-commit: 5472d60c129f75282d94ae5ad072ee6dfb7c7246
change-id: 20251010-pci-binding-7d4d7799c6ed

Best regards,

Signature · 1 line
Manivannan Sadhasivam <[email protected]>