Commit graph zephyr/soc
Author SHA1 Message Date
Andrej Butok
c87808f9ad soc: nxp: mcxl: enable code execution from SRAM
- Enable code execution from SRAM for mcxl platforms, as
  most platforms treat SRAM as executable by default.
- The MCXL SoC does not grant execute permission to its SRAM banks by
  default, so code placed in RAM (e.g. RAM-resident functions or tests
  that execute from RAM) faults on fetch.
- Unlock the SRAM_XEN_DP register through the GLIKEY write-enable state
  machine and set the execute-enable for SRAM.
- Tested on frdm-mcxl255

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2026-07-24 09:44:05 +02:00
Sylvio Alves
6e55fefd22 soc: espressif: run flash erase once for sysbuild images
The esp32 runner implements the erase option as a full chip
erase. Flashing a sysbuild build with west flash --erase wiped
the previously programmed image before each new one, leaving
the device unbootable. Mark the erase option as a run-once
command so only the first image erases the chip.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-23 13:46:44 -05:00
Florian Moesch
d1add600cf soc: st: stm32: add support for STM32L151xE
This is almost a copy of the STM32L152xE support.
The STM32L152xE is already supported and is nearly identical.
The STM32L151xE differs only by lacking the LCD interface.

Signed-off-by: Florian Moesch <florian.moesch@draeger.com>
2026-07-23 16:22:01 +02:00
Liang Jiaxiang
a489894e9a soc: stm32h5: enable data cache during early boot
STM32H5 has a hardware data cache (DCACHE1, and DCACHE2 on some
part numbers) but unlike other STM32 series its soc_early_init_hook()
did not enable it, so the data cache was left disabled by default.

Enable it in soc_early_init_hook(), matching the behavior of the
stm32h7/h7rsx/f7/n6 SoCs.

sys_cache_data_enable() is a no-op when the part has no data cache
(e.g. STM32H503, where CPU_HAS_DCACHE is not selected), so this is
safe across the whole H5 series.

Signed-off-by: Liang Jiaxiang <moonbite233@gmail.com>
2026-07-23 16:19:17 +02:00
Zhiyuan Tang
066f18113d soc: realtek: rtl87x2g: restore z_arm_nmi after SoC init
The RTL87x2G ROM initialization (via phy_init and related routines)
calls RamVectorTableUpdate() internally, which overwrites the NMI
vector in the RAM vector table with an RTK-specific handler.  This
clobbers Zephyr's z_arm_nmi, causing the arm_runtime_nmi test to fail
on rtl87x2g_evb_a/rtl8762gku.

Fix this by calling RamVectorTableUpdate(NMI_VECTORn, z_arm_nmi) at
the end of rtl87x2g_isr_register(), which already runs in
soc_late_init_hook() after all SoC initialization is complete.  This
restores the NMI vector to Zephyr's handler, consistent with how
peripheral IRQ vectors are already reconciled in the same function.

Fixes: tests/arch/arm/arm_runtime_nmi on rtl87x2g_evb_a/rtl8762gku

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-07-23 16:14:24 +02:00
Zhiyuan Tang
a6247f563a soc: realtek: move timer init to late hook
Move SoC init steps that use kernel timers to the late init hook.
The system timer is not ready when the early init hook runs, so these
steps must run later after Zephyr has initialized timer support.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-07-23 16:12:56 +02:00
Zhiyuan Tang
1f6ca6d20e soc: realtek: rtl8752h: remove custom arch_busy_wait
The rtl8752h CM0+ SysTick does not have the COUNTFLAG early-assertion
hardware bug present on the KM4 core (rtl87x2g), so the default
k_busy_wait() implementation based on k_uptime_get_32() works correctly
on this platform.

Remove ARCH_HAS_CUSTOM_BUSY_WAIT and its arch_busy_wait() implementation
to fall back to the default k_busy_wait() which gives reliable results.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-07-23 16:12:56 +02:00
Anas Nashif
e0f04c2847 Revert "kernel: timeout: add sys_clock_idle_enter() for low-power idle handoff"
This reverts commit 7d0bb85adc.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Darcy Lu
9d1dece900 drivers: otp: Add support for Realtek RTS5817 OCOTP
This commit adds On-Chip OTP driver for RTS5817

Signed-off-by: Darcy Lu <darcy_lu@realsil.com.cn>
2026-07-22 14:16:16 +01:00
Anas Nashif
c53307ab88 soc: nordic: move init code from SYS_INIT to hooks
The nRF52 and nRF91 SoC bring-up (instruction cache and DC/DC
regulator enable) ran as a SYS_INIT at PRE_KERNEL_1 priority 0, i.e.
before any device initialization. Convert these to the SoC early init
hook, which runs at the same point, and select SOC_EARLY_INIT_HOOK for
the respective series. No functional change; this aligns the nRF52 and
nRF91 series with the SoC hook convention already used across the tree.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 14:15:50 +01:00
Sameer Srivastava
14ddc78b14 soc: ti: am13: initial support for TI AM13 Family
- Add SOC support under ti/am13 folder structure
- Kconfig integration for AM13E series and AM13E230X SOC
- MPU regions definition for AM13E

Signed-off-by: Sameer Srivastava <s-srivastava4@ti.com>
2026-07-22 10:59:14 +01:00
Nicolas Pitre
7d0bb85adc kernel: timeout: add sys_clock_idle_enter() for low-power idle handoff
The idle argument of sys_clock_set_timeout() carries a distinct signal:
the CPU is entering low-power idle, here is its wakeup. Only the PM and
SoC power paths produce it (the timeout core always passes false), and
only a few drivers act on it to hand off to a low-power wakeup timer.

Introduce a dedicated sys_clock_idle_enter() hook for that, so the two
idle==true callers (subsys/pm and soc/nxp/rw) call it instead of
sys_clock_set_timeout(). Its weak default just programs the wakeup via
sys_clock_set_timeout(), so a driver with no low-power handling needs
nothing.

The five drivers that acted on idle (cortex_m_systick, esp32, xtensa,
mcux_os, stm32_lptim) move that handling into their own
sys_clock_idle_enter(), keeping their exact behaviour. Where the idle
path was self-contained it moves wholesale (cortex_m_systick, mcux_os,
stm32_lptim); where it shares the timeout programming, idle_enter()
calls set_timeout() first and then does its idle work (esp32), or shares
a small private helper (xtensa). set_timeout() keeps its now-unused idle
argument for the moment; nobody passes idle==true to it any more, which
lets the next change drop the argument entirely.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2026-07-21 18:02:43 -04:00
Aziz Sellami
04088851f9 soc: nxp: imxrt118x: move cm7 init in POST_KERNEL
Move Cortex-M7 initialization to the POST_KERNEL to ensure that common
peripherals are already initialized by the Cortex-M33 main core.

Signed-off-by: Aziz Sellami <aziz.sellami@nxp.com>
2026-07-21 10:18:13 -04:00
Takumi Ando
d62c17bf60 soc: xlnx: versal: Skip high SRAM warning for XIP
XIP builds provide a separate ROM region for code and vectors, so a high
SRAM base address does not imply that the low-address TCM/vector mapping
is missing.

Keep the warning for non-XIP builds, but suppress it when CONFIG_XIP is
enabled.

Signed-off-by: Takumi Ando <takumi@spacecubics.com>
2026-07-21 10:13:57 -04:00
Takumi Ando
3998dd0ea5 soc: xlnx: versal: Derive OCM MPU region from devicetree
Use the address and size of the OCM devicetree node for the OCM MPU
region instead of hard-coded values.

This allows boards to map the full OCM region or reserve part of it for
firmware such as BL31.

Signed-off-by: Takumi Ando <takumi@spacecubics.com>
2026-07-21 10:13:57 -04:00
Takumi Ando
aa9577448d soc: xlnx: versal: Avoid DDR MPU region when using OCM as SRAM
When `zephyr,sram` points to OCM, `DT_CHOSEN_SRAM_ADDR` is a
high address. The current MPU setup therefore treats OCM as a
separate DDR region, which produces a misleading DDR warning and
adds a redundant MPU region covering OCM.

Detect when OCM is selected as `zephyr,sram`, suppress the
DDR-specific warning, and avoid creating the separate DDR MPU
region. OCM is already covered by its dedicated MPU region.

Signed-off-by: Takumi Ando <takumi@spacecubics.com>
2026-07-21 10:13:57 -04:00
Etienne Carriere
3e93f462ac soc: nxp: use diamond include for non-local header files
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.

This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ find soc/nxp/ -type f -exec \
    ./scripts/check_quoted_includes.py -w {} \;

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-07-21 10:09:41 -04:00
Raffael Rostagno
3b0ec50d16 pm: soc: esp32: Update MAC_BB_PD setting
Update MAC_BB_PD option setting to reflect correct usage
(only appliable with PM enabled).

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-07-21 10:07:38 -04:00
Fin Maaß
fa68793ee8 soc: intel: remove setting default for X86_VERY_EARLY_CONSOLE
X86_VERY_EARLY_CONSOLE is already
by default not enabled, so we don't need
to explicitly set it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-07-20 16:43:27 -05:00
Robert Robinson
3d198cdef9 soc: nordic: common: Add MRAMC support for NRF_SYS_EVENT_IRQ_LATENCY
This commit adds support for MRAMC in the nrf_sys_event driver for
NRF_SYS_EVENT_IRQ_LATENCY. Note that MRAMC does not support DPPI, so the
driver will only use NRF_SYS_EVENT_IRQ_LATENCY_MANUAL mode when MRAMC
is present.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-07-20 08:35:09 -05:00
Chaitanya Tata
cdba7c81c2 soc: nordic: nrf71: don't auto-boot Wi-Fi core by default
The Wi-Fi core (LMAC/UMAC) is kickstarted from soc_early_init_hook()
when SOC_NRF71_WIFI_BOOT is set. Until now this symbol defaulted to y
on non-TF-M builds, so the core was booted unconditionally even when no
Wi-Fi driver was present. A booted Wi-Fi core is useless without the
driver that owns it, and no such driver exists in upstream Zephyr.

Invert the control: leave SOC_NRF71_WIFI_BOOT disabled by default and
turn it into a passive capability that the driver owning the core is
expected to select. This way the core is booted if and only if a driver
that can use it is present.

A pure-Zephyr build has no nRF71 Wi-Fi driver, so defaulting the boot
off is the correct behaviour and loses nothing.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Claude:claude-opus-4.8
2026-07-17 14:43:33 -05:00
Anas Nashif
25d08114e9 arch: gate idle notification hooks on SYS_IDLE_HOOKS
The architecture idle paths call sys_trace_idle() and
sys_trace_idle_exit() to notify subscribers when the CPU enters and
leaves the idle state. These calls were guarded by CONFIG_TRACING,
which tied idle-time accounting to the tracing subsystem even though
no tracing backend is required to service the hooks.

Introduce a hidden Kconfig symbol, SYS_IDLE_HOOKS, that any subsystem
needing these notifications can select, and have TRACING select it.
Switch the idle-path guards in every architecture and SoC that emits
the hooks from CONFIG_TRACING to CONFIG_SYS_IDLE_HOOKS. Because
TRACING selects the new symbol, existing tracing behaviour is
unchanged; the change only lets non-tracing consumers receive the
hooks.

This is a prerequisite for building the CPU load module without the
tracing subsystem.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-17 11:55:28 -04:00
Mathieu Choplain
9d5c0d9da7 soc: st: stm32: use zephyr,system-timer instead of stm32_lp_tick_source
Update the STM32 common Kconfig defaults to obtain the prescaler of the
chosen LPTIM-as-sysclk using the standard chosen zephyr,system-timer
instead of the vendor-specific stm32_lp_tick_source nodelabel.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-17 11:54:28 -04:00
Aman Lachhiramka
7ac73259bb soc: ti: mspm: add MSPM33C321A SoC series support
Add initial SoC series support for the TI MSPM33C321A.
The MSPM33C series has no dependency on the TI MSPM0 SDK/HAL.

Guard common/soc.c and HAL includes in common/soc.h with
CONFIG_HAS_MSPM0_SDK so they compile only for MSPM0G/MSPM0L series.

Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
2026-07-17 11:53:05 -04:00
Aman Lachhiramka
a18ba0e404 soc: ti: rename MSP SoC family from ti_mspm0 to ti_mspm
Rename the TI MSP SoC family symbol from SOC_FAMILY_TI_MSPM0 to
SOC_FAMILY_TI_MSPM and directory from soc/ti/mspm0 to soc/ti/mspm
to accommodate upcoming MSP series beyond MSPM0 (MSPM0G, MSPM0L,
MSPM33) without ambiguity with other MSP product lines (MSP430,
MSP432).

Gate MSPM0-specific configs (MSPM0_PERIPH_STARTUP_DELAY, mclk
clock default) on MSPM0 series symbols to prevent unintended
enablement on future series.
No functional change for existing MSPM0G and MSPM0L builds.

Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
2026-07-17 11:53:05 -04:00
Andrej Butok
1f62193444 boards: nxp: mimxrt700_evk: enable MCUboot support
- Adds zephyr,code-partition pointing to slot0_partition in the chosen
  node to enable MCUboot-based booting.
- Increase ROM_START_OFFSET to 0x400 for imxrt7xx when
  BOOTLOADER_MCUBOOT is enabled, as the default 0x200 offset is
  insufficient for the higher ISR count on this SoC family.
- Adds a flash runner configuration used for sysbuild
  multi-image projects, mainly for MCU-boot, to avoid unwanted
  multiple erases and resets.
- Uses unified flash node naming used by other RTs.
- Fixed ext. flash comment to MX25UM51345G (was MX25UM51245G) in dts.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2026-07-17 11:52:03 -04:00
Andrei-Edward Popa
8357569f7a soc: arm: mps3: add SoC support for the AN536 on MPS3
Add SoC support for the Arm MPS3 AN536 Cortex-R52x2 FPGA image.

The AN536 platform uses a Cortex-R52 CPU, GICv3 and the Arm
architectural timer. Add the SoC Kconfig entries, SoC metadata,
Cortex-R linker script selection and MPU region configuration needed
by the platform.

Provide the CMSIS Core_R device definitions required by the Cortex-R
CMSIS headers, including the AN536 IRQn_Type interrupt map and GIC base
address definitions.

Signed-off-by: Andrei-Edward Popa <andrei.popa105@yahoo.com>
2026-07-17 11:51:38 -04:00
Elmo Lan
8e4abb4eb4 soc: realtek: rts5912: wait for PLL to lock upon wakeup
Upon waking from heavy sleep, the CPU resumes on a slow 25MHz RC clock
while the main PLL stabilizes (~40us). Returning immediately from
rts5912_heavy_sleep() causes early resume code to run at 25MHz, leading
to timing corruption and driver timeouts on high-speed buses like eSPI.

Fix this by adding a busy-wait loop after WFI to poll the PLL ready flag
(RTS5912_PLLCTRL_RDY), ensuring the CPU runs at full speed before
proceeding.

Signed-off-by: Elmo Lan <elmo_lan@realtek.com>
2026-07-16 10:50:33 -04:00
Sylvio Alves
1290c7df7d soc: espressif: shrink esp timer task stack default
The timer task stack was sized at 4096 bytes, far above what the
registered callbacks use. Measured peak usage on Wi-Fi plus BLE and
Wi-Fi mesh workloads is around 350 bytes. Lower the default to 1536,
which keeps a wide margin above the observed peak while reclaiming
memory from every build that enables Wi-Fi or BLE.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-16 10:49:56 -04:00
Zhengyu Yan
fed022008b soc: sifli: sf32: Fix ftab partition addresses
The zephyr,mapped-partition binding translates partition reg addresses
through the parent ranges properties. gen_ftab.py was treating the
translated addresses as offsets relative to the NOR flash base and
added the base address a second time.

Use the partition addresses directly when populating the ftab and
writing the generated Intel HEX image.

Fixes: 7989a094f8

Signed-off-by: Zhengyu Yan <zhengyuyan@sifli.com>
2026-07-16 10:49:36 -04:00
Liu Qian
1ec435ab05 arch: riscv: fix mie/sie bit shift for RV64
On RV64, "1 << irq" uses a 32-bit int operand. When irq >= 32 this is
undefined behavior, and the resulting mask is zero-extended from int
so high CSR bits are never set. Use "1UL << irq" so the shift uses
an unsigned long (64-bit on RV64) and correctly covers all bits of
the mie/sie CSR.

Applies to arch_irq_enable(), arch_irq_disable() and
arch_irq_is_enabled() in soc_common_irq.c.

Signed-off-by: Liu Qian <liuqian.andy@picoheart.com>
2026-07-16 10:49:19 -04:00
Aziz Sellami
99c91cf692 soc: nxp: imxrt: add ability to disable second core boot
Add ability to disable the second core boot through a Kconfig option, so
that the user can define and run the start function on application side.

Signed-off-by: Aziz Sellami <aziz.sellami@nxp.com>
2026-07-16 10:45:25 -04:00
Jacob Wienecke
7dad4835ff soc: nxp: mcxn: set wakeup delay for deep sleep
Waking from PM_STATE_SUSPEND_TO_IDLE reset the SoC with a brownout
(hwinfo RESET_BROWNOUT) because SPC_SetLowPowerWakeUpDelay() ran only
on the STANDBY path. Call it on the SUSPEND_TO_IDLE path as well.

Fixes: 3114d7751b
Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2026-07-16 10:44:07 -04:00
Lucien Zhao
9fbc7821df soc: nxp: mcxe31x: enable LPSPI ERR050456 workaround
The MCXE31B mask set errata sheet (Rev 1.2) lists ERR050456: resetting
the LPSPI FIFOs with CR[RTF]/CR[RRF] does not clear the FIFO pointers
completely, the documented workaround is to reset the entire module
with CR[RST]. Select the existing driver workaround like S32K3 does.

Without this, spi_loopback on frdm_mcxe31b receives stale bytes from
the previous transfer in the test cases which reuse the same spi
config (test_spi_null_tx_buf, test_spi_rx_half_start,
test_spi_same_buf_cmd). With the workaround selected these pass.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-07-16 14:34:55 +02:00
Etienne Carriere
b8585ef254 soc: intel: use diamond include for non-local header files
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.

This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ find soc/intel/ -type f -exec \
    ./scripts/check_quoted_includes.py -w {} \;

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-07-16 14:30:29 +02:00
Julien Panis
c1e2f18f7f soc: renesas: rcar_gen5: Add SCMI reset protocol
Enabling this feature allows issuing IP software resets.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
2026-07-16 14:28:09 +02:00
Brett Peterson
f9f0057cbe soc: infineon: edge: pse84: memory region name changes
This change removes underscore charaters from the PSE84 memory region
names. The zephyr_code_relocate CMake function uses underscore
characters as a delimiter for different properties in the target
region, so it is problematic to have underscores in the base name of
the memory region.

Signed-off-by: Brett Peterson <brett.peterson@infineon.com>
2026-07-15 19:03:10 -04:00
Mathieu Choplain
b3fa989bbb include: drivers: misc: stm32_wkup_pins: make the API private
This API was never intended to be "public" in the sense now documented
in the Glossary, as said in 559c72d7a6:
  "Introduce public functions for GPIO pins configuration [...]  in
   stm32 drivers & routines such gpio_stm32 & poweroff."

Remove the header from the public API directory and move the definitions
to a private header in SoC-specific includes. Update all previous users
of the header (which are as expected only those documented in the commit
message quoted above: gpio_stm32 and SoC poweroff.c).

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-15 19:03:02 -04:00
Mathieu Choplain
aebe672d30 soc: st: stm32: common: wkup_pins: replace UNUSED() with __maybe_unused
UNUSED() is provided by the HAL so it shouldn't be used from Zephyr.
Replace its usage in the STM32 Wakeup Pins driver with the standard
__maybe_unused annotation.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-15 19:03:02 -04:00
Mathieu Choplain
ee387f7a95 soc: st: stm32: common: put I/O cell-related options in a menu
Group all I/O cell-related options in a menu by using menuconfig on
option `STM32_IOCELL`. While at it, also fix the driver configuration
options which were not gated by `STM32_IOCELL` and could thus leak.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-15 15:27:33 +02:00
Samuel Slesar
29757399a5 soc: nxp: mcxl: fix CM0+ IRQ count
Set NUM_IRQS to 32 for MCXL25x CM0+ targets. The CM0+ IRQ table uses
external IRQs 0 through 31, while 161 is the CM33 interrupt range.

Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
2026-07-15 15:21:16 +02:00
Tomasz Leman
940b0f0e7f soc: intel_adsp: fix xtensa gdbstub include guard check
Commit 0e49186c8c ("include: zephyr: arch: Rename header file guard
macros for Common") renamed the include guard in
include/zephyr/arch/xtensa/gdbstub.h from
ZEPHYR_INCLUDE_ARCH_XTENSA_GDBSTUB_SYS_H_ to
ZEPHYR_INCLUDE_ARCH_XTENSA_GDBSTUB_H_, but did not update the sentinel
check in the intel_adsp SoC gdbstub header.

As a result, when CONFIG_GDBSTUB=y the SoC header still tests the old
macro name, which is never defined, and the build fails with:
  #error "Must be included after arch/xtensa/gdbstub.h"

Update the guard check to the current macro name so the SoC header
matches arch/xtensa/gdbstub.h again.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-07-15 10:49:56 +02:00
Vedant Malkar
33950c5c1b soc: shakti: add Ganga SoC
Adds SoC support for SHAKTI Ganga, a 64-bit
RISCV SoC from SHAKTI processor initiative at
RISE Lab, IIT Madras. Ganga is commonly ran as
soft core on FPGA boards.

This commit adds SoC family Kconfig and
the base devicetree.

Signed-off-by: Vedant Malkar <vedantitsme@gmail.com>
2026-07-15 10:44:27 +02:00
Anas Nashif
e7893844b7 xtensa: remove dead z_arch_irq_connect_dynamic
arch/xtensa/core/irq_manage.c still defines the dynamic IRQ connect
routine under its pre-2019 z_arch_ name, which nothing references
since the z_arch_* to arch_* interface rename. The __weak
arch_irq_connect_dynamic() fallback in arch/common/dynamic_isr.c
silently took over, so the multi-level variant that routes to
z_soc_irq_connect_dynamic() never runs, and the only implementation
of that SoC hook (intel_adsp cavs) has had no caller ever since.

The common weak fallback is functionally equivalent on cavs: the
cavs intc driver registers IRQ_PARENT_ENTRY_DEFINE and
CAVS_ISR_TBL_OFFSET defaults to 2ND_LVL_ISR_TBL_OFFSET, so the
generic z_get_sw_isr_table_idx() computes the same table slot the
hand-rolled SoC hook did. Reviving the routing would also break
other multi-level Xtensa SoCs (ace, mt8xxx, imx8 DSPs) that never
provided the hook. Remove the dead functions, the hook declaration
and its cavs implementation instead.

Assisted-by: Claude:claude-fable-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-14 20:08:55 -04:00
Anas Nashif
8684627670 soc: sensry: move init code from SYS_INIT to hooks
The sy1xx SoC init ran as a SYS_INIT at PRE_KERNEL_1 priority 0, before
any device initialization. Convert it to the SoC early init hook, which
runs at the same point, and select SOC_EARLY_INIT_HOOK for the series.
No functional change; this aligns the sy1xx series with the SoC hook
convention already used across the tree.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-14 20:07:36 -04:00
Anas Nashif
6ab25e81ac soc: infineon: move init code from SYS_INIT to hooks
The CAT1A PSOC6 and PSOC6 legacy SoC init (SystemInit) ran as a
SYS_INIT at PRE_KERNEL_1 priority 0, before any device initialization.
Convert both to the SoC early init hook, which runs at the same point,
and select SOC_EARLY_INIT_HOOK for the PSOC6 and PSOC6 legacy families.
No functional change; this aligns these families with the SoC hook
convention already used across the tree.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-14 20:07:29 -04:00
Sylvio Alves
1343660a91 soc: espressif: add esp32p4 nocache memory support
Add non-cacheable memory support on the esp32p4 by reserving a
power-of-two window at the top of HP SRAM and marking it
non-cacheable with a PMA NAPOT entry at boot. The window keeps its
normal cached address so it stays reachable by the DMA engine,
while CPU accesses bypass the cache, so both masters see coherent
data through one address.

The region size comes from the sramhp_nocache devicetree node and
the base is derived per silicon revision, whose SRAM and cache
layouts differ. The PMA entry is re-applied on wake from standby
because the PMA CSRs are volatile across CPU power-down sleep.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-14 20:07:22 -04:00
Keith Short
28263624f1 soc/ite: it8xxx2: Enable SOC_IT8XXX2_RAM_CODE_NOINLINE
When LTO is enabled, inlining of functions is more likely.  Enable
SOC_IT8XXX2_RAM_CODE_NOINLINE by default when LTO is enabled.

Tested RAM resident flash routines (ramcode_flash_write, etc.)
on ITE EC.

Signed-off-by: Keith Short <keithshort@google.com>
2026-07-14 20:07:04 -04:00
Etienne Carriere
27c6d90c5f soc: microchip: use diamond include for non-local header files
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.

This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ find soc/microchip/ -type f -exec \
    ./scripts/check_quoted_includes.py -w {} \;

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-07-14 16:39:18 -04:00
David Boullie
aa09b4ea15 soc: silabs_s2: Add CSL configuration defaults
Add default configuration for Coordinated Sampled Listening
(CSL) features to Silabs S2 defconfig.

Signed-off-by: David Boullie <David.Boullie@silabs.com>
2026-07-14 16:38:51 -04:00