Skip to content

Commit 20253f8

Browse files
varshini-rajendranbroonie
authored andcommitted
spi: atmel-quadspi: Add support for sama7d65 QSPI
Add support for sama7d65 QSPI controller and define its caps. Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com> Link: https://patch.msgid.link/20250908-microchip-qspi-v2-5-8f3d69fdd5c9@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 65a977d commit 20253f8

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

drivers/spi/atmel-quadspi.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,24 @@ static const struct atmel_qspi_caps atmel_sam9x7_ospi_caps = {
16381638
.has_dllon = false,
16391639
};
16401640

1641+
static const struct atmel_qspi_caps atmel_sama7d65_ospi_caps = {
1642+
.max_speed_hz = SAMA7G5_QSPI0_MAX_SPEED_HZ,
1643+
.has_gclk = true,
1644+
.octal = true,
1645+
.has_dma = true,
1646+
.has_2xgclk = true,
1647+
.has_padcalib = true,
1648+
.has_dllon = false,
1649+
};
1650+
1651+
static const struct atmel_qspi_caps atmel_sama7d65_qspi_caps = {
1652+
.max_speed_hz = SAMA7G5_QSPI1_SDR_MAX_SPEED_HZ,
1653+
.has_gclk = true,
1654+
.has_dma = true,
1655+
.has_2xgclk = true,
1656+
.has_dllon = false,
1657+
};
1658+
16411659
static const struct atmel_qspi_caps atmel_sama7g5_ospi_caps = {
16421660
.max_speed_hz = SAMA7G5_QSPI0_MAX_SPEED_HZ,
16431661
.has_gclk = true,
@@ -1675,6 +1693,15 @@ static const struct of_device_id atmel_qspi_dt_ids[] = {
16751693
.compatible = "microchip,sam9x7-ospi",
16761694
.data = &atmel_sam9x7_ospi_caps,
16771695
},
1696+
{
1697+
.compatible = "microchip,sama7d65-ospi",
1698+
.data = &atmel_sama7d65_ospi_caps,
1699+
},
1700+
{
1701+
.compatible = "microchip,sama7d65-qspi",
1702+
.data = &atmel_sama7d65_qspi_caps,
1703+
},
1704+
16781705

16791706
{ /* sentinel */ }
16801707
};

0 commit comments

Comments
 (0)