dt-bindings: gpio: rockchip: add a pattern for gpio hogs

A patch from »dt-bindings: gpio: rockchip: add a pattern for gpio hogs« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko.stuebner@...> Date: Wed, 15 Nov 2023 21:10:52 +0100

Commit-Message

Allow validating gpio-hogs defined inside the gpio controller node. Signed-off-by: Heiko Stuebner <heiko.stuebner@...>

Patch-Comment

.../devicetree/bindings/gpio/rockchip,gpio-bank.yaml | 7 +++++++ 1 file changed, 7 insertions(+)

Statistics

  • 7 lines added
  • 0 lines removed

Changes

-------- Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml --------
index affd823c881d..d76987ce8e50 100644
@@ -41,6 +41,13 @@ properties:
"#interrupt-cells":
const: 2
+patternProperties:
+ "^.+-hog(-[0-9]+)?$":
+ type: object
+
+ required:
+ - gpio-hog
+
required:
- compatible
- reg
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...