dt-bindings: pwm: Convert mxs pwm to json-schema
Subsystems (3)
PATCH 1/1 dt-bindings: pwm: Convert mxs pwm to json-schema
Convert the mxs pwm binding to DT schema format using json-schema.
--- Documentation/devicetree/bindings/pwm/mxs-pwm.txt | 17 --------- Documentation/devicetree/bindings/pwm/mxs-pwm.yaml | 43 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/mxs-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/mxs-pwm.yaml
Documentation/devicetree/bindings/pwm/mxs-pwm.txt deleted +0 -17
@@ -1,17 +0,0 @@ -Freescale MXS PWM controller - -Required properties: -- compatible: should be "fsl,imx23-pwm" -- reg: physical base address and length of the controller's registers -- #pwm-cells: should be 3. See pwm.yaml in this directory for a description of - the cells format. -- fsl,pwm-number: the number of PWM devices - -Example: - -pwm: pwm@80064000 { - compatible = "fsl,imx28-pwm", "fsl,imx23-pwm"; - reg = <0x80064000 0x2000>; - #pwm-cells = <3>; - fsl,pwm-number = <8>; -};
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.7.4
Quoted 6 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +6
-0+title: Freescale MXS PWM controller + +maintainers: + - Shawn Guo <[email protected]> + - Anson Huang <[email protected]> +
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml line 22
Quoted 10 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +10
-0+properties: + compatible: + enum: + - fsl,imx23-pwm + + reg: + maxItems: 1 + + "#pwm-cells": + const: 3
Seems you missed the reference to pwm.yaml.
Regards
Aisheng
Quoted 23 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +21
-1+ + fsl,pwm-number: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: u32 value representing the number of PWM devices + +required: + - compatible + - reg + - "#pwm-cells" + - fsl,pwm-number + +additionalProperties: false + +examples: + - | + pwm@80064000 { + compatible = "fsl,imx23-pwm"; + reg = <0x80064000 0x2000>; + #pwm-cells = <3>; + fsl,pwm-number = <8>; + }; --2.7.4
Quoted 14 lines
Subject: RE: [PATCH] dt-bindings: pwm: Convert mxs pwm to json-schema
Quoted 10 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +10
-0+title: Freescale MXS PWM controller + +maintainers: + - Shawn Guo <[email protected]> + - Anson Huang <[email protected]> + +properties: + compatible: + enum: + - fsl,imx23-pwm
Quoted 8 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml line 22
Quoted 6 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +6
-0+ + reg: + maxItems: 1 + + "#pwm-cells": + const: 3Seems you missed the reference to
pwm.yaml.
It is because many pwm yaml files also has no "#pwm-cells" reference, so I am NOT sure if it is a MUST:
Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml Documentation/devicetree/bindings/pwm/iqs620a-pwm.yaml
...
Anson
Quoted 24 lines
From: Anson Huang <[email protected]>
Sent: Monday, May 18, 2020 1:32 PMQuoted 12 lines
Subject: RE: [PATCH] dt-bindings: pwm: Convert mxs pwm to json-schema
Quoted 10 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +10
-0+title: Freescale MXS PWM controller + +maintainers: + - Shawn Guo <[email protected]> + - Anson Huang <[email protected]> + +properties: + compatible: + enum: + - fsl,imx23-pwmQuoted 8 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml line 22
Quoted 6 lines
Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file +6
-0+ + reg: + maxItems: 1 + + "#pwm-cells": + const: 3Seems you missed the reference to
pwm.yaml.
Quoted 7 lines
It is because many pwm yaml files also has no "#pwm-cells" reference, so I am NOT sure if it is a MUST:
Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yamlDocumentation/devicetree/bindings/pwm/google,cros-ec-pwm.yamlDocumentation/devicetree/bindings/pwm/iqs620a-pwm.yaml
...
I guess we'd better add it.
Let's wait for Rob's feedback.
Regards
Aisheng
Quoted 2 lines
Anson
Quoted 10 lines · Anson Huang
Convert the mxs pwm binding to DT schema format using json-schema.
Signed-off-by Anson Huang <[email protected]>--- Documentation/devicetree/bindings/pwm/mxs-pwm.txt | 17 --------- Documentation/devicetree/bindings/pwm/mxs-pwm.yaml | 43 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/mxs-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/mxs-pwm.yaml
Applied, thanks!