Re: [PATCH v4 1/3] dt-bindings: spi: Add realtek,rtl9301-snand

From: Krzysztof Kozlowski
Date: Mon Oct 14 2024 - 03:12:36 EST


On Mon, Oct 14, 2024 at 02:52:43PM +1300, Chris Packham wrote:

> diff --git a/Documentation/devicetree/bindings/spi/realtek,rtl9301-snand.yaml b/Documentation/devicetree/bindings/spi/realtek,rtl9301-snand.yaml
> new file mode 100644
> index 000000000000..397b32b41e86
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/realtek,rtl9301-snand.yaml
> @@ -0,0 +1,59 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/realtek,rtl9301-snand.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SPI-NAND Flash Controller for Realtek RTL9300 SoCs
> +
> +maintainers:
> + - Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
> +
> +description:
> + The Realtek RTL9300 SoCs have a built in SPI-NAND controller. It supports
> + typical SPI-NAND page cache operations in single, dual or quad IO mode.
> +
> +properties:
> + compatible:
> + enum:
> + - realtek,rtl9301-snand
> + - realtek,rtl9302b-snand
> + - realtek,rtl9302c-snand
> + - realtek,rtl9303-snand

All of them look compatible with each other, why not using fallback to
9301? That's common and expected pattern.

Best regards,
Krzysztof