| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/clock/pwm-clock.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: An external clock signal driven by a PWM pin. |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Philipp Zabel <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
const: pwm-clock |
| 15 |
|
| 16 |
'#clock-cells': |
| 17 |
const: 0 |
| 18 |
|
| 19 |
clock-frequency: |
| 20 |
description: Exact output frequency, in case the PWM period is not exact |
| 21 |
but was rounded to nanoseconds. |
| 22 |
|
| 23 |
clock-output-names: |
| 24 |
maxItems: 1 |
| 25 |
|
| 26 |
pwms: |
| 27 |
maxItems: 1 |
| 28 |
|
| 29 |
required: |
| 30 |
- compatible |
| 31 |
- '#clock-cells' |
| 32 |
- pwms |
| 33 |
|
| 34 |
additionalProperties: false |
| 35 |
|
| 36 |
examples: |
| 37 |
- | |
| 38 |
clock { |
| 39 |
compatible = "pwm-clock"; |
| 40 |
#clock-cells = <0>; |
| 41 |
clock-frequency = <25000000>; |
| 42 |
clock-output-names = "mipi_mclk"; |
| 43 |
pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */ |
| 44 |
}; |
| 45 |
... |