^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) $id: http://devicetree.org/schemas/pwm/mxs-pwm.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) title: Freescale MXS PWM controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - Shawn Guo <shawnguo@kernel.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - Anson Huang <anson.huang@nxp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - fsl,imx23-pwm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) "#pwm-cells":
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) const: 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) fsl,pwm-number:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) $ref: '/schemas/types.yaml#/definitions/uint32'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) description: u32 value representing the number of PWM devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) - "#pwm-cells"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) - fsl,pwm-number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) pwm@80064000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) compatible = "fsl,imx23-pwm";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) reg = <0x80064000 0x2000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #pwm-cells = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) fsl,pwm-number = <8>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) };