Many MAX32 targets do not respect DEMCR.VC_CORERESET, so add some small
reset hook read that can be used for reset type `12` to halt on reset.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
Added option to nrf gswdt drivers to be able to configure
maximum timeout window and also to be able to stop gswdt.
This features are only available when gswdt service is
supported by local domain, otherwise gswdt can still be
used but with fixed timeout and cant be stopped.
Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no>
The shell commands require memory only when they run. It does not make
sense to allocate static memory for the shell commands.
It is especially true for the "silabs fota" command which requires large
buffers (16kB).
With heap allocation, there is no longer reason to limit the size of the
http_buffer. This buffer has to be larger than HTTP headers. 512B is
usually fine, but 1024B would avoid problems.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
DNS_RESOLVER is is fact not a requirement for "silabs fota".
DNS_RESOLVER selected NET_SOCKETS, so if we remove DNS_RESOLVER, we need to
explicitly select NET_SOCKETS.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Since use_tls was filled after the port number, the default port number was
set 80 even if https:// was selected.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
This kconfig is for enabling zephyr fork tfm to build with
tfm nrf mramc service. The service should allow ns application
to configure mramc using psa call. The Kconfig should be specific
only for nrf7120.
Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
- Kconfigs in modules/ should not define configs with an SOC_ prefix.
Furthermore, these options are SDK specific, not SoC specific.
- The simplicity_sdk configs do the same.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
Switched from GPIO_PORT_PIN_MASK_FROM_NGPIOS to the Devicetree-aware
macros (GPIO_PORT_PIN_MASK_FROM_DT_NODE)
to ensure the gpio-reserved-ranges property is respected by the drivers.
This aligns with the architectural design established in PR #56295,
where generic support for reserved ranges was centralized within the
DT-aware pin mask macros rather than creating new top-level aliases.
Fixes#57038
Signed-off-by: Anant Gyan Singhal <anant23082@iiitd.ac.in>
The symbol is no longer needed and causes duplicate
definition of symbols expected by MDK.
Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
to avoid giving a false impression that they can also be used on older
devices to lock AP-Protect.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
The small-heap default for the SPIRAM heap was sized just below the
sys_heap small-only limit, but linker alignment rounded the region up
by one chunk, tripping the heap-size assertion at init on targets with
small internal RAM such as esp32.
Lower the default to an aligned value that stays within the limit after
alignment, so the SPIRAM heap initializes correctly.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Octal PSRAM modules on esp32s3 are paired with octal flash. Without
CONFIG_ESPTOOLPY_OCT_FLASH the flash runs in untuned STR timing and can
corrupt at high PSRAM speeds, since runtime auto-detect only fixes the
IO mode and cannot enable timing tuning that is gated at build time.
Default ESPTOOLPY_OCT_FLASH to y when SPIRAM_MODE_OCT is selected so the
flash timing is tuned (DTR) out of the box. The user can still disable
it for boards that pair octal PSRAM with quad flash.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The flash-to-PSRAM copy mechanism behind SPIRAM_FETCH_INSTRUCTIONS and
SPIRAM_RODATA is only implemented for the esp32s2 and esp32s3. On the
esp32c5 and esp32p4 these options pulled in code that does not build,
so restrict the prompts to the supported series.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
MXS22IOSS has CY_GPIO_DM_CFGOUT3_STRONG_PULLUP_HIGH, this
adds support so that it can be used. This is specifically
needed for I3C which requires it
Assisted-by: Claude:claude-opus-4.7
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Add SOC_LINE_STM32L4PLUS hidden configuration symbol for STM32L4+ SoC
series that have specific configuration constraint.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
When resuming from standby using the MAX32 RTC peripheral, we still need a
small delay to ensure the RTC is ready for interaction, so restore that
delay, but now conditionally.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
Select HAS_PM and PM_STATE_SET_IRQ_LOCKED for SOC_MCXN947_CPU0,
matching MCXN547 and MCXN236. PM_STATE_SET_IRQ_LOCKED pairs with the
shared mcxn power hooks, which keep interrupts locked across low power
entry and resume.
Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
TF-m includes a GeneratedSource folder with default generated
sources files that are the standard use case for the kit_pse84_eval
board with EPC2. When supporting different boards we'd need a TF-m
PR to update those files and the cherry pick that into Zephyr's
fork and then directing the build properly. It makes more sense
to host a copies of these files and give them as inputs to the
TF-m build so that they are more easily maintainable.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Added FIFO support for PSE84 autanalog SAR. The FIFO is 512 elements
deep. It can be subdivided into x8 64 elements to support 8 independent
streams of ADC data.
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Add the radio on stm32wba to device tree and move the
bluetooth node and the ieee802154 node inside it.
Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
Select CPU_HAS_ICACHE and HAS_MCUX_MCM_LPCAC for the MCXW7xx
SoCs. Default cache management to the external cache backend and set
the instruction cache line size to 256 bytes, matching the LPCAC
organization documented for MCXW72.
This makes the standard Zephyr cache API available to MCXW7xx
applications and drivers that need to invalidate the code cache.
Validated with an incremental build of build/lpcac_mcxw72 for
frdm_mcxw72/mcxw727c.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
In the case of true multicore with TF-M the cm33ns and cm55 cores
need to set up an SRF infrastructure to communicate secure requests
to the secure core when trying to interact with secured peripherals.
This is done with IPC messages between the cm33ns and the cm55 and
ways for them to signal to each other when a new request has been
submitted and then when one has been processed.
A queue is initialized on the cm33ns who acts as a relay between
the cm33s and the cm55.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
When enabling SRF Multicore support both the cm33ns and the cm55
cores need additional files to be included in the build to be
successful and functional.
On cm33s we need to instruct TF-M to enable the CM55 present flag and
the mailbox support.
On cm33ns side we need to enable the custom process request handling
for IPC SRF requests specify custom IPC packets and handle the address
remapping for CM55 addresses.
On cm55 side we have to reference files built durint TF-M install
and add the custom IPC handling for SRF requests. Additionally we need
to link its source files to the same one used by TF-M in ifx-cycfg.
Also added check for defines to avoid redefining in infineon_kconfig.h
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Add the required configuration files for srf ipc support.
Update the basic one to handle the config define for cm55 and
restructure removing unnecessary sections.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
A cm55 allocatable shared memory that is accessible by the cm33 cores
region was already set aside but not used.
This commit includes the CMakeLists and linker updates to use it to
allocate shared data.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Add initial support for the Espressif ESP32-S3-BOX-3 development kit.
This commit introduces board definitions for both PRO CPU and APP CPU
variants, including DTS, pinctrl, Kconfig, defconfig, and
documentation.
Signed-off-by: Sidhartha Raghaw <sidhartha.raghaw@notionext.com>
Adopt the new HAL/LL interfaces: ADC_LL_* macros,
esp_clk_tree_* clock helpers, and rng_ll_* entropy reads
across the adc, i2c, pwm, mdio and entropy drivers.
Update the Radio blobs to latest version.
Update linkers to include new sleep cache calls.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
NUM_IRQS must account for the reserved ISR table offset so every
CPU interrupt line maps into the software ISR table. Size it to the
32 CPU lines plus the offset.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Close wifi_setup() before ending the CONFIG_SOC_NRF71_WIFI_BOOT guard.
The extra preprocessor endif left the function body outside its guard
and broke builds that enable Wi-Fi boot from the secure image.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
MCUX_LPTMR_TIMER now defaults from the zephyr,system-timer chosen
node, so the NXP SoC defconfig defaults are no longer needed. Remove
the duplicated policy from MCXW7xx, MCXC, KE1xF, i.MX95, and
i.MX952.
The SoC-specific clock-frequency, tick-rate, and SysTick disabling
defaults remain in place and still apply when DTS selects an LPTMR as
the system timer.
Validated that MCXW and KE1xF boards select LPTMR when DTS chooses it,
MCXC444 keeps SysTick without the chosen node, and i.MX95 M7 falls back
to SysTick when the chosen node is removed.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Make the LP core image a regular sysbuild sub-image flashed to
slot0_lpcore_partition, so west flash writes MCUboot, HP and LP
in order while on-chip behavior stays unchanged.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The updated BL616 BLE controller blob calls bflb_mtimer_get_time_us()
from btblecontroller_mtimer_get_time_us(). Provide it from the hardware
port shim, backed by the Zephyr cycle counter.
Signed-off-by: William Markezana <william.markezana@gmail.com>
The updated BL702L BLE controller blob calls bl_timer_now_us64() from
btblecontroller_mtimer_get_time_us(). Provide it from the platform
shim, backed by the Zephyr cycle counter.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Maybe there is a better way to do that, but this plugs a kconfig leak.
Anything you build has a whole lot of Kconfig specific to Realtek right
now, for example, building hello_world for native_sim, gets you this:
#
# HAL Realtek Bee Drivers
#
# CONFIG_REALTEK_BEE_ADC is not set
# CONFIG_REALTEK_BEE_CAN is not set
# CONFIG_REALTEK_BEE_CODEC is not set
# CONFIG_REALTEK_BEE_DMA is not set
# CONFIG_REALTEK_BEE_GPIO is not set
# CONFIG_REALTEK_BEE_I2C is not set
# CONFIG_REALTEK_BEE_I2S is not set
# CONFIG_REALTEK_BEE_IR is not set
CONFIG_REALTEK_BEE_NVIC=y
# CONFIG_REALTEK_BEE_KEYSCAN is not set
# CONFIG_REALTEK_BEE_MAC_802154 is not set
# CONFIG_REALTEK_BEE_PINMUX is not set
# CONFIG_REALTEK_BEE_PWM is not set
# CONFIG_REALTEK_BEE_QDEC is not set
# CONFIG_REALTEK_BEE_AON_QDEC is not set
# CONFIG_REALTEK_BEE_LPQDEC is not set
# CONFIG_REALTEK_BEE_RCC is not set
# CONFIG_REALTEK_BEE_RTC is not set
# CONFIG_REALTEK_BEE_GRTC is not set
# CONFIG_REALTEK_BEE_SDHC is not set
# CONFIG_REALTEK_BEE_SPI is not set
# CONFIG_REALTEK_BEE_TIMER is not set
# CONFIG_REALTEK_BEE_ENHTIMER is not set
# CONFIG_REALTEK_BEE_UART is not set
# CONFIG_REALTEK_BEE_USB is not set
# CONFIG_REALTEK_BEE_USING_USB_HAL is not set
# CONFIG_REALTEK_BEE_AON_WDT is not set
# CONFIG_REALTEK_BEE_CORE_WDT is not set
# end of HAL Realtek Bee Drivers
CONFIG_REALTEK_BEE_COMMON_DRIVER=y
CONFIG_WRAP_REALTEK_BEE_NVIC=y
# CONFIG_USE_REALTEK_BEE_OS_INTERFACE is not set
# end of hal_realtek (/home/nashif/zephyrproject/modules/hal/realtek)
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Add support for pinctrl to R-Car X5H SoC. Like for other Renesas SoCs,
a node approach is implemented (no grouping approach).
Pin configuration operations can optionally be performed through SCMI
(System Control and Management Interface).
Signed-off-by: Julien Panis <jpanis@baylibre.com>
Select the MCUX LPTMR system timer on MCXE24x only when PM is enabled
and an application or test chooses an enabled nxp,lptmr system timer
node through devicetree. This keeps non-PM applications on SysTick
while allowing PM workloads to opt in to LPTMR through their overlays.
Remove the frdm_mcxe247 power_mgmt_soc override that forced the LPTMR
timer directly so the SoC default controls the selection.
Tested on frdm_mcxe247 with tests/subsys/pm/power_mgmt_soc over
MCU-Link on COM9. The test booted once using LPTMR and reported
PROJECT EXECUTION SUCCESSFUL.
Also built tests/subsys/pm/power_mgmt_soc for frdm_mcxe247/mcxe247
after tightening the SoC default condition. The generated configuration
kept CONFIG_MCUX_LPTMR_TIMER=y and left CONFIG_CORTEX_M_SYSTICK unset.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
CMSIS SystemInit() disables the internal hardware watchdog by default
(DISABLE_WDOG defaults to 1). MCXE24x previously forced DISABLE_WDOG=0
as a global compile definition from the SoC CMakeLists, leaving the
watchdog running even when no driver was responsible for servicing it.
On frdm_mcxe247 this made every application reset-loop.
Scope the bridge to the MCUX HAL library instead of the whole build and
drive it from Kconfig, so a SoC opts in only when its CMSIS SystemInit
honors DISABLE_WDOG:
- HAS_MCUX_SYSINIT_DISABLE_WDOG: capability selected by the SoC.
- MCUX_SYSINIT_KEEP_WATCHDOG: enabled only when an enabled watchdog
driver supports the boot-time disable policy and the application asks
to keep the watchdog running (WATCHDOG && HAS_WDT_DISABLE_AT_BOOT &&
!WDT_DISABLE_AT_BOOT).
The MCUX HAL CMake then applies DISABLE_WDOG=0 to the hal_nxp library
only; MCXE24x selects the capability and the SoC CMakeLists no longer
defines the macro globally.
Tested on frdm_mcxe247 over MCU-Link: tests/kernel/common (the reset
loop reproducer from #109911) boots once and runs to PROJECT EXECUTION
SUCCESSFUL, and samples/hello_world boots cleanly. Confirmed that
DISABLE_WDOG=0, when active, is applied only to the hal_nxp library
sources (including system_MCXE247.c) and to no kernel or application
source.
Fixes#109911
Signed-off-by: Holt Sun <holt.sun@nxp.com>
PIC32CX SG has a 0x400 byte alignment requirement for the vector table.
The default ROM_START_OFFSET of 0x200 from Kconfig.zephyr causes a
mismatch between where MCUboot jumps and where the vector table is
located.
Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
Add set_sai_clock() to configure the full SAI clock chain:
- AUDIOPLL1_VCO: 3932.16 MHz
- AUDIOPLL1: 393.216 MHz
- SAI (per instance): parent = AUDIOPLL1, rate = 12.288 MHz
The AUDIOPLL1 chain is initialized only once via set_audiopll1_clock()
using a static flag, regardless of how many SAI instances are enabled.
The clock ID for each SAI instance is read from the DTS clocks property
via DT_CLOCKS_CELL_BY_IDX. DT_FOREACH_STATUS_OKAY with SAI_CLOCK_SETUP
macro automatically applies the configuration for all enabled SAI
instances, following the same pattern as FLEXCAN_CLOCK_SETUP.
Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
Add a new SoC variant SOC_V8A_AARCH32 with the Cortex-A32 as the
default processor to the fvp_aem series for the FVP AEM running in
ARMv8-A AArch32 execution state. Add AArch32 specific MMU region
configuration and linker script selection to support this.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Move the SOC_FAMILY_ARM64 selection from the series-level
SOC_SERIES_FVP_AEM to each individual AArch64 SoC variant
(SOC_V8A, SOC_V9A, SOC_A320). This allows an AArch32 SoC
from the same series to select SOC_FAMILY_ARM independently.
No functional change for existing AArch64 builds.
Signed-off-by: Silesh C V <silesh@alifsemi.com>