blob: 9ee1946dc2e1202b1461b86322325e6cca3582af [file] [log] [blame]
Tom Rini6bb92fc2024-05-20 09:54:58 -06001# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pwm/marvell,pxa-pwm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Marvell PXA PWM
8
9maintainers:
10 - Duje Mihanović <duje.mihanovic@skole.hr>
11
12allOf:
13 - $ref: pwm.yaml#
14
15properties:
16 compatible:
17 enum:
18 - marvell,pxa250-pwm
19 - marvell,pxa270-pwm
20 - marvell,pxa168-pwm
21 - marvell,pxa910-pwm
22
23 reg:
24 # Length should be 0x10
25 maxItems: 1
26
27 "#pwm-cells":
28 # Used for specifying the period length in nanoseconds
29 const: 1
30
31 clocks:
32 maxItems: 1
33
34required:
35 - compatible
36 - reg
Tom Rini6bb92fc2024-05-20 09:54:58 -060037 - clocks
38
39additionalProperties: false
40
41examples:
42 - |
43 #include <dt-bindings/clock/pxa-clock.h>
44
45 pwm0: pwm@40b00000 {
46 compatible = "marvell,pxa250-pwm";
47 reg = <0x40b00000 0x10>;
48 #pwm-cells = <1>;
49 clocks = <&clks CLK_PWM0>;
50 };