Skip to content

Commit

Permalink
dt-bindings: trigger: Add trigger source
Browse files Browse the repository at this point in the history
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 <dlechner@baylibre.com>
  • Loading branch information
dlech authored and robherring committed Nov 21, 2024
1 parent cc02c13 commit 93ee800
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions dtschema/schemas/trigger/trigger-source.yaml
Original file line number Diff line number Diff line change
@@ -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 <dlechner@baylibre.com>

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

0 comments on commit 93ee800

Please sign in to comment.