Commit graph zephyr/soc
Author SHA1 Message Date
Richard Mc Sweeney
36fbc1f89b dts: add wakeup sources for pse84
Added wakeup sources for PSE84

Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-05-20 20:05:00 -04:00
Richard Mc Sweeney
b5e9498071 soc: rename power states for pse84
- Renamed power states to use runtime-idle
for sleep, and suspend-to-idle for deepsleep
- Added soft-off for hibernate
- Added poweroff support mapping to hibernate

Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-05-20 20:05:00 -04:00
Richard Mc Sweeney
7120a9d72e drivers: Add pse84 PTComp
Added PTComp support to PSE84.

This implementation uses the shared autonomous controller (MFD)
with other autanalog drivers.

The PTComp is a programmable threshold comparator inside the
autonomous (aut) analog subsystem. It is controlled using the
autonomous controller (AC), which is a programmable state machine.
The AC is shared across all autonomous analog peripherals including
the SAR, PRB, PTComp, CTB, and CTDAC.

The PTComp block contains two comparators for edge detection and
with a capability for boolean post-processing. These two comparator
instances need to be configured together and accessed using the AC.
A PTComp MFD is used to bring together the two comparator
configurations. AC MFD then references the combined PTComp MFD
configuration, and brings together all other autanalog peripherals
into a single AC setup for the application.

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-05-20 20:02:35 -04:00
Muhammad Waleed Badar
d4855a0cad dts: broadcom: bcm2711: use DT clock-frequency and enable cache management
Add CPU clock-frequency to the bcm2711 device tree and use it to
derive SYS_CLOCK_HW_CYCLES_PER_SEC instead of relying on a
hard-coded value.

Also enable cache management by default for the BCM2711 SoC.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-05-20 14:07:04 +02:00
Jakub Zymelka
fb98766d72 soc: nordic: add Haltium/Lumos backward-compatibility layer
Following the removal of the internal Haltium and Lumos platform
abstractions in favor of explicit SOC_SERIES_* checks, add
backward-compatibility aliases so out-of-tree code that still
references the old names keeps building during the deprecation
period, with a clear warning pointing to the new names.

All aliases are tagged [DEPRECATED] and slated for removal in a
future release.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2026-05-20 10:54:58 +02:00
Albort Xue
e076682661 drivers: clock_control: Add NXP MCXW clock control driver
This commit introduces a new clock control driver for NXP MCXW series
microcontrollers, replacing the previous hardcoded clock initialization
in soc.c with a devicetree-based approach.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-05-20 10:54:22 +02:00
Ali Hozhabri
a879847c39 soc: st: stm32wb0x: Add support for CONFIG_PM_CUSTOM_TICKS_HOOK
Add support for CONFIG_PM_CUSTOM_TICKS_HOOK.

Enable CONFIG_PM_CUSTOM_TICKS_HOOK if CONFIG_PM and CONFIG_BT are set.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2026-05-19 07:39:05 -07:00
Grzegorz Ferenc
8bd2d39480 doc: ap-protect: edit kconfig option help
Edited help text for Kconfig options related to AP-Protect.
NCSDK-38220 and sdk-nrf#28677.
Follow-up to NCSDK-36611 and sdk-nrf#27088.

Signed-off-by: Grzegorz Ferenc <Grzegorz.Ferenc@nordicsemi.no>
2026-05-19 14:59:45 +01:00
Sylvio Alves
a5f6efb682 soc: espressif: align flash text end to 16-byte boundary
Insert an explicit `. = ALIGN(0x10)` at the end of the flash
text region in every Espressif SoC linker script. The flash MMU
maps code in fixed-size segments and image headers record each
segment with a 16-byte-multiple length, so the boundary between
the text region and whatever follows must land on a clean 16-byte
address. Relying on the preceding `. += 16` padding or `ALIGN(4)`
only guaranteed 4-byte alignment, which left the segment size
off-grid on builds where prior input sections happened to end at
an unaligned offset.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-05-19 14:59:35 +01:00
Sylvio Alves
d46d6be856 soc: esp32c5: place drom adjacent to irom in linear space
Set DROM_SEG_ORG equal to IROM_SEG_ORG and add a NOLOAD dummy
section in drom0_0_seg that advances past the end of .text.
The MMU allocator advances free_head by irom_len + drom_len
assuming the two segments are adjacent. The previous 8MB gap
left the rodata virtual range unreserved, causing 8MB PSRAM
mapping to overrun .rodata.

Place the esp_psram object in IRAM so PSRAM init does not
depend on flash reads while MSPI clock and tuning registers
are transitioning. Split esp_init_psram into chip-init plus
mmu-map steps and invalidate the flash IROM/DROM ranges in
between so the next flash fetch reloads with the final MSPI
settings.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-05-19 14:59:35 +01:00
Holt Sun
e3017d41a4 soc: nxp: mcxe24x: add power management support
Add power management support for MCXE24x SoC series with
four power states defined in device tree (runtime-idle and
three suspend-to-idle substates: STOP, PSTOP1, PSTOP2).

Implement pm_state_set() to handle state transitions using
the SMC (System Mode Controller) for STOP mode configuration.
When CONFIG_XIP=y, the WFI is executed from a __ramfunc so the
core does not fetch instructions from internal program flash
across the low power entry boundary.

Implement pm_state_exit_post_ops() to restore normal operation
after wakeup. No wake-up controller is required to wake the
core from these substates on this part.

Enable HAS_PM capability for the SoC series. Applications that
opt in to PM should also designate lptmr0 as the system timer
via the 'zephyr,system-timer' chosen property and enable the
node, so the LPTMR tickless driver keeps time across
STOP/PSTOPx without needing a SysTick + LPTMR companion-timer
arrangement.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-05-18 18:38:53 +02:00
Holt Sun
3a7500de74 soc: nxp: mcxe24x: enable LPTMR as system timer
Configure lptmr0 to use the RTC32K clock source at 32 kHz
(clk-source = 2) instead of the default 1 kHz LPO configuration so
the LPTMR can serve as the Zephyr system timer when an application
designates it via the 'zephyr,system-timer' chosen property and
enables the lptmr0 node.

Switching to LPTMR as the system timer is the preferred path for
PM-capable applications: SysTick's 24-bit counter at high core
frequencies yields a very short maximum sleep window and would
otherwise require a companion idle timer. Leaving the chosen
property unset at the SoC level keeps SysTick as the default for
non-PM applications, so this commit only stages the DT and
Kconfig groundwork; an application or board overlay opts in by
setting 'zephyr,system-timer = &lptmr0' and enabling the node.

Resolve SYS_CLOCK_HW_CYCLES_PER_SEC from the chosen system-timer
node so the value tracks the selected timer, and set
SYS_CLOCK_TICKS_PER_SEC to 1000 when LPTMR is the system timer.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-05-18 18:38:53 +02:00
Lucien Zhao
3063bc5f51 soc: nxp: imxrt7xx: route SEGGER RTT through nocache region
RT7xx CM33 cores have D-cache enabled on SRAM by default. The SEGGER
RTT control block and ring buffers, when placed in regular .bss, are
held in D-cache after CPU writes and never reach physical SRAM that
J-Link reads — JLinkRTTViewer finds the control block (magic was
written before cache effects accumulated) but no buffer data ever
flows.

When CONFIG_USE_SEGGER_RTT=y, default CONFIG_SEGGER_RTT_SECTION_NONE=y
so the SEGGER source leaves the control block and buffers in plain
.bss subsections under -fdata-sections, then contribute an input
section snippet to the existing CONFIG_NOCACHE_MEMORY region pulling
_SEGGER_RTT, _acUpBuffer and _acDownBuffer into the MPU
non-cacheable area.

Reuses the Zephyr nocache infrastructure with zero SRAM overhead
when RTT is not enabled, and auto-sizes when buffer sizes change.

Verified on mimxrt700_evk/mimxrt798s/cm33_cpu0 with both
samples/basic/blinky (printf + CONFIG_RTT_CONSOLE=y) and
samples/subsys/logging/logger (CONFIG_LOG_BACKEND_RTT=y).

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-05-18 10:20:15 +01:00
Tom Chang
dfe5065320 soc: npcx: update register macros for npck3m8k_evb
Certain macros were missing in the NPCK platform, leading to compilation
errors. This commit adds the necessary definitions to restore a
successful build.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
2026-05-18 10:18:39 +01:00
Holt Sun
b9ae0d38b2 soc: nxp: mcxc: add power management support
Add the MCXC power management implementation and wire it into the SoC
build and Kconfig flow.

Default MCUX_LPTMR_TIMER to y when CONFIG_PM is enabled and the
zephyr,system-timer chosen property points to an LPTMR node, so the
LPTMR serves as the tickless system timer in PM use cases. (Zephyr
4.5 stopped auto-defaulting MCUX_LPTMR_TIMER from the chosen property,
matching the convention later adopted for MCXW7XX.) When LPTMR is
selected, override the SoC-side SysTick default, set
SYS_CLOCK_TICKS_PER_SEC=1024 and derive SYS_CLOCK_HW_CYCLES_PER_SEC
from the chosen LPTMR's clock-frequency. Default WUC to y whenever PM
and an LLWU node are enabled, so the LPTMR system timer driver can
register itself as a wakeup source through the WUC API.

Set OSC0_CR.EREFSTEN once at PM init so the system OSC keeps running
across STOP modes. This keeps ERCLK32K alive as the LPTMR system-timer
clock source while the CPU is suspended; without it the timer would
lose its clock on STOP entry and never wake the CPU.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-05-17 10:40:43 +02:00
Raffael Rostagno
d03a7b150a pm: esp32: Fix support to pad hold function
Both GPIO and RTC IO pad types support pad hold function.
Current implementation is only covering digital GPIOs. If the user
selects an RTC IO pin with `sleep-hold-en`, an `abort()` inside the
HAL can happen, depending on the SoC. Extend the implementation to
handle RTC IO pads through the correct hold path and add proper
validation with a warning for pads that support neither hold type.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-05-15 23:27:48 +02:00
Davide Di Lello
40496bc127 soc: infineon: Update copyright for Infineon
Update structure of the copyright

Signed-off-by: Davide Di Lello <Davide.Dilello@Infineon.com>
2026-05-15 23:27:34 +02:00
Camille BAUD
83eb83489f soc: bflb: Fix MAC
Swap 6 = start at wrong place, 00 00

Swap 8 = start at good place

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-05-15 12:57:54 +02:00
Tony Han
e79081f444 soc: microchip: sama7d6: update MMU and config generic clocks for MCAN
When the MCAN is activated in the DT, configure it's register region
with strong ordered, read and write access.
As CANx accesses the lower or upper 64K SRAM is selected by bits in
register 'SFR_CAN_SRAM_SEL', also configure SRAM and SFR region with
strong ordered, read and write access.
Configure the generic clocks for CANx when it is enabled in the dt.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-05-15 10:46:29 +02:00
Davide Di Lello
5c9b3770d9 soc: infineon: cleanup PSE84 boot sequence
Cleanup PSE84 boot sequence

Signed-off-by: Davide Di Lello <Davide.Dilello@Infineon.com>
2026-05-15 10:45:04 +02:00
Richard Mc Sweeney
76ea5b53d1 soc: add sys reboot for pse84
Added system reboot functionality to PSE84

Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-05-14 21:54:54 +02:00
Takumi Ando
45e3089802 soc: microchip: miv: Derive system timer frequency from devicetree
Derive SYS_CLOCK_HW_CYCLES_PER_SEC from the mtimer clock-frequency
devicetree property instead of hard-coding the generic Mi-V default in
Kconfig.

The mtimer clock frequency depends on the Mi-V integration. Add the
corresponding clock-frequency property to the m2gl025_miv board to preserve
the existing 4 MHz behavior.

The PolarFire SoC Mi-V port is left unchanged because it uses a common
1 MHz mtimer clock that is expected to be configured independently of the
CPU clock.

Signed-off-by: Takumi Ando <takumi@spacecubics.com>
2026-05-14 15:15:18 +02:00
Sylvio Alves
762c2f6ab7 soc: espressif: validate segment headers when traversing image
Add two cheap sanity checks: data_len must be 4-byte aligned
(ELF segment data always is) and must not exceed the SoC's
DROM mapping window (which bounds the largest possible
legitimate segment). Replace the magic 16 with
ESP_IMAGE_MAX_SEGMENTS and fix the post-loop bound check,
which was off by one due to the post-increment in the while
condition.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-05-13 19:00:33 +01:00
Niyas Hameed
e83b4953c2 soc: microchip: Adds support for PIC32CM SG/GC SoC series
- Adds soc support for the pic32cm_sg_gc soc series
- Adds the initialisation of RAM for ECC

Signed-off-by: Niyas Hameed <niyas.hameed@microchip.com>
2026-05-13 10:39:29 +02:00
Dag Erik Gjørvad
46d19345c0 soc: nordic: Don't override offset when TF-m is enabled
When TF-m is enabled on 54L the ROM_START_OFFSET should
not be overridden, even if MCUboot is enabled.

Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
2026-05-13 10:38:12 +02:00
Felix Wang
adc02828fd soc: nxp: imxrt: imxrt118x: update SYS_CLOCK_HW_CYCLES_PER_SEC kconfig
Support to get lptmr clock frequence for SYS_CLOCK_HW_CYCLES_PER_SEC

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-05-13 10:35:38 +02:00
Hariharan Arumugam
d24024476e drivers: pinctrl: microchip: update pinctrl driver for PIC32CK GC family
Updated pinctrl driver to support the PIC32CK GC family devices

Signed-off-by: Hariharan Arumugam <hariharan.arumugam@microchip.com>
2026-05-13 10:34:49 +02:00
Hariharan Arumugam
bd970247d5 soc: microchip: Add support for PIC32CK GC SoC series
Adds initial SoC-level support for the Microchip
PIC32CK GC series, including SoC definition files.

Signed-off-by: Hariharan Arumugam <hariharan.arumugam@microchip.com>
2026-05-13 10:34:49 +02:00
Camille BAUD
5334afd2fa soc: bflb: Add RISCV_NO_MTVAL_ON_FP_TRAP to BL60x and BL70xL
Add missing RISCV_NO_MTVAL_ON_FP_TRAP to BL60x and BL70x

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-05-13 05:12:43 +02:00
Davide Di Lello
6dd80bb155 soc: infineon: Update copyright for Infineon
Update structure of the copyright

Signed-off-by: Davide Di Lello <Davide.Dilello@Infineon.com>
2026-05-12 22:19:02 +02:00
Srinivas Edireswarapu
80b39f06b4 drivers: adc: mchp_xec: add MEC175x support and DTS encoding
Add MEC175x SoC series support to the Microchip XEC ADC driver.
Refactor the driver to use DTS-encoded GIRQ and PCR properties
instead of series-specific ifdefs, enabling a unified driver
across MEC150x, MEC172x, and MEC175x.

Update mec_adc.h register definitions to support all three SoC
series with proper Kconfig guards for 16-channel ADC variants.

Signed-off-by: Srinivas Edireswarapu <srinivas.edireswarapu@microchip.com>
2026-05-12 22:16:23 +02:00
Afonso Oliveira
3f88f69a81 riscv: integrate AIA interrupt management
Integrate AIA handling into common RISC-V interrupt enable/disable and
priority setup.

Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>
2026-05-12 22:15:36 +02:00
Sylvio Alves
36ac2822f5 soc: espressif: sync with latest hal_espressif
Update hal_espressif revision and adapt drivers and linker
scripts to the new HAL APIs.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-05-12 17:16:50 +02:00
Fabin V Martin
3771d5b287 soc: microchip: pic32cz_ca90: Include sercom mapping file
Include file for mapping DFP macros to follow a common
macro name across multiple SoC for sercom uart g1 driver

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2026-05-12 09:08:14 +02:00
Vincent Tardy
2f45f23bf3 soc: stm32wbax: hci_if: fix get rng device issue
Fix issue in case of rng device is used before
get rng device has been done.
Before calling the entropy_get_entropy_isr()
function, add get rng device procedure.

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-05-12 09:02:39 +02:00
Laura Carlesso
33e06449fa boards: infineon: edge: Redo memory mapping for Edge devices
Edge devices have multiple addresses for the external memory.
SAHB (0x60.., 0x70.. for ns and s access respectively) which
are uncached but programmable and CBUS (0x08.. and 0x18..
for ns and s access respectively) which are cached and improve
performance.
Additionally, cm33 can use both SAHB aliases and CBUS alises
but cm55 can only use SAHB aliases.
Therefore this commit redefines entirely the memory map to
use mapped partitions are offsets from the base region and
selecting the base region accordingly for
the three use cases. (cm33s, cm33ns - for eval board, cm55).
To this selected set USE_DT_CODE_PARTITION
to yes for all cores in defconfig.
Additionally cleaned up config BUILD_OUTPUT_ADJUST_LMA to be
more clear in its use.
Updated the custom linker script with the mapped partitions
updates that were added to the base linker ascript in arm.
Updated the metadata function to handle the addresses
gymnastics.

Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
2026-05-12 09:01:48 +02:00
Adam BERLINGER
bd772347f7 dts: arm: st: add missing stm32u5f/g variants
This adds STM32U5F7/STM32U5G7 which are basically U5F9/U5G9
respectively with LQFP100 packages without DSI.
Also adds missing STM32U5F9xJ DTS and updates Kconfig file.

Signed-off-by: Adam BERLINGER <adam.berlinger@st.com>
2026-05-12 09:01:09 +02:00
Srinivas Edireswarapu
83a65fb744 soc: microchip: mec: add SHLU32 macro to soc_common.h
Add SHLU32 shift-left macro used by driver PCR encoding helpers.

Signed-off-by: Srinivas Edireswarapu <srinivas.edireswarapu@microchip.com>
2026-05-11 21:02:18 -05:00
Patryk Koscik
af9221e2fe soc: rockchip: add initial rv1106 support
Add initial support for the Rockchip RV1106 SoC. This SoC features
a single Cortex-A7 core and is commonly found in multimedia and IP
camera applications like the Luckfox Pico series.

Signed-off-by: Patryk Koscik <koscikpatryk@gmail.com>
2026-05-11 21:01:54 -05:00
Paolo Wattebled
a425a46fdf soc: nxp: imx8m: add MIMX8ML8CVNKZ part number
Add the MIMX8ML8CVNKZ SoC part number (i.MX8MP, Cortex-M7,
LFBGA272 package) to the Kconfig selection list.

This variant is used on a custom board: Goldilocks Mama Bear
made by Future Electronics.

Signed-off-by: Paolo Wattebled <paolo.wattebled@savoirfairelinux.com>
2026-05-11 13:40:44 +02:00
Aleksandr Senin
5082b60571 retained_mem: gd32: add backup SRAM driver
Add a retained memory driver for GD32 backup SRAM.
The driver exposes the memory region defined by devicetree reg, enables
the BKPSRAM clock gate, and optionally enables a vin-supply regulator
for retention power.

Signed-off-by: Aleksandr Senin <al@meshium.net>
2026-05-11 10:55:04 +02:00
Gustav Vinther-Jørgensen
90450fb1e0 soc: nxp: rw: Fix IOMUX_GET_SCTIMER_OUT_CLR_OFFSET mask
Updated mask as there are 9 outputs channels for the SCTimer

Signed-off-by: Gustav Vinther-Jørgensen <gvj@foss.dk>
2026-05-11 08:47:25 +02:00
Jamie McCrae
f86f65c2f5 soc: gaisler: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00
Jamie McCrae
99c3598f8a soc: renode: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00
Jamie McCrae
409bd6b031 soc: ti: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00
Jamie McCrae
732987e7d1 soc: xlnx: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00
Jamie McCrae
4d78e1d2c1 soc: st: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00
Jamie McCrae
6a06be87fc soc: infineon: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00
Jamie McCrae
2cd108a351 soc: raspberrypi: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00
Jamie McCrae
7d591eac87 soc: openisa: Add support for dts RAM configuration
Allows using the chosen SRAM node for RAM configuration without
using Kconfig values

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-11 08:45:38 +02:00