The elastic buffer is part of the GPIOHSPADCTRL and used by
the NRF-MSPI peripheral when in controller mode. It is used
to compensate for PVT variation on the pad and is only
supported on port 2 for MSPI00/01. It uses a feedback clock
which encounters a replica delay. This is then fed into the
EB where the core can sample it after some configured delay.
This commit ads support for this for the nrf-mspi peripheral,
configuring it when the user calls mspi_dev_config() as the
configuration of the EB will depend on the configuration of
the SPI mode. Currently, a polarity of 1 isn't supported but
this will be added at a later commit once documentation has
made it to the nrf7120 datasheet on how to use it properly.
Asserts are also added to check the DTS configuration as a
miss-configured elastic buffer can cause unexpected problems.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
Allow the user to set an initial RX sample delay in devicetee
as this is something that can be fixed once based on your
hardware.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
Add optional four-level grayscale output for UC8253 controllers using
PIXEL_FORMAT_L_8. Convert luminance values into the controller's two
RAM planes and retain full-plane state so fragmented writes can be
combined before refreshing the panel.
Add devicetree properties for enabling grayscale, selecting the plane
mapping, and configuring CCSET and TSSET for individual profiles.
Tested on an nRF54L15 DK with a Good Display GDEY037T03 panel using
the display API and LVGL in monochrome and grayscale modes.
Signed-off-by: Kazem Firouzmandi <kazem.firouzmandi@gmail.com>
Only MP13xC and MP13xF have crypto features. To avoid redundency,
place these features inside a common crypt.dtsi and play with
includes to form the right SoC DTs at the end. Board device trees
will have to include only dtsi that look like "stm32mp135f.dtsi".
The following table summarizes the part number suffixes and their
impact on the SoC features:
Suffix | Max CPU frequency | Cryptography IPs
-------+-------------------+-----------------
a | 650 MHz | no
c | 650 MHz | yes
d | 1 GHz | no
f | 1 GHz | yes
Signed-off-by: Erwan SZYMANSKI <erwan.szymanski@st.com>
The DCMI driver transfers words, and full is the only threshold the
hardware accepts at that size, so the 1/4 default left every board in
direct mode where the DMA writes each word to memory as it arrives.
Tested on Portenta H7 with GC2145.
Test on stm32h747i_disco with an OV5640 by avolmat-st.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
psoc6_04 has no work flash (CPUSS_WFLASH_SIZE = 0 in the PDL
psoc6_04_config.h), yet psoc6_04.dtsi declared a flash1 (flash@14000000)
node with a zero-size reg. edtlib rejects a zero-sized 'reg', so any
psoc6_04 board build failed unless flash1 was deleted.
The psoc6_04 MPN files worked around this per-part, some also deleting
&scb3 even though psoc6_04 does not instantiate SCB3 (confirmed in
psoc6_04.dtsi and psoc6_04_config.h), which referenced a non-existent
label.
Fix the root cause instead: remove the bogus flash1 node from
psoc6_04.dtsi and drop the now-unnecessary '/delete-node/ &flash1;'
(and stale '/delete-node/ &scb3;') lines from the psoc6_04 MPN files.
Validated with a pristine build of samples/hello_world for
cy8ckit_062s4 (SDK 1.0.1): devicetree generation is clean and the image
links successfully.
Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
The VPR launcher must enable retention for the RAM block used to
save the FLPR context during hibernation. Specify RAM block 32,
which contains the nRF7120 FLPR context save area.
Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
Declare that sensors belong to the "sensor" device class: every binding
including sensor-device.yaml inherits the class, and the
nxp,kinetis-acmp and nxp,lpcmp comparator bindings, which also have
sensor drivers, declare it directly. With these, every driver
registering the sensor device API is covered by the class.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
current-sense-amplifier and voltage-divider nodes are sensor devices.
Include sensor-device.yaml in their bindings like other sensor
bindings. voltage-divider-common.yaml, which zephyr,usb-c-vbus-adc
also includes, is left as is.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Tachometers are sensor devices, but only the realtek,rts5912-tach
binding includes sensor-device.yaml. Include it from the tach.yaml base
binding instead, so every tachometer binding gets it.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
The adi,adis1647x, raspberrypi,bcm283x-vc-thermal, sifli,sf32lb-tsen and
ti,fdc1004 bindings and the WSEN-ISDS and WSEN-ITDS common bindings
describe sensors but, unlike the other sensor bindings, do not include
sensor-device.yaml. Include it, which adds the friendly-name property.
It is listed after bus includes to keep their property descriptions.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
zephyr,usb-c-vbus-adc includes voltage-divider.yaml for the divider
properties and so inherits every other key of the voltage-divider
device binding too, such as its "Voltage Divider" title. Move the
properties to voltage-divider-common.yaml and include it from both
bindings; the resolved properties of both are unchanged.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Enable AON LPTMR for the FRDM-MCXL255 CPU0 and CPU1 targets.
Configure the required AON clock source, peripheral reset, and clock
gate during board initialization. Advertise counter support for both
board targets.
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
Move the rram_controller base node from the board memory maps into
the pse84.dtsi SoC file, as RRAM is a feature of the silicon and not
the board.
Signed-off-by: Vignesh Pandian <vignesh@aerlync.com>
Add the RT266x SoC devicetree in a per-series/per-part layout: the shared
nxp_rt266x.dtsi and its CM85 core file, and the per-part (2660/2661/2662/
2663) overlays in their secure and non-secure views.
The clock tree follows the hardware's own split. The CGU analog block is
one node at its real base with the oscillators and PLLs as addressed
children, and clock distribution is seven nxp,imx-ccm-rev3 nodes, one per
CCM instance, each at its real base. Every clock root is declared under
the instance that owns it, carrying the register block that configures it
in reg and the HAL's flat identifier in nxp,root-id.
Every CGU clock root the SoC programs declares its steady-state mux and
dividers on its node, so the value stays devicetree-owned and the
controller re-applies the same value later, which is idempotent. Only the
root feeding the XIP flash the controller itself runs from carries
nxp,preconfigured, telling it not to write that slice at all. The CGU PLL
and oscillator source nodes are declared alongside.
Each LPUART instance owns the root that feeds only it, so it carries a
second clocks entry -- "gate" for the gate and rate lookup, "source" for
the mux and dividers -- and its driver applies that entry at init instead
of the controller programming the root from a child node. Values come
from the SDK's clock configuration for this part rather than being
invented: PERI3 (400 MHz) / 5 = 80 MHz on the MAIN instances, PERI7 / 1
on the WAKE ones.
Each GPIO instance carries its pin count and the full pad-mux list for
that port, so configuring any pin through the GPIO API muxes the pad. Both
are properties of the silicon rather than of a board: the same 151 pads on
every part and in both packages, per the data sheet's pin-assignment table.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Add a GPIO driver for the NXP i.MX GPIO controller used on RT266x, with
the new compatible nxp,imx-gpio-v2.
The driver (gpio_mcux_gpio.c) handles:
- Combined IOMUXC PIO pad register, where mux selector and pad
attributes (pull enable/select, input buffer, open-drain) share one
read-modify-write register. The driver sets the attribute bits and
delegates the mux write to pinctrl_configure_pins().
- Optional LPCG clock gate at init. Instances without a gate (always-
on power domains) simply omit the clocks property.
- Per-pin TrustZone access control via PCNS, granting non-secure access
before configuring each pin.
- Dual-channel interrupt routing: GICLR/GICHR direct each pin's
interrupt to one of the two NVIC lines, selected by irq-output-select.
The binding nxp,imx-gpio-v2 follows the same property set as other NXP
IOMUXC-based GPIO bindings: pinmux phandle list, optional clocks, and
irq-output-select.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Add nxp,mcux-rt266x-pinctrl. RT266x drives each pad through a single
combined IOMUXC PIO register rather than the separate SW_MUX_CTL and
SW_PAD_CTL pair the RT10xx/RT11xx/RT118x parts expose, and its PULLENA
polarity and four-level drive-strength and slew-rate encodings differ, so
it cannot reuse the RT11xx binding.
drive-strength is a named impedance ("100-ohm" through "33-ohm") and
slew-rate is low/medium/fast/high, both ordered to map onto the register
fields. drive-strength carries no default: the property is consumed by
DT_ENUM_IDX, and a default would be materialized for every group, which
would defeat the SoC glue's check that rejects a property on a pad whose
register has no such field. slew-rate carries a default of "low" and is
read with DT_ENUM_IDX_OR, so its default is harmless.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Add the devicetree bindings for the i.MX CGU rev3 clock hardware: the CGU
analog block (nxp,imx-cguana) with source children -- FRO oscillators,
crystal oscillator, and core/fractional/AV PLLs -- and the clock
controller (nxp,imx-ccm-rev3) with its per-root binding
(nxp,imx-ccm-rev3-root).
A root carries two numbers: reg (its register block in the CCM instance)
and nxp,root-id (the flat HAL identifier). Stating the identifier instead
of computing it from reg keeps a per-SoC numbering rule out of the shared
driver.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Describe the MT8188 Arm application processor: the Cortex-A55 cluster, the
GIC, the infra always-on clock controller, the pin controller and the four
UARTs. All peripherals are disabled by default and enabled per board.
Co-authored-by: Felix Freimann <felix.freimann@mediatek.com>
Co-authored-by: Andrew Perepech <andrew.perepech@mediatek.com>
Signed-off-by: Aary Patil <aary.patil@mediatek.com>
Add the devicetree bindings for the three MT8188 controllers needed to
reach a console: the infra always-on clock controller, the pin controller,
and the UART.
The UART binding supplies current-speed, parity, stop-bits and data-bits
defaults, which uart-controller.yaml leaves unset while the driver reads
all four. The pin controller describes only 'pinmux'; bias and
drive-strength are left out until the driver implements them.
Co-authored-by: Felix Freimann <felix.freimann@mediatek.com>
Signed-off-by: Aary Patil <aary.patil@mediatek.com>
add pp-thigh-min-ns in API-DT for shared OD/PP SCLH limits.
On STM32, one hardware HIGH field is shared between OD and PP phases.
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
The board-level Cortex-M7 MPU region tables added for the RT11xx EVKs
need a devicetree node describing the peripheral/device memory aperture
so the region base/size can be derived from DT instead of hardcoded.
Add a shared `peripheral` node to the RT11xx CM7 SoC dtsi covering
0x4000_0000-0x5FFF_FFFF (512MB). This spans AIPS-1..4, AIPS M7, CDOG,
GPU/GPU2D and the other real peripherals in the reference-manual system
memory map, while deliberately stopping before 0x6000_0000 so the
FlexSPI2/HyperRAM window (live memory on boards such as frdm_imxrt1152)
is not forced to Device/no-access.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Add g-rx-fifo-size, g-np-tx-fifo-size and g-tx-fifo-size required
properties to snps,dwc2 compatible. Property names are the same as used
in Linux because Zephyr aims for devicetree source compatibility with
other operating systems.
Specifying fifo sizes in devicetree greatly reduces necessary driver
complexity and allows application developer to adjust the sizes if
necessary to best utilize underlying hardware.
Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
The i2c device class is declared only by the I3C bindings, as the
parent class of i3c, so enumerating the class finds the I3C controllers
and none of the I2C controllers. Declare it in i2c-controller.yaml, and
for the TCA954x switch channels, which are I2C buses without that base
binding.
With this, every devicetree-based I2C controller driver is covered by
the class.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Add devicetree bindings for the Analog Devices ADV7535 MIPI DSI to
HDMI bridge.
The bridge is controlled over I2C and exposes a secondary CEC/DSI
register map, so the control node sits on the I2C bus and carries
adi,addr-cec. Its DSI link is a separate auxiliary node under the
MIPI DSI host, adi,adv7535-dsi, referenced from the control node
through dsi-device: a MIPI DSI device has to be a child of its host
for the host to enumerate it and read the link properties. Linux
expresses the same relation with an OF graph endpoint, which has no
equivalent here.
The four-lane wiring is fixed by the bridge and enforced with a const.
The video timings come from a zephyr,panel-timing node owned by the
upstream display controller, which carries the active area.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Paolo Wattebled <paolo.wattebled@savoirfairelinux.com>
Signed-off-by: Jerome LAMY <jerome.lamy@savoirfairelinux.com>
Add initial ADC driver support for Texas Instruments ADS1262
and ADS1263 devices.
The driver supports ADC1 32-bit conversions with DRDY-based conversion
completion, runtime single-ended and differential input configuration,
programmable PGA gain from 1 to 32, an internal 2.5-V reference, and an
optional hardware reset GPIO.
Signed-off-by: Dharanipathi Parthiban <dharanipathi@sacrasys.com>
Adds support for basic CS35L56 smart amplifier functionality. This
only supports the integrated DSP running in ROM mode.
Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
Add zkr to the ISA extensions of the 32-bit, 32-bit E and 64-bit QEMU
virt machines, including the AIA variant which overrides the list. The
-cpu argument of QEMU is derived from this property, so QEMU implements
the seed CSR and the qemu_riscv32, qemu_riscv32e and qemu_riscv64
boards get an entropy driver.
Tested with tests/drivers/entropy/api on qemu_riscv32, qemu_riscv32e,
qemu_riscv64 and their smp, aia-imsic, aia-direct, smode and opensbi
variants.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
rtc-src enum mapping and default did not match the actual
RTCSEL, corrected mapping and default clock source.
Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
- Adds node in dts
- Updates the binding yaml of rtc driver with the supported rtc ip
version
Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
Expose Xen domain watchdog timers through Zephyr's watchdog driver API.
The backend maps each Zephyr channel to the Xen watchdog ID returned by
xen_sched_watchdog(), converts Zephyr millisecond timeouts to Xen's
second-based timeout values, and takes the number of exposed channels
from devicetree.
Xen owns the actual timer and applies the domain watchdog policy when
the guest misses a feed, so unsupported Zephyr features are rejected
explicitly: callbacks, windowed timeouts, pause options, reset semantics
other than domain reset, and timeout windows shorter than one second.
Track installed and active channel state with atomics so feed operations
can run without taking the setup/teardown semaphore. Feed and teardown
of the same channel use a per-channel semaphore, so teardown blocks in
the scheduler while a feed hypercall is in progress instead of spinning
on a manually tracked in-flight count.
Map watchdog API failures to the documented errno values. Timeout
installation reports -ENOMEM when no channel is available, and feed
reports -EINVAL for invalid or inactive channels.
Signed-off-by: Vladyslav Goncharuk <vladyslav_goncharuk@epam.com>
Assisted-by: Codex:gpt-5
Add support for the Analog Devices ADE7913 three-channel, 24-bit
sigma-delta ADC. The driver supports raw signed 24-bit synchronous
and asynchronous reads in single-channel and burst modes. Raw-value
conversion is left to the application.
Signed-off-by: Sebastian Wagner <1sebastianwagner1@gmail.com>
The allowed vcox_ck range while operating in high-range mode ("VCOH")
varies between STM32H7 product lines. Introduce a new DT property in
the RCC binding for STM32H7 (and STM32H7R/S) series to represent the
value, and provide it at SoC DTSI level for all SoCs.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The PLL output frequency (vco_ck) may be much higher than 80 MHz. The
exact limits are device- and configuration-dependent, so replace the
(wrong) hard limit from the description with an indication to go look at
the product's documentation instead.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
RESET.LONGPRESS changed its fields' reset values which is reflected in the
defaults for their respective Devicetree properties.
RESET.CONFIG now contains a bit disabling the long-press reset behaviour
that can be overridden with user OTP. Write only the relevant mask for this
register.
Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
Setting the FICR in the driver isn't required for
nrf7120 as it is set during systeminit().
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>