Re: [PATCH 10/13] spi: spi-fsl-lpspi: Add compatible for S32G
From: Frank Li
Date: Thu Aug 14 2025 - 14:26:19 EST
On Thu, Aug 14, 2025 at 05:06:50PM +0100, James Clark wrote:
> From: Larisa Grigore <larisa.grigore@xxxxxxx>
>
> S32G doesn't have the max prescale erratum and it can query the max
> number of CS from hardware, so add those settings.
binding doc should first patch. Create new patch serial for add S32G
support only.
Frank
>
> Signed-off-by: Larisa Grigore <larisa.grigore@xxxxxxx>
> Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@xxxxxxx>
> Signed-off-by: James Clark <james.clark@xxxxxxxxxx>
> ---
> drivers/spi/spi-fsl-lpspi.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c
> index 6d0138b27785..a4727ca37d90 100644
> --- a/drivers/spi/spi-fsl-lpspi.c
> +++ b/drivers/spi/spi-fsl-lpspi.c
> @@ -159,9 +159,15 @@ static const struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
> .query_hw_for_num_cs = false,
> };
>
> +static struct fsl_lpspi_devtype_data s32g_lpspi_devtype_data = {
> + .prescale_err = false,
> + .query_hw_for_num_cs = true,
> +};
> +
> static const struct of_device_id fsl_lpspi_dt_ids[] = {
> { .compatible = "fsl,imx7ulp-spi", .data = &imx7ulp_lpspi_devtype_data,},
> { .compatible = "fsl,imx93-spi", .data = &imx93_lpspi_devtype_data,},
> + { .compatible = "nxp,s32g2-lpspi", .data = &s32g_lpspi_devtype_data,},
> { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, fsl_lpspi_dt_ids);
>
> --
> 2.34.1
>