On Thu, Aug 28, 2025 at 11:14:48AM +0100, James Clark wrote:
> From: Larisa Grigore <larisa.grigore@nxp.com>
>
> S32G doesn't have the max prescale erratum (default) and it can query
> the max number of CS from hardware, so add those settings.
>
> Signed-off-by: Larisa Grigore <larisa.grigore@nxp.com>
> Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@nxp.com>
> Signed-off-by: James Clark <james.clark@linaro.org>
> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> drivers/spi/spi-fsl-lpspi.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c
> index ce347cdbb009..431439d4cdda 100644
> --- a/drivers/spi/spi-fsl-lpspi.c
> +++ b/drivers/spi/spi-fsl-lpspi.c
> @@ -145,9 +145,14 @@ static const struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
> /* All defaults */
> };
>
> +static const struct fsl_lpspi_devtype_data s32g_lpspi_devtype_data = {
> + .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
>