nuttx/arch
Tiago Medicci Serrano c17e16eaed xtensa/espressif: Update common-source integration for Xtensa devices
This commit updates the common-source integration for Xtensa-based
Espressif devices (ESP32, ESP32-S2, and ESP32-S3). This is part of a larger
common-source update split by architecture for better maintainability.

Major components updated:
- IRQ allocator refactoring with intr_alloc integration
- Common-source drivers (GPIO, RMT, I2C, SPI, UART, etc.)
- Espressif components upgrade to release/master.b-test
- Peripheral drivers (ADC, PWM, LEDC, MCPWM, PCNT, Temperature Sensor, etc.)
- Wireless adapters (Wi-Fi and BLE)
- esp_timer migration to the common-source path for Xtensa devices
- Common-source power management implementation (auto-sleep and wakeup paths)
- Board defconfigs for all Xtensa Espressif boards
- SMP support improvements for ESP32-S3
- Critical section handling improvements

Key architectural changes:
- IRQ Allocator: The new interrupt allocator enables multiple mapping
  options from interrupt sources to CPU interrupts, providing flexibility
  required by modern peripherals. Although this introduces breaking changes
  to the interrupt handling API, the required ARCH_MINIMAL_VECTORTABLE
  Kconfig option is explicitly checked during startup to ensure proper
  configuration. This validation prevents runtime issues from configuration
  mismatches.
- Xtensa-specific interrupt handling via esp_xtensa_intr.c providing
  NuttX-native implementations of xt_ints_on/off and interrupt handlers,
  avoiding conflicts with NuttX's core Xtensa macros.
- Timer/RTC unification: ESP32/ESP32-S2/ESP32-S3 move from chip-specific
  RTC/RT-timer code to common-source Espressif integration, including
  esp_timer_adapter/esp_rtc paths and the required bringup/defconfig updates.
- Power management consolidation: Xtensa PM follows the common-source
  implementation, including common-source auto-sleep behavior, UART/Wi-Fi
  wakeup coordination, and tickless-safe sleep flow compatibility.

Note: This is a large commit to maintain bisectability. Breaking the
changes into smaller commits would result in non-building intermediate
states across the common-source infrastructure update.

Tested configurations:
- All defconfigs were tested, including `ostest`.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
2026-03-29 00:33:11 +08:00
..
arm kinetis/pinmux: Do not redefine PIN_UART2_RTS 2026-03-27 09:37:06 +08:00
arm64 arch/arm64/src/rk3399: CMake build implemented for Rockchip RK3399 2026-03-24 13:40:45 -04:00
avr style: Fix "the the" typo across the codebase. 2026-03-23 11:07:49 +01:00
ceva arch\ceva: Fix Make style 2026-03-23 18:16:46 -04:00
dummy
hc Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
mips arch\mips: Fix Make style 2026-03-23 18:16:46 -04:00
misoc Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
or1k Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
renesas style: Fix "the the" typo across the codebase. 2026-03-23 11:07:49 +01:00
risc-v xtensa/espressif: Update common-source integration for Xtensa devices 2026-03-29 00:33:11 +08:00
sim style: Fix "the the" typo across the codebase. 2026-03-23 11:07:49 +01:00
sparc style: Fix "the the" typo across the codebase. 2026-03-23 11:07:49 +01:00
tricore arch/tricore: Fix --help-- in Kconfig 2026-03-11 13:06:13 +08:00
x86 Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
x86_64 arch\x86_64: Fix Make style 2026-03-23 18:16:46 -04:00
xtensa xtensa/espressif: Update common-source integration for Xtensa devices 2026-03-29 00:33:11 +08:00
z16 style: Fix "the the" typo across the codebase. 2026-03-23 11:07:49 +01:00
z80 style: Fix "is is" typo across the codebase. 2026-03-24 09:39:26 +08:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arch/delays: Invalid default value for BOARD_LOOPSPERMSEC 2026-02-25 15:00:03 -03:00