1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/trigger-source/gpio-trigger.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: Generic trigger source using GPIO 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotdescription: A GPIO used as a trigger source. 10*833e5d42SEmmanuel Vadot 11*833e5d42SEmmanuel Vadotmaintainers: 12*833e5d42SEmmanuel Vadot - Jonathan Santos <Jonathan.Santos@analog.com> 13*833e5d42SEmmanuel Vadot 14*833e5d42SEmmanuel Vadotproperties: 15*833e5d42SEmmanuel Vadot compatible: 16*833e5d42SEmmanuel Vadot const: gpio-trigger 17*833e5d42SEmmanuel Vadot 18*833e5d42SEmmanuel Vadot '#trigger-source-cells': 19*833e5d42SEmmanuel Vadot const: 0 20*833e5d42SEmmanuel Vadot 21*833e5d42SEmmanuel Vadot gpios: 22*833e5d42SEmmanuel Vadot maxItems: 1 23*833e5d42SEmmanuel Vadot description: GPIO to be used as a trigger source. 24*833e5d42SEmmanuel Vadot 25*833e5d42SEmmanuel Vadotrequired: 26*833e5d42SEmmanuel Vadot - compatible 27*833e5d42SEmmanuel Vadot - '#trigger-source-cells' 28*833e5d42SEmmanuel Vadot - gpios 29*833e5d42SEmmanuel Vadot 30*833e5d42SEmmanuel VadotadditionalProperties: false 31*833e5d42SEmmanuel Vadot 32*833e5d42SEmmanuel Vadotexamples: 33*833e5d42SEmmanuel Vadot - | 34*833e5d42SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 35*833e5d42SEmmanuel Vadot 36*833e5d42SEmmanuel Vadot trigger { 37*833e5d42SEmmanuel Vadot compatible = "gpio-trigger"; 38*833e5d42SEmmanuel Vadot #trigger-source-cells = <0>; 39*833e5d42SEmmanuel Vadot gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 40*833e5d42SEmmanuel Vadot }; 41