Skip to content

Commit 36055bc

Browse files
Larisa GrigoreMatthewCroughan
authored andcommitted
spi: spi-fsl-lpspi: Add compatible for S32G
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> Link: https://patch.msgid.link/20250828-james-nxp-lpspi-v2-9-6262b9aa9be4@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fb672a9 commit 36055bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/spi/spi-fsl-lpspi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,14 @@ static const struct fsl_lpspi_devtype_data imx7ulp_lpspi_devtype_data = {
145145
/* All defaults */
146146
};
147147

148+
static const struct fsl_lpspi_devtype_data s32g_lpspi_devtype_data = {
149+
.query_hw_for_num_cs = true,
150+
};
151+
148152
static const struct of_device_id fsl_lpspi_dt_ids[] = {
149153
{ .compatible = "fsl,imx7ulp-spi", .data = &imx7ulp_lpspi_devtype_data,},
150154
{ .compatible = "fsl,imx93-spi", .data = &imx93_lpspi_devtype_data,},
155+
{ .compatible = "nxp,s32g2-lpspi", .data = &s32g_lpspi_devtype_data,},
151156
{ /* sentinel */ }
152157
};
153158
MODULE_DEVICE_TABLE(of, fsl_lpspi_dt_ids);

0 commit comments

Comments
 (0)