[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aLCczhqFzQmxaxPl@lizhi-Precision-Tower-5810>
Date: Thu, 28 Aug 2025 14:15:42 -0400
From: Frank Li <Frank.li@....com>
To: James Clark <james.clark@...aro.org>
Cc: Mark Brown <broonie@...nel.org>, Clark Wang <xiaoning.wang@....com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
Larisa Grigore <larisa.grigore@....nxp.com>,
Larisa Grigore <larisa.grigore@....com>,
Ghennadi Procopciuc <ghennadi.procopciuc@....com>,
Ciprianmarian Costea <ciprianmarian.costea@....com>, s32@....com,
linux-spi@...r.kernel.org, imx@...ts.linux.dev,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH v2 9/9] spi: spi-fsl-lpspi: Add compatible for S32G
On Thu, Aug 28, 2025 at 11:14:48AM +0100, James Clark wrote:
> From: Larisa Grigore <larisa.grigore@....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@....com>
> Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@....com>
> Signed-off-by: James Clark <james.clark@...aro.org>
> ---
Reviewed-by: Frank Li <Frank.Li@....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
>
Powered by blists - more mailing lists