Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250207-dlech-mainline-spi-engine-offload-2-v8-3-e48a489be48c@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

David Lechner and committed by
Mark Brown
83f37ba7 d7231be4

+42
+37
Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml
··· 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 <dlechner@baylibre.com> 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 + };
+5
MAINTAINERS
··· 24056 24056 T: git git://github.com/srcres258/linux-doc.git doc-zh-tw 24057 24057 F: Documentation/translations/zh_TW/ 24058 24058 24059 + TRIGGER SOURCE - PWM 24060 + M: David Lechner <dlechner@baylibre.com> 24061 + S: Maintained 24062 + F: Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml 24063 + 24059 24064 TRUSTED SECURITY MODULE (TSM) ATTESTATION REPORTS 24060 24065 M: Dan Williams <dan.j.williams@intel.com> 24061 24066 L: linux-coco@lists.linux.dev