Commit graph zephyr/drivers
Author SHA1 Message Date
Benjamin Cabé
bb5fdbd68c drivers: sensor: bme280: don't advertise humidity on BMP280 in RTIO
bme280_submit_sync() always set has_humidity, but the fetch helper only
fills comp_humidity when the chip is a BME280, so an RTIO read of a
BMP280 decoded uninitialized buffer bytes as a valid humidity sample.
Gate the flag on the chip ID so the decoder reports -ENOTSUP/-ENODATA,
matching bme280_channel_get() on the synchronous path.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:37 -04:00
Benjamin Cabé
345be80a87 drivers: sensor: bmm350: restore stream state on event error paths
bmm350_event_handler() transitions the stream state to BUSY but the
buffer-allocation and read-SQE preparation error paths returned without
restoring it, so a transient RTIO pool exhaustion left the stream stuck
in BUSY and every later DRDY event was ignored. Restore the ON state
before completing the SQE with an error, as the success path does.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:33 -04:00
Benjamin Cabé
65a18eeece drivers: sensor: bmm350: validate ODR/OSR before suspending device
set_mag_odr_osr() suspended the device before validating the caller's
oversampling value, so an invalid value returned -EINVAL with the chip
left in suspend mode, silently stopping measurements. Validate the
arguments first, and restore normal mode if the ODR/performance write
fails.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:33 -04:00
Benjamin Cabé
ff45ae8509 drivers: sensor: vcnl36825t: don't truncate 16-bit proximity data
channel_get() unconditionally masked the proximity result to 12 bits,
so values read in high-dynamic-output mode (PS_HD = 1), where PS_DATA
is a full 16-bit result, wrapped modulo 4096. Only apply the 12-bit
mask when high dynamic output is disabled.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:28 -04:00
Benjamin Cabé
b5bb6cb244 drivers: sensor: vcnl36825t: fix 8-pulse multi-pulse encoding
VCNL36825T_MPS_PULSES_8 encoded 4 in the 2-bit PS_MPS field at bits
[13:12], which overflowed into the adjacent PS_IT field: the sensor was
programmed for 1 pulse and a doubled integration time. Encode 3 (0b11)
as the datasheet specifies for 8 pulses.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:28 -04:00
Benjamin Cabé
c9560454d9 drivers: input: tma525b: fix inverted application mode check
tma525b_chip_init() only increments retry when a poll fails, and breaks
out of the loop before the increment. retry == 0 is therefore exactly the
case where the controller answered correctly on the very first read, yet
that is the condition used to report failure.

The result is inverted on both sides: a working panel that is ready after
the boot delay makes chip_init() return -ENODEV, so the device is never
ready and the touchscreen is dead, while a panel that never enters
application mode exhausts the loop and is reported as a success, leaving
tma525b_process() to fail forever with no diagnostic. A single call emits
both the "entered application mode" info message and the "failed to enter
application mode" error.

Track the successful exit explicitly instead of inferring it from the
retry counter. This also runs on every PM_DEVICE_ACTION_RESUME.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:23 -04:00
Benjamin Cabé
331be29d95 drivers: sensor: bmg160: configure INT pin as input, not interrupt flags
bmg160_trigger_init() passed GPIO_INT_EDGE_TO_ACTIVE to
gpio_pin_configure_dt(), which rejects interrupt flags and never set
the pin as an input. Pass GPIO_INPUT instead; interrupt trigger
configuration is already handled in setup_int().

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:19 -04:00
Benjamin Cabé
dd98124dde drivers: sensor: bmg160: write scaled any-motion threshold to THRES reg
bmg160_slope_config() computed the range-scaled threshold register
value (any_th_reg_val) but wrote the raw dps value to BMG160_REG_THRES,
so the any-motion threshold was wrong by a factor of 2000/range for any
full-scale range other than 2000 dps. Write the computed register value
instead.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:19 -04:00
Benjamin Cabé
853acb1c1e drivers: sensor: tsl2591: fix threshold overflow check truncation
The threshold conversion was computed in 64-bit arithmetic but
assigned to a uint32_t before the TSL2591_MAX_ADC bounds check, so
results of 2^32 or more wrapped to small values that passed
validation and programmed a wrong interrupt threshold. Keep the
value in a uint64_t until after the check and reject negative
sensor_value inputs, which previously wrapped to huge unsigned
values.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:13 -04:00
Benjamin Cabé
3ec68041e5 drivers: sensor: tsl2591: update cached gain only after register write
tsl2591_set_gain updated the cached gain scale (data->again) before
writing CONFIG, so a failed I2C update left the cache diverged from
hardware, skewing lux conversion and thresholds. Cache the new scale
only after a successful write, matching tsl2591_set_integration.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:13 -04:00
Benjamin Cabé
8931b21e78 drivers: sensor: tsl2591: preserve attr_set error on power restore
The exit path of tsl2591_attr_set() unconditionally overwrote ret with
the result of the power-on register update, so failed or unsupported
attribute writes returned 0. Keep the attribute error and only surface
the power-restore result when the attribute operation succeeded.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:13 -04:00
Benjamin Cabé
9da6555515 drivers: sensor: adxl367: fix FIFO sample count MSB bit
The FIFO watermark is a 9-bit value: 8 LSBs in FIFO_SAMPLES plus one
MSB bit in FIFO_CONTROL, so the MSB of the value is bit 8, not bit 9.
Testing BIT(9) meant watermarks of 256..511 sample sets wrapped modulo
256. Matches the Linux IIO adxl367 driver from ADI.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:07 -04:00
Benjamin Cabé
ac77a49949 drivers: sensor: adxl367: fix memset size in DIE_TEMP decode branches
The DIE_TEMP branches of the stream decoders cast data_out to
struct sensor_q31_data but zeroed it with
sizeof(struct sensor_three_axis_data), writing 8 bytes past the end
of a correctly sized caller buffer. Use the matching sizeof.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:07 -04:00
Benjamin Cabé
d7163331ea drivers: sensor: adxl367: support DIE_TEMP in one-shot frame count
The non-FIFO branch of adxl367_decoder_get_frame_count returned
-ENOTSUP for SENSOR_CHAN_DIE_TEMP even though one-shot reads always
encode temperature data and the decoder can decode it. Report one
frame for DIE_TEMP like the other supported channels.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:07 -04:00
Benjamin Cabé
0627bcec9c drivers: sensor: adxl367: fix truncation in streaming temp Q31 convert
The FIFO decode path divided the raw temperature delta by the 54 LSB/C
sensitivity using integer division before applying the 2^23 Q31 scale,
quantizing streamed temperatures to whole degrees. Scale first with an
int64 intermediate, then divide, so fractional degrees are preserved.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:07 -04:00
Benjamin Cabé
56ad06895a drivers: sensor: adxl367: use inactivity config for lower threshold
adxl367_attr_set_thresh() always copied activity_th.enable/.referenced
into the threshold passed to the setup helpers, so setting
SENSOR_ATTR_LOWER_THRESH programmed the INACT_EN/INACT_REF bits from
the activity configuration. Select the config source per attribute so
the inactivity path uses cfg->inactivity_th.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:07 -04:00
Benjamin Cabé
bf9f0644af drivers: sensor: adxl367: fix FIFO byte count in stream read
The FIFO entries register counts individual samples, but the 8B and
14B/12B_CHID byte-count computations used fifo_packet_cnt (entries
divided by samples per set) without multiplying back by the number of
samples per set, so only 1/N of the buffered FIFO data was read each
watermark event. Multiply by sample_numb as the 12B branch already does.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:07 -04:00
Benjamin Cabé
20fa630dc5 drivers: sensor: adxl367: fix FIFO full trigger check in decoder
The SENSOR_TRIG_FIFO_FULL case in adxl367_decoder_has_trigger()
tested the FIFO watermark status bit, duplicating the watermark case
and misreporting FIFO full events. Check ADXL367_STATUS_FIFO_OVERRUN
instead, matching the trigger mapping used by the stream code.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:07 -04:00
Benjamin Cabé
b49d4fd18b drivers: sensor: bmc150_magn: propagate oversampling attr errors
The SENSOR_ATTR_OVERSAMPLING case discarded the return value of
bmc150_magn_attr_set_rep(), so invalid repetition values, unsupported
channels and bus failures were all reported as success.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:03 -04:00
Benjamin Cabé
5169f1993d drivers: sensor: bmc150_magn: configure DRDY pin as input
gpio_pin_configure_dt() was called with GPIO_INT_EDGE_TO_ACTIVE, which
is an interrupt flag rejected by gpio_pin_configure() (assertion
failure with CONFIG_ASSERT=y) and leaves the pin direction unset.
Configure the pin as a plain input and check the result; edge selection
is already handled by setup_drdy() via
gpio_pin_interrupt_configure_dt().

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-08-23 14:42:03 -04:00
Fin Maaß
0759dc6623 ethernet: ptp: infineon: xmc4xxx: use snps,dwmac-ptp-clock
for the xmc4xxx add a ptp clock node
in the devicetree.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-23 14:41:51 -04:00
Benjamin Cabé
de17503453 drivers: fuel_gauge: composite: Store capacity on sensor fetch success
When composite_channel_get() succeeds (rc == 0) for
FUEL_GAUGE_FULL_CHARGE_CAPACITY_UAH or FUEL_GAUGE_DESIGN_CAPACITY,
the function previously skipped assigning the fetched sensor_val into
val->full_charge_capacity_uah or val->design_cap. Handle rc == 0 to
correctly populate the property.

Assisted-by: Antigravity:gemini-3.6-flash
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-08-23 14:41:44 -04:00
Benjamin Cabé
bfa60eef01 drivers: w1: ds2482-800: Persist runtime master configuration
The channel configure() helper rebuilt the config word from the
immutable base configuration on every call and applied only the
single bit being changed, so speed and strong pull-up settings
could not coexist and each bus lock reset them again. Track the
working configuration in the device data and mutate that, like the
ds2484 driver does.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-08-23 14:41:39 -04:00
Benjamin Cabé
2405b09f2e drivers: clock_control: npcm: Fix clock-change polling
The wait loop passed the HFCGCTRL register value to sys_test_bit(),
which expects a memory address, so the loop read from a wild address
instead of testing the CLK_CHNG bit. Test the register value with
IS_BIT_SET, as the npcx driver does.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-08-23 14:41:35 -04:00
Peter Buchegger
ee39aa8e89 drivers: usb: udc: stm32: recover isochronous OUT on incomplete transfer
The STM32 OTG (dwc2) core raises the incomplete-isochronous interrupt and
disables an isochronous endpoint when a transfer misses its (micro)frame,
for example when the endpoint ended up armed for the wrong even/odd frame.
The HAL handles this by disabling the endpoint and then invoking
HAL_PCD_ISOOUTIncompleteCallback(), but udc_stm32 never implemented it, so
the endpoint stayed disabled and was never re-armed.

As a result isochronous OUT reception stalls permanently after the first
missed frame: a UAC2 host-to-device (playback) stream delivers a few
zero-length packets and then goes idle, with the application seeing
data_recv with size 0. Isochronous IN (e.g. a UAC2 microphone) degrades
gracefully, so only the OUT direction was visibly broken.

Implement HAL_PCD_ISOOUTIncompleteCallback() to re-arm the pending
receive via HAL_PCD_EP_Receive(), which re-selects the correct even/odd
frame parity at arm time and resynchronises the endpoint. Recovering
isochronous IN requires going through the normal data-in completion path
and is left as a follow-up.

Verified on an STM32U575 (OTG-FS) UAC2 composite device: host playback now
reaches the peripheral continuously instead of stalling after a few frames.

Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Peter Buchegger <peter.buchegger7@gmail.com>
2026-08-23 14:41:26 -04:00
Juergen Werner
c9fd736909 drivers: led: add reset-gpio to relevant PCA953x
The newly added PCA9530, PCA9531 and PCA9532 have a reset gpio pin. This
patch handles it, if set in device tree.

Signed-off-by: Juergen Werner <j.werner@aduart.de>
2026-08-23 14:41:16 -04:00
Juergen Werner
c6c08198dc drivers: led: add DT bindings for other PCA953x
Add bindings for the already implemented
* nxp,pca9530
* nxp,pca9531
* nxp,pca9532

Signed-off-by: Juergen Werner <j.werner@aduart.de>
2026-08-23 14:41:16 -04:00
Juergen Werner
ffa1e46d43 drivers: led: implement other PCA953x devices
Extend PCA953x led driver implementation to include devices PCA9530,
PCA9531 and PCA9532 in addition to the original PCA9533.

Signed-off-by: Juergen Werner <j.werner@aduart.de>
2026-08-23 14:41:16 -04:00
Juergen Werner
7ab0c3146c drivers: led: generalize naming in pca953x
Replacing all mentions of PCA9533 to implement more devices. Also
prepare a generalized device definition for the introduction of further
DT_DRV_COMPAT.

Signed-off-by: Juergen Werner <j.werner@aduart.de>
2026-08-23 14:41:16 -04:00
Juergen Werner
6f1bcc3a50 drivers: led: rename pca9533 to pca953x
This is the preparation for a generalized implementation of the NXP
PCA953x LED dimmer series.

Signed-off-by: Juergen Werner <j.werner@aduart.de>
2026-08-23 14:41:16 -04:00
Grabowski Łukasz
51afa6180c drivers: display: uc81xx: add dtm_swap quirk for uc8253
UC8253 has an undocumented quirk that swaps DTM registers after every
refresh. It was confirmed with Waveshare support and with tests.

Tested with the Waveshare SKU22698 e-paper HAT (UC8253) and
Waveshare SKU17575 (UC8175), connected to a Nucleo F446RE
via SPI.

Signed-off-by: Grabowski Łukasz <lukasz.grabowski@pcosa.com.pl>
2026-08-22 19:19:59 -04:00
Grabowski Łukasz
e7d5a3b73d drivers: display: uc81xx: add border refresh control
This commit unifies border refresh logic for all drivers,
still allowing user to override CDI interval.
It settles for forcing Black2White LUT for border refresh.
It adds specific CDI function for uc8175, because it is handled
differently than in uc8176.
Since driver assumes auto-copy quirk enables when available it was fixed
to force it on init, when aplicable.

Tested with the Waveshare SKU22698 e-paper HAT (UC8253) and
Waveshare SKU17575 (UC8175), connected to a Nucleo F446RE
via SPI.

Signed-off-by: Grabowski Łukasz <lukasz.grabowski@pcosa.com.pl>
2026-08-22 19:19:59 -04:00
Grabowski Łukasz
f2191b2509 drivers: display: uc81xx: add assert for x alignment
Added assert check for pitch equal width, because chip expects
continuous data and driver does not modify the buffer.
Added assert check for x position and window width to be aligned to
pixel per byte value.

Tested with the Waveshare SKU22698 e-paper HAT (UC8253) and
Waveshare SKU17575 (UC8175), connected to a Nucleo F446RE
via SPI.

Signed-off-by: Grabowski Łukasz <lukasz.grabowski@pcosa.com.pl>
2026-08-22 19:19:59 -04:00
Grabowski Łukasz
90d3b350d8 drivers: display: uc81xx: fix pixel format, dtm logic, and minor bugs
This commit adds changes:
- mipi release on error
- check for ommited lut
- fix old/new data write to dtm logic
- check for undersized buffer on write
- change pixel format to MONO01
- rename shared functions for more generic name

Tested with the Waveshare SKU22698 e-paper HAT (UC8253) and
Waveshare SKU17575 (UC8175), connected to a Nucleo F446RE
via SPI.

Signed-off-by: Grabowski Łukasz <lukasz.grabowski@pcosa.com.pl>
2026-08-22 19:19:59 -04:00
Flavio Ceolin
4b7f98345d drivers: devmux: Fix userspace support
1) Define the driver API and consequently enable K_OBJECT for this type
   of device and fixes the build.
2) Check the device permission before executing code in kernel.

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
2026-08-22 19:19:51 -04:00
Pisit Sawangvonganan
0481016816 drivers: can: mcan: unify error label name to unlock
Rename 'err_unlock' label to 'unlock' in can_mcan_send() to align with
the error cleanup label naming convention used throughout the file.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-08-22 19:19:47 -04:00
Pisit Sawangvonganan
9cbf737617 drivers: can: mcan: simplify control flow around mutex unlocks
Simplify error handling and mutex unlock paths in can_mcan_set_timing(),
can_mcan_set_timing_data(), and can_mcan_enable_configuration_change()
by removing redundant 'goto unlock' jumps.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-08-22 19:19:47 -04:00
Pisit Sawangvonganan
938ffc648f drivers: can: mcan: remove unneeded zero-init in timing functions
Remove unnecessary zero-init of 'nbtp' and 'dbtp' in
can_mcan_set_timing() and can_mcan_set_timing_data(), as they are
immediately assigned complete values.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-08-22 19:19:47 -04:00
Marek Borowski
d436a8c8b5 drivers: Clear CCC and transfer status in Cadence
num_xfer is an output field the controller driver is contractually
required to populate - the struct i3c_ccc_payload documentation states
"It is expected for the driver to write to this after the transfer".
The Cadence RTIO driver does write it, but only from
cdns_i3c_rtio_irq_cmdd_emp(), which iterates the command responses
the IP actually retired. A command that is dropped without producing
a CMDR entry never updates num_xfer, and because sticky is only set
from responses that were seen, the transaction can still complete
successfully. The caller then reads a field the driver never wrote.

Added two helpers to i3c_cdns.c and call them before the transfer
is submitted.

Signed-off-by: Marek Borowski <marek@borowski.com>
2026-08-22 19:19:42 -04:00
Nicolas Pitre
a524228db9 drivers: timer: arm_arch: use the generic timer core
The free-running 64-bit system counter with its absolute compare
register is a COMPARE_ORDERED backend. The driver keeps
timer_driver_cycle_get() (the counter) and timer_driver_set_compare()
(set the comparator and unmask), and the core takes over the tick
accounting, the deadline math, the range clamp and the announce.
smp_timer_init() primes the per-CPU comparator through
timer_core_smp_prime().

The driver's own cyc_per_tick cache goes: with
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME the core precomputes the
value in timer_core_init().

The ISR keeps its hardware specifics: the Cortex-A9 erratum 740657
spurious-interrupt handling, and masking the level-asserted compare in
tickless mode, which the core's rearm unmasks again.

Declaring the counter's 64-bit width with TIMER_CORE_COUNTER_WIDTH
removes the driver's CONFIG_GDBSTUB-only widening of the cycle diff,
which existed only because the width was not stated.

timer_api and context pass on qemu_cortex_a53, UP and SMP.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2026-08-22 19:19:33 -04:00
Hsiu-Chi Tsai
8f3af2525f drivers: i2s: honour the configured timeout in i2s_buf_write()
i2s_buf_write() acquires its memory block with K_FOREVER, so on a
multithreaded build the two error codes it documents for that step can
never be produced: -ENOMEM because K_FOREVER does not return it, which
also makes the error branch below the call dead code, and -EAGAIN
because nothing ever times out. An application that exhausts the slab
blocks forever instead of being told. Without CONFIG_MULTITHREADING the
slab treats every timeout as no-wait, so only -EAGAIN is unreachable.

The userspace path has its own copy. z_vrfy_i2s_buf_write() allocates
the same way and then flattens whatever it gets to -ENOMEM, which was
harmless only because that branch was equally unreachable. Both copies
now use SYS_TIMEOUT_MS(), which already maps SYS_FOREVER_MS itself, and
both return the slab's errno unchanged, so the two paths agree.

k_mem_slab_alloc() produces exactly the two documented codes: -ENOMEM
when told not to wait, which is what a configured timeout of 0 becomes,
and -EAGAIN when the wait expires.

One consequence is worth stating rather than leaving to be discovered:
drivers already apply the same configured timeout when enqueueing the
block, so this call can now spend it twice, once acquiring and once
enqueueing. Making it a single end-to-end deadline would need a way to
pass the remaining time into i2s_write(), which the API has no room for
today, so it is documented as a per-stage bound instead.

The in-tree suites are unaffected: the loopback test prefills exactly
NUM_TX_BLOCKS blocks into a slab of NUM_TX_BLOCKS, so every acquisition
succeeds without waiting.

Fixes #113333

Signed-off-by: Hsiu-Chi Tsai <hctsai@linux.com>
2026-08-22 19:19:25 -04:00
Fin Maaß
f3612d124a drivers: ethernet: dwc_mac: add multicast filtering
Add multicast filtering to both cores. The filter is rebuilt from
the joined multicast addresses using net_eth_mcast_addr_foreach().
Hash filtering is used when the hardware supports it, otherwise the
addresses are perfect filtered against the spare MAC address
entries, receiving all multicast should they not fit. The mode can
be selected in Kconfig and defaults to hash filtering when
available.

Assisted-by: Claude Code:claude-fable-5
Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-22 19:19:05 -04:00
Brandon Breitenstein
8dafb9a897 drivers: i2c_dw: Fix HOLD_TIME_TO_TICKS divider
CONFIG_I2C_DW_CLOCK_SPEED is defined in MHz in Kconfig.dw however
the HOLD_TIME_TO_TICKS macro is assuming it is in Hz resulting in
any configuration of i2c_sda_hold_time_ns defaulting to 1 tick.

Signed-off-by: Brandon Breitenstein <brandon.breitenstein@intel.com>
2026-08-21 13:49:18 -07:00
Fin Maaß
163da96208 drivers: ptp_clock: nxp: qos: use common compatible
use the common "snps,dwmac-ptp-clock" compatible
for the ptp clock.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-08-21 13:48:27 -07:00
Tahsin Mutlugun
e9c68b152b soc: adi: max32: Support GPIO wake-up from backup mode
Manually trigger GPIO_IRQn after waking up from backup mode. Do not
disable retention ldo after waking up from backup mode as it causes
resets in standby mode.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2026-08-21 13:40:27 -07:00
Sadik Ozer
304983556d drivers: gpio: max32: Add gpio wakeup option
Any gpio can be used to wakeup device from sleep/deepsleep modes
This commit add this feature inside driver.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2026-08-21 13:40:27 -07:00
Hongquan Li
cbd8d359fe drivers: counter: esp32: fix LP timer int_st read on ESP32-P4
The LP_TIMER_INT_ST_ALARM macro special-cases only ESP32-C5 to read
int_st.soc_wakeup_int_st. ESP32-P4 has the same LP timer register
layout: its int_st register has no alarm field, only
soc_wakeup_int_st, so enabling the rtc_timer node on ESP32-P4 fails
to compile.

Extend the condition to cover ESP32-P4.

Signed-off-by: Hongquan Li <hongquan.li@processmission.com>
2026-08-21 13:38:03 -07:00
Keith Short
7436bc57e4 usbc: Replace tcpci_tcpm_get_status_register
Replace tcpci_tcpm_get_status_register() with type-safe, register-specific
helper functions.

Also fixed a bug in `tcpci_tcpm_get_snk_ctrl` and `tcpci_tcpm_get_src_ctrl`
where they were incorrectly passing the register address macro
`TCPC_REG_POWER_STATUS` instead of the enum `TCPC_POWER_STATUS` to the
old generic helper, which was causing those functions to always fail.

Fixes: #84719 #84725 #84732 #84736 #84746
Fixes: #84747 #84753 #90722 #90744 #90725

Assisted-by: Gemini CLI
Signed-off-by: Keith Short <keithshort@google.com>
2026-08-21 13:36:52 -07:00
Keith Short
c18792a4b5 usbc: Remove unused tcpc_get/clear_status_register API
Remove tcpc_get_status_register() and tcpc_clear_status_register()
from the TCPC API and driver implementations as they are unused.

Assisted-by: Gemini CLI
Signed-off-by: Keith Short <keithshort@google.com>
2026-08-21 13:36:52 -07:00
Brett Peterson
f5f18109e3 drivers: dma: new driver for pse84 axidmac
Adding a new DMA driver for the PSE84 AXIDMAC hardware based on the
Infineon PDL driver. The AXIDMAC is a high performance DMA controller
that uses the AXI bus. It is typically used for large memory-to-memory
transactions.

Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Brett Peterson <brett.peterson@infineon.com>
2026-08-21 13:36:33 -07:00