devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] PCI: qcom: Binding fix
@ 2025-10-10 18:25 Manivannan Sadhasivam
  2025-10-10 18:25 ` [PATCH 1/3] dt-bindings: PCI: Update the email address for Manivannan Sadhasivam Manivannan Sadhasivam
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Manivannan Sadhasivam @ 2025-10-10 18:25 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Abraham I, Bjorn Andersson,
	Krishna Chaitanya Chundru
  Cc: linux-pci, devicetree, linux-kernel, linux-arm-msm,
	Dmitry Baryshkov, Konrad Dybcio, Manivannan Sadhasivam

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/8f2e0631-6c59-4298-b36e-060708970ced@oss.qualcomm.com
[2] https://lore.kernel.org/all/20251008-sm8750-v1-1-daeadfcae980@oss.qualcomm.com

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
---
Manivannan Sadhasivam (3):
      dt-bindings: PCI: Update the email address for Manivannan Sadhasivam
      dt-bindings: PCI: qcom: Enforce check for PHY, PERST# and WAKE# properties
      PCI: qcom: Treat PHY and PERST# as optional for the new binding

 Documentation/devicetree/bindings/pci/pci-ep.yaml  |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-common.yaml  | 22 +++++++++++++++++++++-
 .../devicetree/bindings/pci/qcom,pcie-ep.yaml      |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sa8255p.yaml |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sa8775p.yaml |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sc7280.yaml  |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sc8180x.yaml |  2 +-
 .../bindings/pci/qcom,pcie-sc8280xp.yaml           |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sm8150.yaml  |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sm8250.yaml  |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sm8350.yaml  |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sm8450.yaml  |  2 +-
 .../devicetree/bindings/pci/qcom,pcie-sm8550.yaml  |  2 +-
 .../bindings/pci/qcom,pcie-x1e80100.yaml           |  2 +-
 .../devicetree/bindings/pci/qcom,pcie.yaml         |  2 +-
 drivers/pci/controller/dwc/pcie-qcom.c             | 11 +++++++++--
 16 files changed, 44 insertions(+), 17 deletions(-)
---
base-commit: 5472d60c129f75282d94ae5ad072ee6dfb7c7246
change-id: 20251010-pci-binding-7d4d7799c6ed

Best regards,
-- 
Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-10-26 15:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-10 18:25 [PATCH 0/3] PCI: qcom: Binding fix Manivannan Sadhasivam
2025-10-10 18:25 ` [PATCH 1/3] dt-bindings: PCI: Update the email address for Manivannan Sadhasivam Manivannan Sadhasivam
2025-10-15 12:43   ` Rob Herring (Arm)
2025-10-10 18:25 ` [PATCH 2/3] dt-bindings: PCI: qcom: Enforce check for PHY, PERST# and WAKE# properties Manivannan Sadhasivam
2025-10-10 18:28   ` Konrad Dybcio
2025-10-10 19:33   ` Rob Herring (Arm)
2025-10-11  4:10     ` Manivannan Sadhasivam
2025-10-10 18:25 ` [PATCH 3/3] PCI: qcom: Treat PHY and PERST# as optional for the new binding Manivannan Sadhasivam
2025-10-10 18:32   ` Konrad Dybcio
2025-10-11  4:09     ` Manivannan Sadhasivam
2025-10-13  9:43       ` Bartosz Golaszewski
2025-10-13 14:40       ` Krishna Chaitanya Chundru
2025-10-26 15:57 ` (subset) [PATCH 0/3] PCI: qcom: Binding fix Manivannan Sadhasivam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).