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 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/pwm/mxs-pwm.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Freescale MXS PWM controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Shawn Guo <shawnguo@kernel.org> |
| 11 | - Anson Huang <anson.huang@nxp.com> |
| 12 | |
| 13 | allOf: |
| 14 | - $ref: pwm.yaml# |
| 15 | |
| 16 | properties: |
| 17 | compatible: |
| 18 | oneOf: |
| 19 | - const: fsl,imx23-pwm |
| 20 | - items: |
| 21 | - enum: |
| 22 | - fsl,imx28-pwm |
| 23 | - const: fsl,imx23-pwm |
| 24 | |
| 25 | reg: |
| 26 | maxItems: 1 |
| 27 | |
| 28 | clocks: |
| 29 | maxItems: 1 |
| 30 | |
| 31 | "#pwm-cells": |
| 32 | const: 3 |
| 33 | |
| 34 | fsl,pwm-number: |
| 35 | $ref: /schemas/types.yaml#/definitions/uint32 |
| 36 | description: u32 value representing the number of PWM devices |
| 37 | |
| 38 | required: |
| 39 | - compatible |
| 40 | - reg |
| 41 | - clocks |
| 42 | - fsl,pwm-number |
| 43 | |
| 44 | additionalProperties: false |
| 45 | |
| 46 | examples: |
| 47 | - | |
| 48 | pwm@80064000 { |
| 49 | compatible = "fsl,imx23-pwm"; |
| 50 | reg = <0x80064000 0x2000>; |
| 51 | clocks = <&clks 30>; |
| 52 | #pwm-cells = <3>; |
| 53 | fsl,pwm-number = <8>; |
| 54 | }; |