Re: [PATCH v2 1/3] spi: dt-bindings: spi-sg2044-nor: Add SOPHGO SG2042

Chen Wang
2025-05-26T02:12:29Z

On 2025/5/25 22:58, Zixian Zeng wrote:
> Add bindings for the SOPHGO SG2042 SPI-NOR flash controller,
> which is compatible with SOPHGO SG2044.
>
> Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com>
> ---
> Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml b/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml
> index 948ff7a096433a8c3c64cba13fc1339d18f6c19d..66e54dedab140a167ad84c43f312f93af2bfa06a 100644
> --- a/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml
> +++ b/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml
> @@ -14,7 +14,12 @@ allOf:
>
> properties:
> compatible:
> - const: sophgo,sg2044-spifmc-nor
> + oneOf:
> + - const: sophgo,sg2044-spifmc-nor
> + - items:
> + - enum:
> + - sophgo,sg2042-spifmc-nor
> + - const: sophgo,sg2044-spifmc-nor
>
> reg:
> maxItems: 1

Reviewed-by: Chen Wang <unicorn_wang@outlook.com>