Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1 | # 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 | |
| 7 | title: Marvell PXA PWM |
| 8 | |
| 9 | maintainers: |
| 10 | - Duje Mihanović <duje.mihanovic@skole.hr> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: pwm.yaml# |
| 14 | |
| 15 | properties: |
| 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 | |
| 34 | required: |
| 35 | - compatible |
| 36 | - reg |
| 37 | - "#pwm-cells" |
| 38 | - clocks |
| 39 | |
| 40 | additionalProperties: false |
| 41 | |
| 42 | examples: |
| 43 | - | |
| 44 | #include <dt-bindings/clock/pxa-clock.h> |
| 45 | |
| 46 | pwm0: pwm@40b00000 { |
| 47 | compatible = "marvell,pxa250-pwm"; |
| 48 | reg = <0x40b00000 0x10>; |
| 49 | #pwm-cells = <1>; |
| 50 | clocks = <&clks CLK_PWM0>; |
| 51 | }; |