Generic trigger source using GPIO
Schema identifier ($id): "http://devicetree.org/schemas/trigger-source/gpio-trigger.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
A GPIO used as a trigger source.
Maintainers (maintainers): "Jonathan Santos <Jonathan.Santos@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gpio-trigger"
#trigger-source-cells — required here #
Exact value (const): 0
gpios — required here #
Maximum number of items (maxItems): 1
GPIO to be used as a trigger source.
Required in this object (required): "compatible", "#trigger-source-cells", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
trigger {
compatible = "gpio-trigger";
#trigger-source-cells = <0>;
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)