Commit graph

6,613 commits

Author SHA1 Message Date
Jimmy Zheng
a6a11cc57d arch: riscv: custom: add OpenHW Group CVA6 CSR support
CVA6 supports custom CSR. Move 'cva6.h' to 'arch/riscv/custom/cva6_csr.h',
allowing other SoCs using the CVA6 core to reuse the same CSR definitions.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
8b27ffbecc arch: riscv: : custom: add Nuclei CSR support
GD32VF103 uses Nuclei-specific CSR. Move 'nuclei_csr.h' to
'arch/riscv/custom' to allow reuse across SoCs with the same Nuclei core.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
1b310b1542 soc: egis: et171: add support for Andes custom CSRs
Egis ET171 implements Andes custom CSRs. Enable the following features:

1. Low level initialization of Andes CSRs
2. HWDSP and PowerBrake extensions with context save/restore
3. EXEC.IT extension

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
7ee9fd978c soc: telink: tlsr951x: use RISC-V custom CSR common code
TLSR951x also supports Andes extended CSR. Reworks the following CSR
handling to use the RISC-V custom CSR common code:

1. Use common macros for HWDSP CSR context save/restore.
2. Use common macros for PFT CSR context save/restore.
3. Use common low-level CSR initialization via __reset hook.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
679ce42f15 arch: riscv: custom: add Andes CSR support
Rework Andes-specific CSR to use RISC-V custom CSR common code.
Move these stuff to 'arch/riscv/custom/andes':

1. Rename 'soc_v5.h' to 'andes_csr.h' for CSR definitions.
2. Replace '_start' with '__reset' hook for low-level CSR initialization.
3. Move CSR context to common macro '__custom_csr_save/restore_context'.
4. Move 'EXECIT' CSR support to common code.
5. Move PMA CSR driver to common code.
6. Use RISC-V common linker.ld instead of SoC-specific linker.ld.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Quy Tran
255096e02c soc: renesas: rx: enable option function select register 0
Enables OSF0 register select for IWDT driver setting on start mode

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Quy Tran
2b25575d9c soc: renesas: rx: Update OFS value in vects.c using Kconfig
OFS values setting for RXv1/RXv2 will be defined in SOC
Kconfig and set in vects.c file

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Tim Lin
fb7406488f soc: it51xxx/linker: Make h2ram_pool behind the CONFIG_ESPI_IT8XXX2 option
Apply the same CONFIG_ESPI_IT8XXX2 guard to the .h2ram_pool section
in the IT51XXX linker script, since the eSPI driver is compatible with
IT8XXX2. This keeps linker behavior consistent and avoids unused
memory allocation on non-eSPI platforms.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-10-13 08:56:54 +02:00
Tim Lin
74c57ce769 soc: it8xxx2/linker: Make h2ram_pool behind the CONFIG_ESPI_IT8XXX2 option
The .h2ram_pool linker section was previously always included, even on
platforms that do not enable eSPI. This caused unnecessary memory
reservation in the RAMABLE_REGION for non-eSPI configurations.

Add a CONFIG_ESPI_IT8XXX2 guard around the .h2ram_pool section definition
so that it is only included when eSPI support is enabled.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-10-13 08:56:54 +02:00
Yongxu Wang
60d8b2fe37 soc: nxp: imx943: Fix potential out-of-bounds access in pm_mcore loop
Limit the loop to the smaller of nvic_iser_nb and
GPC_CPU_CTRL_CMC_IRQ_WAKEUP_MASK_COUNT to ensure safe access.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-10-13 08:55:32 +02:00
Richard Wheatley
dc18e381dc soc: ambiq: apollo4x: add Add pinctrl to apollo4x
add pinctrl select by default for apollo4x

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
2025-10-13 08:46:04 +02:00
Aksel Skauge Mellbye
f18b433636 dts: arm: silabs: Add xgm24 modules
Add devicetree and soc entries for xgm24 modules.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-10 20:51:03 -04:00
McAtee Maxwell
03a6bb2282 soc: add support for ifx edge socs
- add basic soc files to support ifx pse84 soc
- add files needed for setting up the m55

Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
2025-10-10 12:59:33 -04:00
Miguel Gazquez
84c889e479 soc: ti: cc23x0: drop deprecated CONFIG_BUILD_NO_GAP_FILL option
The CONFIG_BUILD_NO_GAP_FILL option became obsolete after commit
2e8868c16e and has since been deprecated.

Remove the unused Kconfig select from the CC23x0 SoC configuration.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-10-10 12:58:30 -04:00
Tomasz Chyrowicz
14af1654d1 soc: Move to the app-specific partitions
Use cpuapp_slot_partition instead of slot0_partition, so it is possible
to add MCUboot header through --pad-header option.
In such cases, the FLASH_LOAD_OFFSET does not point to the begining of
the slot, but to the beginning of the executable area, thus the check
for the active slot should use ranges instead of exact values.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-10 12:57:45 -04:00
Kevin Gillespie
85c06345bf soc: adi: max32: Standby lock on boot.
Add standby lock to prevent debug lockout on boot
when using power management.

Signed-off-by: Kevin Gillespie <Kevin.Gillespie@analog.com>
2025-10-10 12:55:15 -04:00
Kevin Gillespie
d24ab25d6d soc: adi: max32: Remove standby restore delay.
Remove delay when coming out of standby mode.

Signed-off-by: Kevin Gillespie <Kevin.Gillespie@analog.com>
2025-10-10 12:55:15 -04:00
Kevin Gillespie
5d11e40729 soc: adi: sleep in idle mode.
Use sleep mode instead of Low Power Mode (LPM). LPM is
similar to deep sleep, not intended to be used for general
idle.

Signed-off-by: Kevin Gillespie <Kevin.Gillespie@analog.com>
2025-10-10 12:55:15 -04:00
Declan Snyder
317ae1caea Revert "soc: RT700 add custom MPU regions for non-cache memory"
This reverts commit 4a6a969bbe.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-10-09 20:35:07 -04:00
Tom Chang
298ebb7aa7 drivers: espi: npcx: add espi taf support for npck3
This commit adds eSPI TAF support for npck3, including initialization
settings for flash operation mode. It also updates the mechanism to
release FLASH_NP_FREE, preventing a possible race condition between
automatic and standard requests.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
2025-10-09 22:55:48 +03:00
Tom Chang
ee48ccaacf drivers: espi: npcx: add espi support for npck3
This commit adds eSPI support for npck3, including support for the
maximum frequency of 66MHz. The method to read the level of eSPI reset
pin differs on npck3, so the definition of eSPI_RST has been updated
accordingly.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2025-10-09 22:55:48 +03:00
Tom Chang
c4aaf6151e soc: nuvoton: npcx: update register name
This commit updates the register name to match the datasheet.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
2025-10-09 22:55:48 +03:00
Immo Birnbaum
f5dddbfb28 soc: xlnx: zynqmp: enable RPU MPU by default
Enable the ARM MPU by default if the current target SoC is the ZynqMP RPU.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2025-10-09 22:55:08 +03:00
Peter Mitsis
63748db7c6 cpu_freq: Add default stub for cpu_freq_pstate_set()
This allows a project to select where cpu_freq_pstate_set()
gets implemented. The system integrator may choose to use
a default stub, a version implemented by the SOC, or a custom
version implemented by the project.

The existing 'native' SoC version now has its output contain
the string "SoC" while the new stub version has the string
"Stub" in its. This allows a means to differentiate between the
two.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Adam Kondraciuk
0a8a8a6fb5 soc: nordic: nrf54h: Disable code relocation for MCUBOOT
MCUBOOT requires LTO to be enabled, while using code relocation
forces switching it off. When `__ramfunc` is used, LTO can also
be used. Then the `cache_retain_and_sleep` function will work
correctly, but slightly slower.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-10-09 12:38:36 -04:00
Camille BAUD
c8d91030f8 soc: bflb: Enable bflb,l1c cache management for BL60x and BL70x
Enables controlling the cache of BL60x and BL70x

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-09 09:38:21 +02:00
Quang Le
ec4f8ac73f soc: renesas: Retrieve SYS_CLOCK_HW_CYCLES_PER_SEC from dts
Retrieve the value of SYS_CLOCK_HW_CYCLES_PER_SEC from the osc node in
the RZ/A3UL devicetree.

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-09 09:36:24 +02:00
Camille BAUD
4f3d385c3c soc: bflb: Enable xuantie arch support for bl61x
Enables the Xuantie support for bl61x

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-08 15:12:49 -04:00
Arun Kumar Nagelly
5a70c3d6b7 soc: silabs: siwx91x: enable BLE stack bypass for host-driven operation
Set SL_SI91X_BT_BLE_STACK_BYPASS_ENABLE in ble_ext_feature_bit_map to
support host-driven BT/BLE stack operation on SiWx91x devices.

When enabled:
- Events are delivered directly to the host, bypassing internal stack
  processing
- Ensures critical events like CARD_READY reach the host reliably
- Allows external host stack to control BT/BLE operations
- Provides more memory to the application, as the internal stack is
  bypassed

This change enables direct event packet delivery from the firmware event
handler, ensuring proper operation when the internal BT stack is
bypassed.

Required for BT/BLE tester and host-controlled stack configurations.

Signed-off-by: Arun Kumar Nagelly <arnagell@silabs.com>
2025-10-08 15:07:55 -04:00
Yassine El Aissaoui
4d90bca664 soc: nxp: mcxw: Add BLE support to MCXW2XX soc
Add configuration for BLE
Add 32KHz Osc clock needed by BLE
Move nxp_nbu.c include to be shared on mcxw7x and mcxw2x

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2025-10-08 17:47:21 +03:00
Yassine El Aissaoui
7f621c4b9c soc: nxp: mcxw: Isolate MCXW7xx-specific config from MCXW2xx
Both MCXW2xx and MCXW7xx now share the same SoC family
(CONFIG_SOC_FAMILY_MCXW).

Isolate mcxw7xx-specific module/code from mcxw2xx.

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2025-10-08 17:47:21 +03:00
Jacky Lee
9cde077512 soc: Add Egis et171
This is a SOC based on AE350. In addition to the core, some
modifications have been made to the peripheral functions,
including the integration of built-in USB.

Signed-off-by: Jacky Lee <jacky.lee@egistec.com>
2025-10-08 12:15:44 +02:00
Karsten Koenig
6066a42748 drivers: debub: coresight: Added coresight_nrf
Added driver and bindings for the coresight nrf submodule.
add integrated it for the nrf54h20.
The coresight subsystem is a combination of ARM Coresight peripherals
that get configured together to achieve a simplified configuration based
on a desired operating mode.

This also replaces the previous handling in the nrf54h20 soc.c which was
powering the subsystem up but not configuring it.

Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
2025-10-08 10:09:02 +02:00
Karsten Koenig
85363f9e53 drivers: pinctrl_nrf: Add coresight tpiu pins
Pinctrl needs to set the needed drive and direction of the pins. Also
this later allows automatically setting the clock bit for the traceclk
pin.

Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
2025-10-08 10:09:02 +02:00
Karsten Koenig
d833556ee5 drivers: debug: Moved nrf_etr from misc
Moved the nrf_etr driver from the drive/misc folder into the recently
established driver/debug folder where it is a better fit. Moved the
associated files such as bindings and headers accordingly as well.

Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
2025-10-08 10:09:02 +02:00
Martin Hoff
e3c82300a8 soc: silabs: siwx91x: Add firmware version check of NWP
This commit introduces a new function to verify the firmware version of
the SiWX917 network coprocessor. It checks the expected version (updated
manually after each bump of Wiseconnect SDK in hal_silabs) against the
actual version retrieved from the device.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-07 23:02:12 -04:00
Anisetti Avinash Krishna
ea1a839a7e soc: intel: common: Replace printk with LOG_ERR
Replace printk with LOG_ERR by adding a log module.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-10-07 22:59:32 -04:00
Anisetti Avinash Krishna
709f453673 drivers: gpio: Enable support for latest GINF method
Enable support for latest GINF method which requires 3 paramters
for each GPIO group and enables gpio support for intel_ptl_h
platform.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-10-07 22:59:32 -04:00
Quang Le
7ee9ee8caa soc: renesas: Retrieve SYS_CLOCK_HW_CYCLES_PER_SEC from dts
Retrieve the value of SYS_CLOCK_HW_CYCLES_PER_SEC from the osc node in
the RZ/N2L, T2M devicetree.

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-07 22:58:03 -04:00
Alain Volmat
3226cf5f3d soc: stm32: stm32h7rsx: add MPU region #0 disabling all accesses
Add a first region in the MPU to disable all access to the whole
memory range.  With that ensure that the MPU will block all
access to regions that aren't defined in further regions.
Ensure as well that the peripheral area is accessible.

This handles the errata 2.1.1 PLD might perform linefill to address
that would generate a MemManage Fault of the STM32H7Rxx / STM32H7Sxx
device errate ES0596 - Rev 6.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-07 22:57:15 -04:00
Anas Nashif
bf82f7ffac copyrights: fix copyright line
Add space before (c) to allow correct parsing by linters.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-07 22:53:45 -04:00
Håkon Amundsen
9d5f94f90b soc: ironside: add min and max values for update
The update will fail if the address is outside  of this range.
This failure might trigger a bad state where the device is
non-trivial to recover.

Signed-off-by: Håkon Amundsen <haakon.amundsen@nordicsemi.no>
2025-10-07 14:06:24 +02:00
Jordan Yates
169957f25c soc: nordic: common: CONFIG_SOC_NRF_FORCE_CONSTLAT
Move the option to force constant latency mode outside of nRF54l, since
it is an option applicable to most Nordic SoCs.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-07 10:59:38 +02:00
Daniel Leung
a9849a7ada soc: intel_adsp/ace: add snippets-text-sections.ld
Adds snippets-text-sections.ld to ACE linker scripts.
For now, this is for the memory mapping test.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-10-06 20:16:31 -04:00
Krzysztof Chruściński
92d5b46588 soc: nordic: common: dmm: Fix allocation algorithm
There were some corner cases and stress test could fail. Reworking
tail bits handling to make the stress test pass.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-10-06 20:02:37 +03:00
Raffael Rostagno
73e882f656 soc: esp32h2: Fix LP SRAM size
Fix LP SRAM size on memory map. Correct value is obtained from
device tree.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-10-06 20:00:52 +03:00
Raffael Rostagno
bbc5a83abc soc: esp32h2: Power management support
Power management support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-10-06 20:00:52 +03:00
Jonathan Nilsen
b28b570959 soc: nordic: uicr: fix SPIM CSN CTRLSEL values
Fix an incorrect interpretation of the chip select signal
for the SPIM instances. If cs-gpios is used then the chip
select pin is used as a GPIO, and should have CTRLSEL=0.
Only when NRF_FUN_SPIM_CSN is used should CTRLSEL
be configured to enable hardware control of the pin.

Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
2025-10-06 09:37:41 +02:00
Ali Hozhabri
85318a9e19 soc: st: stm32: Provide PM support for STM32WB0x
Provide PM support, specifically suspend-to-ram, for STM32WB0x.

Enable STM32_RADIO_TIMER Kconfig parameter when PM is set.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2025-10-03 21:15:08 -04:00
Ali Hozhabri
bdb41c0ebd drivers: timer: Enable STM32WB0_RADIO_TIMER Kconfig parameter
Use radio timer as the system timer when Bluetooth is used.

Modify CMakeLists.txt to compile radio timer driver when
STM32WB0_RADIO_TIMER is enabled.

Remove the common parts from hci_stm32wb0.c that are present
in the radio timer driver.

Set and retrieve the appropriate value for SYS_CLOCK_TICKS_PER_SEC and
SYS_CLOCK_HW_CYCLES_PER_SEC respectively.

Define radio_timer node and its properties.

Enable radio_timer node in nucleo_wb0x boards.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2025-10-03 21:15:08 -04:00