Skip to content

Commit 9a30e33

Browse files
ciprianmcosteabroonie
authored andcommitted
spi: spi-fsl-dspi: Enable support for S32G platforms
Add compatible for S32G platforms, allowing DSPI to be used. Add a depends for ARCH_NXP which can replace LAYERSCAPE and also includes the new ARCH_S32 for S32G. Similarly, ARCH_MXC can replace SOC_VF610 || SOC_LS1021A which should avoid updating this for every new sub-platform in the future. Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@nxp.com> Signed-off-by: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com> Signed-off-by: Dan Nica <dan.nica@nxp.com> Signed-off-by: Larisa Grigore <Larisa.Grigore@nxp.com> Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com> Signed-off-by: James Clark <james.clark@linaro.org> Link: https://patch.msgid.link/20250522-james-nxp-spi-v2-13-bea884630cfb@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent be47ecf commit 9a30e33

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

drivers/spi/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,10 @@ config SPI_FSL_SPI
647647
config SPI_FSL_DSPI
648648
tristate "Freescale DSPI controller"
649649
select REGMAP_MMIO
650-
depends on SOC_VF610 || SOC_LS1021A || ARCH_LAYERSCAPE || M5441x || COMPILE_TEST
650+
depends on ARCH_MXC || ARCH_NXP || M54541x || COMPILE_TEST
651651
help
652652
This enables support for the Freescale DSPI controller in master
653-
mode. VF610, LS1021A and ColdFire platforms uses the controller.
653+
mode. S32, VF610, LS1021A and ColdFire platforms uses the controller.
654654

655655
config SPI_FSL_ESPI
656656
tristate "Freescale eSPI controller"

drivers/spi/spi-fsl-dspi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,9 @@ static const struct of_device_id fsl_dspi_dt_ids[] = {
13161316
}, {
13171317
.compatible = "fsl,lx2160a-dspi",
13181318
.data = &devtype_data[LX2160A],
1319+
}, {
1320+
.compatible = "nxp,s32g2-dspi",
1321+
.data = &devtype_data[S32G],
13191322
},
13201323
{ /* sentinel */ }
13211324
};

0 commit comments

Comments
 (0)