Provides DMA transfers for AXI-Stream peripherals through the standard
Zephyr DMA API, supporting both one-shot and cyclic capture modes. In
cyclic mode the transfer is automatically resubmitted on completion,
keeping the destination buffer continuously updated with no CPU
involvement. Cores synthesized without an interrupt line are driven
through the polling path in dma_get_status().
CONFIG_DMA_ADI_AXI_DMAC is auto-selected when DT_HAS_ADI_AXI_DMAC_ENABLED.
Signed-off-by: Iustin Stolniceanu <iustin.stolniceanu@analog.com>
Add a Devicetree binding for the AMD AXI Timer IP.
The binding describes the AXI Timer hardware used on AMD/Xilinx
soft-core processor platforms and documents the hardware
configuration exposed through devicetree properties.
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Satya Sri <satyasri.katru@amd.com>
sram_shared_code1 had base address 0x20058000, which overlaps
sram_shared_code0 (0x018000-0x17FFFF) and does not match the documented
CPU1-side shared-memory region. The correct base is 0x20580000 (offset
0x580000), the 256K shared-memory window preceding sram3 (CPU1 app area
at 0x5C0000). The wrong value originated in the initial RT7xx DTS commit
(83fab799e8) and was carried forward unchanged by the common-DTSI
refactor.
Also remove the sram4 node at 0x20600000: it aliases the same physical
SRAM as sram_code (CPU1 code region at offset 0x600000) via the
system-bus window, is not referenced by any board, overlay, sample, or
driver, and was not present in either per-CPU file before the refactor.
Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
This reverts commit c0926335d4.
When the CPUs are marked as deferred start, they are not being
started at boot and must rely on the app to start them manually.
However, for tests, we expect all the CPUs to be up and running.
Since some tests require those CPUs to be off at boot so SMP
startup can be tested, we cannot start those CPUs in the SoC
code for testing either. All these deferred tags will need to
be defined in SOF as overlay to keep the tests running.
Fixes#117639
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
The devicetree API test fixture used a fake GPIO node which also
implemented an interrupt controller. Replace that fixture with the
existing test_intc2 node, remove the unused test binding, and update
the devicetree.h examples to stop showing GPIO controllers as
interrupt controllers.
This keeps the DT_IRQ_INTC* coverage in place while aligning the
fixtures and public examples with Zephyr's GPIO interrupt model.
Tested with:
- git diff --check
- west build -d /tmp/zephyr-dtapi -p always -b native_sim
zephyr/tests/lib/devicetree/api
- cmake --build /tmp/zephyr-dtapi -t run
Assisted-by: Codex:GPT-5
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
GPIO controllers in the PIC64GX and SmartFusion2 DTS files still
declare interrupt-controller properties even though Zephyr does not
model GPIO controllers as interrupt controllers.
Drop interrupt-controller, #interrupt-cells, and the related
#address-cells property from those GPIO nodes while keeping their
interrupt lines intact for the driver.
Tested with:
- git diff --check
- west build -d /tmp/zephyr-dtapi -p always -b native_sim
zephyr/tests/lib/devicetree/api
- cmake --build /tmp/zephyr-dtapi -t run
Assisted-by: Codex:GPT-5
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Instantiate the native_sim TAP ethernet driver from devicetree using a
new `zephyr,native-tap` compatible. Each interface is described by its
own devicetree node, so multiple interfaces are created by adding
multiple nodes rather than increasing an interface count
(`CONFIG_ETH_NATIVE_TAP_INTERFACE_COUNT`).
Per-interface configuration moves from Kconfig to devicetree properties:
- the host interface name comes from the `host-interface` property
- the MAC address from the common `local-mac-address` or
`zephyr,random-mac-address` properties loaded through
`net_eth_mac_load()`
- the PTP clock from a child node
The `CONFIG_ETH_NATIVE_TAP_DRV_NAME`, `CONFIG_ETH_NATIVE_TAP_MAC_ADDR` and
`CONFIG_ETH_NATIVE_TAP_RANDOM_MAC` options are removed.
The `--eth-if`, `--mac-addr` and `--ipv4-*` command line options keep
applying to the first interface. In addition, per-interface variants
prefixed with the node name are added for the remaining interfaces.
Assisted-by: Claude:opus-4.8
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
timer5 is the RTOS timer's dedicated busy-wait counter and must not
be claimed by the counter driver.
Added property to disable it by default.
Signed-off-by: Manimaran A <manimaran.a@microchip.com>
The Basic Timer PRE_SCALE field divides the input clock by
(prescaler + 1) per the datasheets, not by the raw prescaler value.
Update the frequency calculation to divide by (prescaler + 1) and
correct the binding description to match.
Signed-off-by: Manimaran A <manimaran.a@microchip.com>
This binding defines the required properties for the AMD/Xilinx
Versal Gen2 Clocking Wizard hardware.
It describes properties such as compatible, register space,
input reference clocks, primary input frequency, number of
output clocks, and clock specifier cells used to identify
individual clock outputs.
Signed-off-by: Beesam Sridhar Sagar <sagar.beesamsridhar@amd.com>
The DCS display inversion state was never written, and the power-on
state of some panels is not deterministic, resulting in an image with
complemented colors on a random basis. Add an inversion-on devicetree
property and always program the state explicitly.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Vendor initialization sequences for ST7701S-based panels commonly
program additional registers: a Command2 BK3 setting (EFh), extra GIP
settings (E9h, BK1 EFh), and panel-specific values for the display line
setting (C0h), porch control (C1h) and CCh registers. Add optional
devicetree properties for these, keeping the existing computed or
hard-coded values when they are absent.
Add build assertions so a devicetree array that does not fit its
fixed-size configuration field fails the build instead of being
silently truncated.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
The inversion selection (C2h) and the Command2 BK1 power and source
timing registers (Vop, VCOM, VGH, VGL, power control, source pre-drive,
MIPI setting) were hard-coded. These are panel-specific analog drive
parameters that panel vendors specify per module; expose them as
optional devicetree properties defaulting to the previously hard-coded
values.
The undocumented B9h register is now written only when the b9 property
is present. It was previously always written, but due to the short
write length bug its parameter never reached the panel, so no board
relied on a specific value.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add num-dedicated-irqs property to specify how many IRQ lines have
1:1 mapping to DMA channels. IRQs beyond this count are shared among
remaining channels. Defaults to 0 (all shared) if not specified.
Signed-off-by: Arunprasath P <arunprasath.p@microchip.com>
Add the SmartDMA controller node (disabled by default) so boards in the
MCXAxx6 family can enable it to accelerate peripheral transfers such as
the FlexIO parallel LCD interface.
Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
Add a SmartDMA-accelerated transfer path as an alternative to the
generic-DMA (e.g. eDMA) back-end, selectable via
MIPI_DBI_NXP_FLEXIO_LCDIF_SMARTDMA.
Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
Add dts/bindings/pwm/microchip,pwm-g1.yaml file.
Add the node for PWM (Pulse Width Modulation) to sama7d6.dtsi file.
Signed-off-by: Tony Han <tony.han@microchip.com>
Describe Alif Balletto and Ensemble I2C controllers as disabled
snps,designware-i2c nodes so boards can enable them through the
existing upstream I2C_DW driver without adding a new driver.
Each node includes register base, interrupt routing (NVIC/GIC as
appropriate), clock phandle, and standard DesignWare properties such
as clock-frequency and timing offsets.
Controllers remain disabled by default until board devicetree
enables the instances required by each devkit.
Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
This driver integrates with the Zephyr regulator API to control the
MAX20362 PMIC. Additional MAX20362-specific helper functions are
exposed to support device features that are not covered by the
generic regulator API.
Signed-off-by: Anthony Raterta <Anthony.Raterta@analog.com>
Add a driver for the VIRTIO I2C adapter device (virtio spec 1.3, section
5.16), letting a Zephyr guest drive an I2C bus exposed by a hypervisor or
a vhost-user backend.
One i2c_msg is one descriptor chain, and the whole batch is queued before
the device is notified, so a multi-message transfer costs one round trip
instead of one per message. FAIL_NEXT groups the messages the device runs
back to back; a message that ends in a stop closes its group, so a failure
takes the rest of that group with it.
Every operation is a round trip to the device, so the I2C API can only be
used from a thread. VIRTIO_I2C_F_ZERO_LENGTH_REQUEST is mandatory, so a
device that does not offer it is refused. 10-bit addressing is not
supported, and the bus speed is accepted and ignored.
Assisted-by: Claude Code:opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add min/max constraints for row-size and col-size in the input-keymap
devicetree binding to reject out-of-range values at build time.
This aligns schema validation with MATRIX_KEY 8-bit row/column
encoding and uint8_t runtime storage in input_keymap.
Signed-off-by: Mingzong Zhao <mingzong.zhao@outlook.com>
Add DMA support for STM32MP13 by defining DMA1, DMA2, and DMAMUX1
controller nodes in the SoC devicetree.
Signed-off-by: Christophe Guibout <christophe.guibout@st.com>
Add the display driver for the DSI bridge, which streams a
framebuffer to the host DPI port. It owns the framebuffers,
presents a completed frame at the next frame boundary so an
update is tear-free, and reports frame events.
Reading back returns the buffer on screen, and blanking is
forwarded to the panel, which owns the backlight. The MIPI DSI
host starts and stops it, since the framebuffer size depends on
the pixel format the panel reports when it attaches.
Assisted-by: Claude:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Add bindings for the ESP32-P4 MIPI DSI host and for the DPI
scanout controller behind it, and the nodes describing them.
The bridge streams a framebuffer to the host DPI port rather
than being a peripheral of its own, so it is a child of the
host and carries no registers.
Assisted-by: Claude:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Fixes the help text of the lvgl pointer input device binding to mention the
correct property names for touch devices.
Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
The E4, E6 and E8 devices carry more GPIO than the minimum common subset:
GPIO9 to GPIO14 in the peripheral domain. They also carry the full eight
pin wide LPGPIO rather than the two pins available on the E1C.
Note that GPIO16 and GPIO17 are left out as they are not bonded out on
every package this layer covers.
As with the ports in the common layer, the interrupt lines are described
for completeness, but the hardware requires the GPIO debounce logic to be
enabled for interrupt detection to work correctly, which in turn needs
the debounce clock running. Enabling it is left to a follow-up change.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
The Ensemble SoCs use the Synopsys DesignWare GPIO controller, with one
eight pin controller instance per port and one interrupt line per pin.
Add the controllers common to every Ensemble SoC: GPIO0 to GPIO8 and
LPGPIO. LPGPIO sits in the Always-On domain and is only two pins wide on
the E1C, so it is described here at that width and widened by the layer
that describes the larger devices.
As with the other peripherals in this layer, the interrupt routing is
kept out of the resource description and lives in the NVIC and GIC
specific files, since the same controller is reached through the NVIC
from an RTSS cluster and through the GIC from the APSS cluster.
The interrupt lines are described here for completeness, but the hardware
requires the GPIO debounce logic to be enabled for interrupt detection to
work correctly, which in turn needs the debounce clock running. That
clock is off after reset and nothing turns it on, so enabling it is left
to a follow-up change.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Add the ESP32-C61 devicetree, dt-bindings headers and the
wroom-1 module dtsi files. The devkitc module is a wroom-1
n8r2, so its dtsi carries 8 MB flash and 2 MB psram. UART0
uses GPIO11/GPIO10, the ROM console pins. GPIO15-21 are the
MSPI flash pads and are marked reserved.
Assisted-by: Claude:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The pgain, again, ppulse-length and pled-boost enums spelled the 2-bit
register fields they select in hex, i.e. 0x00/0x01/0x10/0x11, so the
last two selections were really 16 and 17 and reached the registers as
such. The pgain entries were also mislabelled, listing 4x twice instead
of the 1x/2x/4x/8x the part supports.
Express each enum as the physical value it selects - gain multipliers,
microseconds and percent - and let DT_INST_ENUM_IDX() turn the selection
back into the register field value, which the enums are already ordered
to match. Devicetree now describes the sensor instead of its register
encoding, and the defaults keep selecting the same settings as before.
While here, give every default the justification the binding guidelines
require, and bound ppulse-count to the 1 to 64 pulses the PPULSE field
can encode.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add flash ranges, package GPIO counts, and BLE radio feature flags
for IM40 (QFN40) and IM32 (QFN32), matching the MG22C counterparts.
Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
Assisted-by: Cursor:composer-2.5
Describe the SPC buffered bandgap output as a regulator on MCXA SoCs so
ADC channel configurations can reference the shared hardware resource.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Allow an LPADC channel node to reference an optional bandgap supply.
Enable the supply when channel setup selects the physical input
described by that node so continuous monitoring needs no additional
application control.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Expose the buffered SPC bandgap output through the regulator API so
consumers can acquire it only while needed. Use the common regulator
reference counting and always-on policy instead of defining a separate
resource lifecycle.
The output has a fixed voltage and supports enable and disable operations.
Device PM restores the hardware state when an active regulator resumes.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Several binding type folders had no entry in the registry, so the
documentation fell back to a capitalized folder name ("Cpu_freq",
"Pulse-io", ...). Add entries for buzzer, clock-monitor, cpu_freq, dali,
dsp, mcumgr, mux and pulse-io.
Also fix the "ppmcie" key, which never matched the "pmci" folder it was
meant to describe, and use the DMTF expansion of the PMCI acronym.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:claude-opus-5
- Add the watchdog node for pic32cz_ca device
- Update the binding for pic32cz_ca device
Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
During build, we are presented with a warning from the devicetree compiler
<Warning (interrupt_provider): /soc/gpio@20120000: Missing #address-cells
in interrupt provider>. This patch strips the interrupt-controller
property from GPIO banks.
Signed-off-by: Alexandra Covaci <Alexandra.Covaci@microchip.com>