Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: PCI: apple: Add missing 'power-domains' property

The 'unevaluatedProperties' schema checks is not fully working and doesn't
catch some cases where there's a $ref to another schema. A fix is pending,
but results in new warnings in examples.

The Apple PCIe host schema is missing 'power-domains' in the schema.
The example has 3 power domains. However, this is wrong too as actual
dts files have a single power domain and Sven confirmed 1 is correct.

Cc: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/r/20220531215815.2408477-1-robh@kernel.org

+4 -1
+4 -1
Documentation/devicetree/bindings/pci/apple,pcie.yaml
··· 68 68 iommu-map: true 69 69 iommu-map-mask: true 70 70 71 + power-domains: 72 + maxItems: 1 73 + 71 74 required: 72 75 - compatible 73 76 - reg ··· 137 134 ranges = <0x43000000 0x6 0xa0000000 0x6 0xa0000000 0x0 0x20000000>, 138 135 <0x02000000 0x0 0xc0000000 0x6 0xc0000000 0x0 0x40000000>; 139 136 140 - power-domains = <&ps_apcie>, <&ps_apcie_gp>, <&ps_pcie_ref>; 137 + power-domains = <&ps_apcie_gp>; 141 138 pinctrl-0 = <&pcie_pins>; 142 139 pinctrl-names = "default"; 143 140