Commit graph

25,525 commits

Author SHA1 Message Date
Ren Chen
20dbf4d7a0 drivers: i3c: shell: fix the judgement/argc count for getstatus/ibi tir
The errno for format 2 of the getstatus ccc always returns an error.
The check for the invalid defining byte should use the "AND" operation
instead of "OR." Additionally, the first byte of the ibi tir sending
request is ignored due to the incorrect argument count.
This commit fixes both issues.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-03-07 20:24:04 +01:00
Ren Chen
373771c062 drivers: i3c: common: fix the setaasa flow
There is an incorrect dynamic address setting for setaasa. The correct
behavior is that the dynamic address should be assigned as a static
address only when the CCC request returns success. This commit fixes the
issue.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-03-07 20:24:04 +01:00
Alex An
fbb75862a1 drivers: retained_mem: Fix using multiple nRF retained memory regions
Fixes an error when using multiple nRF retained memory regions caused by
a missing separating comma.

Signed-off-by: Alex An <aza0337@auburn.edu>
2025-03-07 20:23:42 +01:00
Kiara Navarro
3342ef3fa7 drivers: charger: unify log level
Instead of using CONFIG_LOG_DEFAULT_LEVEL, use explicitly charger log
level CONFIG_CHARGER_LOG_LEVEL for all hardware charger supported.

Signed-off-by: Kiara Navarro <knavarro@paltatech.com>
2025-03-07 20:22:52 +01:00
Jilay Pandya
d26396c556 drivers: sensor: shell: fix logically deadcode issue
sca finds the code to be logically dead considering the size of long
to be 4 bytes.
- Solution: use uint64_t type for the variable `value`.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-07 20:22:10 +01:00
Jilay Pandya
07fc70a697 drivers: usb_c: rt1715: fix uncheck return value cid issue
fix `gpio_add_callback` unchecked return value issue

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-07 20:21:22 +01:00
Hank Wang
09d6197003 drivers: sensor: tmp1075: remove redundant module name in log message
The tmp1075 driver already registers a log module using
LOG_MODULE_REGISTER(TMP1075, CONFIG_SENSOR_LOG_LEVEL).
This ensures that all log messages are prefixed with "TMP1075".
The existing LOG_ERR message redundantly includes "tmp1075",
which is unnecessary.

Signed-off-by: Hank Wang <wanghanchi2000@gmail.com>
2025-03-07 20:20:46 +01:00
Ying Zhang
6b16d10342 drivers: Bluetooth: nxp: not power off BLE controller when bt disable
remove the power off BLE controller function since the hci_reset cmd
is enough, also for wifi-ble coex scenario, need to maintain BLE controller
for some info in SMU region

Signed-off-by: Ying Zhang <ying.zhang_2@nxp.com>
2025-03-07 20:19:14 +01:00
Jilay Pandya
1f1bec86f3 drivers: stepper: shell: add stop function
Add stop function to stepper shell. align the function order to match
the one in __subsystem stepper_driver_api struct

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-07 20:17:38 +01:00
Jilay Pandya
99cce692c2 drivers: stepper: gpio: implement stop function
Implement sample stop function and update enable function

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-07 20:17:38 +01:00
FILLIOT Louis
c77127d657 Bluetooth: hci: added h4_close function
Inside the hci driver API in h4.c, there were no
API function allowing to close the bluetooth
interface, as there were close function defined
for other bluetooth hci driver.

The function disables Bluetooth reception and
sending, and calls a weak function allowing
to implement user specific behaviors
while shutting down bluetooth interface

Signed-off-by: FILLIOT Louis <l.filliot@lacroix.group>
2025-03-07 20:17:10 +01:00
Alberto Escolar Piedras
78f800642a drivers/ethernet/eth_native_posix: Rename to eth_native_tap
Rename this driver to eth_native_tap, including renaming all its
options.
The old options remain until v4.4, but as deprecated.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 20:10:38 +01:00
Aksel Skauge Mellbye
b25acabb70 drivers: flash: silabs: Add DMA read support
Enable support for using DMA to read from flash.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-07 20:02:26 +01:00
Aksel Skauge Mellbye
dba1c4bbbe drivers: flash: silabs: Add low power write support
Add low-power-write property to MSC device tree node, set
MSC_WRITECTRL_LPWRITE if enabled.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-07 20:02:26 +01:00
Aksel Skauge Mellbye
4970e2a196 drivers: flash: silabs: Add DMA write support
Enable support for using DMA to write to flash.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-07 20:02:26 +01:00
Aksel Skauge Mellbye
1de48c36ec drivers: flash: silabs: Introduce Silabs Series 2 flash driver
Introduce separate flash driver for Silabs Series 2. This driver
is forked from the Gecko flash driver with no changes outside of
formatting and naming.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-07 20:02:26 +01:00
Andre Heinemans
da3d029b14 drivers: firmware: scmi: add nxp specific processing
An option is added to allow vendor specific processing at
scmi_shmem_write_message() and scmi_shmem_read_message().
Additionally code has been added specific to NXP which has
some extended validation features.

Signed-off-by: Andre Heinemans <andre.heinemans@nxp.com>
2025-03-07 20:02:17 +01:00
Aksel Skauge Mellbye
c31ea5bf9d drivers: comparator: silabs: Use pm_device_driver_init
Enable PM device support by making use of the pm_device_driver_init
helper.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-07 20:02:07 +01:00
Adrian Bonislawski
374f80a917 drivers: dai: intel: remove DMIC IRQ handling
This patch will disable DMIC IRQ handling in DMIC driver
because it is now managed by Mic Privacy driver

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
2025-03-07 20:01:06 +01:00
IBEN EL HADJ MESSAOUD Marwa
f0b58a92e6 drivers: ethernet: remove ETH_STM32_HAL_MII
Removed `ETH_STM32_HAL_MII` configuration option
from `Kconfig.stm32_hal`.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-07 19:57:59 +01:00
IBEN EL HADJ MESSAOUD Marwa
c8672fa649 drivers: ethernet: Update Ethernet PHY mode and speed configuration
- Added macros `STM32_ETH_PHY_MODE` to determine
  the PHY mode and speed from the `phy_connection_type`
  property in the device tree.
- Updated the `eth0_data` structure to use `STM32_ETH_PHY_MODE`
  for setting the media interface.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-07 19:57:59 +01:00
Pisit Sawangvonganan
84bc26eeec drivers: gpio: shell: streamline code
Streamline code in multiple places as follows:
- Remove redundant initialization of `ret` to `0`,
  as it is immediately assigned a value.
- Add `len` to store the result of `strlen(argv[ARGV_CONF])` to avoid
  multiple calls to `strlen` within the `for-loop` in `cmd_gpio_conf`.
- Merge separate `shell_print` calls by including a newline `\n`.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-03-07 19:57:50 +01:00
Fabio Baltieri
3d24b8b552 gpio: shell: use the first nodelabel when available
Use the first nodelabel rather than the node name when available for
shell completion as well as "gpio info". This label is always set gpio
nodes as that's what's used for references by device nodes, there may be
some case where a node has multiple labels for some reason but for a
human I reckon it still makes more sense to suggest a label rather than
the address.

This means that the commands would use, for example "gpioa" rather than
"gpio@58020000".

Fall back to the normal node name if there's no label set or if dt
metadata is not enabled.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-03-07 19:57:07 +01:00
Dan Collins
464abe7a25 sensor: st: lis3mdl: Add support for device power management
This commit adds support for device power management to the LIS3MDL
magnetometer driver.

Signed-off-by: Dan Collins <dan@collinsnz.com>
2025-03-07 19:56:45 +01:00
Alberto Escolar Piedras
6013642982 drivers: nsos: Use native simulator errno conversion
Now that the native simulator has a common version of the error
conversion let's use that instead of a version specific for the
NSOS code.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:56:30 +01:00
Adrian Bonislawski
b09827305e drivers: audio: disable dmic irq if requested
This will correctly disable dmic irq if requested

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
2025-03-07 19:56:20 +01:00
Ibrahim Abdalkader
33717f9e93 drivers: display: display_stm32_ltdc: Add support for shared multi-heap.
Add support for using shared multi-heap (when available) to allocate
the display's framebuffer. This change allows the driver to co-exist
with other drivers that use shared multi-heap (such as video_common.c).

Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
2025-03-07 19:56:14 +01:00
Khoa Nguyen
0661d65689 drivers: hwinfo: Initial hwinfo driver support for Renesas RA
Initial hwinfo driver support for Renesas RA

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-03-07 19:55:41 +01:00
Titan Chen
865b8aa91d drivers: wdog: add Realtek RTS5912 wdog driver
Port Realtek RTS5912 wdog driver to Zephyr.

Signed-off-by: Titan Chen <titan.chen@realtek.com>
2025-03-07 19:52:17 +01:00
Krzysztof Chruściński
074215a30f drivers: clock_control: nrf: Move NRF_PERIPH_GET_FREQUENCY
Move macro from nrf_clock_control.h to soc_nrf_common.h. Clock control
header fetches many dependencies (e.g. onoff.h) so move macro to more
low level header.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-07 19:52:10 +01:00
Xinyu Hong
0c9b7eb9d4 drivers: wifi: nxp: Support wifi ap disconnect
For embedded supplicant case add process to
support wifi ap disconnect station.

Signed-off-by: Xinyu Hong <xinyu.hong@nxp.com>
2025-03-07 19:52:00 +01:00
Elmo Lan
40c590fad7 driver: bbram: add bbram driver for rts5912
Add bbram driver for Realtek rts5912.

Signed-off-by: Elmo Lan <elmo_lan@realtek.com>
2025-03-07 19:51:34 +01:00
Marcio Ribeiro
216f9dafcc soc: esp32: add extended advertising support
Adds extended advertising support to:
- esp32s2
- esp32c3

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-03-07 19:51:16 +01:00
Robert Budai
c55204f761 drivers: gpio: extend max14916 to max14915
The MAX14915 has eight high-side switches specified to deliver up to
700mA continuous current with simlar register map and diagnostics
parameters to MAX14916.

Documentation:
https://www.analog.com/en/products/max14915.html

Signed-off-by: Robert Budai <robert.budai@analog.com>
2025-03-07 19:51:07 +01:00
Florijan Plohl
f519e3e498 drivers: ethernet: Add TI DP83867 eth phy driver
Add initial driver for TI DP83867 Ethernet PHY. Includes dts binding.

Signed-off-by: Florijan Plohl <florijan.plohl@norik.com>
2025-03-07 19:51:02 +01:00
Ryan McClelland
b495907ae5 drivers: i3c: cleanup target config descrition and add inline helpers
It shouldn't be possible to just 'enable' target mode of a device.
It is required by the specification to perform a handoff or request to
become a target or controller from the active controller. Not to just flip
a switch internally. Can the parameter from `enable` to `enabled` to report
if it is currently a target or a controller otherwise.

Also, add inline helpers for `i3c_config_get` and `i3c_configure` to ensure
the proper struct is passed in.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-03-07 19:50:08 +01:00
Ryan McClelland
93099e303e drivers: i3c: run clang-format on i3c_common.c
Run clang-formatt on i3c_common.c

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-03-07 19:50:08 +01:00
Dominik Chat
93d15996e9 drivers: bluetooth: hci: Add retries for IPC interface
Add HCI IPC retry handling in case of full IPC
queue. This mechanism improves reliability.

The ipc_service_send can return -ENOMEM in case
of full queue. If this happens the retries are
executed in order to wait for queue to empty
and not drop messages.
If the retry mechanism reaches maximum then
the error code is passed back to the host.

The change should improve the handling of
passing messages to full ipc and reduce
dropping of packets.

Signed-off-by: Dominik Chat <dominik.chat@nordicsemi.no>
2025-03-07 19:49:15 +01:00
Mahesh Mahadevan
268af3817d drivers: nxp_usb: usb_dc_mcux error condition updated
This driver is no longer maintained. So remove the
error condition to have a build error for undefined
platforms.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-03-07 19:48:38 +01:00
Ram Mahesh
72c0bea73c drivers: ethernet: stm32: Execute get_phy() only if mdio is supported
Add condition to execute get_phy() api if only mdio is supported.

Signed-off-by: Ram Mahesh <rammaheshram1234@gmail.com>
2025-03-07 19:48:28 +01:00
Ram Mahesh
0691f761f8 drivers: ethernet: stm32: add get_phy() support
implementation of get_phy() added.

Signed-off-by: Ram Mahesh <rammaheshram1234@gmail.com>
2025-03-07 19:48:28 +01:00
Emilio Benavente
5e35836922 boards: nxp: mcxw7x: Add FXLS8964 Sensor Support
Added FXLS8964 Accel Sensor Support for the
mcxw71 and mcxw72 devices.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-03-07 19:48:18 +01:00
Margherita Milani
c7b65cb4e0 apds9253: Add measurement rate set attribute
Allow to set attribute of the measurement rate of the apds9253. This
must be done setting the sampling frequency (in Hz).

Signed-off-by: Margherita Milani <margherita.milani@amarulasolutions.com>
2025-03-07 19:47:51 +01:00
Michael Trimarchi
4e296ab7c9 apds9253: Add gain set attribute
Allow to set attribute of the gain of the apds9253. The gain
is applied to all the channels.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Margherita <margherita.milani@amarulasolutions.com>
2025-03-07 19:47:51 +01:00
TOKITA Hiroshi
905b18f3d7 drivers: clock_control: Calling tick_start directly to start wdt
`watchdog_start_tick` is a just wrapper for `tick_start`.
To simplify, changing it to call directly.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2025-03-07 19:47:41 +01:00
Francois Laplante
f8d4f80f83 drivers: spi: silabs: eusart: Add pm support
Add device policy and runtime power management support in
silabs spi eusart driver.

Signed-off-by: Francois Laplante <frlaplan@silabs.com>
2025-03-07 19:47:21 +01:00
Francois Laplante
8dad73bf47 drivers: spi: silabs: eusart: Asynchronous support
Add support for asynchronous transfer in silabs eusart spi driver.

Signed-off-by: Francois Laplante <frlaplan@silabs.com>
2025-03-07 19:47:21 +01:00
Julien Panis
fa8d5177c1 drivers: crypto: Add support for cc23x0 AES
Add support for AES module to cc23x0 SoC. The driver supports the
following modes:
- ECB encryption only (since decryption is not supported by the HW)
- CTR
- CCM

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
Signed-off-by: Julien Panis <jpanis@baylibre.com>
2025-03-07 19:47:11 +01:00
Mathieu Choplain
5ef21f3af2 drivers: timer: cortex_m_systick: support SysTick reset in low-power mode
Modify the Cortex-M SysTick driver to work when the SoC resets SysTick
in low-power mode. This adds an invisible Kconfig symbol that must be
selected by SoCs with such behavior.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-03-07 19:46:34 +01:00
Mathieu Choplain
006d6e5cb7 drivers: timer: cortex_m_systick: add hook-based LPM timer support
Add support for a hook-based low-power mode timer to the Cortex-M SysTick
driver, in addition to the existing Counter API-based timer. This is useful
on platforms such as the STM32WB0 where the wake-up timer is too limited
for a Counter API driver to be implemented on top of it.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-03-07 19:46:34 +01:00