Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/trigger-source/gpio-trigger.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Generic trigger source using GPIO
8
9description: A GPIO used as a trigger source.
10
11maintainers:
12 - Jonathan Santos <Jonathan.Santos@analog.com>
13
14properties:
15 compatible:
16 const: gpio-trigger
17
18 '#trigger-source-cells':
19 const: 0
20
21 gpios:
22 maxItems: 1
23 description: GPIO to be used as a trigger source.
24
25required:
26 - compatible
27 - '#trigger-source-cells'
28 - gpios
29
30additionalProperties: false
31
32examples:
33 - |
34 #include <dt-bindings/gpio/gpio.h>
35
36 trigger {
37 compatible = "gpio-trigger";
38 #trigger-source-cells = <0>;
39 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
40 };