Skip to content

boards: add option to disable SPI Flash MTD automatic bringup on Espressif devices#18551

Merged
xiaoxiang781216 merged 2 commits intoapache:masterfrom
fdcavalcanti:feature/disable-auto-bringup
Mar 18, 2026
Merged

boards: add option to disable SPI Flash MTD automatic bringup on Espressif devices#18551
xiaoxiang781216 merged 2 commits intoapache:masterfrom
fdcavalcanti:feature/disable-auto-bringup

Conversation

@fdcavalcanti
Copy link
Copy Markdown
Contributor

@fdcavalcanti fdcavalcanti commented Mar 17, 2026

Summary

  • boards/xtensa: add option to disable SPI Flash MTD automatic bringup

The ESP32*_SPIFLASH_AUTO_BRINGUP option allows disabling automatic bringup.
This causes /dev/mtdblock0 to show up instead of always mounting a file system.

  • boards/risc-v: add option to disable SPI Flash MTD automatic bringup

The ESPRESSIF_SPIFLASH_AUTO_BRINGUP option allows disabling automatic bringup.
This causes /dev/mtdblock0 to show up instead of always mounting a file system.

This PR adds a Kconfig option to facilitate enabling or disabling automatic SPI Flash mounting during board bringup.

Impact

Impact on user: No.

Impact on build: No.

Impact on hardware: Only affects Espressif RISC-V and Xtensa devices.

Impact on documentation: NO.

Impact on security: No.

Impact on compatibility: No.

Testing

Building

Tested on internal CI and ran refresh.sh script.

Running

Tested on all SoCs with ostest and spiflash.
All builds succeed and tests passing.

To validate, build:

  • ./tools/configure.sh esp32c3-devkit:spiflash
  • make and flash

The ESPRESSIF_SPIFLASH_AUTO_BRINGUP option allows disabling automatic bringup.
This causes /dev/mtdblock0 to show up instead of always mounting a file system.

Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
The ESP32*_SPIFLASH_AUTO_BRINGUP option allows disabling automatic bringup.
This causes /dev/mtdblock0 to show up instead of always mounting a file system.

Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
@github-actions github-actions bot added Size: S The size of the change in this PR is small Board: risc-v Board: xtensa labels Mar 17, 2026
@fdcavalcanti fdcavalcanti changed the title Feature/disable auto bringup boards: add option to disable SPI Flash MTD automatic bringup on Espressif devices Mar 17, 2026
@xiaoxiang781216 xiaoxiang781216 merged commit 1630b48 into apache:master Mar 18, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: risc-v Board: xtensa Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants