From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Alain Volmat <avolmat@me.com>, Mark Brown <broonie@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: spi: conversion of spi-st-ssc into DT schema YAML
Date: Mon, 13 Feb 2023 11:31:16 +0100 [thread overview]
Message-ID: <7bc0971f-86c4-2fb7-2b47-6bee93c02921@linaro.org> (raw)
In-Reply-To: <20230210101403.14609-1-avolmat@me.com>
On 10/02/2023 11:14, Alain Volmat wrote:
> File st,ssc-spi.yaml replaces spi-st-ssc.txt for the
> ST Microelectronics SSC SPI driver.
subject: spi: dt-bindings: spi-st-ssc: convert to DT schema
YAML is redundant, "conversion" of too long
>
> Signed-off-by: Alain Volmat <avolmat@me.com>
> ---
> .../devicetree/bindings/spi/spi-st-ssc.txt | 40 ------------
> .../devicetree/bindings/spi/st,ssc-spi.yaml | 61 +++++++++++++++++++
> MAINTAINERS | 1 +
> 3 files changed, 62 insertions(+), 40 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/spi/spi-st-ssc.txt
> create mode 100644 Documentation/devicetree/bindings/spi/st,ssc-spi.yaml
>
> diff --git a/Documentation/devicetree/bindings/spi/spi-st-ssc.txt b/Documentation/devicetree/bindings/spi/spi-st-ssc.txt
> deleted file mode 100644
> index 1bdc4709e474..000000000000
> --- a/Documentation/devicetree/bindings/spi/spi-st-ssc.txt
> +++ /dev/null
> @@ -1,40 +0,0 @@
> -STMicroelectronics SSC (SPI) Controller
> ----------------------------------------
> -
> -Required properties:
> -- compatible : "st,comms-ssc4-spi"
> -- reg : Offset and length of the device's register set
> -- interrupts : The interrupt specifier
> -- clock-names : Must contain "ssc"
> -- clocks : Must contain an entry for each name in clock-names
> - See ../clk/*
> -- pinctrl-names : Uses "default", can use "sleep" if provided
> - See ../pinctrl/pinctrl-bindings.txt
> -
> -Optional properties:
> -- cs-gpios : List of GPIO chip selects
> - See ../spi/spi-bus.txt
> -
> -Child nodes represent devices on the SPI bus
> - See ../spi/spi-bus.txt
> -
> -Example:
> - spi@9840000 {
> - compatible = "st,comms-ssc4-spi";
> - reg = <0x9840000 0x110>;
> - interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
> - clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>;
> - clock-names = "ssc";
> - pinctrl-0 = <&pinctrl_spi0_default>;
> - pinctrl-names = "default";
> - cs-gpios = <&pio17 5 0>;
> - #address-cells = <1>;
> - #size-cells = <0>;
> -
> - st95hf@0{
> - compatible = "st,st95hf";
> - reg = <0>;
> - spi-max-frequency = <1000000>;
> - interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
> - };
> - };
> diff --git a/Documentation/devicetree/bindings/spi/st,ssc-spi.yaml b/Documentation/devicetree/bindings/spi/st,ssc-spi.yaml
> new file mode 100644
> index 000000000000..496118df3a1b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/st,ssc-spi.yaml
> @@ -0,0 +1,61 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/st,ssc-spi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STMicroelectronics SSC SPI Controller
> +
> +description: |
> + The STMicroelectronics SSC SPI controller can be found on STi platforms
> + and it used to communicate with external devices using the
> + Serial Peripheral Interface.
> +
> +maintainers:
> + - Patrice Chotard <patrice.chotard@foss.st.com>
> +
> +allOf:
> + - $ref: "spi-controller.yaml#"
Drop quotes.
> +
> +properties:
> + compatible:
> + const: st,comms-ssc4-spi
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + const: ssc
> +
> + interrupts:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/clock/stih407-clks.h>
> + spi@9840000 {
> + compatible = "st,comms-ssc4-spi";
> + reg = <0x9840000 0x110>;
> + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>;
> + clock-names = "ssc";
> + pinctrl-0 = <&pinctrl_spi0_default>;
> + pinctrl-names = "default";
> + #address-cells = <1>;
> + #size-cells = <0>;
Messed coding style. Only one space before =.
Best regards,
Krzysztof
prev parent reply other threads:[~2023-02-13 10:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-10 10:14 Alain Volmat
2023-02-13 10:31 ` Krzysztof Kozlowski [this message]
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=7bc0971f-86c4-2fb7-2b47-6bee93c02921@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=avolmat@me.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=robh+dt@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®