enabled hwspinlock sample for NXP mimxrt1180_evk board
replace board-specific sysbuild dependency condition by SoC-specific one
Signed-off-by: Michal Princ <michal.princ@nxp.com>
Added dtb overlay for mimxrt685_evk/cm33.
To run the case connection J1-9 to J30-1 need to be made on EVK board.
Signed-off-by: Chay Guo <changyi.guo@nxp.com>
Add delays after GPIO pin transitions to ensure comparator input
stabilization before checking trigger status. This prevents spurious
failures caused by reading the comparator state before the input
signal has settled.
The additional delays improve test reliability across different
hardware platforms where signal propagation and comparator response
times may vary.
Signed-off-by: Chay Guo <changyi.guo@nxp.com>
The esp32s2_saola platform exclusion is no longer needed as the
build failure has been resolved.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
esp32c3_devkitm has been used as board reference for ESP32-C3 SoC.
Change to default esp32c3_devkitc to align with internal CI tests.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
esp32s2_saola has been used as board reference for ESP32-S2 SoC.
Change to default esp32s2_devkitc to align with internal CI tests.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
For Cortex-A Core, Zephyr runs on non-secure world, the bit in PCNS
or ICNS for corresponding GPIO pin is 1, no need to clear it and
Cortex-A Core could access the corresponding pin's regitsters, so
disable this feature for Cortex-A Core.
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
SOC_IMX943_PM_MCORE had no dependency on NXP_SCMI_CPU_DOMAIN_HELPERS,
causing pm_mcore.c to be compiled even when the scmi_nxp_cpu_* symbols
were not built, resulting in undefined reference link failures.
Fix by adding depends on NXP_SCMI_CPU_DOMAIN_HELPERS to the Kconfig
entry, ensuring pm_mcore.c is only compiled when the full SCMI CPU
domain stack is present. With this change, enabling CONFIG_PM=y without
the required SCMI stack is caught at Kconfig level rather than failing
at link time.
Fixes#103992
Signed-off-by: Jjateen Gundesha <jjateen97@gmail.com>
Defining `__soc_handle_irq` (part of the code path run on every
interrupt) as a jump to `get_irq` introduces unnecessary latency to
interrupt handling and inflates code size. Since `get_irq` is not
otherwise called, rename it to `__soc_handle_irq` and delete the old
trampoline.
The signature of the function is changed to match the declaration of
`__soc_handle_irq`, which is possible since commit
495a3281d4679c19703810afbac9607d16ac6788 corrected its declaration.
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Document that boards using CONFIG_MCUX_LPTMR_TIMER must now designate
the timer instance via the zephyr,system-timer chosen property.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Set zephyr,system-timer = &lptmr0 in the MCX-W7x and MCX-W70 DTSI
/chosen nodes. lptmr1 remains available for use by the counter driver.
Both drivers can be active simultaneously since they use separate
hardware instances.
Update SYS_CLOCK_HW_CYCLES_PER_SEC in the MCX-W7xx SoC defconfig to
resolve the clock frequency from the chosen node path instead of the
lptmr0 nodelabel.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Set zephyr,system-timer = &lptmr1 in the i.MX95 DTSI /chosen node.
lptmr2 remains available for use by the counter driver. Both drivers
can be active simultaneously since they use separate hardware instances.
Default MCUX_LPTMR_TIMER to y in the i.MX95 SoC defconfig and resolve
SYS_CLOCK_HW_CYCLES_PER_SEC from the chosen node path instead of a
hard-coded node address.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Replace the single-instance assumption with a zephyr,system-timer chosen
node approach. The timer driver reads its hardware instance directly from
DT_CHOSEN(zephyr_system_timer) instead of assuming instance 0. The
counter driver skips whichever instance is designated as the system timer,
allowing both drivers to coexist on SoCs with multiple LPTMR instances.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Register zephyr,system-timer in the Zephyr-specific chosen nodes
table. This property selects the hardware timer instance used as
the system timer when a SoC has multiple instances of the same
timer peripheral.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Implementing the stm32wba power controller interface to manage
the ram retention in s2ram power state.
According the defined RAM, only the required pages will be retained.
This memory size can be modified by the overlay mechanism matching
the RAM required by the application and highlighted
in the building report.
Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
Adding a specific stm32wba power controller defining
an interface to manage the ram retention in s2ram power state.
Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
Set CONFIG_CODE_DATA_RELOCATION for cm33 core so
that code that needs to be executed from RAM rather
than ext flash gets properly relocated
Additionally, ensure that the SRAM memory allows code
to be executed from it so set the MPU appropriately.
This aligns the strategy with the cm55 core for which all
this is already in place but does it by properly
setting the MPU regions from the start.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
The MCUX ELCDIF display driver requires 8-byte alignment for the
display buffer address. Set the LVGL rendering buffer alignment to
8 bytes when DISPLAY_MCUX_ELCDIF is enabled.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
The MCUX ELCDIF display driver requires 8-byte alignment for the
display buffer address.
Add explicit 8-byte alignment requirement for DISPLAY_MCUX_ELCDIF
to ensure correct operation on platforms using this display controller.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
So we do not leak these macros and its includes into users of net_core.h
Note this is a separate commit in case it is necessary to revert it.
But note that users should instead not use these NET_ logging helper
macros but just use the LOG_ macros directly.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
The net logging helper macros are now in a separate header.
Let's have all net users to include this new header.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Split these private macros into their own header. That way
a) we avoid including log/logging.h from a common header which causes
some trouble
b) we are a bit clearer about them being private
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Otherwise the users of these headers need to pull the networking header
which defines them.
And include the logging header instead of having it included indirectly
by another header.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
These macros are private to the net subsystem, let's not use them in
other subsystems.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
These macros are private to the net subsystem, let's not use them in
modules.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
These macros are private to the net subsystem, let's not use them in
samples so users do not try to use them.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
These macros are private to the net subsystem, let's not use them in
drivers
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
These macros are private to the net subsystem, let's not use them in
drivers
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
These macros are private to the net subsystem, let's not use them in
drivers.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Add a retry mechanism for the RPMC OP2 command in the eSPI TAF NPCX
driver. If the OP2 command returns a status indicating that the device
is busy, the driver will retry the command up to 3 times.
Signed-off-by: Aditya Bhutada <aditya.bhutada@intel.com>
Use the common touchscreen configuration and replace manual ABS
reporting with input_touchscreen_report_pos() to align with the
Zephyr input subsystem helpers.
Add the touchscreen-common devicetree properties screen-width and
screen-height to in-tree nodes using this controller.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
The internal I2C helper functions max98091_read_reg,
max98091_write_reg, and max98091_update_reg were ignoring the
return values of the underlying I2C driver calls. In the event
of a bus error or NACK, this led to silent failures where
hardware configuration would appear successful despite failure.
This commit evaluates and logs the return codes for all three
helpers to improve driver serviceability and resolve static
analysis warnings.
Fixes#92594
Signed-off-by: David J. Leach, Jr. <tasmar@gmail.com>
Due to loopback update the existing overlay is no longer valid.
P1.08 and P1.09 are now connected.
Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
Set DMA_TCD_QUEUE_SIZE default to 4 when I2S_MCUX_SAI is enabled.
The MCUX SAI driver preloads 3 RX DMA blocks and requires the TCD
queue size to be greater than 3 to satisfy its BUILD_ASSERT and avoid
build failures in MCUX SAI I2S configurations.
Fixes#103997
Signed-off-by: Hake Huang <hake.huang@nxp.com>
Add a Kconfig option to configure the RX refill thread priority.
The default is set to 0, which is the same as the previous hardcoded
value. This allows users to set a different priority if needed.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Thread priority was passed to options argument of k_thread_create,
instead of the priority argument.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
This board has an RF path switch on the 2.4 GHz RF path, shorting
the antenna to ground when not in use, in order to avoid spurious
harmonics for the sub-GHz radio. When not configured properly,
this leads to Bluetooth RSSI being lowered by more than 20 dBm.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>