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

dt-bindings: clock: Convert i.MX21 clock to json-schema

Convert the i.MX21 clock binding to DT schema format using json-schema,
can NOT find any CCM interrupt info from reference manual and DT file,
so interrupts property is removed from original binding doc.

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
80540e16 076026e9

+51 -27
-27
Documentation/devicetree/bindings/clock/imx21-clock.txt
··· 1 - * Clock bindings for Freescale i.MX21 2 - 3 - Required properties: 4 - - compatible : Should be "fsl,imx21-ccm". 5 - - reg : Address and length of the register set. 6 - - interrupts : Should contain CCM interrupt. 7 - - #clock-cells: Should be <1>. 8 - 9 - The clock consumer should specify the desired clock by having the clock 10 - ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx21-clock.h 11 - for the full list of i.MX21 clock IDs. 12 - 13 - Examples: 14 - clks: ccm@10027000{ 15 - compatible = "fsl,imx21-ccm"; 16 - reg = <0x10027000 0x800>; 17 - #clock-cells = <1>; 18 - }; 19 - 20 - uart1: serial@1000a000 { 21 - compatible = "fsl,imx21-uart"; 22 - reg = <0x1000a000 0x1000>; 23 - interrupts = <20>; 24 - clocks = <&clks IMX21_CLK_UART1_IPG_GATE>, 25 - <&clks IMX21_CLK_PER1>; 26 - clock-names = "ipg", "per"; 27 - };
+51
Documentation/devicetree/bindings/clock/imx21-clock.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/imx21-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Clock bindings for Freescale i.MX21 8 + 9 + maintainers: 10 + - Alexander Shiyan <shc_work@mail.ru> 11 + 12 + description: | 13 + The clock consumer should specify the desired clock by having the clock 14 + ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx21-clock.h 15 + for the full list of i.MX21 clock IDs. 16 + 17 + properties: 18 + compatible: 19 + const: fsl,imx21-ccm 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + '#clock-cells': 25 + const: 1 26 + 27 + required: 28 + - compatible 29 + - reg 30 + - '#clock-cells' 31 + 32 + additionalProperties: false 33 + 34 + examples: 35 + - | 36 + #include <dt-bindings/clock/imx21-clock.h> 37 + 38 + clock-controller@10027000 { 39 + compatible = "fsl,imx21-ccm"; 40 + reg = <0x10027000 0x800>; 41 + #clock-cells = <1>; 42 + }; 43 + 44 + serial@1000a000 { 45 + compatible = "fsl,imx21-uart"; 46 + reg = <0x1000a000 0x1000>; 47 + interrupts = <20>; 48 + clocks = <&clks IMX21_CLK_UART1_IPG_GATE>, 49 + <&clks IMX21_CLK_PER1>; 50 + clock-names = "ipg", "per"; 51 + };