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@xxxxxxxxxx> --- 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@xxxxxxxxxx>