Commit graph zephyr/soc
Author SHA1 Message Date
Benjamin Cabé
b2f81114f5 soc: nordic: remove deprecated SOC_DCDC_NRF5X Kconfig options
Remove SOC_DCDC_NRF52X, SOC_DCDC_NRF52X_HV, SOC_DCDC_NRF53X_APP,
SOC_DCDC_NRF53X_NET and SOC_DCDC_NRF53X_HV, deprecated in Zephyr 4.0 in
favour of configuring the internal regulators through devicetree
(regulator-initial-mode on reg1/vregmain/vregradio, status = "okay" on
reg0/vregh).

All five were hidden options that nothing in-tree selected, and every
consumer already had the equivalent devicetree condition next to the
Kconfig one, so in-tree builds are unaffected. Devicetree is now the
single source of truth: the anomaly 160 workaround is still enabled by
the existing DT-driven defaults of SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED,
and the nRF5340 anomaly 166 branch is no longer skipped by a Kconfig
option that disagreed with a vregmain configured in LDO mode.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5
2026-09-02 10:07:35 +02:00
Benjamin Cabé
eb52f05d38 soc: nordic: nrf52: remove deprecated CONFIG_GPIO_AS_PINRESET
Remove the hidden Kconfig option GPIO_AS_PINRESET, deprecated in Zephyr
3.5 in favour of the "gpio-as-nreset" property on the UICR devicetree
node. Nothing in-tree selected it, and the MDK glue in mdk_config.h has
derived NRF_CONFIG_GPIO_AS_PINRESET purely from the devicetree property
since then; only the stale comment naming the Kconfig symbol is updated.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5
2026-09-02 10:07:35 +02:00
Parthiban Nallathambi
870e496811 license: fix malformed SPDX-FileCopyrightText headers
Two-line copyright notices were wrapped in the SPDX "<text>...</text>"
construct, which is only valid in an SPDX document, not a file header.
The REUSE tool then folds the literal "<text>" into the holder name
and drops the second line from the SBOM.

Remove the markers and tag the continuation line. Holder, year and
e-mail are left unchanged; only the syntax is fixed.

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2026-09-01 16:25:23 -04:00
Etienne Carriere
6536bd8708 soc: renesas: ra: Fix support of manual-configure DT property
Fix CONFIG_RENESAS_RA_BATTERY_BACKUP_MANUAL_CONFIGURE default value.

Since manual-configure DT property is of boolean type, use of
dt_compat_any_has_prop(..., manual-configure) always returns true.
Set function argument value to True to get the expected behavior.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-08-31 21:36:20 -04:00
Bill Waters
ef4b44bb9c soc: infineon: pse84: drop ITCM unwind tables to fix perf link
cy_device.c / cy_gpio.c are relocated into ITCM (.cy_itcm, see
itcm_mem.ld). With -funwind-tables enabled (CONFIG_ARCH_STACKWALK) the
compiler also emits .ARM.exidx.cy_itcm / .ARM.extab.cy_itcm entries for
that code. Those entries are gathered into the main exidx table in
ROMABLE_REGION, from where the R_ARM_PREL31 relocation back to the ITCM
code cannot be encoded, so the link fails with 'relocation truncated to
fit: R_ARM_PREL31 against .cy_itcm'. The Cortex-M stack unwinder does not
consume these tables, so discard the ITCM-relocated ones.

Assisted-by: AI (GitHub Copilot)
Signed-off-by: Bill Waters <bill.waters@infineon.com>
2026-08-31 21:35:50 -04:00
Bill Waters
4103ae2a2b soc: infineon: place .ARM.extab section when ARCH_STACKWALK is enabled
CONFIG_ARCH_STACKWALK adds -funwind-tables
(arch/arm/core/CMakeLists.txt), so C code emits .ARM.extab
exception-unwinding sections. The generic Cortex-M linker script already
guards the .ARM.extab output section with CONFIG_CPP || CONFIG_RUST ||
CONFIG_ARCH_STACKWALK, but the Infineon cat1b (cyw20829) and edge (pse84)
SOC linker scripts, which override it, were missing the ARCH_STACKWALK
case. As a result .ARM.extab became an orphan section and the link failed
when orphan-section handling is strict (e.g. the perf sample, which
selects ARCH_STACKWALK via the new Arm Cortex-M backend). Sync the guard
with the generic script.

Assisted-by: AI (GitHub Copilot)
Signed-off-by: Bill Waters <bill.waters@infineon.com>
2026-08-31 21:35:50 -04:00
Xavier Douville
dbbb8f6c9d drivers: can: sam0: enforce MRAM allocation within lower 64KB SRAM
On Microchip SAM0/SAMx54 family SoCs, the MCAN peripheral uses a 16-bit
Message RAM Base Address (MRBA) register relative to 0x20000000.
If MRAM buffers are placed above 0x20010000, the address truncates
and DMA operations access invalid memory locations.

This change introduces a dedicated .mram_noinit section via
zephyr_linker_sources_ifdef in SAM0 common CMake scripts to guarantee
that MRAM buffers are allocated at the start of RAM, staying strictly
within the 64 KB offset limit.

Signed-off-by: Xavier Douville <github@douville.org>
2026-08-31 21:35:21 -04:00
Tahsin Mutlugun
8740399bc3 soc: adi: max32: Derive flash MPU regions from partition addresses
Use DT_PARTITION_ADDR() to obtain flash partition addresses rather than
assuming a fixed layout where the storage partition follows the code
partition.

This makes MPU configuration a bit more robust against partition layout
changes.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2026-08-31 13:13:27 -04:00
Tahsin Mutlugun
bf42f1aed1 soc: adi: max32: Honor MPU_ALLOW_FLASH_WRITE for storage partition
Configure the storage flash region with read-only or read-write access
permissions based on the MPU_ALLOW_FLASH_WRITE setting.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2026-08-31 13:13:27 -04:00
Holt Sun
8474f020a0 soc: nxp: rw: Migrate PM hooks and defer GPIO wake callbacks
Two things kept this SoC on the legacy IRQ-unlocked path. pm_state_set()
cleared BASEPRI and masked with PRIMASK by hand, and
pm_state_exit_post_ops() called gpio_mcux_lpc_trigger_cb() directly
after a standby pin wake. The second one is not a mechanical fix: that
call dispatches user callbacks synchronously, before the PM exit
notifier, sys_clock_idle_exit(), and the CPU PM state teardown have run.

Wrap the raw WFI and every returning POWER_EnterPowerMode() call with
arch_pm_state_set_prepare() and arch_pm_state_set_finish(), and coalesce
the wake pin mask into an atomic before handing it to a static system
workqueue item, so the user callback runs after PM resume completes
rather than from inside the post-op. The handler exchanges the pins out
of the atomic, which preserves exactly-once delivery even if another
wake lands while the work is still pending.

The workqueue path needs multithreading, so keep
PM_STATE_SET_IRQ_UNLOCKED and the previous synchronous dispatch under
"if !MULTITHREADING" rather than forcing multithreading on. A
single-threaded build therefore keeps its old behavior and still links.

Validated on rd_rw612_bga with tests/subsys/pm/power_mgmt_soc: 3 of 3
cases pass, entering both light and deep sleep with timer wake. Also
build-checked with CONFIG_MULTITHREADING=n.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
5d713ac010 soc: nxp: imx952: Migrate M7 PM hooks to kernel-owned IRQ restore
These hooks are the i.MX95 M7 pattern, including the same hand-written
PRIMASK workaround in pm_state_set() and the PRIMASK clear in
pm_state_exit_post_ops(), so apply the same migration: one
enter_low_power() helper wrapping the WFI with
arch_pm_state_set_prepare() and arch_pm_state_set_finish(), SCMI
wake-mask and CPU RUN restoration left under the PM core lock, and
PM_STATE_SET_IRQ_UNLOCKED removed.

Add imx952_evk/mimx9529/m7 to the power_mgmt_soc platform list.

Validated on imx952_evk/mimx9529/m7: builds with the IRQ-locked
default. Hardware validation of the SCMI wake mask and CPU mode
transitions is still outstanding.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
f452ae9725 soc: nxp: imx95: Migrate M7 PM hooks to kernel-owned IRQ restore
pm_state_set() masked with PRIMASK and cleared BASEPRI by hand, with a
comment explaining that BASEPRI masking prevents the core from waking
out of WFI. pm_state_exit_post_ops() then cleared PRIMASK after
restoring the SCMI CPU RUN mode, which required the
PM_STATE_SET_IRQ_UNLOCKED opt-out.

Factor the three SCMI sleep modes onto one enter_low_power() helper that
sets the sleep mode and then wraps the WFI with
arch_pm_state_set_prepare() and arch_pm_state_set_finish(). The SCMI
wake-mask setup and the CPU RUN restoration stay where they were, now
running entirely under the PM core lock, and the opt-out is removed.

Validated on imx95_evk/mimx9596/m7: builds with the IRQ-locked default.
Hardware validation of the SCMI wake mask and CPU mode transitions is
still outstanding.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
827e42ed3b soc: nxp: lpc55xxx: Migrate LPC55S69 CPU0 PM hook off k_cpu_idle()
The runtime-idle state reached low power through k_cpu_idle(), which
performs its own IRQ unlock inside the region the PM core keeps locked.
That is why SOC_LPC55S69_CPU0 selected PM_STATE_SET_IRQ_UNLOCKED.

Replace it with a raw WFI wrapped by arch_pm_state_set_prepare() and
arch_pm_state_set_finish(), and remove the opt-out. Only the CPU0
symbol is touched; the rest of the series is unaffected.

Add lpcxpresso55s69/lpc55s69/cpu0 to the power_mgmt_soc platform list.
The test references a cpu0 node label, which this board's devicetree
does not define, so add a board overlay supplying it the same way other
power management tests do.

Validated on lpcxpresso55s69/lpc55s69/cpu0 with
tests/subsys/pm/power_mgmt_soc: 3 of 3 cases pass with timer wake.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
5694616465 soc: nxp: imxrt11xx: Migrate PM hooks to kernel-owned IRQ restore
system_enter_sleep() cleared BASEPRI and masked with PRIMASK around its
WFI, and pm_state_exit_post_ops() cleared PRIMASK before logging the
previous CM7 and CM4 GPC modes, so that reporting ran with interrupts
already unmasked.

Wrap the WFI with arch_pm_state_set_prepare() and
arch_pm_state_set_finish(), drop the post-op unmask so the GPC state
reporting stays under the PM core lock, and remove the
PM_STATE_SET_IRQ_UNLOCKED opt-out.

Add mimxrt1170_evk/mimxrt1176/cm7 to the power_mgmt_soc platform list so
the SoC has representative coverage.

Validated on mimxrt1170_evk rev B with tests/subsys/pm/power_mgmt_soc:
3 of 3 cases pass, entering both light and deep sleep with timer wake.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
5dc833662e soc: nxp: imxrt6xx: Migrate PM hooks to kernel-owned IRQ restore
Same shape as the RT5xx CM33 hooks: pm_state_set() carried the FIXME
about BASEPRI masking wake IRQs and worked around it with a hand-written
PRIMASK sequence, pm_state_exit_post_ops() unmasked, and the SoC opted
out through PM_STATE_SET_IRQ_UNLOCKED.

Use arch_pm_state_set_prepare() and arch_pm_state_set_finish() around
POWER_EnterSleep() and POWER_EnterDeepSleep(), drop the post-op unmask,
and remove the opt-out. The HAL preserves PRIMASK across its internal
WFI and restores it after wake.

Add mimxrt685_evk/mimxrt685s/cm33 to the power_mgmt_soc platform list so
the SoC has representative coverage.

Validated on mimxrt685_evk/mimxrt685s/cm33 with
tests/subsys/pm/power_mgmt_soc: 3 of 3 cases pass, entering both light
and deep sleep with timer wake.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
dcfd601cef soc: nxp: ke1xf: Migrate PM hooks to kernel-owned IRQ restore
pm_state_set() reached low power through k_cpu_idle(), which performs
its own IRQ unlock, and pm_state_exit_post_ops() finished with
irq_unlock(0). Nesting an unlock inside the region the PM core keeps
locked is what PM_STATE_SET_IRQ_UNLOCKED had to paper over.

Replace k_cpu_idle() with a raw WFI wrapped by
arch_pm_state_set_prepare() and arch_pm_state_set_finish(), drop the
post-op unlock, and remove the opt-out. The XIP path keeps its
__ramfunc wrapper so the flash prefetch drain and the WFI still execute
from RAM, with the helpers called from outside that body. Rename the
wrapper to wait_for_flash_prefetch_and_wfi() since it no longer calls
the kernel idle entry.

Validated on twr_ke18f with tests/subsys/pm/power_mgmt_soc: builds with
CONFIG_XIP=y and the RAM wrapper resident in .ramfunc.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
92646f2654 soc: nxp: mcxw2xx: Migrate PM hooks to kernel-owned IRQ restore
pm_state_set() cleared BASEPRI and masked with PRIMASK before calling
into the power library, and pm_state_exit_post_ops() cleared PRIMASK
again, which required the PM_STATE_SET_IRQ_UNLOCKED opt-out.

Wrap the sleep, deep-sleep, and power-down entries with
arch_pm_state_set_prepare() and arch_pm_state_set_finish() instead, drop
the post-op unmask, and remove the opt-out. All three HAL entry paths
preserve PRIMASK across their internal WFI and restore it after wake, so
wrapping the calls themselves is sufficient.

Validated on frdm_mcxw23 with tests/subsys/pm/power_mgmt_soc: 3 of 3
cases pass, entering both light and deep sleep with timer wake.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
d871ee76a8 soc: nxp: imxrt5xx: Migrate PM hooks to kernel-owned IRQ restore
pm_state_set() carried a FIXME explaining that the kernel masks with
BASEPRI, which blocks wake IRQs of non-zero priority, and worked around
it by setting PRIMASK and clearing BASEPRI by hand. Zephyr now provides
exactly that sequence as arch_pm_state_set_prepare() and
arch_pm_state_set_finish(), with the kernel retaining ownership of the
IRQ restore.

Use the architecture helpers around POWER_EnterSleep() and
POWER_EnterDeepSleep(), drop the __enable_irq() from
pm_state_exit_post_ops(), and remove the PM_STATE_SET_IRQ_UNLOCKED
opt-out. The HAL preserves PRIMASK across its internal WFI and restores
it after wake, so wrapping the power API call is sufficient.

Validated on mimxrt595_evk/mimxrt595s/cm33 with
tests/subsys/pm/power_mgmt_soc: 3 of 3 cases pass, entering both light
and deep sleep with timer wake.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Holt Sun
201bdf8265 soc: nxp: mcxw7xx: Migrate PM hooks to kernel-owned IRQ restore
Since commit 85a2085172 ("pm: make IRQ-locked state-set the default")
the PM core keeps IRQs masked across pm_state_set() and
pm_state_exit_post_ops(), and an implementation that unmasks from those
hooks has to opt out through PM_STATE_SET_IRQ_UNLOCKED.

This SoC opted out, and its ordering was the reason to care:
pm_state_exit_post_ops() called __enable_irq() as its very first
statement, before clearing the SPC power-domain low-power request flag.
A wake ISR could therefore observe that flag still set.

Wrap both CMC low-power entries with arch_pm_state_set_prepare() and
arch_pm_state_set_finish() instead of hand-rolling the PRIMASK/BASEPRI
sequence, drop the post-op unmask so the flag is cleared under the PM
core lock, and remove the opt-out from both SoC symbols. The CMC power
domain config is hoisted out of the switch case because two branches
now use it.

Add frdm_mcxw72 to the power_mgmt_soc platform list so the SoC has
representative coverage.

Validated on frdm_mcxw72 with tests/subsys/pm/power_mgmt_soc: 3 of 3
cases pass, entering both light and deep sleep with timer wake.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-08-31 13:10:38 -04:00
Abderrahmane JARMOUNI
cdae707dcb soc: arm: fvp_aem: Kconfig: fix SoC options
SoC options shall not be redefined in Kconfig file.
Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2026-08-31 06:59:57 -04:00
Beesam Sridhar Sagar
e1e5cab2c5 soc: xlnx: versal2: Add MPU region for Clocking Wizard
Add a device-memory MPU region for every Clocking Wizard node in
the devicetree that is enabled (status = "okay"). This marks its
register address range as device memory, same as other peripherals,
so it's safe to access from user code.

Without this, the driver would rely on the generic DEVICE region
instead of a properly sized region for its own registers.

Signed-off-by: Beesam Sridhar Sagar <sagar.beesamsridhar@amd.com>
2026-08-31 06:58:52 -04:00
Sylvio Alves
53bf364cf8 soc: espressif: esp32p4: skip lp rom boot
The lp core boots through lp rom before reaching the app entry,
and that delay lets the hp core start sending before the mailbox
interrupt is enabled. Boot straight into lp ram instead. Nothing
is lost, as the rom only sets up its uart and that is already
disabled here. esp32c5 and c6 have no lp rom and boot this way
already.

Assisted-by: Claude:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-08-31 06:58:41 -04:00
Sylvio Alves
d7f44dfa60 soc: espressif: esp32p4: reject erased lp core partition
An unflashed partition reads back as all ones, which was handed
to the loader as if it were a valid image. Check for it as the
esp32c5 and esp32c6 loaders already do.

Assisted-by: Claude:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-08-31 06:58:41 -04:00
Sylvio Alves
2a2558ca35 soc: espressif: esp32p4: fix lp core timer wakeup
The core cleared its sleep stall and reset enables after launch,
so it spun in its halt call instead of sleeping and the timer had
no sleeping core to restart. Keep them, matching esp32c5 and c6.

Assisted-by: Claude:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-08-31 06:58:41 -04:00
Thamaraimanalan M
d23a3d43dd soc: tiva_c: cmake: change SOC_SERIES variable
Changed the SOC_SERIES cmake varible to use
CONFIG_SOC_SERIES as SOC_* variables will be
deprecated.

Signed-off-by: Thamaraimanalan M <thamaraimanalan@linumiz.com>
2026-08-30 16:43:30 -04:00
Arunprasath P
bd29c03c5a soc: microchip: pic32cm_sg_gc: add DT helper file
Add DT helper file for PIC32CM SG/GC family devices to support
SoC-specific device tree definitions and utilities.

Signed-off-by: Arunprasath P <arunprasath.p@microchip.com>
2026-08-30 16:42:52 -04:00
Toon Stegen
74877287d0 soc: rpi_pico: fix binary info header placed before vector table
The binary info header is injected into rom_start with sort key
'0x0binary_info_header', which sorts before '0x0vectors' (the ARM
vector table). This places the header at XIP_BASE + 0x100, right
where the RP2040 boot2 stage hardcodes VTOR. The vector table,
pushed to 0x10000200 by ALIGN(0x100) after the header's 24 bytes,
is never reached — the core loads the header marker as its stack
pointer and faults immediately.

Fix by using sort key '0x2binary_info_header' so the header emits
after the vector table snippets ('0x0vectors' / '0x1vectors'). The
vector table sits at 0x10000100 as boot2 expects, and the header
ends at ~offset 0xbc — within the 256-byte limit picotool scans.

Only affects RP2040 builds with CONFIG_RPI_PICO_BINARY_INFO=y.

Signed-off-by: Toon Stegen <toon@toostsolutions.be>
2026-08-28 15:33:14 -04:00
Tahsin Mutlugun
18d9280e4a soc: adi: max32: Use portable IRQ controls APIs
Replace direct NVIC_SetPendingIRQ()/NVIC_EnableIRQ() calls with
k_irq_set_pending() and k_irq_enable() to reduce the dependence on
cmsis_core.h.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2026-08-28 15:32:12 -04:00
Shreehari HK
1d7028a82f soc: alif: enable designWare i2c clock optimization
Default I2C_DW_IC_CLK_FREQ_OPTIMIZATION for Alif Balletto and Ensemble.

The Alif I2C blocks are clocked from SYST_PCLK through the SoC clock
controller; enabling the driver's IC clock frequency optimization
allows correct timing register calculation on these platforms.

Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
2026-08-28 15:28:43 -04:00
Anas Nashif
392e04a795 soc: realtek: bee: use portable IRQ pending API
Replace the NVIC_GetEnableIRQ()/NVIC_EnableIRQ()/NVIC_DisableIRQ()
calls in the vector-table takeover loop with irq_is_enabled()/
irq_enable()/irq_disable().

Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-08-27 22:12:47 -04:00
Anas Nashif
10050aad72 soc: nxp: lpc55xxx: use portable IRQ pending API
Replace direct NVIC pending-state calls with k_irq_set_pending()/
k_irq_is_pending()/k_irq_clear_pending().

Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-08-27 22:12:29 -04:00
Anas Nashif
dd8910f132 soc: nxp: rw: use portable IRQ pending API
Replace direct NVIC pending-state calls with k_irq_set_pending()/
k_irq_is_pending()/k_irq_clear_pending().

Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-08-27 22:12:29 -04:00
Anas Nashif
6f76eaa552 soc: silabs: use portable IRQ pending API
Replace direct NVIC_ClearPendingIRQ() calls with
k_irq_clear_pending().

Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-08-27 22:12:17 -04:00
Marvin Gnad
4b8e1b90ad boards: nxp: lpcxpresso54628: enable the on-board accelerometer
Enable FlexComm2 as I2C and add the NXP MMA8652FC 3-axis accelerometer at
0x1d, which the fxos8700 driver detects by WHOAMI. The part has no
magnetometer, so the driver is defaulted to accelerometer-only mode.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Marvin Gnad <marvin.gnad@gmail.com>
2026-08-27 21:25:22 +01:00
Sylvio Alves
d128190123 soc: espressif: add esp32c61 soc support
Add the ESP32-C61 soc port: linker scripts, PMP regions, boot
path, hardware init and Kconfig, mostly mirroring the
single-core C5 behavior. The C61 is single-core RISC-V with a
CLIC interrupt controller and has no LP core.

The APM access-path filters are disabled during early hardware
init: they default to allowing only TEE-mode bus masters while
the application runs in REE mode, so radio and DMA bus accesses
would be silently dropped otherwise.

The bootloader loader segments and the MCUboot image metadata
follow the layout of the other espressif socs. The soc is
allowed to select external ram, while psram itself stays opt-in
through CONFIG_ESP_SPIRAM.

Assisted-by: Claude:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-08-27 21:23:34 +01:00
Camille BAUD
1d67a8457b modules: hal_bouffalolab: Fix printf usage
The blob uses printf, this crashes in many cases and is often unwelcome.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-08-27 07:20:49 -07:00
Jordan Yates
12d57bd872 net: invert ETH_DRIVER and NET_L2_ETHERNET
Invert the in-tree ethernet driver configuration logic.

The current logic is boards enabling `NET_L2_ETHERNET`, which then
unconditionally defaults `ETH_DRIVER` to enabled. This means that
`ETH_DRIVER` end up set for boards that use the L2 Ethernet layer but
don't have an ethernet device (see some WiFi drivers).

This commit:
 * Removes the `default y if NET_L2_ETHERNET` from `ETH_DRIVER`
 * Adds `default y if ETH_DRIVER` to `NET_L2_ETHERNET`
 * Adds `imply ETH_DRIVER` to `NET_QEMU_ETHERNET`
 * Updates in-tree ethernet boards to default `ETH_DRIVER` instead of
   `NET_L2_ETHERNET`

The outcome of this PR is that Kconfig can now use `ETH_DRIVER` to
reasonably assume that an actual ethernet driver is enabled.

Conversion of in-tree boards/samples performed by GPT-5.5.

Assisted-by: GPT-5.5
Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-08-27 12:11:50 +01:00
Laurie Fay
721a0b64d3 soc: arm: imply USE_SWITCH on corstone instead of select
The previous commit means USE_SWITCH has a missing dependency
(USE_SWITCH_SUPPORTED) if TRUSTED_EXECUTION_NONSECURE holds.

Use the weaker `imply` instead of `select` for enabling USE_SWITCH
on corstone300/corstone320 to avoid a Kconfig warning from this
dependency.

Signed-off-by: Laurie Fay <Laurie.Fay@arm.com>
2026-08-27 12:11:19 +01:00
Anas Nashif
80aa9b7783 drivers: intc: nxp_irqsteer: namespace the driver API
The IRQSTEER driver defines the z_soc_irq_* SoC multi-level
interrupt hooks directly, claiming the SoC's contract from a driver:
z_soc_irq_enable(), z_soc_irq_disable(), z_soc_irq_is_enabled() and
z_soc_irq_priority_set(), plus an internal helper that also sat in
the global z_soc namespace. Interrupt controller drivers should only
expose their own namespaced API; providing the SoC hooks is platform
glue and does not belong in a driver.

Rename the control functions to nxp_irqstr_irq_* following the
driver's existing internal prefix, declare them in a driver header,
make the internal enable/disable helper static, and provide the
z_soc_irq_* mapping from one shared platform file wired at the i.MX
family level, covering every SoC with an IRQSTEER devicetree node
(i.MX8/8M/8X ADSP on Xtensa, i.MX93/94/95 M cores on ARM).

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-08-26 15:15:54 -04:00
Jacob Wienecke
fc9e4177aa drivers: timer: mcux_os_timer: fix PM3 exit drift
The deep-sleep counter (1kHz RTC) used on platform RW61x stops at
zero and does not track PM3 exit recovery time. This causes two
issues:

1. After PM3 exit, the kernel sees unaccounted time remaining
   and enters a parasitic PM2 to fill the gap. Fix by adding
   the exit-latency back to the compensated sleep time in the
   OS timer driver (mcux_os_timer.c).

2. On counter overflow re-entry into PM3, the PM policy
   exit-latency subtraction is not applied since re-entry
   bypasses the PM framework. Fix by adjusting the RTC wakeup
   count in the SoC power re-arm loop (soc/nxp/rw/power.c).

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2026-08-26 15:14:09 -04:00
Maureen Helm
5cc0e888c7 soc: adi: max32: compute NUM_IRQS from devicetree
Every MAX32 SoC carried a hardcoded CONFIG_NUM_IRQS sized to the full
hardware IRQ line count: 18 values spread over 14 Kconfig files in three
different syntactic styles. Each one had to be maintained by hand, was
easy to get wrong when a peripheral was added, and forced applications
to carry an ISR table sized for peripherals they never enable.

Replace them with a single family-level default derived from the
devicetree via dt_highest_controller_irq_number(). The helper only
considers nodes with status = "okay", so the table is now sized to what
the application actually uses. Both cores are covered: Cortex-M4 and
Cortex-M33 through the NVIC node, RV32 through the MAX32 RISC-V core
interrupt controller. Only one of those controllers is ever present in a
given build's devicetree, so the default for the other core is inert.

The default is declared with configdefault and placed after the per-SoC
rsource statements, so a SoC or a board can still pin an explicit value.

Measured with samples/hello_world, the derived values are at or below
the previous constants on all 32 buildable MAX32 board targets, for
example max78002/m4 105 -> 57, max32657 54 -> 26 and max32655/rv32
64 -> 28.

This mirrors the equivalent change made for STM32.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-08-26 16:01:42 +01:00
Chaitanya Tata
aa51bac4d2 soc: nordic: nrf71: fix LMAC boot address read from WICR
nrfx 4.5.0 restructured NRF_WICR_Type. The Wi-Fi core boot address
previously sat inside an anonymous reserved block, so wifi_setup()
read it as NRF_WICR->RESERVED[0], which resolved to WICR + 0x000.

The new layout names that region as the FIRMWARE group:

  __IOM NRF_WICR_FIRMWARE_Type  FIRMWARE;    /* 0x000 */
  __IM  uint32_t                RESERVED[28];
  __IOM NRF_WICR_IPCCONFIG_Type IPCCONFIG;   /* 0x080 */

FIRMWARE occupies 0x000..0x00F, so RESERVED[0] silently moved from
0x000 to 0x010. The code still compiles, but now reads an
unprogrammed word instead of the LMAC boot address. The LMAC VPR is
started at a bogus PC, so the Wi-Fi core never boots and the IPC
endpoint never binds:

  <err> wifi_nrf: IPC endpoint not bound after 30000 ms
  <err> wifi_nrf: nrf_wifi_fmac_dev_add_zep: dev_init failed

Read the named FIRMWARE.LMACINITPC field instead. This matches the
offset the WICR generation tooling programs for firmware-lmacinitpc
(soc/nordic/nrf71/wicr/gen_wicr/gen_wicr.py), so the boot address is
picked up from the same location it is written to.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Claude:claude-opus-5
2026-08-26 15:47:17 +01:00
Murali Karicheri
20d0a12529 soc: st: stm32h7: fix M4 ART accelerator address configuration
The ART (Adaptive Real-Time) flash cache accelerator base address is
configured using only DT_REG_ADDR(DT_CHOSEN(zephyr_flash)) without
accounting for CONFIG_FLASH_LOAD_OFFSET. When the M4 flash layout uses
zephyr,flash = &flash0 with a non-zero CONFIG_FLASH_LOAD_OFFSET,
the ART caches the wrong flash region.

For example, with CONFIG_FLASH_LOAD_OFFSET=0x100000 the ART points at
0x08000000 (Bank 1) while M4 code executes from 0x08100000 (Bank 2).
This results in a 0% cache hit rate and every instruction fetch paying
the full flash wait-state latency penalty. Since the M4 core has no
I-Cache or D-Cache, the ART accelerator is its only flash caching
mechanism.

Add CONFIG_FLASH_LOAD_OFFSET to the ART base address calculation so it
points to the actual code execution region. This is a no-op when
CONFIG_FLASH_LOAD_OFFSET=0.

Signed-off-by: Farrell Aultman <Farrell.Aultman@sandc.com>
Signed-off-by: Murali Karicheri <murali.karicheri@sandc.com>
2026-08-26 15:45:35 +01:00
Zhaoxiang Jin
747b57c537 west.yml: update hal nxp to the SDK 26.09.00 pvw1
1. update hal nxp to the SDK 26.09.00 pvw1

2. MCXA SystemInit initializes SRAM ECC by clearing
the first 8 KiB of SRAM. Zephyr calls SystemInit after
moving MSP to the main stack in that range, so the
clear corrupts the active return stack and locks up
during boot.

Move the ECC initialization to the no-stack early
reset hook and prevent SystemInit from repeating it.
This preserves cold-boot ECC initialization
without clearing an active Zephyr stack.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-08-26 07:52:01 +02:00
Benjamin Cabé
ce65ad9e81 bluetooth: host: remove deprecated BT_CONN_TX_MAX
Remove the CONFIG_BT_CONN_TX_MAX Kconfig option and its only in-tree
user, the SiWx91x SoC configdefault. No C code has read the symbol since
it was deprecated, so it had no effect on any build; the number of
pending TX buffers with a callback follows CONFIG_BT_BUF_ACL_TX_COUNT,
which was already both the default and the range floor of the removed
option. The SiWx91x default of 15 matched that SoC's
BT_BUF_ACL_TX_COUNT default, so behaviour is unchanged there too.

Deprecated in Zephyr 4.2.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5
2026-08-25 14:47:29 -07:00
Guillaume Gautier
d4da8a69cf soc: st: stm32: u0: add power support
Add poweroff support for STM32U0.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-08-25 14:36:51 -07:00
Raffael Rostagno
60d1384215 soc: esp32: wifi: Update linker script for sleep optimization
Update linker script for sleep optimization.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-08-25 14:23:51 -07:00
Raffael Rostagno
48d9f309a5 soc: esp32: wifi: Sleep optimization symbols
Add sleep optimization symbols for WiFi PM support.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-08-25 14:23:51 -07:00
TOKITA Hiroshi
74fee4cc4c soc: brcm: bcm2712: Enable pinctrl driver
For the rpi5, you will need to use both the BCM2712 the RP1 pinctrl driver.
The process for selecting which to use is done in
`soc/brcm/bcm2712/pinctrl_soc.c`.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2026-08-25 14:23:09 -07:00
Filip Kokosinski
397cb0478c soc/cdns: discard executable stack information sections
This commit adds missing DISCARDs for the `.note.GNU-stack` section, which
carries information about whether the ELF requires an executable stack.

Since Zephyr largely operates without an ELF loader, this section can be
safely discarded, and already is for the vast majority of platforms:

    % grep -R ".note.GNU-stack" * | wc -l
    51

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2026-08-25 13:18:30 +02:00