Skip to content

Commit 65a977d

Browse files
varshini-rajendranbroonie
authored andcommitted
spi: atmel-quadspi: add support for SAM9X7 QSPI controller
Add support for the QuadSPI controller found on the SAM9X7 SoC. This controller does not implement pad calibration. It supports operation up to 100 MHz, and requires the GCK to run at twice the data rate. Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com> Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com> Link: https://patch.msgid.link/20250908-microchip-qspi-v2-4-8f3d69fdd5c9@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 86d0749 commit 65a977d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

drivers/spi/atmel-quadspi.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
#define SAMA7G5_QSPI0_MAX_SPEED_HZ 200000000
6565
#define SAMA7G5_QSPI1_SDR_MAX_SPEED_HZ 133000000
66+
#define SAM9X7_QSPI_MAX_SPEED_HZ 100000000
6667

6768
/* Bitfields in QSPI_CR (Control Register) */
6869
#define QSPI_CR_QSPIEN BIT(0)
@@ -1627,6 +1628,16 @@ static const struct atmel_qspi_caps atmel_sam9x60_qspi_caps = {
16271628
.has_ricr = true,
16281629
};
16291630

1631+
static const struct atmel_qspi_caps atmel_sam9x7_ospi_caps = {
1632+
.max_speed_hz = SAM9X7_QSPI_MAX_SPEED_HZ,
1633+
.has_gclk = true,
1634+
.octal = true,
1635+
.has_dma = true,
1636+
.has_2xgclk = true,
1637+
.has_padcalib = false,
1638+
.has_dllon = false,
1639+
};
1640+
16301641
static const struct atmel_qspi_caps atmel_sama7g5_ospi_caps = {
16311642
.max_speed_hz = SAMA7G5_QSPI0_MAX_SPEED_HZ,
16321643
.has_gclk = true,
@@ -1660,6 +1671,10 @@ static const struct of_device_id atmel_qspi_dt_ids[] = {
16601671
.compatible = "microchip,sama7g5-qspi",
16611672
.data = &atmel_sama7g5_qspi_caps,
16621673
},
1674+
{
1675+
.compatible = "microchip,sam9x7-ospi",
1676+
.data = &atmel_sam9x7_ospi_caps,
1677+
},
16631678

16641679
{ /* sentinel */ }
16651680
};

0 commit comments

Comments
 (0)