1f1ea9703SAnson Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2f1ea9703SAnson Huang%YAML 1.2 3f1ea9703SAnson Huang--- 4f1ea9703SAnson Huang$id: http://devicetree.org/schemas/pwm/imx-pwm.yaml# 5f1ea9703SAnson Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 6f1ea9703SAnson Huang 7f1ea9703SAnson Huangtitle: Freescale i.MX PWM controller 8f1ea9703SAnson Huang 9f1ea9703SAnson Huangmaintainers: 10f1ea9703SAnson Huang - Philipp Zabel <p.zabel@pengutronix.de> 11f1ea9703SAnson Huang 12e766d5b8SKrzysztof KozlowskiallOf: 13e766d5b8SKrzysztof Kozlowski - $ref: pwm.yaml# 14e766d5b8SKrzysztof Kozlowski 15f1ea9703SAnson Huangproperties: 16f1ea9703SAnson Huang "#pwm-cells": 17f1ea9703SAnson Huang description: | 18f1ea9703SAnson Huang Should be 2 for i.MX1 and 3 for i.MX27 and newer SoCs. See pwm.yaml 19f1ea9703SAnson Huang in this directory for a description of the cells format. 20f1ea9703SAnson Huang enum: 21f1ea9703SAnson Huang - 2 22f1ea9703SAnson Huang - 3 23f1ea9703SAnson Huang 24f1ea9703SAnson Huang compatible: 25d058717bSKrzysztof Kozlowski oneOf: 26d058717bSKrzysztof Kozlowski - enum: 27f1ea9703SAnson Huang - fsl,imx1-pwm 28f1ea9703SAnson Huang - fsl,imx27-pwm 29d058717bSKrzysztof Kozlowski - items: 30d058717bSKrzysztof Kozlowski - enum: 31a5917fa8SKrzysztof Kozlowski - fsl,imx25-pwm 32a5917fa8SKrzysztof Kozlowski - fsl,imx31-pwm 33a5917fa8SKrzysztof Kozlowski - fsl,imx50-pwm 34a5917fa8SKrzysztof Kozlowski - fsl,imx51-pwm 35a5917fa8SKrzysztof Kozlowski - fsl,imx53-pwm 36a5917fa8SKrzysztof Kozlowski - fsl,imx6q-pwm 37a5917fa8SKrzysztof Kozlowski - fsl,imx6sl-pwm 38a5917fa8SKrzysztof Kozlowski - fsl,imx6sll-pwm 39a5917fa8SKrzysztof Kozlowski - fsl,imx6sx-pwm 40a5917fa8SKrzysztof Kozlowski - fsl,imx6ul-pwm 41a5917fa8SKrzysztof Kozlowski - fsl,imx7d-pwm 42d058717bSKrzysztof Kozlowski - fsl,imx8mm-pwm 43d058717bSKrzysztof Kozlowski - fsl,imx8mn-pwm 44d058717bSKrzysztof Kozlowski - fsl,imx8mp-pwm 45d058717bSKrzysztof Kozlowski - fsl,imx8mq-pwm 46*c799ad06SAlexander Stein - fsl,imx8qxp-pwm 47d058717bSKrzysztof Kozlowski - const: fsl,imx27-pwm 48f1ea9703SAnson Huang 49f1ea9703SAnson Huang reg: 50f1ea9703SAnson Huang maxItems: 1 51f1ea9703SAnson Huang 52f1ea9703SAnson Huang clocks: 53f1ea9703SAnson Huang items: 54f1ea9703SAnson Huang - description: SoC PWM ipg clock 55f1ea9703SAnson Huang - description: SoC PWM per clock 56f1ea9703SAnson Huang 57f1ea9703SAnson Huang clock-names: 58f1ea9703SAnson Huang items: 59f1ea9703SAnson Huang - const: ipg 60f1ea9703SAnson Huang - const: per 61f1ea9703SAnson Huang 62f1ea9703SAnson Huang interrupts: 63f1ea9703SAnson Huang maxItems: 1 64f1ea9703SAnson Huang 65*c799ad06SAlexander Stein power-domains: 66*c799ad06SAlexander Stein maxItems: 1 67*c799ad06SAlexander Stein 68f1ea9703SAnson Huangrequired: 69f1ea9703SAnson Huang - compatible 70f1ea9703SAnson Huang - reg 71f1ea9703SAnson Huang - clocks 72f1ea9703SAnson Huang - clock-names 73f1ea9703SAnson Huang - interrupts 74f1ea9703SAnson Huang 75f1ea9703SAnson HuangadditionalProperties: false 76f1ea9703SAnson Huang 77f1ea9703SAnson Huangexamples: 78f1ea9703SAnson Huang - | 79f1ea9703SAnson Huang #include <dt-bindings/clock/imx5-clock.h> 80f1ea9703SAnson Huang 81f1ea9703SAnson Huang pwm@53fb4000 { 82f1ea9703SAnson Huang #pwm-cells = <3>; 83f1ea9703SAnson Huang compatible = "fsl,imx27-pwm"; 84f1ea9703SAnson Huang reg = <0x53fb4000 0x4000>; 85f1ea9703SAnson Huang clocks = <&clks IMX5_CLK_PWM1_IPG_GATE>, 86f1ea9703SAnson Huang <&clks IMX5_CLK_PWM1_HF_GATE>; 87f1ea9703SAnson Huang clock-names = "ipg", "per"; 88f1ea9703SAnson Huang interrupts = <61>; 89f1ea9703SAnson Huang }; 90