diff mbox series

[2/2] dt-bindings: vexpress-sysreg: Allow for no child nodes

Message ID 20220613171809.3928949-2-robh@kernel.org
State Accepted, archived
Headers show
Series [1/2] dt-bindings: vexpress-sysreg: Add deprecated GPIO provider properties | expand

Checks

Context Check Description
robh/checkpatch warning total: 1 errors, 0 warnings, 0 lines checked
robh/patch-applied success
robh/checkpatch warning total: 1 errors, 0 warnings, 0 lines checked
robh/patch-applied success
robh/checkpatch success
robh/patch-applied success
robh/dtbs-check warning build log
robh/dt-meta-schema success

Commit Message

Rob Herring (Arm) June 13, 2022, 5:18 p.m. UTC
It is valid for arm,vexpress-sysreg to have no child nodes when either
the deprecated binding without child nodes is used or a platform
has no GPIOs. If there are no child nodes, then "#address-cells" and
"#size-cells" should not be required. However, "reg" should be present
in all cases, so let's add it now.

Cc: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Rob Herring (Arm) June 17, 2022, 7:14 p.m. UTC | #1
On Mon, 13 Jun 2022 11:18:08 -0600, Rob Herring wrote:
> It is valid for arm,vexpress-sysreg to have no child nodes when either
> the deprecated binding without child nodes is used or a platform
> has no GPIOs. If there are no child nodes, then "#address-cells" and
> "#size-cells" should not be required. However, "reg" should be present
> in all cases, so let's add it now.
> 
> Cc: Andre Przywara <andre.przywara@arm.com>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml b/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml
index 2d2afada5ad1..f04db802a732 100644
--- a/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml
+++ b/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml
@@ -74,8 +74,7 @@  patternProperties:
 
 required:
   - compatible
-  - "#address-cells"
-  - "#size-cells"
+  - reg
 
 examples:
   - |