Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | # Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries |
| 3 | %YAML 1.2 |
| 4 | --- |
| 5 | $id: http://devicetree.org/schemas/pwm/atmel,at91sam-pwm.yaml# |
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | |
| 8 | title: Atmel/Microchip PWM controller |
| 9 | |
| 10 | maintainers: |
| 11 | - Claudiu Beznea <claudiu.beznea@microchip.com> |
| 12 | |
| 13 | allOf: |
| 14 | - $ref: pwm.yaml# |
| 15 | |
| 16 | properties: |
| 17 | compatible: |
| 18 | oneOf: |
| 19 | - items: |
| 20 | - enum: |
| 21 | - atmel,at91sam9rl-pwm |
| 22 | - atmel,sama5d3-pwm |
| 23 | - atmel,sama5d2-pwm |
| 24 | - microchip,sam9x60-pwm |
| 25 | - items: |
| 26 | - const: microchip,sama7g5-pwm |
| 27 | - const: atmel,sama5d2-pwm |
| 28 | |
| 29 | reg: |
| 30 | maxItems: 1 |
| 31 | |
| 32 | "#pwm-cells": |
| 33 | const: 3 |
| 34 | |
| 35 | required: |
| 36 | - compatible |
| 37 | - reg |
| 38 | |
| 39 | unevaluatedProperties: false |
| 40 | |
| 41 | examples: |
| 42 | - | |
| 43 | pwm0: pwm@f8034000 { |
| 44 | compatible = "atmel,at91sam9rl-pwm"; |
| 45 | reg = <0xf8034000 0x400>; |
| 46 | #pwm-cells = <3>; |
| 47 | }; |