summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/gpio
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko.stuebner@cherry.de>2023-12-01 17:08:40 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-12-04 11:16:50 +0300
commit52816298bd2a1e8c6fb3d9311730c00ef03c1f03 (patch)
tree7cd97e78215a37f1597261c62c5f0c296995b290 /Documentation/devicetree/bindings/gpio
parent3fde49c5dd8b1a65c44e2d6861899ccfa9c11197 (diff)
downloadlinux-52816298bd2a1e8c6fb3d9311730c00ef03c1f03.tar.xz
dt-bindings: gpio: rockchip: add a pattern for gpio hogs
Allow validating gpio-hogs defined inside the gpio controller node. Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r--Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
index affd823c881d..d76987ce8e50 100644
--- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
+++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
@@ -41,6 +41,13 @@ properties:
"#interrupt-cells":
const: 2
+patternProperties:
+ "^.+-hog(-[0-9]+)?$":
+ type: object
+
+ required:
+ - gpio-hog
+
required:
- compatible
- reg