Skip to contentSkip to conversation

dt-bindings: vexpress-sysreg: Add deprecated GPIO provider properties

PATCH Applied Rob Herring 1 participant 4 messages Jun 13, 2022 – Jun 17, 2022

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/2 dt-bindings: vexpress-sysreg: Add deprecated GPIO provider properties

While the current binding expects a child GPIO node, the old style binding with GPIO provider properties in the parent vexpress-sysreg node is still in use. Add the GPIO provider properties as deprecated.

Cc Andre Przywara <[email protected]>
---
 Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml +7 -0
index b5e26e41f88c..2d2afada5ad1 100644
@@ -29,6 +29,13 @@ properties:
 
   ranges: true
 
+  gpio-controller:
+    deprecated: true
+
+  "#gpio-cells":
+    deprecated: true
+    const: 2
+
 additionalProperties: false
 
 patternProperties:
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author maintainer
#1 lore raw

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

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 <[email protected]>
---
 Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml +1 -2
index 2d2afada5ad1..f04db802a732 100644
@@ -74,8 +74,7 @@ patternProperties:
 
 required:
   - compatible
-  - "#address-cells"
-  - "#size-cells"
+  - reg
 
 examples:
   - |
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author maintainer Applied
#3 lore raw
In reply to Rob Herring
Quoted 10 lines · Rob Herring

While the current binding expects a child GPIO node, the old style binding with GPIO provider properties in the parent vexpress-sysreg node is still in use. Add the GPIO provider properties as deprecated.

Cc Andre Przywara <[email protected]>
---
 Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

Applied, thanks!

author maintainer Applied
#2 lore raw

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

In reply to Rob Herring
Quoted 6 lines · Rob Herring

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.

Quoted 6 lines
Cc Andre Przywara <[email protected]>
---
 Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Applied, thanks!