Commit Graph

1839 Commits

Author SHA1 Message Date
Anas Nashif
fec22fd85b crypto: remove deprecated tinycrypt
Remove tinycrypt, it was deprecated in 4.0.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-07-24 02:48:32 -04:00
Chaitanya Tata
9693852d9a Revert "modules: nrf_wifi: Use spinlocks"
This reverts commit 3e9dffbe25.
Though this works fine, when CONFIG_ASSERT=y the spinlock validation
fails as the underlying code though uses OSAL spinlock APIs is not ready

* sleeping with spinlock held
* multiple threads taking the same spinlock (might work on UP, but not
  on SMP on the same CPU)

Revert this for now, till the underyling is robust.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-07-24 02:45:32 -04:00
Kapil Bhatt
d6c2ebd5f9 hostap: Add CONFIG_HS20 Kconfig for Hotspot 2.0
The Kconfig CONFIG_HS20 was undefined in zephyr hostap.
Need to add config for Hotspot 2.0 feature.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2025-07-23 17:29:49 +01:00
Felipe Neves
744ee2082e modules: lvgl: expose the lvgl workqueue to the user application
allowing user to submit their own work intems to it.

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
2025-07-21 21:26:27 -04:00
Felipe Neves
e82b8d277b modules: lvgl: add automatic lv_timer_handler call
inside of its own thread when user enable it on
the LVGL Zephyr options menu, using this option makes
the calling of the lv_timer_handler driven by an internal
timer and thread. Options like priority and stack size
for this thread are exposed making it configurable by the
application.

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>

modules: lvgl: put LVGL core into a dedicated workqueue

Replacing the initial approach based on timers and semaphore

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
2025-07-21 21:26:27 -04:00
Jérôme Pouiller
1ee39b9823 soc: silabs: siwx91x: Fix coding style
There is no reason to place sli_siwx917_soc.h under #ifdef. Then, we can
get rid of the #if in the body of soc_early_init_hook().

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-07-21 09:20:23 -04:00
Jérôme Pouiller
c24936fc40 soc: silabs: Drop useless SOC_PART_NUMBER
Variable CONFIG_SOC_PART_NUMBER is only used in CMakeLists.txt of
hal_silabs. In fact, this variable can be easily calculated from CONFIG_SOC
by changing lower case in upper case.

So, let's drop this useless variable.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-07-21 09:20:23 -04:00
Travis Lam
f94a45c276 drivers: flash: nordic: Introduce nrf_mramc driver
Add SHIM layer for nrfx_mramc driver for zephyr

Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
2025-07-21 09:19:45 -04:00
Chaitanya Tata
ab9c53138d modified: nrf_wifi: Refactor heap calls
Instead if littering ifdef's across the code, use a single API and
initialize different pools only once.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-07-19 15:35:07 -04:00
Chaitanya Tata
3e9dffbe25 modules: nrf_wifi: Use spinlocks
Zephyr provides spinlock APIs which can be locked even during the
interrupt context.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-07-19 15:35:07 -04:00
Fabian Blatz
47c4e3d813 modules: lvgl: Use Zephyr builtins instead of LVGL stdlib/string impls
Previously LVGL added its own version of several stdlib functions. Replace
them with the Zephyr provided functions instead.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-07-19 13:51:44 -04:00
Gang Li
c8fa5e5899 modules: hostap: set the cipher suites for WPA2 & WPA3 SAE mode
When the external AP is in WPA3 SAE mode, the group cipher uses
TKIP and the pairwise cipher uses TKIP and CCMP. Should not
connect to the AP.
For WPA2 & WPA3 SAE & WPA2/WPA3 mixed mode, set group cipher to
CCMP, pairwise cipher to CCMP.

Signed-off-by: Gang Li <gang.li_1@nxp.com>
2025-07-19 13:46:51 -04:00
Michele Sardo
7bc1756396 modules: trusted-firmware-m: Update in interface implementation
Following changes to arch/arm/core/cortex_m/fpu.c,
the dependency on CONFIG_FPU_SHARING is moved into this file.

Signed-off-by: Michele Sardo <michele.sardo@st.com>
2025-07-19 13:45:07 -04:00
Triveni Danda
0dcb5a4923 modules: hostap: Set default stack size for softAP mode
This change is needed to handle to stack overflow issues
when using SPIM.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
2025-07-19 13:27:20 -04:00
Declan Snyder
efdd8580ca soc: nxp: Flatten MCX SOCs
Turn MCX series into families.

Reasoning:
 1. The MCX SOCs are quite different from each other and having them all
    under one family in the HWMv2 hierarchy is fruitless because there
    are so many differences that it is confusing to try to introduce
    family-level code and configs since they would each only apply to a
    subset of the series. There is almost nothing that can be shared
    between all of them. Which is why there are comments in the MCX
    family files saying not to put anything in them. This is a technical
    waste.
 2. Therefore, turning all of them into families is almost 0 effort and
    makes sense. It will allow these different types of MCX to be
    further subdivided into series in the future as the MCX portfolio
    expands and such division will be necessary as new SOCs within each
    letter family are released.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-07-19 13:25:29 -04:00
Alberto Escolar Piedras
542874333c boards nrf_bsim: Add a new nrf54lm20bsim target
Add a new simulated nrf54lm20 cpuapp target

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-07-19 09:38:37 +02:00
Flavio Ceolin
ca7d99a249 tf-m: build: Treat warnings as errors
Starting in TF-M 2.2.0 there is a build option to treat warnings as
errors. Lets use it.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-07-16 16:39:04 -05:00
Gaetan Perrot
8a565c0a2b modules: hostap: supp_events: Fix possible null deference
Move usage of ap_ctx pointers after null checks to prevent potential
crashes.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-11 16:32:57 -05:00
Gaetan Perrot
cd855104f2 modules: hostap: hapd_events: Fix possible null deference
Move usage of ap_ctx pointers after null checks to prevent potential
crashes.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-11 16:32:57 -05:00
Gaetan Perrot
b6a5202e55 modules: hostap: supp_api: Fix possible null deference
Ensure 'params' is not NULL before accessing its fields.

Prevents possible null pointer dereference when calling
strlen(params->ssid).

Delay access to ssid->ssid and ssid->ssid_len until after null check.

Prevents potential crash if wpa_s->current_ssid is NULL.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-11 16:32:57 -05:00
Pisit Sawangvonganan
acf2d665c1 modules: mbedtls: fix conditional compilation for MBEDTLS_PKCS1_V21
Fix the conditional compilation to use `CONFIG_MBEDTLS_PKCS1_V21`
instead of `CONFIG_MBEDTLS_PKCS1_V15` when enabling `MBEDTLS_PKCS1_V21`.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-07-11 16:31:57 -05:00
Flavio Ceolin
979fcc0b6e hostap: Set enterprise crypto insecure
Set enterprise crypto insecure because certifcate validation
is disabled.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-07-10 16:00:26 -05:00
Jordan Yates
9245f58b4c modules: hostap: fix connection termination report
If the disconnect event is raised before the network has been connected,
report the connection result as `WIFI_STATUS_CONN_FAIL`, instead of as
`WIFI_REASON_DISCONN_SUCCESS`, which is interpretted as
`WIFI_STATUS_CONN_SUCCESS`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-07-09 00:24:36 -05:00
Łukasz Duda
613478f189 modules: hal_nordic: nrf_802154: Increase default number of RX buffers
This commit increases the default number of RX buffers to ensure
headroom for full IPv6 MTU.

Signed-off-by: Łukasz Duda <lukasz.duda@nordicsemi.no>
2025-07-04 13:10:03 -05:00
Jamie McCrae
84aec64dd3 modules: hal_nordic: nrfx: Remove usage of removed Kconfig
Removes usage and reference of CONFIG_NFCT_PINS_AS_GPIOS

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-07-04 13:09:34 -05:00
Nazar Palamar
fdd02c5105 drivers: wifi: AIROC: Added missed whd_bus_spi_protocol
- add whd_bus_spi_protocol

Signed-off-by: Nazar Palamar <nazar.palamar@infineon.com>
2025-07-03 12:00:07 -05:00
Chaitanya Tata
b8d31f10d9 modules: nrf_wifi: Implement new Raw TX APIs
The new raw TX handling relies on these APIs, so, implement them for
Zephyr shim.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-07-03 11:56:43 -05:00
Chaitanya Tata
54573e2a67 modules: nrf_wifi: Fix accuracy of microseconds API
Using ms and converting to us is a bad idea as we still get ms
granualrity in us units. Use the proper API to get us granularity.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-07-01 19:03:51 -05:00
Pisit Sawangvonganan
a163f9db61 kconfig: fix typo in (arch, boards, kernel, modules, samples, share)
Utilize a code spell-checking tool to scan for and correct spelling errors
in `Kconfig` files within the `arch`, `boards`, `kernel`, `modules`,
`samples`, and `share` directory.
Additionally, incorporates a fix recommended by the reviewer.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-07-01 10:58:54 -10:00
Piotr Koziar
545886bcff soc: nordic: nrf54l: add Kconfig to control whether to apply Errata 56
Adds config option that allows configuration workaround 56.

Signed-off-by: Piotr Koziar <piotr.koziar@nordicsemi.no>
2025-07-01 10:54:21 -10:00
Chaitanya Tata
014dee722b modules: hostap: Fix EAP dependencies
In case anyone enabled EAP_*_ALL explicitly without enabling the
Enterprise then it leads to a build error.

Fix by adding the dependency.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-07-01 05:57:28 -10:00
Qiankun Li
305d511c3e modules: hostap: Fix DPP soft AP security type show issue.
[Description]
After starting a DPP soft ap, enter 'wifi ap status'.
Security is shown as 'UNKNOW'.

[Root Cause]
1. Start a DPP soft ap:
   wifi ap enable -s xxx -c x -p xxx -k 11
   The parameter '-k 11' corresponds to
   zephyr security type 'WIFI_SECURITY_TYPE_DPP'.
2. hapd_config_network() will be called to config a
new hostap bss.
3. Filed 'bss->wpa_key_mgmt' is set to
   WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_DPP.
4. When try to get security type of DPP soft ap,
there is no corresponding zephyr security type.

[Fix]
Add enhance code to convert the security type
to zephyr DPP security type.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-07-01 10:18:42 -05:00
Chaitanya Tata
1fb2c56e86 modules: nrf_wifi: Fix interface down hang
When QSPI LPM is enabled, QSPI will already be uninitialized, and during
deinit if uninitialized is being called again then it leads to a hang as
it waits for mem busy check to pass which it won't.

Fix by checking if the device is initialized before calling
uninitialize.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-07-01 10:15:41 -05:00
Karol Lasończyk
387520c867 soc: nrf: Add nRF54LM20A device
Adding nRF54LM20A device.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
2025-06-27 18:26:57 -05:00
Kate Wang
52e08918ff modules: lvgl: support the frame buffer address and stride alignment
Add support for the frame buffer address and stride alignment.
If user set the CONFIG_LV_DRAW_BUF_ALIGN to not be 4, the buffers
shall be allocated aoocrdingly.
If user set the CONFIG_LV_DRAW_BUF_STRIDE_ALIGN to not be 1, the
methods of flushing the display shall set the pitch accordingly.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-06-27 08:49:44 -10:00
Jiafei Pan
bd2b7d80d1 modules: hal_nxp: add timeout for ii2c status polling
Enalbe II2C hal driver status polling timeout in order to avoid
blocking of some driver API, such as kernel hang during i2c scanning.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-06-27 10:08:25 -05:00
David Jewsbury
c237253fe7 drivers: spi: Support spim01/spis01 instances for nordic devices
Extend SPI driver to support spims01 and spim01.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2025-06-27 10:58:02 +02:00
Jukka Rissanen
96818f45a9 hostap: Replace wifi event mechanism by k_fifo
Earlier we had socketpair to pass wifi event information from
wpa_supplicant side to zephyr adaption layer. This is now replaced
by k_fifo to save some RAM.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-06-27 10:56:49 +02:00
Ta Minh Nhat
096801f1a9 driver: i3c: initial i3c driver basic support for RA family
This commit introduces basic support for I3C master mode.

Signed-off-by: Ta Minh Nhat <nhat-minh.ta.yn@bp.renesas.com>
2025-06-27 09:42:22 +02:00
Qiankun Li
7ffc538d13 modules: hostap: Fix getting error stations twt capability issue.
1. When external station connects to soft ap, zephyr
   hostap will fill sta_info before sending mgmt event
   to l2 wifi layer.
   sta_info.twt_capable should be filled with external
   station capability rather than soft ap self.
2. Rename hapd_is_twt_capable to
   hapd_get_sta_he_twt_capable.
   Try to get twt_capa form capability of external station
   rather than soft ap.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-06-26 22:07:09 -05:00
Łukasz Duda
2f8a8f72ea net: openthread: Add missing include for logging in diag.c
This commit adds logging.h header to the diag.c file to ensure all
symbols are declared.

Signed-off-by: Łukasz Duda <lukasz.duda@nordicsemi.no>
2025-06-26 11:02:54 -05:00
Rafał Kuźnia
558f26eaf9 modules: hal_nordic: nrf_802154: set clock startup latency
The clock startup latency is now obtained from the clock driver and the
nrf-802154 is now set to a value that matches hardware capabilities.

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
2025-06-26 10:57:12 -05:00
Rafał Kuźnia
0eb182a120 modules: hal_nordic: nrf_802154: CCA threshold config in dBm
The nrf-802154 component of hal_nordic is updated.
The CCA threshold configuration is now done in dBm units, instead of
hardware-dependent scale.
Fixed a bug, where the CONFIG_NRF_802154_CCA_ED_THRESHOLD units were
different from the NRF_802154_CCA_ED_THRESHOLD units. Now all
configuration is done in dBm.

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
2025-06-26 10:57:12 -05:00
Sebastian Głąb
031040872e drivers: i2c: Support i2c23 and i2c24 instances
Extend I2C driver with possibility to use
- TWIM23, TWIM24,
- TWIS23, TWIS24.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-06-26 14:07:55 +02:00
Lewis Lee
39f3a62dc1 drivers: i2s: Added Apollo510 I2S driver.
I2S driver support standard format, short/long sync, left/right justified.
Supporting 2 channels as a default.

Signed-off-by: Lewis Lee <llee@ambiq.com>
2025-06-26 14:06:49 +02:00
Lewis Lee
6d34549ff3 drivers: audio: dmic: Add Apollo510 PDM driver for DMIC.
Add PDM driver for DMIC.
This driver is compatible with samples/audio/dmic application.

Signed-off-by: Lewis Lee <llee@ambiq.com>
2025-06-26 14:06:49 +02:00
Khoa Tran
e84ea05dd4 drivers: i2s: Initial driver support for SSIE on Renesas RA
Add i2s driver support for Renesas RA SSIE

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-06-26 11:12:21 +02:00
Ravi Dondaputi
4c14c618f6 net: wifi: shell: Enable Wi-Fi credentials support
Add a snippet for Wi-Fi credentials support. Update the heap sizes as
required for enterprise mode.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2025-06-25 15:31:29 -10:00
Aksel Skauge Mellbye
fccc0a7544 drivers: pwm: silabs: Add TIMER PWM driver for Series 2
Add PWM driver for the Timer peripheral on Series 2.
The TIMER uses the high-frequency EM01 Group A clock, and has
a 16- or 32-bit counter. It supports PWM period and pulse capture
on channel 0, and PWM output on all channels.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Aksel Skauge Mellbye
566fc7a7db drivers: pwm: silabs: Add LETIMER PWM driver for Series 2
Add PWM driver for the Low Energy Timer peripheral on Series 2.
The LETIMER runs at up to 32 kHz and has a 24-bit counter. It
only supports PWM output, it does not support input capture.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00