Enable QSPI and SF command
cover Enable QSPI and SF command
This patch series enables the SF command and QSPI for the MMC and NANDFLASH defconfigs in the case of the sam9x60 board and for the MMC defconfig in the case of the sama5d2_icp board. It also changes the compatible of the qspi child node from the board file of sam9x60 so that it can be properly found when probing the bus.
Sergiu Moga (3):
ARM: dts: sam9x60: fix compatible for qspi child node
configs: at91: sam9x60ek: enable QSPI and SF command
configs: at91: sama5d2_icp: enable QSPI and SF command
arch/arm/dts/sam9x60ek.dts | 2 +- configs/sam9x60ek_mmc_defconfig | 13 +++++++++++++ configs/sam9x60ek_nandflash_defconfig | 13 +++++++++++++ configs/sama5d2_icp_mmc_defconfig | 13 +++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1
PATCH 1/3 ARM: dts: sam9x60: fix compatible for qspi child node
Change the compatible of the qspi child node tojedec,spi-nor so that it can be properly found
when probing the bus.
--- arch/arm/dts/sam9x60ek.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/sam9x60ek.dts +1 -1
@@ -49,7 +49,7 @@ status = "okay"; nor_flash: sst26vf064@0 { - compatible = "spi-flash"; + compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <80000000>; spi-rx-bus-width = <4>;
Signature · 1 line
2.25.1
PATCH 2/3 configs: at91: sam9x60ek: enable QSPI and SF command
In reply to Sergiu MogaAdd the configurations required for enabling QSPI and the SF command to allow changes to be made dynamically to serial flash devices from the command line interface.
--- configs/sam9x60ek_mmc_defconfig | 13 +++++++++++++ configs/sam9x60ek_nandflash_defconfig | 13 +++++++++++++ 2 files changed, 26 insertions(+)
configs/sam9x60ek_mmc_defconfig +13 -0
@@ -33,6 +33,7 @@ CONFIG_CMD_DM=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y +CONFIG_CMD_SF_TEST=y CONFIG_CMD_NAND=y CONFIG_CMD_NAND_TRIMFFS=y # CONFIG_CMD_SETEXPR is not set
@@ -63,6 +64,8 @@ CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ATMEL=y CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y +CONFIG_SF_DEFAULT_MODE=0x0 +CONFIG_SF_DEFAULT_SPEED=50000000 CONFIG_NAND_ATMEL=y CONFIG_ATMEL_NAND_HW_PMECC=y CONFIG_PMECC_CAP=8
@@ -84,3 +87,13 @@ CONFIG_W1_GPIO=y CONFIG_W1_EEPROM=y CONFIG_W1_EEPROM_DS24XXX=y CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_SPI_FLASH=y +CONFIG_DM_SPI_FLASH=y +CONFIG_ATMEL_QSPI=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_SPI_FLASH_SPANSION=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_SPI_FLASH_SST=y +CONFIG_SPI_FLASH_MTD=y
configs/sam9x60ek_nandflash_defconfig +13 -0
@@ -33,6 +33,7 @@ CONFIG_CMD_DM=y # CONFIG_CMD_FLASH is not set CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y +CONFIG_CMD_SF_TEST=y CONFIG_CMD_MMC=y CONFIG_CMD_NAND=y CONFIG_CMD_NAND_TRIMFFS=y
@@ -69,6 +70,15 @@ CONFIG_ATMEL_NAND_HW_PMECC=y CONFIG_PMECC_CAP=8 CONFIG_SYS_NAND_ONFI_DETECTION=y CONFIG_PHY_MICREL=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SF_DEFAULT_BUS=0 +CONFIG_SF_DEFAULT_SPEED=50000000 +CONFIG_SPI_FLASH_SFDP_SUPPORT=y +CONFIG_SPI_FLASH_ATMEL=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_SPI_FLASH_SPANSION=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_SPI_FLASH_SST=y CONFIG_DM_ETH=y CONFIG_MACB=y CONFIG_PINCTRL=y
@@ -78,6 +88,9 @@ CONFIG_DEBUG_UART_ANNOUNCE=y CONFIG_ATMEL_USART=y CONFIG_SYSRESET=y CONFIG_SYSRESET_AT91=y +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_ATMEL_QSPI=y CONFIG_TIMER=y CONFIG_ATMEL_PIT_TIMER=y CONFIG_W1=y
Signature · 1 line
2.25.1
PATCH 3/3 configs: at91: sama5d2_icp: enable QSPI and SF command
In reply to Sergiu MogaAdd the configurations required for enabling QSPI and the SF command to allow changes to be made dynamically to serial flash devices from the command line interface.
--- configs/sama5d2_icp_mmc_defconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+)
configs/sama5d2_icp_mmc_defconfig +13 -0
@@ -43,6 +43,7 @@ CONFIG_CMD_DM=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y # CONFIG_CMD_LOADS is not set +CONFIG_CMD_SF_TEST=y CONFIG_CMD_MMC=y CONFIG_CMD_DHCP=y CONFIG_BOOTP_BOOTFILESIZE=y
@@ -71,6 +72,15 @@ CONFIG_SYS_I2C_AT91=y CONFIG_I2C_EEPROM=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ATMEL=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SF_DEFAULT_BUS=2 +CONFIG_SF_DEFAULT_SPEED=66000000 +CONFIG_SPI_FLASH_SFDP_SUPPORT=y +CONFIG_SPI_FLASH_ATMEL=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_SPI_FLASH_SPANSION=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_SPI_FLASH_SST=y CONFIG_DM_ETH=y CONFIG_MACB=y CONFIG_PINCTRL=y
@@ -82,6 +92,9 @@ CONFIG_ATMEL_USART=y CONFIG_SYSRESET=y CONFIG_SPL_SYSRESET=y CONFIG_SYSRESET_AT91=y +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_ATMEL_QSPI=y CONFIG_TIMER=y CONFIG_SPL_TIMER=y CONFIG_ATMEL_TCB_TIMER=y
Signature · 1 line
2.25.1
Quoted 11 lines · Sergiu Moga
This patch series enables the SF command and QSPI for the MMC and NANDFLASH defconfigs in the case of the sam9x60 board and for the MMC defconfig in the case of the
sama5d2_icpboard. It also changes the compatible of the qspi child node from the board file of sam9x60 so that it can be properly found when probing the bus.Sergiu Moga (3):
ARM: dts: sam9x60: fix compatible for qspi child node
configs: at91: sam9x60ek: enable QSPI and SF command
configs: at91:sama5d2_icp: enable QSPI and SF command
Quoted 6 lines
arch/arm/dts/sam9x60ek.dts | 2 +- configs/sam9x60ek_mmc_defconfig | 13 +++++++++++++ configs/sam9x60ek_nandflash_defconfig | 13 +++++++++++++ configs/sama5d2_icp_mmc_defconfig | 13 +++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-)
Applied series to u-boot-at91/next , thanks !