All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Anson Huang <Anson.Huang@nxp.com>
Cc: broonie@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de,
	kernel@pengutronix.de, festevam@gmail.com, marex@denx.de,
	linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Linux-imx@nxp.com
Subject: Re: [PATCH V2 1/3] dt-bindings: spi: Convert mxs spi to json-schema
Date: Mon, 15 Jun 2020 11:12:09 -0600	[thread overview]
Message-ID: <20200615171209.GA1968084@bogus> (raw)
In-Reply-To: <1591235731-15673-2-git-send-email-Anson.Huang@nxp.com>

On Thu, Jun 04, 2020 at 09:55:29AM +0800, Anson Huang wrote:
> Convert the MXS SPI binding to DT schema format using json-schema
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> Changes since V1:
> 	- add "unevaluatedProperties: false".
> ---
>  Documentation/devicetree/bindings/spi/mxs-spi.txt  | 26 ----------
>  Documentation/devicetree/bindings/spi/mxs-spi.yaml | 57 ++++++++++++++++++++++
>  2 files changed, 57 insertions(+), 26 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/spi/mxs-spi.txt
>  create mode 100644 Documentation/devicetree/bindings/spi/mxs-spi.yaml
> 
> diff --git a/Documentation/devicetree/bindings/spi/mxs-spi.txt b/Documentation/devicetree/bindings/spi/mxs-spi.txt
> deleted file mode 100644
> index 3499b73..0000000
> --- a/Documentation/devicetree/bindings/spi/mxs-spi.txt
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -* Freescale MX233/MX28 SSP/SPI
> -
> -Required properties:
> -- compatible: Should be "fsl,<soc>-spi", where soc is "imx23" or "imx28"
> -- reg: Offset and length of the register set for the device
> -- interrupts: Should contain SSP ERROR interrupt
> -- dmas: DMA specifier, consisting of a phandle to DMA controller node
> -  and SSP DMA channel ID.
> -  Refer to dma.txt and fsl-mxs-dma.txt for details.
> -- dma-names: Must be "rx-tx".
> -
> -Optional properties:
> -- clock-frequency : Input clock frequency to the SPI block in Hz.
> -		    Default is 160000000 Hz.
> -
> -Example:
> -
> -ssp0: ssp@80010000 {
> -	#address-cells = <1>;
> -	#size-cells = <0>;
> -	compatible = "fsl,imx28-spi";
> -	reg = <0x80010000 0x2000>;
> -	interrupts = <96>;
> -	dmas = <&dma_apbh 0>;
> -	dma-names = "rx-tx";
> -};
> diff --git a/Documentation/devicetree/bindings/spi/mxs-spi.yaml b/Documentation/devicetree/bindings/spi/mxs-spi.yaml
> new file mode 100644
> index 0000000..68c5d6d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/mxs-spi.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/mxs-spi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Freescale MX233/MX28 SSP/SPI
> +
> +maintainers:
> +  - Marek Vasut <marex@denx.de>
> +
> +allOf:
> +  - $ref: "/schemas/spi/spi-controller.yaml#"
> +
> +properties:
> +  compatible:
> +    enum:
> +      - fsl,imx23-spi
> +      - fsl,imx28-spi
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  dmas:
> +    maxItems: 1
> +
> +  dma-names:
> +    const: rx-tx
> +
> +  clock-frequency:
> +    $ref: /schemas/types.yaml#/definitions/uint32

Already has a type, drop.

With that,

Reviewed-by: Rob Herring <robh@kernel.org>

> +    description: input clock frequency to the SPI block in Hz.
> +    default: 160000000
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - dmas
> +  - dma-names
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    spi@80010000 {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +        compatible = "fsl,imx28-spi";
> +        reg = <0x80010000 0x2000>;
> +        interrupts = <96>;
> +        dmas = <&dma_apbh 0>;
> +        dma-names = "rx-tx";
> +    };
> -- 
> 2.7.4
> 

WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Anson Huang <Anson.Huang@nxp.com>
Cc: marex@denx.de, devicetree@vger.kernel.org, shawnguo@kernel.org,
	s.hauer@pengutronix.de, linux-kernel@vger.kernel.org,
	linux-spi@vger.kernel.org, broonie@kernel.org, Linux-imx@nxp.com,
	kernel@pengutronix.de, festevam@gmail.com,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH V2 1/3] dt-bindings: spi: Convert mxs spi to json-schema
Date: Mon, 15 Jun 2020 11:12:09 -0600	[thread overview]
Message-ID: <20200615171209.GA1968084@bogus> (raw)
In-Reply-To: <1591235731-15673-2-git-send-email-Anson.Huang@nxp.com>

On Thu, Jun 04, 2020 at 09:55:29AM +0800, Anson Huang wrote:
> Convert the MXS SPI binding to DT schema format using json-schema
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> Changes since V1:
> 	- add "unevaluatedProperties: false".
> ---
>  Documentation/devicetree/bindings/spi/mxs-spi.txt  | 26 ----------
>  Documentation/devicetree/bindings/spi/mxs-spi.yaml | 57 ++++++++++++++++++++++
>  2 files changed, 57 insertions(+), 26 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/spi/mxs-spi.txt
>  create mode 100644 Documentation/devicetree/bindings/spi/mxs-spi.yaml
> 
> diff --git a/Documentation/devicetree/bindings/spi/mxs-spi.txt b/Documentation/devicetree/bindings/spi/mxs-spi.txt
> deleted file mode 100644
> index 3499b73..0000000
> --- a/Documentation/devicetree/bindings/spi/mxs-spi.txt
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -* Freescale MX233/MX28 SSP/SPI
> -
> -Required properties:
> -- compatible: Should be "fsl,<soc>-spi", where soc is "imx23" or "imx28"
> -- reg: Offset and length of the register set for the device
> -- interrupts: Should contain SSP ERROR interrupt
> -- dmas: DMA specifier, consisting of a phandle to DMA controller node
> -  and SSP DMA channel ID.
> -  Refer to dma.txt and fsl-mxs-dma.txt for details.
> -- dma-names: Must be "rx-tx".
> -
> -Optional properties:
> -- clock-frequency : Input clock frequency to the SPI block in Hz.
> -		    Default is 160000000 Hz.
> -
> -Example:
> -
> -ssp0: ssp@80010000 {
> -	#address-cells = <1>;
> -	#size-cells = <0>;
> -	compatible = "fsl,imx28-spi";
> -	reg = <0x80010000 0x2000>;
> -	interrupts = <96>;
> -	dmas = <&dma_apbh 0>;
> -	dma-names = "rx-tx";
> -};
> diff --git a/Documentation/devicetree/bindings/spi/mxs-spi.yaml b/Documentation/devicetree/bindings/spi/mxs-spi.yaml
> new file mode 100644
> index 0000000..68c5d6d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/mxs-spi.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/mxs-spi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Freescale MX233/MX28 SSP/SPI
> +
> +maintainers:
> +  - Marek Vasut <marex@denx.de>
> +
> +allOf:
> +  - $ref: "/schemas/spi/spi-controller.yaml#"
> +
> +properties:
> +  compatible:
> +    enum:
> +      - fsl,imx23-spi
> +      - fsl,imx28-spi
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  dmas:
> +    maxItems: 1
> +
> +  dma-names:
> +    const: rx-tx
> +
> +  clock-frequency:
> +    $ref: /schemas/types.yaml#/definitions/uint32

Already has a type, drop.

With that,

Reviewed-by: Rob Herring <robh@kernel.org>

> +    description: input clock frequency to the SPI block in Hz.
> +    default: 160000000
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - dmas
> +  - dma-names
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    spi@80010000 {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +        compatible = "fsl,imx28-spi";
> +        reg = <0x80010000 0x2000>;
> +        interrupts = <96>;
> +        dmas = <&dma_apbh 0>;
> +        dma-names = "rx-tx";
> +    };
> -- 
> 2.7.4
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2020-06-15 17:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-04  1:55 [PATCH V2 0/3] Convert mxs/imx spi/cspi/lpspi binding to json-schema Anson Huang
2020-06-04  1:55 ` Anson Huang
2020-06-04  1:55 ` [PATCH V2 1/3] dt-bindings: spi: Convert mxs spi " Anson Huang
2020-06-04  1:55   ` Anson Huang
2020-06-15 17:12   ` Rob Herring [this message]
2020-06-15 17:12     ` Rob Herring
2020-06-04  1:55 ` [PATCH V2 2/3] dt-bindings: spi: Convert imx cspi " Anson Huang
2020-06-04  1:55   ` Anson Huang
2020-06-15 17:14   ` Rob Herring
2020-06-15 17:14     ` Rob Herring
2020-06-04  1:55 ` [PATCH V2 3/3] dt-bindings: spi: Convert imx lpspi " Anson Huang
2020-06-04  1:55   ` Anson Huang

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=20200615171209.GA1968084@bogus \
    --to=robh@kernel.org \
    --cc=Anson.Huang@nxp.com \
    --cc=Linux-imx@nxp.com \
    --cc=broonie@kernel.org \
    --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=linux-spi@vger.kernel.org \
    --cc=marex@denx.de \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.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.