linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: PCI: apple: Add missing 'power-domains' property
@ 2022-05-31 21:58 Rob Herring
  2022-06-01 16:00 ` Sven Peter
  2022-06-02 15:08 ` Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2022-05-31 21:58 UTC (permalink / raw)
  To: Hector Martin, Sven Peter, Alyssa Rosenzweig, Bjorn Helgaas,
	Krzysztof Kozlowski, Mark Kettenis
  Cc: linux-arm-kernel, linux-pci, devicetree, linux-kernel

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>
---
v2:
 - Correct the power-domains to be 1 and update the example
---
 Documentation/devicetree/bindings/pci/apple,pcie.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pci/apple,pcie.yaml b/Documentation/devicetree/bindings/pci/apple,pcie.yaml
index daf602ac0d0f..aa38680aaaca 100644
--- a/Documentation/devicetree/bindings/pci/apple,pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/apple,pcie.yaml
@@ -68,6 +68,9 @@ properties:
   iommu-map: true
   iommu-map-mask: true
 
+  power-domains:
+    maxItems: 1
+
 required:
   - compatible
   - reg
@@ -134,7 +137,7 @@ examples:
         ranges = <0x43000000 0x6 0xa0000000 0x6 0xa0000000 0x0 0x20000000>,
                  <0x02000000 0x0 0xc0000000 0x6 0xc0000000 0x0 0x40000000>;
 
-        power-domains = <&ps_apcie>, <&ps_apcie_gp>, <&ps_pcie_ref>;
+        power-domains = <&ps_apcie_gp>;
         pinctrl-0 = <&pcie_pins>;
         pinctrl-names = "default";
 
-- 
2.34.1


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

* Re: [PATCH v2] dt-bindings: PCI: apple: Add missing 'power-domains' property
  2022-05-31 21:58 [PATCH v2] dt-bindings: PCI: apple: Add missing 'power-domains' property Rob Herring
@ 2022-06-01 16:00 ` Sven Peter
  2022-06-02 15:08 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Sven Peter @ 2022-06-01 16:00 UTC (permalink / raw)
  To: Rob Herring
  Cc: Hector Martin, Alyssa Rosenzweig, Bjorn Helgaas,
	Krzysztof Kozlowski, Mark Kettenis, linux-arm-kernel, linux-pci,
	devicetree, linux-kernel

> On 31. May 2022, at 23:58, Rob Herring <robh@kernel.org> wrote:
> 
> 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>

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

* Re: [PATCH v2] dt-bindings: PCI: apple: Add missing 'power-domains' property
  2022-05-31 21:58 [PATCH v2] dt-bindings: PCI: apple: Add missing 'power-domains' property Rob Herring
  2022-06-01 16:00 ` Sven Peter
@ 2022-06-02 15:08 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2022-06-02 15:08 UTC (permalink / raw)
  To: Rob Herring
  Cc: linux-kernel, Sven Peter, Hector Martin, Krzysztof Kozlowski,
	Alyssa Rosenzweig, Bjorn Helgaas, devicetree, Mark Kettenis,
	linux-arm-kernel, linux-pci

On Tue, 31 May 2022 16:58:14 -0500, Rob Herring wrote:
> 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>
> ---
> v2:
>  - Correct the power-domains to be 1 and update the example
> ---
>  Documentation/devicetree/bindings/pci/apple,pcie.yaml | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

Applied, thanks!

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

end of thread, other threads:[~2022-06-02 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 21:58 [PATCH v2] dt-bindings: PCI: apple: Add missing 'power-domains' property Rob Herring
2022-06-01 16:00 ` Sven Peter
2022-06-02 15:08 ` Rob Herring

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).