Commit graph

7,339 commits

Author SHA1 Message Date
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
Adam Mitchell
02c129369b soc: st: st: h7: Add missing definition for STM32H742xx
Adds stm32h742xx to stm32h7x family

Signed-off-by: Adam Mitchell <adam.mitchell@brillpower.com>
2025-10-03 21:10:43 -04:00
Iuliana Prodan
6a3ccab892 linker: nxp: imxrt6xx: hifi4: add missing include
Add the #include <snippets-sections.ld> directive
to include a linker file automatically.
This file defines additional linker sections that
are dynamically added during the build process.

It is placed at the very end of the SECTIONS block,
ensuring that any sections it defines appear after
all standard sections.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-10-03 20:58:12 -04:00
Alvis Sun
97d8aa307c soc: npcx: update npck register structure checks for consistency
As title.

Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
2025-10-03 12:51:55 +03:00
Hou Zhiqiang
531ea300c8 soc: nxp: imx91: add MIMX9111 support
Add SoC MIMX9111 support.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Jiafei Pan <jiafei.pan@nxp.com>
2025-10-03 12:51:13 +03:00
Etienne Carriere
98c92d3234 soc: st: stm32u0: enable flash instruction cache
Enable flash instruction cache on U0 SoCs.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-03 12:50:47 +03:00
Etienne Carriere
b56487892d soc: st: stm32: use CONFIG_STM32_FLASH_PREFETCH where applicable
Use CONFIG_STM32_FLASH_PREFETCH config option to enable flash prefetch
in C0/F0/F1/F2/F3/F4/F7/G4/L0/L1/L4/U0/U3/WB/WBA/WBL for consistency
with other SoCs that use this configuration switch, default enabled
at SoC default config level.

Add SoC hidden config option HAS_STM32_FLASH_PREFETCH enabled for
SoCs that support the feature. STM32_FLASH_PREFETCH is default
enabled for all SoC that have HAS_STM32_FLASH_PREFETCH unless target
specific constraints (as for G0Bx/G0Cx SoCs).

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-03 12:50:47 +03:00
Etienne Carriere
7c47bc9320 soc: st: stm32u3: add flash prefetch
Implement flash prefetch for STM32U3xx SoCs.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-03 12:50:47 +03:00
Hou Zhiqiang
92d06ac131 soc: nxp: imx: add resource table section for Cortex-A
Add .resource_table section to the linker script for the
Cortex-A core of i.MX series.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2025-10-02 21:57:54 +02:00
Krzysztof Chruściński
c77e5a60fd soc: nordic: common: mram_latency: Fix returning uninitialized value
An uninitialized variable was returned on success which could led by
init_nrfs.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-10-02 16:49:33 +02:00
Bjarki Arge Andreasen
804134f28c soc: nordic: nrf54h: increase default log stack size if CONFIG_PM=y
The default log process thread stack size needs to be increased to
account for the recursion into resuming power domains, which
may happen within char_out for some backends like uart.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-02 16:48:59 +02:00
Rahul Gurram
9ee617a8ee soc: silabs: siwx91x: Expose firmware upgrade API
siwx91x require a specific API to communicate with the bootloader in order
to achieve firmware upgrade. This commit introduces the configuration
symbol to import the helper library.

[Jérôme: split commits, reword the commit log]

Co-authored-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Rahul Gurram <rahul.gurram@silabs.com>
2025-10-02 14:18:53 +02:00
Rahul Gurram
b781386e1e soc: silabs: siwx91x: Implement sys_reset()
siwx91x requires a few specific actions to reboot properly.

[Jérôme: split commits, reword the commit log, fix prototype]

Co-authored-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Rahul Gurram <rahul.gurram@silabs.com>
2025-10-02 14:18:53 +02:00
Lin Yu-Cheng
75c4be1f51 soc: realtek: ec: Implement power saving
Impelment RTS5912 power saving (heavy sleep)
Remove the power state of "suspend_to_ram"

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
2025-10-02 11:47:32 +03:00
Peter Johanson
f89c00441a soc: raspberrypi: rpi_pico: Add RP2 bootloader support
Add an early init hook to check the boot mode and reset into the RP2 USB
bootloader if requested. Includes a snippet to use with any RP2040/RP2350
board to enable the necessary DTS/Kconfig to use the functionality, and
easy DTS includes for boards to use explicitly.

Signed-off-by: Peter Johanson <peter@peterjohanson.com>
2025-10-02 11:46:31 +03:00
cyliang tw
8e07c77ef8 soc: nuvoton: numicro: Disable m48x SPIM cache
By disabling m48x SPIM cache by default, the SRAM size increases
by 32 KB to a total of 160 KB.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-10-01 14:37:26 +03:00
Khaoula Bidani
4021dd30e4 soc: stm32g0: Add configurable FLASH prefetch option for G0B0/G0B1/G0C1
Default disable flash prefetch on G0Bx/G0C1 to prevent issues
described by errata ES0548 2.2.10. Project can still enable
the config if applicable.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-10-01 14:37:06 +03:00
Rubin Gerritsen
05b77ece23 soc: nordic: nrf54h: s2ram: Support disabled MPU
This commit adds support using pm_s2ram for 54H when the
MPU is disabled. This is the case for the out of tree
sample `sdk-nrf/samples/nrf54h/empty_app_core`.

Without this commit the linker will fail to link
`z_arm_mpu_init` and `z_arm_configure_static_mpu_regions`.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2025-10-01 08:29:01 +02:00
Tomas Galbicka
3cf2cc06dd soc: RT700 DSP Hifi4 enable cache handling
This commit adds cache handling for Hifi4 core on RT700.
Enable CACHE_MANAGEMENT and HAS_DCACHE.

Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
2025-10-01 08:16:51 +02:00
Raffael Rostagno
18dbda57d8 soc: esp32h2: Add BT support
Add bluetooth support to ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-30 19:37:19 +02:00
Andrew Perepech
2b38bcb6d7 soc/mediatek/adsp: Add cpuclk driver for mt8188
Add cpuclk driver for mt8188 platform. Note that the cpuclk driver is
not yet ported, it works only with mt8188.

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
b5adc3dc19 soc/mediatek/adsp: Fix enable/disable timer interrups for MT8188
On MT8188 platform timer interrupts must also be enabled/disabled in
MTK_ADSP_IRQ_EN register in addition to xtensa_irq_enable(),
xtensa_irq_disable()

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
35a198c4ad soc/mediatek/adsp: Fix ELF .sof_entry section flags
Add 'ax' flags for .sof_entry ELF section so it merges properly with
.z_xtensa_vectors ELF section

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Gerard Marull-Paretas
b59b09b76e soc: sifli: sf32: sf32lb52x: allow configuring bootrom flash delays
Boot ROM will by default set on/off delays to 0ms before jumping to
firmware. This patch adds an option to to configure the on/off delays to
non-zero values. A flash power cycle guarantees to put the external
flash into a known state before executing code from it. This is required
if using 4-byte address mode in the external flash, as the boot ROM will
always use 3-byte address mode when reading from external flash, causing
a potential deadlock situation requiring a power-cycle (known errata).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-30 17:57:17 +03:00
Adam Kondraciuk
6f7a1834d5 soc: nordic: nrf54h: Implement idle with cache retained state
Add new idle state with cache retention enabled.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-09-30 15:26:40 +03:00