Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: pwm: Convert mxs pwm to json-schema

Convert the mxs pwm binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
6457d644 30b1e7c4

+43 -17
-17
Documentation/devicetree/bindings/pwm/mxs-pwm.txt
··· 1 - Freescale MXS PWM controller 2 - 3 - Required properties: 4 - - compatible: should be "fsl,imx23-pwm" 5 - - reg: physical base address and length of the controller's registers 6 - - #pwm-cells: should be 3. See pwm.yaml in this directory for a description of 7 - the cells format. 8 - - fsl,pwm-number: the number of PWM devices 9 - 10 - Example: 11 - 12 - pwm: pwm@80064000 { 13 - compatible = "fsl,imx28-pwm", "fsl,imx23-pwm"; 14 - reg = <0x80064000 0x2000>; 15 - #pwm-cells = <3>; 16 - fsl,pwm-number = <8>; 17 - };
+43
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml
··· 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 <shawn.guo@linaro.org> 11 + - Anson Huang <anson.huang@nxp.com> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - fsl,imx23-pwm 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + "#pwm-cells": 22 + const: 3 23 + 24 + fsl,pwm-number: 25 + $ref: '/schemas/types.yaml#/definitions/uint32' 26 + description: u32 value representing the number of PWM devices 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - "#pwm-cells" 32 + - fsl,pwm-number 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + pwm@80064000 { 39 + compatible = "fsl,imx23-pwm"; 40 + reg = <0x80064000 0x2000>; 41 + #pwm-cells = <3>; 42 + fsl,pwm-number = <8>; 43 + };