| 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 |
}; |