Commit graph zephyr/drivers
Author SHA1 Message Date
Zhaoxiang Jin
e148ad7c30 drivers: wuc: add support for sleepcon-wuc
add support for sleepcon-wuc

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-07-23 16:11:52 +02:00
Dhanoo Surasarang
0db903f479 drivers: memc: is66wv: Assign endianness from DT
Replace the hardcoded MSPI_XFER_LITTLE_ENDIAN value in
MSPI_DEVICE_CONFIG_INIT() with DT_ENUM_IDX_OR(), so the
init_cfg endian field is driven by the mspi-endian property
of the device node when present, falling back to big-endian
when the property is absent.

Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
2026-07-23 16:08:59 +02:00
Maureen Helm
ac1db7eab2 drivers: sensor: adxl345: fix over-sized buffer request in submit_fetch
adxl345_submit_fetch() requests sizeof(struct adxl345_dev_data) bytes
from the RTIO buffer pool, but only writes sizeof(struct adxl345_sample)
into it. The decoder also casts the buffer to struct adxl345_sample *.

This over-allocation wastes memory and prevents callers from using
reasonably-sized read buffers (e.g. 128 bytes) since adxl345_dev_data
can exceed 200 bytes when triggers or streaming are enabled.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-07-22 20:57:33 -04:00
Benjamin Cabé
e249f55286 drivers: watchdog: numaker: Fix inverted clock rate check
The period calculation bailed out when the clock rate was
non-zero, i.e. on every successful clock query, so the computed
period was always zero and install_timeout() always failed with
-EINVAL. Bail out on a zero rate instead.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-22 18:31:44 -04:00
Benjamin Cabé
0a4e5b6aaa drivers: ipm: esp32: Account for the shared memory split
The shared memory region is split in half between the two
directions, but the size check and max_data_size_get() used the
full region size, so a maximum-sized message overflowed the region
by half its size. Use the per-direction capacity.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-22 18:31:34 -04:00
Benjamin Cabé
ed4a7f0c62 drivers: mbox: nrf_vevif_event_tx: Accept the highest event channel
EVENTS_IDX_MAX is an inclusive maximum index, as used by the RX
sibling and both VEVIF task drivers, but the TX channel validation
used a strict comparison and rejected the last valid channel.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-22 18:31:18 -04:00
Benjamin Cabé
f82133b7d2 drivers: input: chsc5x: Make command buffers static const
The fixed I2C command buffers in the work handler, IC verify and PM
suspend paths are already const and never modified, so make them static
const to move them out of the stack into read-only memory.

Assisted-by: Claude:opus-4.8
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-22 18:31:11 -04:00
Flavio Ceolin
26264fffc1 drivers: tgpio: Check params in tgpio_pin_read_ts_ec
z_vrfy_tgpio_pin_read_ts_ec() was missing K_SYSCALL_MEMORY_WRITE checks
on the timestamp and event_count output pointers before passing them to
the kernel driver. A userspace thread with TGPIO device access could
supply supervisor-mode addresses and cause the driver to write into
arbitrary supervisor memory (write-what-where primitive).

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
2026-07-22 17:09:54 -04:00
Flavio Ceolin
4512189716 drivers: tgpio: Fix invalid userspace macros
The driver is using removed Z_ namespace userspace macros. Replace
them with K_ namespace.

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
2026-07-22 17:09:54 -04:00
Flavio Ceolin
48d694ad28 drivers: tgpio: Fix invalid header inclusion
Replace syscall_handler.h with internal/syscall_handler.h

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
2026-07-22 17:09:54 -04:00
Flavio Ceolin
331df881a8 smbus: Fix privilege escalation via callback syscalls
smbus_smbalert_remove_cb() and smbus_host_notify_remove_cb() were
exposed as syscalls, allowing userspace to pass a struct smbus_callback
pointer directly to kernel mode. Since struct smbus_callback contains a
function pointer (smbus_callback_handler_t), an application
could craft a callback struct to redirect kernel execution to an
arbitrary address.

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
2026-07-22 17:09:48 -04:00
Benjamin Cabé
fb46a16435 drivers: input: sbus: Give the UART config internal linkage
uart_cfg_sbus is only referenced within this file, so mark it static to
give it internal linkage.

Assisted-by: Claude:opus-4.8
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-22 17:09:00 -04:00
Dong Wang
74c7d27925 driver: ipm_sedi: validate inbound message length
Validate the payload length encoded in the incoming doorbell before
reading the IPC message buffer.

If the reported length exceeds IPC_DATA_LEN_MAX, log the malformed
message and acknowledge it immediately instead of reading past
incoming_data_buf or leaving the peer waiting for completion.

This keeps the valid receive path unchanged while safely discarding
oversized inbound messages.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2026-07-22 19:07:37 +01:00
Benjamin Santon
0ee70dc677 drivers: flash: max32: spixf: fix 4-byte address mode
Use flag_access_32bit from device data to select
MXC_SPIXF_Set4ByteAddr() or MXC_SPIXF_Set3ByteAddr() accordingly.

Signed-off-by: Benjamin Santon <benjamin.santon@analog.com>
2026-07-22 19:07:28 +01:00
Sylvio Alves
60c2edca8e drivers: wifi: esp32: report accurate send error codes
Every send failure returned -EIO, hiding whether the packet
could be retried. Return -ENOBUFS when the TX buffers do not
free up in time and -EMSGSIZE when the frame does not fit.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-22 19:07:11 +01:00
Sylvio Alves
d61ea3a0a0 drivers: wifi: esp32: retry tx when out of tx buffers
Frames were dropped as soon as the low-level TX buffers ran
out, losing data from bursty senders. Wait for an in-flight
frame to complete and retry, bounded by a timeout.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-22 19:07:11 +01:00
Benjamin Cabé
9425818f6f drivers: serial: uart_max32: Fix hw-flow-control property lookup
The init macro read the property with DT_INST_PROP_OR(index, ...)
instead of the _num macro parameter, so devicetree flow control was
always ignored.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-22 19:06:38 +01:00
Benjamin Cabé
715db1617a drivers: serial: uart_max32: Fix RX DMA transfer direction
api_rx_enable() configured the RX channel as MEMORY_TO_PERIPHERAL,
copied from the TX path. Use PERIPHERAL_TO_MEMORY.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-22 19:06:38 +01:00
Rafal Dyla
0ed97ee5e7 drivers: i2s: Changing init value for fsync_duration
Changed init valueof fsync_duration to align with other chips.

Signed-off-by: Rafal Dyla <rafal.dyla@nordicsemi.no>
2026-07-22 19:05:52 +01:00
Giovanni Piccari
6bfb38b8e7 drivers: modem: add Quectel BC66 and BC660K support
Add initial driver support for the Quectel BC66 and BC660K NB-IoT
cellular modems. The driver implements the standard Zephyr
cellular modem APIs and features network offloading via BSD sockets,
specifically supporting TCP and UDP clients. Device Power Management
(PM) support is also included.

Assisted-by: Claude:claude-sonnet-4.6
Assisted-by: Gemini:gemini-3.1-pro
Signed-off-by: Giovanni Piccari <giopiccari@outlook.com>
2026-07-22 19:04:34 +01:00
Anas Nashif
7a713dcdac Revert "drivers: timer: esp32_sys_timer: adopt the sys_clock_lock() scheme"
This reverts commit 7e681dbfbd.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
12c33a1e5a Revert "kernel: timeout: add sys_clock_unused() and decide sloppy idle centrally"
This reverts commit 926f7c4c0f.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
cd894d6c82 Revert "drivers: timer: stop the clock via sys_clock_unused()"
This reverts commit 269e2e618a.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
998053d6cd Revert "drivers: timer: mcux_os: track the no-deadline state in sys_clock_unused()"
This reverts commit e5903e4796.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
e0f04c2847 Revert "kernel: timeout: add sys_clock_idle_enter() for low-power idle handoff"
This reverts commit 7d0bb85adc.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
3d7be78899 Revert "kernel: timeout: drop the idle argument of sys_clock_set_timeout()"
This reverts commit fa9b836416.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
5e3755f258 Revert "drivers: timer: add generic tickless system-timer core"
This reverts commit ca254d5a1d.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
1682c93b77 Revert "drivers: timer: riscv_machine: use the generic timer core"
This reverts commit 23ad0c4df5.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
f56b5b7109 Revert "drivers: timer: arm_arch: use the generic timer core"
This reverts commit 772b66b9af.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
2093a8a64f Revert "drivers: timer: riscv_supervisor: use the generic timer core"
This reverts commit d367b01e88.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
702a2a91af Revert "drivers: timer: hpet: use the generic timer core"
This reverts commit 8f0b89f00d.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
5315b021df Revert "drivers: timer: mips_cp0: use the generic timer core"
This reverts commit 86b421a8e0.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
8c51154db3 Revert "drivers: timer: cmsdk_apb: make the cycle read wrap-safe"
This reverts commit 9a29bf5fac.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
cd2767565a Revert "drivers: timer: cmsdk_apb: derive min timeout from cycle rate"
This reverts commit b2a4659e5e.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
51f0dd7080 Revert "drivers: timer: cmsdk_apb: use the generic timer core"
This reverts commit b5e4dc82a4.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
d0c9d59879 Revert "drivers: timer: cortex_m_systick: derive min timeout from cycle rate"
This reverts commit 1b608c64c9.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
9e2830833e Revert "drivers: timer: cortex_m_systick: use the generic timer core"
This reverts commit d277540ce0.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
0a1a94fce9 Revert "drivers: timer: arcv2_timer0: use the generic timer core (non-SMP)"
This reverts commit 72b15164ac.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
fc68c1791a Revert "drivers: timer: renesas_ra_ulpt: use the generic timer core"
This reverts commit 2b432e151b.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
4735f03a72 Revert "drivers: timer: xtensa_sys_timer: use the generic timer core"
This reverts commit 4b0877cebe.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
4788eea582 Revert "drivers: timer: openrisc_tick_timer: use the generic timer core"
This reverts commit fe872510f5.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
2ed81af071 Revert "drivers: timer: leon_gptimer: use the generic timer core"
This reverts commit 112ed46350.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
5ae4107e5c Revert "drivers: timer: native_sim_timer: use the generic timer core"
This reverts commit e8163a1052.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
b78adcb5a0 Revert "drivers: timer: apic_tsc: use the generic timer core"
This reverts commit b63136f402.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
4fc41d796f Revert "drivers: timer: intel_adsp_timer: use the generic timer core"
This reverts commit 72d14283bd.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
5d84d97777 Revert "drivers: timer: esp32_sys_timer: use the generic timer core"
This reverts commit dde56fe906.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
30bde0ca80 Revert "drivers: timer: cortex_m_systick: keep the drift-comp VAL sample raw"
This reverts commit 1f4ecea7f6.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
aa789c4a99 Revert "drivers: timer: fix the equality-match compare catch-up livelock"
This reverts commit 0bbd4843fa.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
919a7f6aac Revert "drivers: timer: declare 64-bit counter widths to the generic core"
This reverts commit 11b5349051.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00
Anas Nashif
ddeb4c1989 Revert "drivers: timer: riscv_supervisor: declare the 64-bit counter width"
This reverts commit c7fa0dbf01.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-07-22 10:27:24 -04:00