Skip to content

Commit 431f6c8

Browse files
Larisa Grigorebroonie
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 <[email protected]> Signed-off-by: Ciprian Marian Costea <[email protected]> Signed-off-by: James Clark <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 41c91c2 commit 431f6c8

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)