Commit graph zephyr/drivers
Author SHA1 Message Date
Francois Ramu
91f1d55fff drivers: mspi: stm32 ospi driver no check on compatible child
No need to check the compatible of the nor-flash-controller
connected as a child node of the mspi controller.
Several compatible are possible, including "zephyr,emul-device-mspi"

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-09-18 13:53:32 +01:00
Francois Ramu
87550c7a01 drivers: mspi: stm32 ospi controller can also write in MemoryMapped
Add the write operation in MemoryMapped mode.
This depends on the permission bit of the xip-config and on the cmd sent
Write in MemoryMapped mode with MSPI_TX only for MSPI_NOR_CMD_PP_xxx
Factorize the read/write operation in Memory Mapped mode
like the mspi_stm32_xspi driver does.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-09-18 13:53:32 +01:00
Anuj Deshpande
56162c669a drivers: serial: ns16550: add a 16450 variant option
Add UART_NS16550_VARIANT_NS16450 to run the controller with FIFOs
disabled. This is for hardware whose FIFO-mode receive interrupts do
not work: on the C-DAC THEJAS32, neither the receive trigger level nor
the character timeout ever raises an interrupt, so received data sits
in the FIFO unnoticed. In 16450 mode the received data available
interrupt is raised for every character.

The FIFO detection already present in the driver handles the rest: with
FIFOs disabled the IIR FIFO-enabled bits read back zero and the FIFO
size is treated as one byte.

Signed-off-by: Anuj Deshpande <anuj@makerville.io>
2026-09-18 13:51:15 +01:00
Anuj Deshpande
b2ae094c5a drivers: gpio: add C-DAC THEJAS32 GPIO driver
Add a GPIO driver for the two 16-pin GPIO controllers on the C-DAC
THEJAS32 SoC. Pin data is accessed through address masking, where bits
[17:2] of the address select the pins a data access operates on, so
individual pins are set and cleared without read-modify-write. The
direction register sits above the data window at offset 0x40000.

The controllers have no pull resistors and pin interrupts are not yet
wired to the SoC interrupt controller, so both are reported as
unsupported.

Signed-off-by: Anuj Deshpande <anuj@makerville.io>
2026-09-18 13:51:15 +01:00
Anuj Deshpande
51d5151119 drivers: interrupt_controller: add C-DAC THEJAS32 interrupt controller
Add a driver for the C-DAC THEJAS32 interrupt controller. It is a simple
second-level aggregator that ORs the SoC peripheral interrupt sources
into the RISC-V machine external interrupt line. Unlike a RISC-V PLIC it
has no per-source priority and no claim/complete protocol: it exposes a
single enable bitmask and a single (enabled and pending) status bitmask,
and a source is cleared by servicing the peripheral that raised it.

The driver registers as a second-level interrupt aggregator and exposes
enable/disable/is-enabled helpers for the SoC interrupt-management code
to route level-2 interrupts to.

Register definitions were derived from the open-source Taurus SDK
(https://github.com/rnayabed/taurus).

Signed-off-by: Anuj Deshpande <anuj@makerville.io>
2026-09-18 13:51:15 +01:00
JaeHwan Jin
2ea8591d0b drivers: ethernet: add WIZnet W5100S Ethernet driver
Add a driver for the WIZnet W5100S standalone 10/100 Ethernet
controller with an SPI interface. The driver uses socket 0 in MACRAW
mode as the raw Ethernet MAC for the Zephyr networking stack.

The W5100S uses a flat register map with an opcode-first SPI frame and
supports N-byte burst read and write operations. Read link state from
PHYSR0 and program the source MAC after unlocking NETLCKR.

Add the concrete binding on top of the shared WIZnet Ethernet helper,
wire the build, extend build_all SPI coverage, and add the release note
entry for the new compatible.

Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
2026-09-18 13:50:52 +01:00
JaeHwan Jin
0953aac3e3 drivers: ethernet: wiznet: check register read return values
A failed read leaves its destination untouched, and every caller used
the value anyway. Check the reads and stop instead.

- wiznet_command(): S0_CR, the poll exit condition
- wiznet_tx(): S0_TX_WR, the TX ring offset
- wiznet_rx(): S0_RX_RSR and S0_RX_RD, the RX ring pointer, and the
  frame body, which frees the packet it had already allocated
- wiznet_check_for_ir(): S0_IR, written back to clear the interrupt.
  Reports no interrupt, so the poll thread checks the link instead
- wiznet_set_config(): S0_MR, written back to toggle MAC filtering
- w5500_init() and w6100_init(): RTR
- w6100_clear_pending(): SLIR, written back to clear the interrupt

Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
2026-09-18 13:50:52 +01:00
JaeHwan Jin
64f333b95b drivers: ethernet: wiznet: select GPIO where the pins are used
The reset and interrupt lines come from the devicetree, so a build that
declares either needs the GPIO driver. Only the W6300 asked for it, and
it asked unconditionally.

Take GPIO on each controller when its own compatible carries one of the
two properties. The W6100 and the W6300 mark int-gpios required, so for
those the condition always holds.

Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
2026-09-18 13:50:52 +01:00
JaeHwan Jin
7ea021c5f6 drivers: ethernet: wiznet: share the Kconfig options
The WIZnet drivers carried identical thread, timeout and period options
under a per-chip prefix. Replace them with one ETH_WIZNET_ set.

The per-instance config then no longer needs to carry those values, so
read them where they are used and drop them from the device macro.
Only the reset timings stay in the struct, since those differ per chip.

Guard the shared options with ETH_WIZNET, which every driver in this
directory takes, rather than a list of the drivers that has to grow with
each new chip. ETH_WIZNET_CORE stays for the shared implementation,
which the W6300 does not use.

Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
2026-09-18 13:50:52 +01:00
JaeHwan Jin
f4fbee2d47 drivers: ethernet: wiznet: move the W6100 onto the shared core
Move the W6100 driver onto the shared MACRAW core and describe the
register and interrupt differences through the per-chip tables. The
build_all SPI overlay now covers the W6100 path.

Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
2026-09-18 13:50:52 +01:00
JaeHwan Jin
fc178cae23 drivers: ethernet: wiznet: add a shared MACRAW core
Add a shared MACRAW framework for the WIZnet standalone Ethernet
controllers and move the W5500 driver onto it.

The shared layer keeps the packet path and common control flow in one
place while the chip driver supplies the SPI framing and register layout.
This reduces the duplicated W5500-specific code without changing the
observable behavior of the driver.

Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
2026-09-18 13:50:52 +01:00
JaeHwan Jin
389cafa729 drivers: ethernet: move WIZnet drivers into a vendor subdirectory
Move the existing W5500, W6100, and W6300 drivers under
`drivers/ethernet/wiznet` and route the parent Kconfig and CMakeLists.txt
through a vendor subdirectory.

Fold the per-chip Kconfig fragments into a single `wiznet/Kconfig` file so
the subtree matches the layout used by other vendor directories under
`drivers/ethernet`.

No functional change is intended.

Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
2026-09-18 13:50:52 +01:00
Yves Wang
e7726864e1 drivers: watchdog: mcux_wwdt: reject an inverted timeout window
install_timeout() derives the window value by subtracting the lower
window bound from the timeout, both unsigned, so a config with
window.min above window.max underflowed into a huge window value instead
of being rejected. Validate the window before converting it.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-09-18 11:19:25 +01:00
Yves Wang
55839fc3d8 drivers: watchdog: mcux_wwdt: fix callback not being cleared
install_timeout() only stored the callback inside the branch taken for a
non-NULL one, so installing a timeout without a callback after a
disable() silently kept the previously installed one, and a caller that
deliberately drops its callback would still be called back. Assign it
unconditionally and turn the unsupported combination into an early
return.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-09-18 11:19:25 +01:00
Yves Wang
9d5be5b33c drivers: watchdog: nxp_ewm: fix callback not being cleared
install_timeout() only stored the callback when a non-NULL one was
passed, so installing a timeout without a callback silently kept the
previously installed one, and a caller that deliberately drops its
callback would still be called back. Assign it unconditionally.

The same condition also compared cfg->window.min >= 0 on an unsigned
field, which is always true; drop it.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-09-18 11:19:25 +01:00
Youri Tils
7fcf6ce1bd drivers: ptp_clock: fixed PTP NETC clock div for RT118X
Currently only i.MX RT1189 had PTP NETC clock div set to 1.
But all RT118x devices need to have this for PTP to work properly.

Fixed by replacing condition with: CONFIG_SOC_SERIES_IMXRT118X

Signed-off-by: Youri Tils <youri.tils@nxp.com>
2026-09-18 11:19:21 +01:00
John Goble
bdeec11677 drivers: modem: quectel_eg915u: support changing the baud rate
The EG915U was the only Quectel part in vendor_modem_cellular without a
set_baudrate script, so it was stuck at the devicetree current-speed.
Add one, following cellular_quectel_bg9x.c.

AT+IPR takes effect immediately and is saved only by AT&W, which the
driver does not issue, so the change does not outlive a reset and the
devicetree speed stays authoritative. The AT manual also notes the rate
cannot be changed once multiplexing is up, which is why the script has
to run before the init script opens CMUX.

Tested on an EG915U at 460800, a documented rate for the part: CMUX and
PPP come up, L4 connects, ping is unchanged, and no UART or CMUX errors
are seen.

Assisted-by: Claude:claude-opus-5
Signed-off-by: John Goble <john.goble@nimbusdigital.com>
2026-09-18 11:19:16 +01:00
Benjamin Cabé
2d5a5c9777 drivers: mspi: stm32: declare the XSPI DMA bounce buffer heap need
The XSPI driver takes its DMA receive buffer from the system heap with
k_aligned_alloc(), so MSPI_DMA=y failed to link unless the application
sized HEAP_MEM_POOL_SIZE itself. Declare it on the driver and drop the
copies the STM32 test and sample confs carried.

Built tests/drivers/mspi/flash and samples/drivers/mspi/mspi_flash for
stm32h573i_dk and stm32l496g_disco; not run on hardware.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5
2026-09-18 11:18:01 +01:00
Kai Vehmanen
18f4914e69 drivers: dai: intel: uaol: implement get_properties_copy
Implement get_properties_copy(). This allows the driver to be used
from user-space threads.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-09-18 11:17:07 +01:00
Fin Maaß
02d30e69df drivers: ethernet: mdio: dwmac: use MDIO completion interrupt
DWC Ethernet QoS cores from version 5.00 on can signal MDIO transaction
completion with a MAC interrupt. As it is optional in the IP
configuration, use it only if MDIOIE sticks after enabling it and poll
the busy bit otherwise.

Tested on frdm_mcxe31b, which supports the MDIO completion interrupt.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-09-18 11:16:26 +01:00
Michal Frankiewicz
1dba55166f drivers: Replace SOC dependent clock kconfig with feature oriented one
Replaced SOC dependent kconfigs CONFIG_SOC_SERIES_NRF54H,
CONFIG_SOC_SERIES_NRF92 with feature oriented
CONFIG_HAS_MULTI_OPTION_CLOCKS, in clock related drivers.

Signed-off-by: Michal Frankiewicz <michal.frankiewicz@nordicsemi.no>
2026-09-18 11:16:19 +01:00
Johan Hedberg
caf9a9c174 Bluetooth: hci_silabs_siwx91x: Configure RF power from open()
Send the vendor-specific RF power mode command from within open(),
through the HCI lockstep helper and the driver's own send path, instead
of implementing the setup() driver API op on top of the Host's
bt_hci_cmd_send_sync(). The response is consumed in the driver's
receive callback by feeding received packets to the lockstep helper
before delivering them to the host.

The driver no longer calls any Host command API, so the configuration
now also runs in controller-only builds, and it no longer selects
BT_HCI_SETUP. A failing or unanswered command fails open() with an
error instead of failing the Host's HCI initialization later, and is
logged by the helper.

The raw send path is factored out of send() and takes the device, so
that it serves both the send() op and the helper. The helper is
initialized once, from the device init function, so that reopening the
transport does not re-initialize its semaphore.

Tested on siwx917_rb4338a with the peripheral_hr sample.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2026-09-18 11:15:45 +01:00
Muhammad Waleed Badar
2d5a055fb8 drivers: display: intel_multibootfb: use common framebuffer helpers
Use the common framebuffer configuration and data structures to
simplify the Intel multiboot framebuffer driver and replace the
driver-specific read and write implementations with the common
framebuffer helpers.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:14:39 +01:00
Muhammad Waleed Badar
fcfc799d11 drivers: display: qemu_ramfb: use common framebuffer helpers
Use the common framebuffer configuration and data structures to
simplify the QEMU ramfb driver and replace the driver-specific read
and write implementations with the common framebuffer helpers.

Update the ramfb devicetree binding to use simple-framebuffer.yaml
and rename the fwcfg property to firmware.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:14:39 +01:00
Muhammad Waleed Badar
e242dcfea4 drivers: display: rpi_bcm2711_fb: use common framebuffer helpers
Use the common framebuffer configuration and data structures to
simplify the Raspberry Pi BCM2711 framebuffer driver and replace
the driver-specific read and write implementations with the common
framebuffer helpers.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:14:39 +01:00
Muhammad Waleed Badar
ca95d40853 drivers: display: add common framebuffer read/write helpers
Add a shared display_framebuffer library providing generic
read/write implementations for framebuffer-backed display
drivers (config/data structs, DT helper macros, and
display_framebuffer_read()/write()).

Add CONFIG_DISPLAY_FRAMEBUFFER to gate the new source file.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:14:39 +01:00
Benjamin Cabé
4deb62cf19 drivers: sensor: lsm9ds0_mfd: fix magnetometer runtime ODR mapping
The runtime magnetometer ODR table started with a bogus 0 Hz entry
copied from the accelerometer table, shifting every M_ODR code by one
so each requested rate programmed the next one up, and 100 Hz wrote a
reserved code. Drop the leading entry so the array index matches the
CTRL_REG5_XM M_ODR encoding used by LSM9DS0_MFD_MAGN_DEFAULT_M_ODR.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-09-18 11:14:30 +01:00
Benjamin Cabé
6a44ab3089 drivers: sensor: lsm9ds0_mfd: convert DIE_TEMP to degrees Celsius
SENSOR_CHAN_DIE_TEMP returned the raw OUT_TEMP_[LH]_XM count directly
as val1, so a die a few degrees above the reference was reported as
hundreds of degrees. Scale the 12-bit right-justified two's complement
sample by its 8 LSB/degC sensitivity and apply the ~25 degC reference
offset, re-normalising the sign from bit 11.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
2026-09-18 11:14:30 +01:00
Vladyslav Goncharuk
80f24c58f1 sys: add boot FDT handling
Add a small OS helper for validating and copying a boot firmware device
tree blob into caller-owned storage.

The helper checks the FDT magic and total-size fields, verifies that
the caller-provided destination is large enough, copies the blob, and
returns 0 or a negative errno value. It does not own the destination
buffer or make policy decisions about which firmware argument contains
an FDT.

Add optional Xen support for preserving the boot device tree blob from
the first firmware argument when running on xenvm. The Xen driver code
owns the storage and policy, then exposes the copied data through
xen_fdt_get().

Signed-off-by: Vladyslav Goncharuk <vladyslav_goncharuk@epam.com>
Assisted-by: Codex:gpt-5
2026-09-18 11:14:23 +01:00
Martin Hoff
1b928aeca6 soc: silabs: enable new clock managers
This commit enables the new clock managers by switching the device
tree to use the new bindings. It also moves some initialization code
from the old clock manager to soc_early_init_hook() since some clocks
configuration needs to be done before the clock drivers are initialized.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2026-09-18 11:14:08 +01:00
Martin Hoff
ddd51dbdab drivers: clock_control: add SiWx91x HP/ULP/AON clocks managers
Introduce dedicated clock-control drivers for HP, ULP and AON domains
plus the shared helper API used by consumers, and refresh helper
documentation to match the current DT wiring and ownership model.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2026-09-18 11:14:08 +01:00
Martin Hoff
52bd30c9d3 dts: bindings: clock: Update SiWx91x clock IDs
Rename and extend SiWx91x clock IDs, then update the existing legacy
clock manager and current siwg917 DTS users to the new names.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2026-09-18 11:14:08 +01:00
Zhaoxiang Jin
e26865e3d7 drivers: serial: uart_mcux_lpuart: handle PM_DEVICE_ACTION_TURN_OFF
The driver rejects PM_DEVICE_ACTION_TURN_OFF with -ENOTSUP, so a power
domain cannot tell it that the supply is about to go away. Accept the
action instead. There is nothing to save: TURN_ON already rebuilds the
whole register bank from data->uart_config, and SUSPEND has stashed the
interrupt mask in data->pm_saved_int, so re-reading the mask here would
only record the zero SUSPEND left behind.

This matters on SoCs where a low-power state collapses the LPUART power
domain. Baud rate, format and enables are all lost, and without a TURN_OFF
the domain never gets to re-run TURN_ON: the first write after the window
stalls on a transmitter that is no longer clocked, or bus-faults on the
block.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-09-18 11:14:01 +01:00
Zhaoxiang Jin
be7458140d mfd: nxp: lp-flexcomm: handle PM_DEVICE_ACTION_TURN_OFF
The wrapper rejects PM_DEVICE_ACTION_TURN_OFF with -ENOTSUP, so a power
domain cannot tell it that the supply is about to go away. Accept the
action instead. There is nothing to save: both the reset line and
PSELID[PERSEL] are recomputed from the devicetree in TURN_ON, which the
power domain re-runs once the supply is back.

This matters on SoCs where a low-power state collapses the LP_FLEXCOMM
power domain. PSELID[PERSEL] clears, no communications function is
selected, and per the reference manual the selected module's
register-interface clock is then internally gated, so the next access to
a child (LPUART/LPSPI/LPI2C) register bus-faults. Re-running TURN_ON is
what puts the wrapper back.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-09-18 11:14:01 +01:00
Muhammad Waleed Badar
801d7accf0 drivers: usb: uhc_dwc2: increase uhc dwc2 stack size
Increase stack size of uhc dwc2 driver to accommodate
64-bit platforms

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:13:40 +01:00
Muhammad Waleed Badar
5703059fb2 drivers: usb: uhc_dwc2: add bcm2835 vendor quirks
Add a BCM2835-specific vendor quirk that acquires the VideoCore
power domain through the runtime PM API in pre_enable, disable
and shutdown, and translate physical addresses to the DMA bus
address space using dma_addr_xlate hook.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:13:40 +01:00
Muhammad Waleed Badar
2ad33408eb drivers: usb: uhc_dwc2: add DMA address translation quirk hook
Add uhc_dwc2_quirk_dma_addr_translation() call before each HCDMA write
(control setup/data, bulk) to allow platform-specific translation
of CPU-side buffer addresses into bus/DMA addresses (e.g. BCM2711
VC AXI +0xC0000000 offset) prior to being written into HCDMA.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:13:40 +01:00
Muhammad Waleed Badar
e8ac911d61 drivers: usb: uhc_dwc2: use mem_addr_t for DMA addresses
Use mem_addr_t for DMA buffer addresses in control and bulk
transfers instead of uint8_t *.

Cast the buffer pointers to mem_addr_t when assigning the DMA
address.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-09-18 11:13:40 +01:00
Kate Wang
31ddee5548 drivers: video: Add NXP PNG decoder driver
Add support for NXP PNG decoder hardware module. This driver provides
memory-to-memory (M2M) video transformation capability to decode PNG
compressed images into raw pixel formats.

Key features:
- Supports PNG input format (VIDEO_PIX_FMT_PNG)
- Resolution support: 1x1 to 1024x65535 pixels (1-pixel step)
- Fixed RGBA32 output format (VIDEO_PIX_FMT_RGBA32)
- Interrupt-driven operation with input/output buffer queues
- 8-byte buffer alignment requirement

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-09-18 11:13:31 +01:00
Hariharan Arumugam
612afeafbe drivers: pinctrl: microchip: update pinctrl driver for PIC32CK SG family
Updated pinctrl driver to support the PIC32CK SG family devices

Signed-off-by: Hariharan Arumugam <hariharan.arumugam@microchip.com>
2026-09-18 11:13:24 +01:00
Christoph Seitz
5e3c1a7b3c drivers: serial: add Infineon AURIX ASCLIN UART driver
Add UART driver for the ASCLIN module found on TC3x and TC4x.
Supports polling mode with configurable baudrate via the ASCLIN
fractional divider. Uses a private register header to handle
TXDATA/RXDATA layout differences between TC3x and TC4x.

Signed-off-by: Christoph Seitz <christoph.seitz@infineon.com>
Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2026-09-18 11:13:16 +01:00
Christoph Seitz
ceedce1b41 drivers: interrupt_controller: add Infineon AURIX interrupt router
Add driver for the AURIX Service Request Router (IR) which maps
peripheral service requests to CPU interrupt priorities. The IR
handles priority-based dispatch and is shared across TC3x and TC4x.

Signed-off-by: Christoph Seitz <christoph.seitz@infineon.com>
Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2026-09-18 11:13:16 +01:00
Christoph Seitz
a8d37b47ef drivers: timer: add Infineon AURIX STM system timer driver
Add system timer drivers using the STM (System Timer Module)
on TC3x and TC4x. The STM provides the kernel tick source for
scheduling and timeouts.

Signed-off-by: Christoph Seitz <christoph.seitz@infineon.com>
Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2026-09-18 11:13:16 +01:00
Conor Paxton
c605a9da50 drivers: serial: ns16550: handle no priority cell, interrupt specifier
The ns16550 driver unconditionally references DT_INST_IRQ(n, priority)
when registering the interrupt handler. This fails to compile when the
DT Nodes interrupt controller uses a single-cell specifier with no
priority cell (e.g., riscv,cpu-intc with #interrupt-cells = <1>).

Add a UART_NS16550_IRQ_PRIORITY helper macro that checks for the
priority cell existence using DT_INST_IRQ_HAS_CELL and falls back to 0
when it is absent, matching the existing pattern used by
UART_NS16550_IRQ_FLAGS for the optional flags cell.

Signed-off-by: Conor Paxton <conor.paxton@microchip.com>
2026-09-17 16:46:06 -07:00
Harini G
700ee15451 drivers: pwm: align Kconfig prompts with style guide
Reword PWM driver Kconfig prompts to follow the style guide
from #95132, using the "{Driver Name} PWM driver" format,
following the same pattern as the merged reset (#115694)
and dac (#116400) PRs.
Also fixes a copy-paste bug in Kconfig.xmc4xxx_ccu8,
which incorrectly referenced CCU4 instead of CCU8 in its prompt text.
Part of #7272.

Signed-off-by: Harini G <harinig1818@gmail.com>
2026-09-17 16:44:01 -07:00
Sylvio Alves
f812121f47 drivers: usb: uhc: dwc2: size the fifos for the port speed
The FIFO sizes were derived from full speed packet sizes regardless of
the speed the port came up at. On a high speed port a 512 byte bulk
OUT did not fit the non-periodic TX FIFO, so the channel halted with
only CHHLTD set and no status bit, which the OUT handler did not act
on: the transfer never completed and the caller timed out. The shared
RX FIFO was sized from a 256 byte packet and cannot absorb
back-to-back 512 byte IN packets, which overruns under a sustained
stream and reports transaction errors the driver does not recover
from.

Derive both the TX and the RX sizes from the speed the port reports,
and fail a transfer whose channel halts without a reason instead of
leaving the caller waiting.

Assisted-by: Claude:opus-5
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-09-17 16:41:36 -07:00
Sylvio Alves
2809d2de67 drivers: usb: uhc: dwc2: maintain cache around bulk dma buffers
Bulk transfers programmed HCDMA without any cache maintenance, so on
SoCs with a data cache the controller sent stale OUT payloads and the
CPU read stale IN data. A mass storage command block wrapper written
by the CPU never reached the device, which answered with a STALL.

Flush OUT payloads before starting the transfer and invalidate the IN
buffer both before the transfer and before the received data is
consumed.

Assisted-by: Claude:opus-5
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-09-17 16:41:36 -07:00
Sylvio Alves
69aa58b4e7 drivers: usb: uhc: dwc2: maintain cache around host dma buffers
The host driver programs HCDMA with buffers that live in cached
memory and never synchronised them, so on SoCs with a data cache the
controller read stale setup packets and the CPU read stale IN data.
On ESP32-P4 this surfaced as a spurious STALL on the first
GET_DESCRIPTOR, because the descriptor bytes fetched by DMA were
never visible to the CPU.

Flush the setup packet and OUT payloads before starting a transfer
and invalidate IN buffers before the data is consumed.

Assisted-by: Claude:opus-5
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-09-17 16:41:36 -07:00
Sylvio Alves
07665fd818 drivers: usb: uhc: add esp32p4 usb otg hs host quirk
Add the UHC vendor quirk for the ESP32-P4 USB-OTG 2.0 controller so
the DWC2 host driver can drive the high speed port. The quirk enables
the peripheral clock, brings up the UTMI PHY and connects the D+/D-
pulldown resistors required in host mode.

The PHY is initialised from pre_init because the HAL init resets the
PHY, which must not happen once the host port is powered.

Assisted-by: Claude:opus-5
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-09-17 16:41:36 -07:00
Benjamin Perseghetti
5634a7d9bb drivers: sensor: paa3905: enforce SPI mode 3 and the clock limit
The chip communicates in SPI mode 3 with a maximum clock of 2 MHz
(PAA3905E1-Q datasheet, section 6.0). The bus configuration left the
clock polarity and phase at mode 0, where every register read returns
the value shifted right by one bit: the product ID 0xA2 reads back as
0x51 and probing fails unless the devicetree node happens to set
spi-cpol and spi-cpha. Set both mode bits in the driver and assert the
clock limit at build time, so correct operation does not depend on
per-board devicetree flags and an out-of-spec node fails the build
instead of running the bus out of contract.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2026-09-17 13:07:31 -07:00