aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/gpio
diff options
context:
space:
mode:
authorGravatar Heiko Stuebner <heiko.stuebner@cherry.de> 2023-12-01 15:08:40 +0100
committerGravatar Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 2023-12-04 09:16:50 +0100
commit52816298bd2a1e8c6fb3d9311730c00ef03c1f03 (patch)
tree7cd97e78215a37f1597261c62c5f0c296995b290 /Documentation/devicetree/bindings/gpio
parentdt-bindings: gpio: modepin: Describe label property (diff)
downloadlinux-52816298bd2a1e8c6fb3d9311730c00ef03c1f03.tar.gz
linux-52816298bd2a1e8c6fb3d9311730c00ef03c1f03.tar.bz2
linux-52816298bd2a1e8c6fb3d9311730c00ef03c1f03.zip
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