Re: [PATCH 4/9] dt-bindings: clock: Convert i.MX28 clock to json-schema

2020-05-28 Thread Rob Herring
On Thu, 28 May 2020 15:27:54 +0800, Anson Huang wrote:
> Convert the i.MX28 clock binding to DT schema format using json-schema.
> 
> Signed-off-by: Anson Huang 
> ---
>  .../devicetree/bindings/clock/imx28-clock.txt  |  93 -
>  .../devicetree/bindings/clock/imx28-clock.yaml | 113 
> +
>  2 files changed, 113 insertions(+), 93 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/clock/imx28-clock.txt
>  create mode 100644 Documentation/devicetree/bindings/clock/imx28-clock.yaml
> 

Applied, thanks!


[PATCH 4/9] dt-bindings: clock: Convert i.MX28 clock to json-schema

2020-05-28 Thread Anson Huang
Convert the i.MX28 clock binding to DT schema format using json-schema.

Signed-off-by: Anson Huang 
---
 .../devicetree/bindings/clock/imx28-clock.txt  |  93 -
 .../devicetree/bindings/clock/imx28-clock.yaml | 113 +
 2 files changed, 113 insertions(+), 93 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/imx28-clock.txt
 create mode 100644 Documentation/devicetree/bindings/clock/imx28-clock.yaml

diff --git a/Documentation/devicetree/bindings/clock/imx28-clock.txt 
b/Documentation/devicetree/bindings/clock/imx28-clock.txt
deleted file mode 100644
index d84a37d..000
--- a/Documentation/devicetree/bindings/clock/imx28-clock.txt
+++ /dev/null
@@ -1,93 +0,0 @@
-* Clock bindings for Freescale i.MX28
-
-Required properties:
-- compatible: Should be "fsl,imx28-clkctrl"
-- reg: Address and length of the register set
-- #clock-cells: Should be <1>
-
-The clock consumer should specify the desired clock by having the clock
-ID in its "clocks" phandle cell.  The following is a full list of i.MX28
-clocks and IDs.
-
-   Clock   ID
-   --
-   ref_xtal0
-   pll01
-   pll12
-   pll23
-   ref_cpu 4
-   ref_emi 5
-   ref_io0 6
-   ref_io1 7
-   ref_pix 8
-   ref_hsadc   9
-   ref_gpmi10
-   saif0_sel   11
-   saif1_sel   12
-   gpmi_sel13
-   ssp0_sel14
-   ssp1_sel15
-   ssp2_sel16
-   ssp3_sel17
-   emi_sel 18
-   etm_sel 19
-   lcdif_sel   20
-   cpu 21
-   ptp_sel 22
-   cpu_pll 23
-   cpu_xtal24
-   hbus25
-   xbus26
-   ssp0_div27
-   ssp1_div28
-   ssp2_div29
-   ssp3_div30
-   gpmi_div31
-   emi_pll 32
-   emi_xtal33
-   lcdif_div   34
-   etm_div 35
-   ptp 36
-   saif0_div   37
-   saif1_div   38
-   clk32k_div  39
-   rtc 40
-   lradc   41
-   spdif_div   42
-   clk32k  43
-   pwm 44
-   uart45
-   ssp046
-   ssp147
-   ssp248
-   ssp349
-   gpmi50
-   spdif   51
-   emi 52
-   saif0   53
-   saif1   54
-   lcdif   55
-   etm 56
-   fec 57
-   can058
-   can159
-   usb060
-   usb161
-   usb0_phy62
-   usb1_phy63
-   enet_out64
-
-Examples:
-
-clks: clkctrl@8004 {
-   compatible = "fsl,imx28-clkctrl";
-   reg = <0x8004 0x2000>;
-   #clock-cells = <1>;
-};
-
-auart0: serial@8006a000 {
-   compatible = "fsl,imx28-auart", "fsl,imx23-auart";
-   reg = <0x8006a000 0x2000>;
-   interrupts = <112 70 71>;
-   clocks = < 45>;
-};
diff --git a/Documentation/devicetree/bindings/clock/imx28-clock.yaml 
b/Documentation/devicetree/bindings/clock/imx28-clock.yaml
new file mode 100644
index 000..e4a7038
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/imx28-clock.yaml
@@ -0,0 +1,113 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/imx28-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Clock bindings for Freescale i.MX28
+
+maintainers:
+  - Shawn Guo 
+
+description: |
+  The clock consumer should specify the desired clock by having the clock
+  ID in its "clocks" phandle cell. The following is a full list of i.MX28
+  clocks and IDs.
+
+Clock  ID
+--
+ref_xtal   0
+pll0   1
+pll1   2
+pll2   3
+ref_cpu4
+ref_emi5
+ref_io06
+ref_io17
+ref_pix8
+ref_hsadc  9
+ref_gpmi   10
+saif0_sel  11
+saif1_sel  12
+gpmi_sel   13
+ssp0_sel   14
+ssp1_sel   15
+ssp2_sel   16
+ssp3_sel   17
+emi_sel18
+etm_sel19
+lcdif_sel  20
+cpu21
+ptp_sel22
+cpu_pll23
+cpu_xtal   24
+hbus   25
+xbus   26
+ssp0_div   27
+ssp1_div   28
+ssp2_div   29
+ssp3_div   30
+gpmi_div   31
+emi_pll32
+emi_xtal   33
+