LV_LOG_LEVEL_USER is a higer log level than ERROR. Map it
to LOG_PRINTK as the most appropriate equivalent in zephyr
Signed-off-by: André Costa <andre_miguel_costa@hotmail.com>
This patch adds nxp_crypto_hal components and enables
PSA crypto HW acceleration for MCXA, MCXN and RW6xx family devices
Also increasing default stack size when SGI_PKC enabled.
test/crypto/psa must add boards config to override main prj.conf
Signed-off-by: Vit Solcik <vit.solcik@nxp.com>
LVGL carries a draw unit for the pixel processing accelerator in
its own tree, beside the ones for the other vendors, and declares
the options that select it, but nothing ties them to the hardware
the accelerator needs, so they cannot be turned on meaningfully.
Tie the accelerator option to the devicetree node and the driver
behind it, and give LVGL the cache line size it compares against
its draw buffer alignment, so fills and image blits are done by
the accelerator instead of by the software renderer. The unit
reaches the accelerator through the driver the soc provides, so
it needs no code of its own here.
Assisted-by: Claude:opus-5
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The i.MX PWM block on the i.MX8M family had no Zephyr driver. The
existing `fsl,imx27-pwm` driver covers the same IP but is built on the
legacy device_imx.h HAL, which only supports i.MX6SX and i.MX7D.
Add a driver on top of the MCUX ipwm HAL, binding to `nxp,ipwm`. The
prescaler comes from devicetree and fixes the counter rate reported
by `pwm_get_cycles_per_sec()` polarity is mapped onto `PWMCR.POUTC`.
No interrupt is used, as a single PWMSAR write sustains the output.
`set_cycles()` only guards against a full sample FIFO, returning
`-EAGAIN` rather than blocking the caller. Changing the period or the
polarity stops the counter and drains the FIFO first, since queued
samples no longer match the new configuration.
Signed-off-by: Guilherme Freire <guilherme.almeida@toradex.com>
Rename the TRDC HAL component gating symbols from TRDC_MCUX_TRDC and
TRDC_MCUX_TRDC_1 to NXP_TRDC and NXP_TRDC_1, and define them centrally
in modules/hal_nxp/mcux/Kconfig.mcux alongside the other MCUX_* driver
options (each with a help block, per the Kconfig style guide).
Migrate the existing users to the new symbols so no platform loses the
driver.trdc / driver.trdc_1 HAL component:
- imxrt118x: TRDC_MCUX_TRDC -> NXP_TRDC
- imx93: TRDC_MCUX_TRDC_1 -> NXP_TRDC_1
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Fixes various issues with Kconfigs, including:
- Using the wrong indentation
- Not having [EXPERIMENTAL] in the prompt, or not having it at
the end
- Wrongly stating the CONFIG_EXPERIMENTAL is needed to enable
an experimental Kconfig
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Fixes various issues with Kconfigs, including:
- Redundent `default n` on bools
- Not select deprecated on supposed deprecated symbols
- Using the wrong indentation
- Not having [DEPRECATED] in the prompt, or not having it at the
end
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Assert at build time that every node LVGL is configured to drive,
whether from the "zephyr,displays" list or from the chosen
"zephyr,display" node, belongs to the "display" device class. A
wrong phandle now fails the build with a message naming the display
index, instead of surfacing as unrelated property errors or a runtime
failure.
Built samples/modules/lvgl/multi_display and samples/subsys/display/
lvgl for native_sim/native/64; verified that pointing a
"zephyr,displays" entry at a non-display node fails with the new
message. Not run on hardware.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Describe the MCXL WUU as an NXP wakeup controller.
Use the nxp,wuc-wuu compatible with wakeup controller cells so wakeup
sources can be consumed through the Zephyr WUC subsystem. Gate the MCUX
driver.wuu HAL component (which provides fsl_wuu.h) on
CONFIG_DT_HAS_NXP_WUC_WUU_ENABLED so the single compatible pulls in the
HAL sources without needing the legacy nxp,wuu compatible.
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
Add devicetree sources, Kconfig, CMakeLists, and early-init source
for the Infineon PSOC4000T SoC series (CY8C4046LQI-T452), an
Arm Cortex-M0+ MCU with 64 KB flash and 8 KB SRAM.
Signed-off-by: Yurii Lozynskyi <Yurii.Lozynskyi-EE@infineon.com>
fwk_platform.c includes fsl_trng.h and is built for every MCXW2XX
Bluetooth application, but the trng component was never selected here,
so hci_uart failed to build. Select it next to ostimer.
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
hostap 2.12 (see the companion upmerge in the hostap module) shuffled
around a few things that this module's CMakeLists.txt needs to follow:
- src/ap/interference.c is a new file (incumbent signal interference
handling for 6 GHz AP) that drv_callbacks.c now calls into
unconditionally whenever AP support is built.
- src/crypto/aes-siv.c is now also needed by CONFIG_SAE (SAE Password
Identifier encryption/decryption), not just CONFIG_WIFI_NM_WPA_
SUPPLICANT_DPP, so compile it whenever either is enabled.
- CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN no longer maps to a standalone
wpa_supplicant/nan_usd.c; NAN (including USD-only mode) was rewritten
into a full engine under src/nan/ plus wpa_supplicant/
nan_supplicant.c. Update the source list accordingly, and add the
new src/crypto/sha256-pbkdf2.c and sha384-pbkdf2.c needed by NAN
pairing PMK derivation.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit enables the new clock managers by switching the device
tree to use the new bindings. It also moves some initialization code
from the old clock manager to soc_early_init_hook() since some clocks
configuration needs to be done before the clock drivers are initialized.
Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
Add support for NXP PNG decoder hardware module. This driver provides
memory-to-memory (M2M) video transformation capability to decode PNG
compressed images into raw pixel formats.
Key features:
- Supports PNG input format (VIDEO_PIX_FMT_PNG)
- Resolution support: 1x1 to 1024x65535 pixels (1-pixel step)
- Fixed RGBA32 output format (VIDEO_PIX_FMT_RGBA32)
- Interrupt-driven operation with input/output buffer queues
- 8-byte buffer alignment requirement
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
The CAT1C family uses ECT flash, whose PDL driver and
SROM API are implemented in cy_flash_v2.c and cy_flash_srom.c.
Add the files to the build for CAT1C when
CONFIG_USE_INFINEON_FLASH is enabled.
Both sources are self-guarded by CY_IP_MXFLASHC_VERSION_ECT,
so cy_flash.c still compiles empty on CAT1C and no duplicate symbols
are introduced.
Assisted-by: GitHub Copilot:Claude-Opus-4.8
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Added Kconfig option and CMake include for new
nrfx_clock_lfrc driver.
Removed unused Kconfig option.
Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Legacy GPPI helper has been removed with nrfx 4.6.
Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Extend the MSPI QSPI controller driver to support the MCXE31X
series. Key differences from MCXE24X:
- No FIFO byte-swap needed (native LE byte ordering)
- Use QSPI_SetDelayChainConfig instead of QSPI_SocConfigure
- No dataHoldTime field (FSL_FEATURE_QSPI_HAS_NO_TDH)
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Add MSPI controller driver for NXP QSPI hardware. The driver
dynamically builds LUT sequences from MSPI transfer parameters,
supporting single and quad SPI modes. It handles MCXE24X hardware
quirks including SFAR auto-reset, minimum 16-byte TX IDATSZ, and
big-endian FIFO byte ordering.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Set the SL_CODE_COMPONENT_* macros in the component catalog header,
and add the header as a preinclude when building the hal library.
This avoids passing these on the command line, and ensures they
are only applied to the library itself.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Define component catalog in dedicated header file instead of
setting the symbols as compiler options from CMake.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Update CMakeLists.txt to use lowercase for local variables in
accordance with the style guide.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Enable Bluetooth for Series 3 devices by adding new stubs for
symbols from blobs and increasing the link layer stack size.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Add support for Six301 radio crypto. The low-level crypto operations
needed by the radio are performed in the HAL, and require a glue
layer to get access to OS primitives. Implement this glue in
modules/hal_silabs.
Introduce a soc-specific crypto management driver that exposes the
crypto peripherals from devicetree and implements device lifecycle
management.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Rename the Kconfig option to SOC_VENDOR_SILABS_DEVICE_IS_MODULE
to match the guidelines requiring all Kconfig symbols in soc/
to have specific prefixes.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Rename to SOC_FAMILY_SILABS_S2_XG* to reflect that they are
sub-options for the silabs_s2 SoC family, abiding by the
naming policy for Kconfig options in soc/.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Rename the Kconfig option to SOC_VENDOR_SILABS_HAS_RADIO to
match the guidelines requiring all Kconfig symbols in soc/
to have specific prefixes.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
If the VDB cannot hold at least an amount of data worth
an aligned minimum for a line,
get_max_row will fail (finding it can flush 0 lines)
and cause a silent but complete crash downstream.
Signed-off-by: Camille BAUD <mail@massdriver.space>
Add support for NXP JPEG decoder hardware module. This driver provides
memory-to-memory (M2M) video transformation capability to decode JPEG
compressed images into raw pixel formats.
Key features:
- Supports JPEG input format (VIDEO_PIX_FMT_JPEG)
- Resolution support: 64x64 to 8192x8192 pixels (16-pixel step)
- Automatic format detection from JPEG header parsing
- No color space conversion (output format matches JPEG encoding)
- Interrupt-driven operation with input/output buffer queues
- Configurable output buffer pitch for flexible memory layouts
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Since commit f0a2dad142 ("modules: hal_rpi_pico: disable Pico SDK
runtime auto-init") PICO_RUNTIME_INIT_FUNC() expands to nothing, leaving
the SDK's static EXTEXCLALL initializer unused and breaking every
rp2350a/m33 build with -Werror=unused-function. It never ran under
Zephyr, which drives a single core, so disable it through the SDK's own
option.
Assisted-by: Claude:opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add a PICOSDK_USE_POWMAN Kconfig option that builds the pico-sdk
hardware_powman source, gated the same way as the other optional
pico-sdk drivers in this module. POWMAN's GPIO wakeup support calls
into hardware_gpio, so select PICOSDK_USE_GPIO along with it.
Signed-off-by: Gabriel Germano <gabriel.lucasgermano@gmail.com>
runtime_init.c registers several init steps into .preinit_array via
PICO_RUNTIME_INIT_FUNC(). Zephyr does not use the Pico SDK's
runtime_init() pre-init array walker, and some of these steps
reference symbols Zephyr doesn't provide (its own vector table,
its own clock init). GNU ld silently drops the unreferenced
.preinit_array entries but LLD fails to resolve them.
Disable PICO_RUNTIME_INIT_FUNC() registration entirely rather than
disabling individual steps, since the latter requires tracking every
current and future Pico SDK initializer. Implementations such as
runtime_init_per_core_enable_coprocessors() are preserved and still
callable directly.
Fixes#118879
Signed-off-by: Nancy Sangani <9d.24.nancy.sangani@gmail.com>
The slim ring buffer API is now header-only and always available and the
tree has already migrated from the _claim/_finish API, so the RING_BUFFER
symbol no longer gates any code.
Remove the now-redundant "select RING_BUFFER" and CONFIG_RING_BUFFER=y
entries across drivers, subsystems, samples and tests.
Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
hostapd support register iface to nm when add hostapd interface,
and unregister iface from nm when remove hostapd interface
Signed-off-by: Gaofeng Zhang <gaofeng.zhang@nxp.com>
Remove chre from the manifest and all the integration of chre in zephyr
and move it to an external module.
Nothing in zephyr depends on chre.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Add the hal_infineon glue for the PSC3M6 DSL: mtb-dsl-psc3m6 and
mtb-template-psc3m6 CMake integration, Kconfig header wiring for the
PSC3M6 die, and the zephyr-ifx-cycfg hookup.
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Signed-off-by: Niranjan M <niranjan@aerlync.com>
The CYT4DN devices in the CAT1C family use M7_0 and M7_1 cores. The
mtb-pdl-cat1 HAL needs CORE_NAME_CM7_0 or CORE_NAME_CM7_1 defined to
select the correct per-core register layouts.
Also define COMPONENT_CAT1C for all CAT1C devices in this common
header file.
Signed-off-by: Sanjay Vallimanalan <sanjay@linumiz.com>
Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
WIFI_NM_WPA_SUPPLICANT_LEGACY_CRYPTO is enabled by default, yet it
selects DEPRECATED and implies the deprecated WIFI_NM_WPA_SUPPLICANT_WEP.
Every wpa_supplicant build therefore reports two deprecated symbols
without the user having enabled anything, and once Kconfig deprecation
warnings become errors under COMPILER_WARNINGS_AS_ERRORS no Wi-Fi sample
or test builds at all.
A default that will flip in a later release is not a deprecated option.
Drop the DEPRECATED select from LEGACY_CRYPTO and stop implying WEP from
it, so that WEP, which really is deprecated, is only enabled when a
project asks for it explicitly. The help texts are updated to match:
WEP still requires LEGACY_CRYPTO to take effect, but LEGACY_CRYPTO no
longer brings WEP in on its own.
The commit that merged WEP under LEGACY_CRYPTO stated that only WEP was
meant to select DEPRECATED; this restores that intent.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Add CONFIG_ADVC_DRIVER_USED to opt into the NXP ADVC (Adaptive
Voltage Control) driver on MCXL255. Defaults to off, no behavior
change for existing builds.
Wire it into the mcux-sdk-ng build: pull in fsl_advc.c/.h directly
and link libadvc_cm33.a / libadvc_cm0p.a from their west-blobs
location (zephyr/blobs/mcxl255/). The driver.advc component is not
enabled, since its auto-synced CMakeLists.txt would also link the
same libs from a nonexistent device-tree path.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
Add a new video driver for NXP FlexIO-based parallel camera
interface (DVP). The driver captures 8-bit parallel pixel data
via FlexIO shifters, with pixel clock (PCLK) gating and horizontal
sync (HREF) line synchronization. Pixel data is transferred to
memory using eDMA, with frame boundaries synchronized via VSYNC
GPIO interrupt. An optional XCLK output can be generated by a FlexIO
timer for camera sensor clock supply.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>