Add tpm0, tpm1, and tpm2 nodes to the KL25Z base devicetree and
configure the clock initialization in the SoC setup code to allow
PWM functionality using the kinetis-tpm driver.
Signed-off-by: Gabriel Ivo <gabriel.bozi@usp.br>
Add DMAC support to SCI B I2C driver for RA MCU:
- Add CONFIG_I2C_RENESAS_RA_SCI_B_DMAC configuration option
- Add rx-dtc, tx-dtc device tree properties
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add tx-dtc and rx-dtc properties to device tree binding
- Add DMAC configurations, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
- Add CONFIG_SPI_RENESAS_RA_SCI_B_DMAC configuration option
- Add device tree properties for DTC (rx-dtc, tx-dtc)
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add tx-dtc and rx-dtc properties to device tree binding
- Add DMAC configurations, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
- Add CONFIG_SPI_B_DMAC configuration option
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add DMAC configurations, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add DMA Controller (DMAC) support for asynchronous UART TX/RX on
Renesas RA SCI-B.
Key changes:
- Add UART_RA8_SCI_B_UART_DMAC and UART_RA8_SCI_B_UART_DTC Kconfig
option to gate DTC/DMA support
- Add tx-dtc and rx-dtc DT binding properties for DTC transfer
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add DMAC transfer configuration, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
The eSPI virtual UART channel cannot receive host traffic once the fast
clock (FMCLK) to the eSPI_SIF module stops, so the chip drops incoming
data as soon as it enters Sleep or Deep Sleep. Setting the
ESPI_FMCLK_ENSLP field of ENSLP_CTL keeps that clock running in those
states.
Add the fast-clk-to-espi-sleep-support property to describe the series
that implement the field, set it on npcx4, and gate the register write
on the new CLOCK_CONTROL_NPCX_ESPI_FMCLK_IN_SLEEP option, which is only
selectable when the property is present and both ESPI_PERIPHERAL_UART
and PM are enabled.
Assisted-by: Copilot:claude-opus-5
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Add i2c0-i2c4 nodes with interrupts, standard bitrate, and reset
lines. Leave them disabled at SoC level.
Signed-off-by: Syed Muhammad Murtaza <syedx.muhammad.murtaza@altera.com>
Current the eSPI host I/O address for UART is hardcoded to 3F0
board could not override it.
The eSPI XEC driver already reads the host_io property but the property
was undeclared in the binding.
Fixes#118878
Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
Move the AON KPP node to the common AON devicetree file so it can be
used by both MCXL255 cores.
Model the KPP input clock as a fixed-clock provider for the AON domain.
Keep the CM33-specific interrupt number as an override.
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
The PTP timer of the MAC is fed by ck_ker_eth1ptp, whose source
RCC_CCIPR2.ETH1PTPSEL selects. Describe it as the "mac-clk-ptp" entry
of the ethernet node, sourced from sys_bus2_ck, so a driver that
supports timestamping both selects the source and can read its rate
back instead of falling back to the "stm-eth" gate, which only happens
to run at the same rate.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Derive SYS_CLOCK_HW_CYCLES_PER_SEC from devicetree.
This allows to override the system clock frequency.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Implement a generic emulated sensor that echoes back configured sensor
readings. This simplifies testing of higher level libraries and drivers
that depend upon querying a device exposing the sensor API.
Signed-off-by: Jordan Yates <jordan@embeint.com>
If flpr is used on nRF54L series, it will most likely use
IPC service to communicate with the cpuapp. Having the default
configuration simplifies the setup in tests and applications.
ICBMSG backend is used which has the smallest code and the most
features.
Add setting of IPC node to nordic-flpr snippet. After this change
when nordic-flpr is used then only CONFIG_IPC_SERVICE=y is needed
to have IPC communication up and ready.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
If flpr is used on nRF54L series, it will most likely use
IPC service to communicate with the cpuapp. Having the default
configuration simplifies the setup in tests and applications.
ICBMSG backend is used which has the smallest code and the most
features.
Remove ipc node from bsim targets as they do not support VPR.
Add setting of IPC node to nordic-flpr snippet. After this change
when nordic-flpr is used then only CONFIG_IPC_SERVICE=y is needed
to have IPC communication up and ready.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
All five harts on each SoC implement the cycle, time and instret
counters, but the SoC manuals predate the Zicntr name and so never use
it. The devicetree inherited that gap and left the extension
undeclared.
Declaring it enables CONFIG_RISCV_ISA_EXT_ZICNTR, which the arch code
uses to decide whether the counters can be exposed to user mode.
Signed-off-by: Adrian Śliwa <asliwa@internships.antmicro.com>
Include the eeprom-base.yaml binding in the microcrystal,rv3028-eeprom, but
exclude the unsupported properties.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
Declare that ADC controllers belong to the "adc" device class: every
binding including adc-controller.yaml inherits the class, and the
lltc,ltc2451 binding, which includes only i2c-device.yaml, declares it
directly.
Assisted-by: Claude:claude-fable-5
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Add public macros over the device class information that bindings
declare with the "class" key and gen_defines.py emits:
DT_NODE_HAS_CLASS(node_id, _class)
DT_HAS_CLASS_STATUS_OKAY(_class)
DT_NUM_CLASS_STATUS_OKAY(_class)
DT_FOREACH_CLASS_STATUS_OKAY(_class, fn)
DT_FOREACH_CLASS_STATUS_OKAY_VARGS(_class, fn, ...)
Each mirrors its per-compatible or bus counterpart. The class declares
which device API class(es) a node's drivers can implement; which
driver is actually built remains a Kconfig decision, and the runtime
DEVICE_API_IS() check remains the authority on what a built image
contains.
Add test bindings with a class list and an included class base
binding, plus API test cases covering per-node queries, existence,
counting (disabled nodes excluded), the include union and both
FOREACH forms. Tested with twister on native_sim (107/107 passed).
Assisted-by: Claude:claude-fable-5
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Add a new "self-test-enable" DT boolean property that controls whether
the driver performs a self-test during initialization. When the property
is not set, the self-test is skipped.
Previously, adxl367_probe() always ran adxl367_self_test() unconditionally.
Running the self-test adds a noticeable delay to initialization: the
routine sleeps 2 * (4 / ODR) which at the default 12.5 Hz ODR amounts to
approximately 640 ms. Making the self-test opt-in lets applications that
do not need it avoid this cost.
This change matches the semantics already in place for the sibling
adi,adxl355 driver, which uses the same "self-test-enable" property.
Signed-off-by: Dominik Chat <dominik.chat@nordicsemi.no>
Add pinctrl DTSI for AM13E23019 derived from hw_pinmap.h. Each define
in the header maps to one MSP_PINMUX node, preserving the compound signal
names (e.g. uc0_rx_scl_pa0). Reuses the existing MSPM pinctrl driver and
MSP_PINMUX macro convention. Function numbers are expressed as plain
integers; input-enable is applied where the signal is an input or contains
an input sub-role.
Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
Five standard counter/timers, on non-contiguous interrupt lines. The
clk-source cell is required by the binding but means nothing here: the
part has no per-timer clock select.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Marvin Gnad <marvin.gnad@gmail.com>
On an AMP board the appcpu or lpcore target is a separate build with its
own devicetree, and several of them did not describe the flash the board
actually carries. Here we are fixing several cases:
* Several ESP32 appcpu targets declared no flash node at all and took 4MB
from esp32_appcpu.dtsi.
* Some targets set size explicitly but got it wrong
* Set appcpu of the walter board to what procpu already uses.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Marek Matej <marek.matej@espressif.com>
Drop the espressif/<soc>/<soc>_<module>.dtsi files in favor of one
<soc>.dtsi per SoC, and matching SOC_ESP32*_<MODULE> symbols in
favor of the plain SoC symbol. SOC_PART_NUMBER now reports the SoC.
Each board instead states its own flash, giving both reg and ranges
because the SoC dtsi no longer sets either, and its own psram size where
it has one.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Marek Matej <marek.matej@espressif.com>
Add initial MAIN and MCU domain Cortex-R5F support.
T3 Gemstone O1: https://t3gemstone.org
Co-authored-by: İdris Kağan Demir <demiridriskagan@gmail.com>
Signed-off-by: Nazmi Aras <nazmi.aras@t3gemstone.org>
- Add support for Infineon Semper S28HX512T NOR flash. This supports SPI
mode (1S-1S-1S), 8S-8S-8S and 8D-8D-8D.
- Expose set_up_xfer_with_addr, read_jedec_id and soft_reset_66_99
function declarations to the vendor specific quirks.
- Add more macros to the spi_nor_s28hx512t.h header that can be used in
addition to the already present macros.
- Add a specific quirk that is only used when the parent controller for
this flash is Cadence MSPI (OSPI). This involves calibrating a delay for
capturing data on the controller by reading JEDEC IDs on different
configurations.
- Add DT binding for the flash to allow convenient Kconfig symbols that
depend on the presence of the compatible flash node in the DT.
- Move FLASH_MSPI_QUIRKS_GET to the bottom of file in
flash_mspi_nor_quirks.h header.
Signed-off-by: Amneesh Singh <amneesh@ti.com>
Add a mechanism to configure the CS timing based on the configured clock
frequency for the peripheral (SCLK) in reference clock cycles for the
controller (RCLK).
Signed-off-by: Amneesh Singh <amneesh@ti.com>
Add a Cadence MSPI peripheral driver, used in the TI K3 platform. The
driver was tested in 1S-1S-1S and 4S-4S-4S mode with the onboard infineon
s25h flash of the am243x launchpad and a custom driver for the flash using
this interface.
The command and dummy cycles are always taken from the xfer request and
never from the devicetree since different commands might have different
latencies.
The driver is somewhat basic for now and lacks e.g. callback
implementation. This is something that can be added in the future. If a
non-supported / invalid request is detected a error code is returned.
Signed-off-by: Mika Braunschweig <mika.braunschweig@siemens.com>
Some of the SoCs carrying this Ethernet controller have a reset line
for it. Include reset-device.yaml so the resets property can be used.
It stays optional, as the MCXE31x has no reset controller.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Add device tree and SoC definitions for the remaining Cortex-R5F
cores on the TI J721e SoC (MAIN R5FSS0 core 1, MAIN R5FSS1 cores 0
and 1, and MCU R5FSS0 cores 0 and 1).
Signed-off-by: Dhruv Menon <dhruvmenon1104@gmail.com>
PSC3M5 MPNs for 100MHz grade parts override clock frequency on a
root-level cpu@0 node, but the CPU is declared at /cpus/cpu@0. This
creates a stray node that's never used and SYS_CLOCK_HW_CYCLES_PER_SEC
is never corrected to 100MHz for these parts.
Nest the override inside cpus so it targets the intended node.
Assisted-by: Github Copilot:claude-opus-5
Signed-off-by: John Batch <john.batch@infineon.com>
Add the PSC3M6 devicetree under cat1b/psc3/psc3m6/: CPU, memory map
and peripherals for the secure domain, plus the MPN stubs.
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Signed-off-by: Niranjan M <niranjan@aerlync.com>
Add DWC2 vendor quirk for xmc4xxx SoC family.
The driver does not seem to support DMA mode on the older core versions.
The symptoms are: stalled setup transfers, no responses to IN tokens on
control or other IN endpoints.
Disable internal DMA mode by default for XMC4XXX SoC series.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Add the qemu_hexagon board definition targeting the H2 hypervisor
guest on QEMU's hexagon virt machine.
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Update the size of the available RAM for stm32wba25Xe to 96Kb.
This total RAM size is a combination of contiguous
SRAM1 (64Kb) and SRAM2 (32Kb).
Signed-off-by: Eric Mechin <eric.mechin@st.com>
The PTP clock of each MAC is its kernel clock through a divider, not
the bus clock the drivers fall back to, so describe it as
"mac-clk-ptp" like the other series do.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The clock gates of both MACs were shifted by one bit against the
hardware: the entry named "stm-eth", which the ethernet drivers use
as the MAC bus clock to derive the MDIO and PTP rates from, pointed at
the ETHxCKEN kernel clock gate instead of the ETHxMACEN gate.
Name the gates after what they enable and select PLL4 P as the ETH1
kernel clock source, as selector value 0 picks pll4_p_ck, not
pll4_q_ck.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Fix the IPI mailbox register region sizes in the Versal2 and VersalNet
devicetree files to match the hardware specification.
For buffered IPI channels:
- ctrl region size: 0x20 -> 0x10000 (64KB full aperture)
- msg region size: 0x1000 -> 0x200 (actual message buffer size)
For bufferless IPI channels:
- ctrl region size: 0x20 -> 0x1000
Updated across the base dtsi files (versal2.dtsi, versalnet.dtsi) and
all corresponding mbox/mbox_data sample board overlays for both
versal2_rpu and versalnet_rpu targets.
Signed-off-by: Vivek Nagamalla <vivek.nagamalla@amd.com>
Add an auto-register boolean devicetree property to the regset target
library binding and call regset_target_lib_register() during
regset_target_lib_init() when enabled. This allows I2C target devices to
be automatically registered on the bus at init time without requiring
manual registration.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Assisted-by: Antigravity:gemini-1.5-pro