From: Rob Herring <robh@kernel.org>
To: Anson Huang <Anson.Huang@nxp.com>
Cc: devicetree@vger.kernel.org, festevam@gmail.com,
s.hauer@pengutronix.de, linux-kernel@vger.kernel.org,
srinivas.kandagatla@linaro.org, Linux-imx@nxp.com,
kernel@pengutronix.de, shawnguo@kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/3] dt-bindings: nvmem: Convert i.MX IIM to json-schema
Date: Mon, 20 Apr 2020 16:43:59 -0500 [thread overview]
Message-ID: <20200420214358.GA13370@bogus> (raw)
In-Reply-To: <1586921602-1877-2-git-send-email-Anson.Huang@nxp.com>
On Wed, Apr 15, 2020 at 11:33:21AM +0800, Anson Huang wrote:
> Convert the i.MX IIM binding to DT schema format using json-schema.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> .../devicetree/bindings/nvmem/imx-iim.txt | 22 --------
> .../devicetree/bindings/nvmem/imx-iim.yaml | 59 ++++++++++++++++++++++
> 2 files changed, 59 insertions(+), 22 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/nvmem/imx-iim.txt
> create mode 100644 Documentation/devicetree/bindings/nvmem/imx-iim.yaml
>
> diff --git a/Documentation/devicetree/bindings/nvmem/imx-iim.txt b/Documentation/devicetree/bindings/nvmem/imx-iim.txt
> deleted file mode 100644
> index 1978c5b..0000000
> --- a/Documentation/devicetree/bindings/nvmem/imx-iim.txt
> +++ /dev/null
> @@ -1,22 +0,0 @@
> -Freescale i.MX IC Identification Module (IIM) device tree bindings
> -
> -This binding represents the IC Identification Module (IIM) found on
> -i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and i.MX53 SoCs.
> -
> -Required properties:
> -- compatible: should be one of
> - "fsl,imx25-iim", "fsl,imx27-iim",
> - "fsl,imx31-iim", "fsl,imx35-iim",
> - "fsl,imx51-iim", "fsl,imx53-iim",
> -- reg: Should contain the register base and length.
> -- interrupts: Should contain the interrupt for the IIM
> -- clocks: Should contain a phandle pointing to the gated peripheral clock.
> -
> -Example:
> -
> - iim: iim@63f98000 {
> - compatible = "fsl,imx53-iim", "fsl,imx27-iim";
> - reg = <0x63f98000 0x4000>;
> - interrupts = <69>;
> - clocks = <&clks IMX5_CLK_IIM_GATE>;
> - };
> diff --git a/Documentation/devicetree/bindings/nvmem/imx-iim.yaml b/Documentation/devicetree/bindings/nvmem/imx-iim.yaml
> new file mode 100644
> index 0000000..0d85d37
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/nvmem/imx-iim.yaml
> @@ -0,0 +1,59 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/nvmem/imx-iim.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Freescale i.MX IC Identification Module (IIM) device tree bindings
> +
> +maintainers:
> + - Anson Huang <Anson.Huang@nxp.com>
> +
> +description: |
> + This binding represents the IC Identification Module (IIM) found on
> + i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and i.MX53 SoCs.
> +
> +allOf:
> + - $ref: "nvmem.yaml#"
> +
> +properties:
> + compatible:
> + enum:
> + - fsl,imx25-iim
> + - fsl,imx27-iim
> + - fsl,imx31-iim
> + - fsl,imx35-iim
> + - fsl,imx51-iim
> + - fsl,imx53-iim
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + description: |
> + IIM's clock source.
Drop this. Same in patch 3.
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/imx5-clock.h>
> +
> + iim: efuse@63f98000 {
> + compatible = "fsl,imx53-iim";
> + reg = <0x63f98000 0x4000>;
> + interrupts = <69>;
> + clocks = <&clks IMX5_CLK_IIM_GATE>;
> + };
> +
> +...
> --
> 2.7.4
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Anson Huang <Anson.Huang@nxp.com>
Cc: srinivas.kandagatla@linaro.org, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Linux-imx@nxp.com
Subject: Re: [PATCH 2/3] dt-bindings: nvmem: Convert i.MX IIM to json-schema
Date: Mon, 20 Apr 2020 16:43:59 -0500 [thread overview]
Message-ID: <20200420214358.GA13370@bogus> (raw)
In-Reply-To: <1586921602-1877-2-git-send-email-Anson.Huang@nxp.com>
On Wed, Apr 15, 2020 at 11:33:21AM +0800, Anson Huang wrote:
> Convert the i.MX IIM binding to DT schema format using json-schema.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> .../devicetree/bindings/nvmem/imx-iim.txt | 22 --------
> .../devicetree/bindings/nvmem/imx-iim.yaml | 59 ++++++++++++++++++++++
> 2 files changed, 59 insertions(+), 22 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/nvmem/imx-iim.txt
> create mode 100644 Documentation/devicetree/bindings/nvmem/imx-iim.yaml
>
> diff --git a/Documentation/devicetree/bindings/nvmem/imx-iim.txt b/Documentation/devicetree/bindings/nvmem/imx-iim.txt
> deleted file mode 100644
> index 1978c5b..0000000
> --- a/Documentation/devicetree/bindings/nvmem/imx-iim.txt
> +++ /dev/null
> @@ -1,22 +0,0 @@
> -Freescale i.MX IC Identification Module (IIM) device tree bindings
> -
> -This binding represents the IC Identification Module (IIM) found on
> -i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and i.MX53 SoCs.
> -
> -Required properties:
> -- compatible: should be one of
> - "fsl,imx25-iim", "fsl,imx27-iim",
> - "fsl,imx31-iim", "fsl,imx35-iim",
> - "fsl,imx51-iim", "fsl,imx53-iim",
> -- reg: Should contain the register base and length.
> -- interrupts: Should contain the interrupt for the IIM
> -- clocks: Should contain a phandle pointing to the gated peripheral clock.
> -
> -Example:
> -
> - iim: iim@63f98000 {
> - compatible = "fsl,imx53-iim", "fsl,imx27-iim";
> - reg = <0x63f98000 0x4000>;
> - interrupts = <69>;
> - clocks = <&clks IMX5_CLK_IIM_GATE>;
> - };
> diff --git a/Documentation/devicetree/bindings/nvmem/imx-iim.yaml b/Documentation/devicetree/bindings/nvmem/imx-iim.yaml
> new file mode 100644
> index 0000000..0d85d37
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/nvmem/imx-iim.yaml
> @@ -0,0 +1,59 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/nvmem/imx-iim.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Freescale i.MX IC Identification Module (IIM) device tree bindings
> +
> +maintainers:
> + - Anson Huang <Anson.Huang@nxp.com>
> +
> +description: |
> + This binding represents the IC Identification Module (IIM) found on
> + i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and i.MX53 SoCs.
> +
> +allOf:
> + - $ref: "nvmem.yaml#"
> +
> +properties:
> + compatible:
> + enum:
> + - fsl,imx25-iim
> + - fsl,imx27-iim
> + - fsl,imx31-iim
> + - fsl,imx35-iim
> + - fsl,imx51-iim
> + - fsl,imx53-iim
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + description: |
> + IIM's clock source.
Drop this. Same in patch 3.
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/imx5-clock.h>
> +
> + iim: efuse@63f98000 {
> + compatible = "fsl,imx53-iim";
> + reg = <0x63f98000 0x4000>;
> + interrupts = <69>;
> + clocks = <&clks IMX5_CLK_IIM_GATE>;
> + };
> +
> +...
> --
> 2.7.4
>
next prev parent reply other threads:[~2020-04-20 21:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-15 3:33 [PATCH 1/3] dt-bindings: nvmem: Convert i.MX OCOTP to json-schema Anson Huang
2020-04-15 3:33 ` Anson Huang
2020-04-15 3:33 ` [PATCH 2/3] dt-bindings: nvmem: Convert i.MX IIM " Anson Huang
2020-04-15 3:33 ` Anson Huang
2020-04-20 21:43 ` Rob Herring [this message]
2020-04-20 21:43 ` Rob Herring
2020-04-15 3:33 ` [PATCH 3/3] dt-bindings: nvmem: Convert MXS OCOTP " Anson Huang
2020-04-15 3:33 ` Anson Huang
2020-04-20 21:42 ` [PATCH 1/3] dt-bindings: nvmem: Convert i.MX " Rob Herring
2020-04-20 21:42 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200420214358.GA13370@bogus \
--to=robh@kernel.org \
--cc=Anson.Huang@nxp.com \
--cc=Linux-imx@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.