[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <487a93c4-3301-aefd-abba-aabf4cb8ec90@linaro.org>
Date: Fri, 22 Jul 2022 19:46:51 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: 周琰杰 (Zhou Yanjie)
<zhouyanjie@...yeetech.com>, tudor.ambarus@...rochip.com,
p.yadav@...com, michael@...le.cc, miquel.raynal@...tlin.com,
richard@....at, vigneshr@...com, broonie@...nel.org,
robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org
Cc: linux-mtd@...ts.infradead.org, linux-spi@...r.kernel.org,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, aidanmacdonald.0x0@...il.com,
tmn505@...il.com, paul@...pouillou.net, dongsheng.qiu@...enic.com,
aric.pzqi@...enic.com, rick.tyliu@...enic.com,
jinghui.liu@...enic.com, sernia.zhou@...mail.com,
reimu@...omaker.com
Subject: Re: [PATCH 2/3] dt-bindings: SPI: Add Ingenic SFC bindings.
On 22/07/2022 18:48, 周琰杰 (Zhou Yanjie) wrote:
> Add the SFC bindings for the X1000 SoC, the X1600 SoC, the X1830 SoC,
> and the X2000 SoC from Ingenic.
>
> Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@...yeetech.com>
> ---
> .../devicetree/bindings/spi/ingenic,sfc.yaml | 64 ++++++++++++++++++++++
> 1 file changed, 64 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>
> diff --git a/Documentation/devicetree/bindings/spi/ingenic,sfc.yaml b/Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
> new file mode 100644
> index 00000000..b7c4cf4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
> @@ -0,0 +1,64 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/ingenic,sfc.yaml#
File name should be rather based on first compatible, so
ingenic,x1000-sfc.yaml
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Bindings for SFC in Ingenic SoCs
> +
> +maintainers:
> + - 周琰杰 (Zhou Yanjie) <zhouyanjie@...yeetech.com>
> +
> +description:
> + The SPI Flash Controller in Ingenic SoCs.
> +
You miss here allOf referencing spi-controller.
> +properties:
> + compatible:
> + oneOf:
> + - enum:
> + - ingenic,x1000-sfc
> + - ingenic,x1600-sfc
> + - ingenic,x2000-sfc
> + - items:
> + - enum:
> + - ingenic,x1830-sfc
> + - const: ingenic,x1000-sfc
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + const: sfc
Remove the clock-names entirely, no benefits.
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - clock-names
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/ingenic,x1000-cgu.h>
> +
> + sfc: spi@...40000 {
> + compatible = "ingenic,x1000-sfc";
Use 4 spaces for example indentation.
> + reg = <0x13440000 0x1000>;
> +
> + interrupt-parent = <&intc>;
> + interrupts = <7>;
> +
> + clocks = <&cgu X1000_CLK_SFC>;
> + clock-names = "sfc";
> +
> + status = "disabled";
No status in example.
> + };
> +...
Best regards,
Krzysztof
Powered by blists - more mailing lists