diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2025-11-22 11:29:08 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2025-11-22 11:29:08 +0000 |
| commit | d50fbf3559ea220ee3ea5a8bde6e33ddbf29d019 (patch) | |
| tree | 1c4f06757ee49496e55f54c231a5a003b590a909 /Bindings/trigger-source/gpio-trigger.yaml | |
| parent | b8aada787cdf692c810a139664cdbd5fe3898e25 (diff) | |
Import device-tree files from Linux 6.17vendor/device-tree/6.17vendor/device-tree
Diffstat (limited to 'Bindings/trigger-source/gpio-trigger.yaml')
| -rw-r--r-- | Bindings/trigger-source/gpio-trigger.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Bindings/trigger-source/gpio-trigger.yaml b/Bindings/trigger-source/gpio-trigger.yaml new file mode 100644 index 000000000000..1331d153ee82 --- /dev/null +++ b/Bindings/trigger-source/gpio-trigger.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/trigger-source/gpio-trigger.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic trigger source using GPIO + +description: A GPIO used as a trigger source. + +maintainers: + - Jonathan Santos <Jonathan.Santos@analog.com> + +properties: + compatible: + const: gpio-trigger + + '#trigger-source-cells': + const: 0 + + gpios: + maxItems: 1 + description: GPIO to be used as a trigger source. + +required: + - compatible + - '#trigger-source-cells' + - gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + trigger { + compatible = "gpio-trigger"; + #trigger-source-cells = <0>; + gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; + }; |
