diff mbox series

schemas: gpio: Add trigger-source-cells

Message ID 20230916-gpio-triggers-v1-1-6e5052bead9a@linaro.org
State New
Headers show
Series schemas: gpio: Add trigger-source-cells | expand

Commit Message

Linus Walleij Sept. 16, 2023, 4:52 p.m. UTC
This adds trigger-source-cells to the GPIO schema,
and makes it depend on the GPIO controller also being
an interrupt controller.

This makes the most sense when reusing the
trigger-sources also for GPIO, driver bindings can
opt in by specifying the number of cells.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 dtschema/schemas/gpio/gpio.yaml | 2 ++
 1 file changed, 2 insertions(+)


---
base-commit: 033d0b1430e0670ddeb58f60fbff0ecefccaa925
change-id: 20230916-gpio-triggers-25ef26ddd711

Best regards,
diff mbox series

Patch

diff --git a/dtschema/schemas/gpio/gpio.yaml b/dtschema/schemas/gpio/gpio.yaml
index 87c381b2942b..0c3950d8789e 100644
--- a/dtschema/schemas/gpio/gpio.yaml
+++ b/dtschema/schemas/gpio/gpio.yaml
@@ -13,6 +13,7 @@  select: true
 
 properties:
   "#gpio-cells": true
+  "#trigger-source-cells": true
   gpio-controller:
     $ref: /schemas/types.yaml#/definitions/flag
   gpio-line-names:
@@ -36,6 +37,7 @@  properties:
 dependencies:
   gpio-controller: ['#gpio-cells']
   '#gpio-cells': [ gpio-controller ]
+  '#trigger-source-cells': [ interrupt-controller ]
   gpio-line-names: ['#gpio-cells']
   ngpios: ['#gpio-cells']
   gpio-reserved-ranges: ['#gpio-cells']