dt-bindings: PCI: qcom,pcie-sm8550: Move SM8550 to dedicated schema
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 26 Jan 2024 08:56:42 +0000 (09:56 +0100)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Fri, 23 Feb 2024 11:33:20 +0000 (11:33 +0000)
commitb8d3404058a6881a40d692d4668f9ec61f2117e1
tree4808305228dea3e59224500acdd334d56ec9f01d
parent6613476e225e090cc9aad49be7fa504e290dd33d
dt-bindings: PCI: qcom,pcie-sm8550: Move SM8550 to dedicated schema

The qcom,pcie.yaml binding file containing all possible Qualcomm SoC
PCIe root complexes gets quite complicated with numerous if:then:
conditions customizing clocks, interrupts, regs and resets.  Adding and
reviewing new devices is difficult, so simplify it by having shared
common binding and file with only one group of compatible devices:

1. Copy all common qcom,pcie.yaml properties (so everything except
   supplies) to a new shared qcom,pcie-common.yaml schema.
2. Move SM8550 PCIe compatible devices to dedicated binding file.

This creates equivalent SM8550 schema file, except:
 - Missing required compatible which is actually redundant.
 - Expecting eight MSI interrupts, instead of only one, which was
   incomplete hardware description.

Link: https://lore.kernel.org/linux-pci/20240126-dt-bindings-pci-qcom-split-v3-1-f23cda4d74c0@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/pci/qcom,pcie.yaml