From 93ee8008959e362548168eaa7bdc20c115f3d586 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 20 Nov 2024 17:26:06 -0600 Subject: [PATCH] dt-bindings: trigger: Add trigger source Add a new binding for trigger source providers and consumers. This is essentially the trigger source bindings from the leds subsystem in the Linux kernel, but with more generic descriptions and no restrictions on #trigger-source-cells. Signed-off-by: David Lechner --- dtschema/schemas/trigger/trigger-source.yaml | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dtschema/schemas/trigger/trigger-source.yaml diff --git a/dtschema/schemas/trigger/trigger-source.yaml b/dtschema/schemas/trigger/trigger-source.yaml new file mode 100644 index 0000000..272c763 --- /dev/null +++ b/dtschema/schemas/trigger/trigger-source.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/trigger/trigger-source.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Trigger source provider + +maintainers: + - David Lechner + +description: + A trigger source providers are an abstraction for anything that provides a + signal to trigger an event. For example, this could be a disk activity signal + that triggers a LED to turn on or off or it could be a data ready signal + that triggers a SPI offload to read data without a software interrupt. Each + trigger source provider should be represented by a device tree node. + +select: true + +properties: + '#trigger-source-cells': + description: + Number of cells required to specify a trigger source. This property is + is applied to the trigger source provider. + + trigger-sources: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + This property is applied to the trigger source consumer to describe the + connection to a trigger source provider. + +additionalProperties: true