Skip to content

Commit 83f37ba

Browse files
dlechbroonie
authored andcommitted
dt-bindings: trigger-source: add generic PWM trigger source
Add a new binding for using a PWM signal as a trigger source. The idea here is similar to e.g. "pwm-clock" to allow a trigger source consumer to use a PWM provider as a trigger source. Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: David Lechner <[email protected]> Link: https://patch.msgid.link/20250207-dlech-mainline-spi-engine-offload-2-v8-3-e48a489be48c@baylibre.com Signed-off-by: Mark Brown <[email protected]>
1 parent d7231be commit 83f37ba

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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/pwm-trigger.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Generic trigger source using PWM
8+
9+
description: Remaps a PWM channel as a trigger source.
10+
11+
maintainers:
12+
- David Lechner <[email protected]>
13+
14+
properties:
15+
compatible:
16+
const: pwm-trigger
17+
18+
'#trigger-source-cells':
19+
const: 0
20+
21+
pwms:
22+
maxItems: 1
23+
24+
required:
25+
- compatible
26+
- '#trigger-source-cells'
27+
- pwms
28+
29+
additionalProperties: false
30+
31+
examples:
32+
- |
33+
trigger {
34+
compatible = "pwm-trigger";
35+
#trigger-source-cells = <0>;
36+
pwms = <&pwm 0 1000000 0>;
37+
};

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24056,6 +24056,11 @@ W: https://github.com/srcres258/linux-doc
2405624056
T: git git://github.com/srcres258/linux-doc.git doc-zh-tw
2405724057
F: Documentation/translations/zh_TW/
2405824058

24059+
TRIGGER SOURCE - PWM
24060+
M: David Lechner <[email protected]>
24061+
S: Maintained
24062+
F: Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml
24063+
2405924064
TRUSTED SECURITY MODULE (TSM) ATTESTATION REPORTS
2406024065
M: Dan Williams <[email protected]>
2406124066

0 commit comments

Comments
 (0)