Commit graph

136,983 commits

Author SHA1 Message Date
Farsin Nasar V A
74345d1b33 dts: arm: microchip: add entropy node
- Added trng node in the pic32cx_sg.dtsi file

Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
2026-02-06 11:14:49 +01:00
Stephan Linz
bd5e2cdb5e drivers: rtc: rpi_pico: avoid corrupted data in tm_wday
'tm_wday' (and potentially all other time and date values in the
TM structure) may retrieve corrupted data during readout from the
hardware via the Pico SDK when the call to rtc_get_datetime() comes
back with error.

If the referenced data structure 'datetime_t dt' is only partially
filled or not filled at all via the Pico SDK due to invalid RTC data
in the hardware, random data will be copied from the stack to the
TM structure without further verification.

Now the Pico RTC driver follows the general idiom: If the answer is
unknow, the caller-provided TM structure must not be updated.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-02-06 11:13:44 +01:00
Stephan Linz
b8030f3b2f drivers: w1: test: vnd,w1: fix parameter handling in W1_VND_INIT()
The W1_VND_INIT() has defined the one parameter 'n', but the variable
name 'inst' was used inside the stringifications.

In addition, clang-format was invoked to meet the CI conformance
rule ClangFormat.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-02-06 11:12:43 +01:00
Felix Wang
66ccfd8e00 samples: drivers: led: pwm: add support for mcx_n5xx_evk board
The overlay disables the standard GPIO leds node and enables the
pwmleds node.
Configure blink delays to 2ms (short) and 20ms (long) for
appropriate visual feedback on the PWM-controlled LEDs.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-02-06 11:12:09 +01:00
Felix Wang
13a81118dd boards: nxp: mcx_nx4x_evk: add PWM LED support
Add PWM LED support to the mcx_n5xx_evk/mcxn547/cpu0 board
using FlexPWM0 submodules 0, 1, and 2. Configure three PWM
LEDs (green, blue, and red) using channel X outputs on pins
PIO3_2, PIO3_3, and PIO3_4 respectively.

The pwmleds node is disabled by default to avoid conflicts with
leds peripherals.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-02-06 11:12:09 +01:00
Felix Wang
1dd18e8763 drivers: pwm: add support for FlexPWM channel X output
1.Extend the NXP MCUX PWM driver to support three channels (A, B, and X)
instead of two.
2.Add special handling for channel X  polarity control via the OCTRL
register, as it uses VAL0 for pulse width instead of the VAL2/VAL3 pair
used by channels A and B.
3.Restore VAL0 when configuring channels A/B to preserve channel X pulse
4.Adjust LDOK timeout to one PWM period
5.Get clock frequency in init function

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-02-06 11:12:09 +01:00
Siratul Islam
a8f8f7da33 MAINTAINERS: Add biometrics drivers subsystem entry
Add maintainer entry for the new biometrics drivers subsystem,
covering drivers, bindings, headers, samples, and tests

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
fd189392a6 drivers: biometrics: add GT5X fingerprint sensor driver
Add driver for ADH Technology GT5X series optical fingerprint
sensors. Supports GT-511C1R, GT-511C3, GT-521F32, and GT-521F52
variants.

Features:
- 3-stage enrollment with retry support
- 1:1 verification and 1:N identification
- LED control
- Model-agnostic design via device tree configuration

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
b91f24d055 dts: bindings: biometrics: add ADH GT5X fingerprint sensor
Add device tree binding for ADH Technology GT5X series optical
fingerprint sensors (GT-511C1R, GT-511C3, GT-521F32, GT-521F52).

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
45be564ce9 tests: drivers: biometrics: Add emulated driver test
- Add test suite for biometrics API using emulated driver
- Test enrollment flow: start, capture, finalize, abort
- Test template operations: store, read, delete, list
- Test matching: verify and identify modes
- Test attribute get/set and error handling
- Runs on native_sim and real hardware

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
7e43f2e70d drivers: biometrics: add shell commands for testing
Add shell interface for biometrics driver subsystem providing
commands for:
- info: display device capabilities
- attr_get/attr_set: read/write device attributes
- enroll: full enrollment flow and individual steps
- template_list/delete/delete_all: template management
- match: verify or identify operations
- led: LED control

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
59843f7776 drivers: biometrics: add emulated driver for testing
Add emulated biometrics driver for testing shell commands
and application logic. Implements full API:
- Configurable attributes
- Template storage with simulated enrollment workflow
- Match operations with configurable success simulation
- LED state tracking

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
2140f0b181 samples: drivers: biometrics: add fingerprint sample
Adds a sample application demonstrating the Biometrics
subsystem with a fingerprint sensor.

The sample demonstrates:
- Getting sensor capabilities
- Two-stage enrollment process
- Verification (1:1 matching)
- Identification (1:N matching)
- Template management

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
7af87b5957 drivers: biometrics: add ZFM-x0 fingerprint sensor driver
Add driver for ZFM-x0 series optical fingerprint sensors supporting
ZFM-X0, R30x, JM-101, DY-50, FPM10A, and compatible modules.

Features:
- Multi-sample enrollment flow (2 samples)
- 1:1 verification and 1:N identification matching
- LED control
- Configurable security level and timeout

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
832b49e8d6 dts: bindings: add biometrics binding
Adds device tree binding for Zhiantec ZFM-X0 fingerprint
sensor and biometrics-emul

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
c534902051 doc: biometrics: Add API documentation
Add overview and API reference documentation for the biometrics
driver subsystem.

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Siratul Islam
3991cf37c3 drivers: biometrics: introduce biometrics subsystem
Introduces a new drivers subsystem for biometric sensors.
The API supports enrollment, matching, and template storage.

Signed-off-by: Siratul Islam <email@sirat.me>
2026-02-06 11:10:54 +01:00
Hau Ho
5b4884f566 tests: drivers: gpio: Add overlay and config file for gpio tests
Add overlay and config file for FPB-RX140 and RSK-RX140

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
36ca5a8d91 boards: renesas: Add GPIO interrupt support for RSK-RX140 board
Add GPIO interrupt support for RSK-RX140 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
0cafb274da boards: renesas: Add GPIO interrupt support for FPB-RX140 board
Add GPIO interrupt support for FPB-RX140 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
576a63d066 dts: renesas: Add GPIO interrupt for RX140 SoC
Add GPIO interrupt for RX140 SoC

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
c337d4d0b5 drivers: watchdog: Add support for IWDT driver on RX140 SoC
This commit to Add support for IWDT driver on RX140 SoC

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
827efc1c40 tests: drivers: pwm: Add support for test PWM on RX140 SoC
pwm: Add support for test PWM on RSK-RX140 and FPB-RX140 boards

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
e74e352460 boards: renesas: Add MTU-PWM support for RSK-RX140 and FPB-RX140 boards
Initial commit to support for MTU-PWM on RSK-RX140 and FPB-RX140 boards

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
f29ef02228 dts: renesas: support MTU-PWM on RX140.
This commit to support MTU-PWM on RX140

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
b02e4d37df tests: drivers: flash: Add config for test driver flash size
Add config TEST_DRIVER_FLASH_SIZE for RSK_RX140 and FPB-RX140 boards

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
d6ce5eabcb drivers: flash: Add support for flash driver on RX140 SoC
Add support for flash driver on RX140 SoC

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
6dfc638654 boards: renesas: Add support for flash driver on RX140 board
Add flash driver support for RSK-RX140 and FPB-RX140 boards

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
c56df6c30f dts: rx: Add dts property for flash driver on R140 MCUs
Add dts property for flash driver on R140 MCUs

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
8e15583aa5 drivers: i2c: Add support I2C driver on RX140
Add support for I2C driver for RX140 boards

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
1c57549095 drivers: spi: Add support SPI driver on RX140
Add support for SPI driver for RX140 boards

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
215afd1167 driver: adc: Initial support for ADC module on RX140
Initial support for ADC module on RX140

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
7769a09ab5 drivers: pinctrl: Support pinctrl driver for RX140 SoC
Modify driver code to adapt with RX140 SoC

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
36be3745de drivers: serial: Support serial driver for RX140 SoC
Modify driver code to adapt with RX140 SoC

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
2bd5deed27 boards: renesas: Initial support for RSK-RX140 board
Initial commit to support for RSK-RX140 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
e047dc597f boards: renesas: Initial support for FPB-RX140 board
Initial commit to support for FPB-RX140 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
e05f097d0e dts: renesas: initial support dts SoC layer on RX140.
This commit to initial support dts SoC layer on RX140

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Hau Ho
de786f13eb soc: renesas: rx: Initial support for RX140 SoC
This commit to initial support for RX140 SoC.

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-02-06 11:09:14 +01:00
Pavel Kohout
7e84c87ed1 drivers: wifi: eswifi: return error for unsupported TLS options
The eswifi socket offload driver's setsockopt() handler returns success (0)
for TLS_HOSTNAME and TLS_PEER_VERIFY options without implementing them.
This causes applications to believe TLS hostname and peer certificate
verification is enabled when it may not be, potentially enabling
man-in-the-middle attacks.

The Inventek eS-WiFi module's default P9 setting (0=None) means no
certificate verification occurs unless explicitly configured out-of-band.

Return -ENOTSUP instead, making the limitation explicit so applications
can detect and handle unsupported TLS options appropriately.

Signed-off-by: Pavel Kohout <pavel.kohout@aisle.com>
2026-02-05 16:56:38 +01:00
Martin Martincek
798d02e4ba drivers: adc: mcux_lpadc: Invalid Adc 12-bit resolution measurement
When adc resolution is set to 12bit (lpadc provides 12bit or 16bit)
and the FSL_FEATURE_LPADC_HAS_B_SIDE_CHANNELS is not enabled,
the function mcux_lpadc_isr saves the measured value to variable result
but this value is not used after that,
(unless the FSL_FEATURE_LPADC_HAS_B_SIDE_CHANNELS is enabled).
This change fixed the issue.
Tested on FRDM-MCXA266 with adc_dt zephyr sample.

Signed-off-by: Martin Martincek <martin.martincek@nxp.com>
2026-02-05 16:55:45 +01:00
Johann Fischer
5163ea64fe usb: device_next: hid: do not use false and true in COND_CODE_1
With the C23 standard, false and true are keywords and constants of type
bool with a value of 0 and 1. Though there does not seem to be issues
with GCC version 14, there is a note in the specification that the
spelling of false and true inside expressions that are subject to the #
and ## preprocessing operators is unspecified.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-05 16:54:58 +01:00
Jérôme Pouiller
df01f03c0c soc: silabs: siwx91x: Code/data relocation is required
Without this change, the fix introduced in commit 189fa5f4d8e ("modules:
silabs: Force sli_mv_m4_app_from_flash_to_ram() to be in RAM") is not
active.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-02-05 16:54:29 +01:00
Shreehari HK
595b267fd3 drivers: i2c: i2c_dw: add spike suppression support
Add support for configuring SCL and SDA spike suppression based on
the I2C controller input clock.

The DesignWare I2C spike suppression registers are programmed using
values expressed in ic_clk cycles, in line with the I2C-bus
specification.

Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
2026-02-05 16:54:06 +01:00
Shreehari HK
697b079f0c dts: bindings: i2c: snps,designware-i2c: add spike length properties
Add Devicetree properties to configure I2C spike suppression length
for DesignWare I2C controllers.

The new properties allow specifying spike suppression values in terms
of the controller input clock cycles, in line with the I2C-bus
specification.

Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
2026-02-05 16:54:06 +01:00
Mathieu Choplain
8b8321d184 drivers: usb: udc: stm32: split PHY configuration to dedicated drivers
Move all PHY configuration code to dedicated drivers called using a custom
API (we can't instantiate proper devices because some of these "PHYs" are
really used to initialize an interface to a device NOT owned by the SoC,
such as when an ULPI PHY is in use).

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-05 16:53:38 +01:00
Mathieu Choplain
76af117536 dts: bindings: phy: stm32-usbphyc: make clocks required
The `clocks` property should always be provided, even if the driver does
not consume it for now. Mark property as required in binding and add it to
the STM32F723 DTSI where it is missing. While at it, add an example showing
how to override the `clocks` property in the binding.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-05 16:53:38 +01:00
Mathieu Choplain
9073d572dc drivers: usb: udc: stm32: move macros to common code & refactor
Refactor utility macros in the STM32 UDC driver, and move some of them to
the STM32 common USB header as they can be useful in other places.

While at it, add new helper macro USB_STM32_NODE_PHY_IS_EMBEDDED_FS.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-05 16:53:38 +01:00
Zafer SEN
e6f64330fb drivers: sensor: lps2xdf: add PM device support and power-domain init
Add full power‑management support to the LPS2XDF sensor family
(LPS22DF, LPS28DFW, ILPS22QS). This integrates the drivers with the
Zephyr PM subsystem and allows deferred initialization through
power domains.

Introduce a power_on() callback in lps2xdf_chip_api and track the
current ODR in lps2xdf_data for suspend/resume handling. Implement
a PM control callback that:

- powers on the chip on PM_DEVICE_ACTION_TURN_ON
- enters power‑down mode by setting ODR=0 on SUSPEND
- restores the previous ODR on RESUME
- performs no action on TURN_OFF

Convert initialization to use pm_device_driver_init() and update
the instantiation macros to use PM_DEVICE_DT_INST_DEFINE.

Update each chip driver (lps22df, lps28dfw, ilps22qs) to provide a
.power_on implementation and store the initial ODR in the driver
data.

This enables proper power‑domain control and low‑power operation for
all LPS2XDF‑based pressure sensors.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-02-05 16:52:32 +01:00
Zafer SEN
3797301ca3 drivers: sensor: lis2dw12: add power management support
Add power management (PM) support to the LIS2DW12
accelerometer driver, enabling integration with Zephyr's
PM subsystem and power domains.

Changes:

-Implement lis2dw12_pm_control() callback to handle PM actions:
   PM_DEVICE_ACTION_TURN_ON: Performs full chip initialization
   PM_DEVICE_ACTION_SUSPEND: Puts device into power-down mode (ODR off)
   PM_DEVICE_ACTION_RESUME: Restores previous output data rate
   PM_DEVICE_ACTION_TURN_OFF: Supported (no-op)
- Refactor driver initialization:
  Extract hardware init sequence into lis2dw12_power_up()
  Add lis2dw12_bus_check() for bus readiness verification
  Use pm_device_driver_init() for PM lifecycle management
  Add PM_DEVICE_DT_INST_DEFINE to device instantiation macro

This enables the LIS2DW12 to be controlled via power domains,
allowing deferred initialization until the device is explicitly turned on,
and proper suspend/resume for power savings.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-02-05 16:51:53 +01:00
Alberto Escolar Piedras
45fae3de24 usb: host: Correct function prototype
Correct function prototype which causes a compiler warning
and builds to fail due to it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-02-05 16:51:26 +01:00