devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] schemas: gpio: Add trigger-source-cells
@ 2023-09-16 16:52 Linus Walleij
  0 siblings, 0 replies; only message in thread
From: Linus Walleij @ 2023-09-16 16:52 UTC (permalink / raw)
  To: Rob Herring, Lee Jones, Krzysztof Kozlowski, Conor Dooley,
	Jacek Anaszewski
  Cc: Pavel Machek, Jan Kundrát, linux-leds, devicetree,
	Linus Walleij

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(+)

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']

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

Best regards,
-- 
Linus Walleij <linus.walleij@linaro.org>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-16 16:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-16 16:52 [PATCH] schemas: gpio: Add trigger-source-cells Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).