Configure DCMI DMA peripheral accesses as 32-bit words, matching the
memory data width and the DCMI data register.
Signed-off-by: Daniele Cloralio <d.cloralio@arduino.cc>
Configure DCMI DMA peripheral accesses as 32-bit words, matching the
memory data width and the DCMI data register.
Signed-off-by: Daniele Cloralio <d.cloralio@arduino.cc>
Make the native_sim Wi-Fi driver devicetree-instantiated and opt-in, and
take its MAC address from devicetree instead of Kconfig.
Previously CONFIG_WIFI_NATIVE_SIM defaulted to y for any ARCH_POSIX build
with the supplicant, so it was pulled into unrelated builds (e.g.
tests/net/wifi/wifi_nm and tests/net/wifi/configs). The fallback MAC was
chosen by Kconfig, and CONFIG_WIFI_NATIVE_SIM_SUPPLICANT_CONF_FILE was
dead (host_wifi_drv_init() ignored it now that only the Zephyr
supplicant runs).
Add a "zephyr,native-sim-wifi" binding (including ethernet-controller.yaml
for the MAC properties) with a required "host-interface" string, and
instantiate the driver with DT_INST_FOREACH_STATUS_OKAY /
ETH_NET_DEVICE_DT_INST_DEFINE. The driver now depends on
DT_HAS_ZEPHYR_NATIVE_SIM_WIFI_ENABLED, so it is built only when a node is
present - add one via an overlay to enable it.
The host interface name comes from the "host-interface" property and the
fallback MAC from "local-mac-address" / "zephyr,random-mac-address" (the
driver still overrides it with the host interface MAC at init). Remove
the WIFI_NATIVE_SIM_INTERFACE_COUNT, _DRV_NAME, _RANDOM_MAC, _MAC_ADDR
and _SUPPLICANT_CONF_FILE options and the now-unused config_file argument
of host_wifi_drv_init().
The interop test gains a native_sim.overlay defining the node
(host-interface = "zwifi", random MAC).
Assisted-by: Claude:claude-opus-5
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
The B1 implements two LPTIMER channels sharing a single register block
at 0x42001000, each occupying a 0x14 byte slice of it, and drives them
from the same VBAT clock mux as the Ensemble family.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Silesh C V <silesh@alifsemi.com>
The LPTIMER is a Synopsys DesignWare APB timer, already supported
upstream by the snps,dw-timers driver. The binding describes one timer
per node, so each channel gets a node of its own: the four channels
share a single register block at 0x42001000, each occupying a 0x14 byte
slice of it.
E4, E6 and E8 implement four channels and the E1C series two, so the
first two go in the common layer and the remaining two alongside the
other E4/E6/E8 peripherals. As with the rest of the Ensemble devicetree,
interrupt routing lives in the controller-specific _nvic_irq and
_gic_irq files.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Alif SoCs feed some peripherals from two clocks in the always-on power
domain (PD-0) that the driver cannot describe today: S32K_CLK and
128K_CLK. Add parent identifiers for both and describe them in
devicetree.
S32K_CLK is the output of the ANA MISC_CTRL[SEL_32K] multiplexer, which
runs it from either the LFRC or the LFXO oscillator. Describe the two
oscillators as fixed clocks and the multiplexer output as a node
switched to one of them, so that the rate follows the selection instead
of being restated as a literal. SEL_32K is configured outside Zephyr
today. The bit resets to the LFRC, which is what the multiplexer node
records. A board or application which needs to select the LFXO instead
has to repoint the node at it.
128K_CLK is derived from the LFRC rather than being an independent
oscillator and runs at four times its rate, so it is described as a
fixed factor of that node.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Describe a clock multiplexer that carries no register of its own. The
node records which input the multiplexer is switched to, so that
consumers of its output can resolve the rate from devicetree instead of
restating it as a literal.
Its first user, the S32K_CLK multiplexer on the Ensemble and Balletto
SoCs, follows in the next commit.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Silesh C V <silesh@alifsemi.com>
The part carries 128 KB of instruction and 128 KB of data tightly coupled
memory, at the addresses the BSP uses in system.c, and neither was in the
devicetree. The RA8D1 describes its own the same way.
Assisted-by: Claude:opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add the clocks of the EMAC: the AIPS platform clock driving the register
interface and the MC_ME gates of the transmit, receive and timestamp
domains. Name them like on the MCXE31x EMAC node, which integrates the
same controller, and require them in the binding.
Drop the disabled status of the PTP clock node. The timestamping unit is
part of the EMAC, and the node is left enabled on the other snps,dwmac
controllers as well.
The NXP S32 GMAC driver uses neither property.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The hp cores only implement the Zb extensions and Zcb from silicon
revision v3.0 on, so declaring them in esp32p4_common.dtsi would emit
instructions the v1.3 boards cannot execute. Add an esp32p4_rev3.dtsi
next to esp32p4.dtsi for v3.x boards to include instead; the Kconfig
symbols that build -march default from these properties.
Move the base and extension lists up to the cpus node, where the
devicetree spec puts properties identical on every hart, so the v3.x
dtsi overrides one node instead of two.
Zcmp and Zcmt stay out. The cores reverse cm.push and mis-execute
cm.popret, and the workaround is -mno-cm-push-reverse/-mno-cm-popret,
which only the Espressif toolchain has; Zcmt is unknown to the SDK
binutils.
Assisted-by: Claude:opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
The RA8x1 cpu@0 node carries cpu-power-states but has no label, so
DT_NODELABEL(cpu0) does not resolve and the CPU power states are
invisible on ek_ra8m1, ek_ra8d1, fpb_ra8e1 and mck_ra8t1. Labelling it
alone would make the CGC driver select cpuclk0, which only the dual-core
RA8x2 parts define, so test the single-core cpuclk node before the
cpu0/cpu1 discrimination and add the label in the same commit.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5
Add the st,has-sha3-algorithm devicetree property to the STM32 HASH
binding and enable it on the STM32MP13 HASH node, since STM32MP13 is
the first supported SoC with this capability.
Assisted-by: Claude:sonnet-5
Signed-off-by: bernard Puel <bernard.puel@st.com>
Add interrupt-driven HASH processing for SHA-224/SHA-256, on top of
the existing polling-only HAL_HASHEx_SHAxxx_Start() driver. The
calling thread now blocks on a semaphore given from the HASH ISR
instead of busy-polling status registers, freeing the CPU while the
peripheral computes the digest. This is purely devicetree-gated (no
Kconfig toggle): it activates automatically whenever the node has an
interrupt line, and falls back to polling for algorithms without a
HAL _Start_IT() variant (SHA-384/SHA-512).
Unlike other STM32 families already wiring up this same HASH IP
(F4/F7/H5/C5, e.g. `interrupts = <80 0>;` on H7), the STM32MP13
devicetree node had no `interrupts` property at all. Add it the same
way, using GIC SPI 81, derived from the CMSIS HASH1_IRQn (=113)
constant converted to GIC SPI numbering (SPI = IRQn - 32,
cross-checked against this SoC's I2C5 entry). No binding change is
needed: DT_INST_IRQN()/DT_INST_IRQ_HAS_IDX() work directly off the raw
devicetree data regardless of whether `interrupts` is declared in the
compatible's own binding, exactly as already relied upon for the other
families.
Also wire up the interrupt-driven path for HAL2-based series (C5, and
future ones): HAL2 exposes a single, algorithm-agnostic
HAL_HASH_Compute_IT() instead of one _Start_IT() per algorithm, so
every algorithm exposed on the node goes through it, unlike the
SHA-224/SHA-256-only restriction of the legacy HAL. Completion is
signalled through HAL2's renamed HAL_HASH_DigestCpltCallback() (the
error callback keeps its legacy name, HAL_HASH_ErrorCallback()), and
readiness is queried through HAL_HASH_GetState() rather than a direct
->State field read, since HAL2 does not expose that field under the
same name. HAL2 already resets its internal phase/state on a
completed digest, so the Phase-reset workaround below does not apply
to it. Compile-tested on nucleo_c562re (STM32C5, HAL2); not exercised
on real HAL2 hardware in this series since STM32MP13 uses the legacy
HAL.
Fix a pre-existing correctness bug found while testing: the vendor HAL
leaves hhash->Phase at HAL_HASH_PHASE_PROCESS after a completed
one-shot digest instead of resetting it to READY. A second
hash_compute() call on the same session therefore silently continued
the previous message's internal digest state instead of starting
fresh, producing a wrong digest with no reported error. Force Phase
back to READY after every completed computation, on both the polling
and interrupt paths.
Enable the HASH node at board level in stm32mp135f_dk.dts and add the
board to tests/crypto/crypto_hash's platform_allow. It is left out of
integration_platforms since stm32mp135f_dk requires an external
flasher not yet wired into CI, so it does not build/run automatically
in Twister's default sweep; the interrupt-mode path is instead
exercised through the samples/drivers/crypto/hash_bench benchmark.
Verified with `west build -b stm32mp135f_dk tests/crypto/crypto_hash`,
`west build -b nucleo_c562re tests/crypto/crypto_hash` and a generic
STM32H573 crypto hash test build.
Assisted-by: Claude:sonnet-5
Signed-off-by: bernard Puel <bernard.puel@st.com>
Add support for communicating with the CO5300 display controller over
SPI. Implement SPI command and framebuffer write functions and select
the appropriate transport configuration based on the Devicetree bus.
Also add the SPI Devicetree binding and select SPI automatically when a
CO5300 instance is connected to an SPI bus.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Drop the co5300 driver's internal shadow framebuffer and the associated
even-coordinate/address alignment logic for the MIPI DSI write path.
co5300_mipi_dsi_adjust_coordinates() and its supporting framebuffer
allocation, placement, and alignment machinery (CO5300_FRAMEBUFFER_DECL,
addr_align, frame_ptr/frame_pitch, BUILD_ASSERTs) are removed, and
co5300_mipi_dsi_display_write() now writes directly from the caller-
supplied buffer using the caller's descriptor instead of a locally
adjusted one.
Move window-set and tearing-effect synchronization out of the per-bus
write callbacks (co5300_mipi_dsi_display_write/co5300_mspi_display_write)
and into the shared co5300_write() entry point, so both backends get
consistent handling without duplicating the logic.
Remove the now-unused pitch-align, addr-align, and ext-ram devicetree
properties from the chipone,co5300-mipi-dsi binding, and drop the
corresponding ext-ram/addr-align/pitch-align overlay properties from
the zc143ac72mipi shield.
Required alignment is now handled at the LVGL level instead: enable
LV_Z_AREA_X_ALIGNMENT_WIDTH and LV_Z_AREA_Y_ALIGNMENT_WIDTH (set to 2)
in the zc143ac72mipi shield's Kconfig.defconfig so LVGL rounds
invalidated areas to even boundaries before they reach the driver,
removing the need for the driver to compensate internally.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Some CO5300 panel variants require the red and blue color channels to be
swapped. Configure the address mode together with the pixel format, as the
required RGB/BGR setting depends on the selected pixel format.
Use the red-blue-swap Devicetree property to select the appropriate color
channel order for each supported pixel format.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Add support for driving the CO5300 display controller over the MSPI
bus in addition to the existing MIPI DSI backend. Bus-specific write
paths are now selected at build time via DT_ANY_INST_ON_BUS_STATUS_OKAY(),
with a common co5300_write() entry point dispatching to the appropriate
transfer function through the config->cmd_write/display_write callbacks.
Kconfig.co5300 now selects MIPI_DSI or MSPI depending on which bus
the enabled devicetree node is actually on.
Co-authored-by: Pavel Maloletkov <pavllick@gmail.com>
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
- Adds node in dts
- Updates the binding yaml of comparator driver with the supported
ac ip version
Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
Add support for the counter capture API to the MCUX TPM driver. The
driver stores capture callbacks per channel, maps Zephyr edge flags to
TPM input capture edges, enables the channel interrupt, and reports the
captured counter value from the TPM CnV register. Single-shot captures
disarm the channel from the ISR, continuous captures stay armed.
The ISR samples CnV before clearing CHF. Every selected edge latches
the counter into CnV, and the reference manual only guarantees that a
CHF interrupt is not lost across the clearing sequence, not that CnV
still holds the value the current interrupt was raised for.
Capture is mutually exclusive with alarms on the same channel because
both features share the counter channel namespace.
A TPM channel samples the signal present on its own TPMx_CHn pad, so
add optional pinctrl support and a counter-capture-cells specifier to
the binding. That lets a board mux the pad from devicetree and pick the
sampled channel without changing the public counter API.
A channel can alternatively capture from a trigger input rather than
from its pad, by setting TRIG[n] and routing TRGMUX to the TPM input
capture target. That would give a fully on-chip capture source, as
CTIMER has through INPUTMUX, but it needs a trgmux node that the MCXW7x
SoC devicetree does not have yet, so it is left for a follow-up. This
patch wires only the pad path and takes no mux subsystem dependency.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
The pixel processing accelerator scales, rotates, mirrors and
blends blocks of pixels, and moves them with its own 2D DMA.
It is driven from graphics code rather than through a device, so
the node describes the registers and the transfer done interrupt
it needs and nothing more. Boards that use it enable it.
Assisted-by: Claude:opus-5
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Update STM32 SoC ADC nodes to match the new parent/child binding
introduced in st,stm32-adc.yaml:
- Wrap each ADC instance in a parent "adcc" node (e.g. adcc12,
adcc123, adcc1, adcc3, adcc4) that carries shared properties:
clocks, st,adc-clock-source, st,adc-prescaler, capability flags
(has-deep-powerdown, has-channel-preselection, etc.), resolution
table, sampling-times, sequencer/oversampler/regulator types.
- Keep per-instance child nodes (adc1, adc2 ...) with only reg,
interrupts and pinctrl.
- F1 (st,stm32f1-adc) and F4 (st,stm32f4-adc) retain clocks at child
level as required by their respective bindings.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Assisted-by-AI: GitHub Copilot (GPT-5.4)
Restructure the STM32 ADC DT bindings to reflect the hardware reality
where multiple ADC instances share a common clock controller block
(ADC Common).
The ADC parent node (st,stm32-adc compatible) now:
- acts as a bus/ranges node owning the shared configuration:
prescaler, clock-source, capability flags, resolution
table, sampling times, oversampler type, internal regulator type.
- clocks: carries the bus clock and optional kernel/prescaler clocks
shared by all child ADC instances.
- declares a child-binding that covers the per-instance ADC sub-blocks
(reg, interrupts, pinctrl, io-channel-cells).
Unlike all other series, st,stm32f1-adc and st,stm32f4-adc manage
clock configuration at the child level, as their hardware requires
per-instance clock handling.
This avoids redundant clock configuration on every ADC instance and
makes the hardware topology explicit in the device tree.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Assisted-by-AI: GitHub Copilot (GPT-5.4)
Describe the four i.MX PWM instances at `0x30660000..0x30690000`
with IRQs 81-84, taken from the SoC headers and matching the
Linux `imx8mp.dtsi`.
Signed-off-by: Guilherme Freire <guilherme.almeida@toradex.com>
This binding is now used on both STM32WB0 and STM32WL3 series. Give a
fresh coat of paint to the binding to reflect this.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add secure and non-secure devicetree composer files for the remaining
mcxaxx7-series parts (MCXA536/537/556/557/566/567/577/457/456/287/286),
each including the shared nxp_mcxa5x(_ns).dtsi and deleting/overriding
only what differs for that part (unsupported peripherals, flash/RAM
size).
Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
Add the clock controller and syscon to the Hydrogen platform.
Enable both by default and reduce the syscon priority to load
this driver before the clock controller.
Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
Add a very basic clock control driver for the Aesc Silicon IP.
Right now, it's main purpose is to calculate the domain specific
frequency by reading the reference clock and the domain
multiplier/divider values.
Also update the v4.5 release notes and mention this new driver.
Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
Commit 21c38193ee ("drivers: timer: cortex_m_systick: derive min
timeout from cycle rate") replaced the fixed MAX(1024, CYC_PER_TICK/16)
MIN_DELAY floor with a wall-clock budget (SYSTICK_MIN_DELAY_US, 10 us)
converted to cycles at the actual clock rate and floored at two cycles.
The zephyr,min-timeout-cycles binding description still documented the
old default and the removed MIN_DELAY, including a stale 32 kHz example
claiming a 1024-cycle (~31 ms) default. Update the description to match
the current driver behavior: describe the 10 us budget, the two-cycle
hardware floor, and clarify when overriding the property is actually
needed.
Signed-off-by: Marouen Ghodhbane <marouen.ghodhbane@nxp.com>
Describe the MCXL WUU as an NXP wakeup controller.
Use the nxp,wuc-wuu compatible with wakeup controller cells so wakeup
sources can be consumed through the Zephyr WUC subsystem. Gate the MCUX
driver.wuu HAL component (which provides fsl_wuu.h) on
CONFIG_DT_HAS_NXP_WUC_WUU_ENABLED so the single compatible pulls in the
HAL sources without needing the legacy nxp,wuu compatible.
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
Add I2C and SPI Device Tree nodes in SoC.
SPI3 is present on all STM32WL3 lines and declared in series DTSI.
SPI1 and I2C1 are only available on STM32WL31 and STM32WL33.
I2C2 only on STM32WL33.
Signed-off-by: Anders Frandsen <anfran@anfran.dk>
Add a semihosted flash driver, which utilizes the semihosting interface
to write to a flash file on the host. The flash file will be created if
it does not exist, but otherwise an existing flash file is used. This
driver can therefore be used for testing flash in cases where the
contents need to be set before application startup (such as mcuboot)
Assisted-by: Claude:claude-haiku-4-5
Signed-off-by: Daniel DeGrasse <daniel.degrasse@analog.com>
Add clock output node to devicetree for the SixG301 SoC, as well
as the exportclk prescaler node.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Move device specific clock control shell to a common clock control shell
Fix bug in device initialization, add example configuration in yaml
Signed-off-by: Stefan Schmidt <kontakt@stefanschmidt-embedded.de>