]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
spi: spi-fsl-dspi: Enable support for S32G platforms
authorCiprian Marian Costea <ciprianmarian.costea@nxp.com>
Thu, 22 May 2025 14:51:42 +0000 (15:51 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:35:39 +0000 (23:35 +0100)
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>
drivers/spi/Kconfig
drivers/spi/spi-fsl-dspi.c

index c51da3fc3604977b05388687e5e64a58370186c4..60eb65c927b14faf85789376ab0f68422ead7cfb 100644 (file)
@@ -647,10 +647,10 @@ config SPI_FSL_SPI
 config SPI_FSL_DSPI
        tristate "Freescale DSPI controller"
        select REGMAP_MMIO
-       depends on SOC_VF610 || SOC_LS1021A || ARCH_LAYERSCAPE || M5441x || COMPILE_TEST
+       depends on ARCH_MXC || ARCH_NXP || M54541x || COMPILE_TEST
        help
          This enables support for the Freescale DSPI controller in master
-         mode. VF610, LS1021A and ColdFire platforms uses the controller.
+         mode. S32, VF610, LS1021A and ColdFire platforms uses the controller.
 
 config SPI_FSL_ESPI
        tristate "Freescale eSPI controller"
index 01af641fa757e997b6082e4920b99ddcae709440..04c88d090c4d1c116882b769dcf9dc110c3def1d 100644 (file)
@@ -1316,6 +1316,9 @@ static const struct of_device_id fsl_dspi_dt_ids[] = {
        }, {
                .compatible = "fsl,lx2160a-dspi",
                .data = &devtype_data[LX2160A],
+       }, {
+               .compatible = "nxp,s32g2-dspi",
+               .data = &devtype_data[S32G],
        },
        { /* sentinel */ }
 };