| 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 |
|
| 7 |
title: Generic trigger source using GPIO |
| 8 |
|
| 9 |
description: A GPIO used as a trigger source. |
| 10 |
|
| 11 |
maintainers: |
| 12 |
- Jonathan Santos <[email protected]> |
| 13 |
|
| 14 |
properties: |
| 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 |
|
| 25 |
required: |
| 26 |
- compatible |
| 27 |
- '#trigger-source-cells' |
| 28 |
- gpios |
| 29 |
|
| 30 |
additionalProperties: false |
| 31 |
|
| 32 |
examples: |
| 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 |
}; |