[PATCH 3/3] dt-bindings: gpio: rockchip, gpio add optional 'gpio-ranges'
Jianqun Xu
jay.xu at rock-chips.com
Fri Mar 4 01:05:23 PST 2022
Add a optional property 'gpio-ranges', such as
gpio-ranges = <&pinctrl 0 0 32>;
When the gpio nodes are under pinctrl, the property 'gpio-ranges' is
a optional property, but when they are under root node, the property
'gpio-ranges' is a required property.
Signed-off-by: Jianqun Xu <jay.xu at rock-chips.com>
---
.../devicetree/bindings/gpio/rockchip,gpio-bank.yaml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
index d4e42c2b995b..7a075fcea75f 100644
--- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
+++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
@@ -49,7 +49,12 @@ required:
- interrupt-controller
- "#interrupt-cells"
-additionalProperties: false
+additionalProperties: true
+ gpio-ranges:
+ maxItems: 1
+ description: |
+ The property is a optional if gpio node under pinctrl node;
+ but it is a required property if the gpio is under root node.
examples:
- |
--
2.25.1
More information about the Linux-rockchip
mailing list