Tom Rini | 6b642ac | 2024-10-01 12:20:28 -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/adi,axi-pwmgen.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Analog Devices AXI PWM generator |
| 8 | |
| 9 | maintainers: |
| 10 | - Michael Hennerich <Michael.Hennerich@analog.com> |
| 11 | - Nuno Sá <nuno.sa@analog.com> |
| 12 | |
| 13 | description: |
| 14 | The Analog Devices AXI PWM generator can generate PWM signals |
| 15 | with variable pulse width and period. |
| 16 | |
| 17 | https://wiki.analog.com/resources/fpga/docs/axi_pwm_gen |
| 18 | |
| 19 | allOf: |
| 20 | - $ref: pwm.yaml# |
| 21 | |
| 22 | properties: |
| 23 | compatible: |
| 24 | const: adi,axi-pwmgen-2.00.a |
| 25 | |
| 26 | reg: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | "#pwm-cells": |
| 30 | const: 2 |
| 31 | |
| 32 | clocks: |
| 33 | maxItems: 1 |
| 34 | |
| 35 | required: |
| 36 | - reg |
| 37 | - clocks |
| 38 | |
| 39 | unevaluatedProperties: false |
| 40 | |
| 41 | examples: |
| 42 | - | |
| 43 | pwm@44b00000 { |
| 44 | compatible = "adi,axi-pwmgen-2.00.a"; |
| 45 | reg = <0x44b00000 0x1000>; |
| 46 | clocks = <&spi_clk>; |
| 47 | #pwm-cells = <2>; |
| 48 | }; |