Sanitize alrm-exti-line DT property value for st,stm32-rtc compatible
devices using min/max DT properties instead of providing an informative
only range description in the related DT bindings YAML file.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Replace description of valid ranges with using min/max
properties in DT bindings YAML files for ST operational amplifiers.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Replace informative only description of valid ranges for DT properties
of ST related sensors with use of min/max properties that allows
build time sanity check of embedded values.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Replace informative description of valid ranges in ST clock drivers DT
bindings YAML files with use a min/max properties that are now checks
against at build time.
The DT properties ranges impacted above where previously not checked
by the related drivers implementation.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add "long press" reset and SHPHLD wake-up configurations to the nPM10
Series MFD driver's Devicetree properties.
Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
Add a board overlay and inputmux in devicetree, so the PWM
loopback test runs on FRDM-MCXA153.
The OUT side drives CT1_MAT0 on P2_4 (J1_6) with ctimer1 in
PWM mode, the IN side routes CT_INP15 from P2_5 (J1_10) into
CTIMER2 CAPTSEL[0] via INPUTMUX for ctimer2 capture.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Implement the Zephyr PWM capture API using the CTIMER
capture-clears-timer feature.
One capture channel is configured to fire an IRQ on the active
edge while ENCC/SELCC clears TC+PC on the opposite (or same) edge so
that CR latches the period or pulse width directly with no software
subtraction. The INPUTMUX is configured at driver init from a new
inputmux-connections DT property that lists <captsel-index, connection>
pairs.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add a Raspberry Pi framebuffer display driver for the
Broadcom BCM2711 SoC. The driver communicates with the
VideoCore firmware via the Broadcom VideoCore mailbox interface.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Rename the mspi0 node from spi@40020000 to mspi@40020000 to
match the actual bus type. Update the compatible string from
ambiq,mspi to ambiq,mspi-controller to align with the binding
name used by the driver. Add clock-frequency = <48000000> as
the default operating frequency.
Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
Add support for interrup driven UART for the numicro uart driver
targeting the nuvoton m48x line.
This is mostly copied from the uart_numaker driver with some changes.
Signed-off-by: Fiona Behrens <me@kloenk.dev>
Use the new scc driver in the uart for the m48x numicro soc.
This removes quite a lot of calls into the nuvoton BSP and replaces
them with functions using the clock driver.
Signed-off-by: Fiona Behrens <me@kloenk.dev>
Adds devicetree bindings for the Infineon HPPASS Comparator Slope
Generator MFD device. The HPPASS CSG MFD device provides the base address,
shared comparator interrupt definition, and number of slices for the HPPASS
CSG subsystem.
Updates the psc3 devicetree definitions to include the CSG and five
entries each for the per slice comparator and DAC.
Assisted-by: Github Copilot:claude-opus-4.7
Signed-off-by: John Batch <john.batch@infineon.com>
The existing hwinfo_mcux_syscon driver handles the 128-bit UID
read with no driver changes required
Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
Added mistakenly during the SAI rework, the presence of this property
inhibits `child-binding` inheritance; as a result, these nodes don't
have the proper binding and attempting to use them causes a build
failure when the driver tries to obtain DT_PROP(synchronous).
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
- Create a dummy codec stub driver for testing and development purposes.
- Implemented dummy functions to satisfy the audio codec sample
- Add an audio_codec node and alias to the native_sim.dts
- Add Kconfig option
- Create a dts binding for the dummy stub
Assisted-by: GitHub Copilot:GPT-5.4
Signed-off-by: Tomas Barak <tomas.barak@nxp.com>
Enable the Wakeup Controller (WUC) subsystem for MCXW7xx SoCs when the
WUU (Wakeup Unit) device tree node is enabled.
Drop the SoC-local mcxw7xx_set_wakeup() shim and the
NXP_ENABLE_WAKEUP_SIGNAL() override: LPTMR0 wakeup is now configured by
the LPTMR timer driver via wuc_enable_wakeup_source_dt(), and NBU
wakeup is configured by the common NBU init code from the new
"wakeup-ctrls" property.
Add test overlay for frdm_mcxw72 board to validate WUC API.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
Allow nodes with compatible "nxp,nbu" to declare a "wakeup-ctrls"
property by including wuc-device.yaml in the binding, and consume it
from the common NBU init code via wuc_enable_wakeup_source_dt().
When the property is absent, the existing NXP_ENABLE_WAKEUP_SIGNAL()
fallback path is preserved, so no in-tree user changes behavior here.
A failure from wuc_enable_wakeup_source_dt() is now logged and
propagates as an early return, which previously would have been
silently swallowed.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
The WUU driver supports:
- External pin wakeup sources with configurable edge detection
(rising, falling, or any edge) and event types (interrupt, DMA, trigger)
- Internal module wakeup sources with interrupt and DMA event types
- Up to 32 external pins and 9 internal modules
- Recording and checking of triggered wakeup sources
- Integration with the WUC (Wakeup Controller) subsystem
Signed-off-by: Albort Xue <yao.xue@nxp.com>
Add helpers for the SCMI Reset Domain Management protocol and a Zephyr
Reset Controller driver that utilizes these helpers.
The update introduces protocol helper functions, a new driver,
relevant Kconfig and CMake entries, and device tree bindings.
Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
The "examples" section of the renesas,rcar-mfis-mbox.yaml was containing
an invalid dts fragment. Fix it.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This patch adds PM device support to the siwx91x ADC driver. It allows
the ADC to be reconfigured after waking from deep sleep. Without this
patch, the ADC peripheral fails to return valid values after the system
resumes from deep sleep.
Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
These SoCs are provided with:
- Arm Cortex-A720AE application cores (8 clusters x 4 cores)
- Arm Cortex-R52 real-time cores (3 clusters x 4 cores)
- Arm Cortex-M33 system control processor
Signed-off-by: Julien Panis <jpanis@baylibre.com>
The multifunctional interface (MFIS) provides an interface
between the different CPU core domains (AP/RT, AP/SCP and
RT/SCP).
Signed-off-by: Julien Panis <jpanis@baylibre.com>
- Adapt to new MCXW7x clock control
- disable HDI pins
- use flw on non secure range
- enable lpuart1 and use it for uart-pipe, bt-c2h-uart and shell-uart
- configure sys clock to 96MHz for core0 and 48MHz for core1
- use PTA18 for LPUART0 RX pin as workaround for board issue
- fix LPTMR clock source to 32K
- place main stack at beginning of the RAM to workaround boot issue
- move shared memory to third bank (instead of the second) - last 8K
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
Adding missing comp3 & comp4 node to g4 (all g4 have 4 comparators).
Adding missing comp5, comp6 & comp7 to stm32g473 (all g473 and derived
types have 7 comparators).
Add configdefaults for SHARED_IRQ_MAX_NUM_CLIENTS and SHARED_INTERRUPTS
to the soc's Kconfig.defconfig.
Signed-off-by: Thomas Decker <decker@jb-lighting.de>
Alif MRAM is a random access non-volatile memory that is directly
mapped to the address space of the application core and is available
from reset. A flash driver is not yet available for this device. So
remove "soc-nv-flash" compatible and support for the "fixed-partitions"
from the MRAM node. Fix the board dts files as per this change. This
correctly makes the MRAM node simply a "zephyr,memory-region" so that
the linker can place the ROM image there.
Note that this fix has already been made for the Balletto family
SoC/boards.
Related-to: #107737
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Add a display driver for monochrome and grayscale LED matrices driven by
charlieplexed GPIOs. With N GPIO lines such a matrix can drive up to
N*(N-1) LEDs: each pixel sits between an ordered pair of lines and is lit
by driving one line high and one low while every other line is held at
high impedance. Only one LED is lit at a time; a timer scans the pixels
fast enough for persistence of vision.
The driver implements the display API. It keeps a per-pixel framebuffer
and uses a counter device as the scan time source, lighting the next
pixel on each top-value callback. Grayscale is produced by duty
modulation over a configurable number of sub-frames. To stay portable
across SoCs it drives the matrix purely through the generic GPIO API,
configuring the inactive lines as disconnected to obtain the required
high-impedance state rather than touching the GPIO registers directly.
The GPIO bank, the per-pixel high/low pin-pair map, the scan timer,
refresh rate and grayscale depth are all described in devicetree through
the new charlieplex-led-matrix binding.
Signed-off-by: Tyler Baker <tyler.baker@oss.qualcomm.com>
Assisted-by: Claude Code:claude-opus-4.8
Use min/max DT properties instead of providing an informative
only range description in usb-audio-hp and usb-audio-hs compatible
devices YAML file.
This change provides a cleaner build time error trace message when
the values are out of bounds while previously implementation relied
on these values being stored in 16-bit fields.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Clarify that the range information for source-pdos, sink-pdos,
sink-vdos and sink-vdos-v1 DT properties in usb-c-connect DT YAML
file relate to the number of elements in the property array, not
the elements value ranges.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Use min/max DT properties for reset num-resets DT properties to factorize
documentation and build time check of the property values against its
valid range.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Use min/max DT properties for ADC nchannels DT properties to factorize
documentation and build time check of the property values against its
valid range.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add the device tree for the ESP32-P4 SoC: HP-core peripherals
(cpu, intc, gpio, uart, i2c, spi, dma, ledc, etc.), LP-core
memory regions, on-chip LDO regulator node and the LP-core
specific dtsi.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
- Add EDMA1 controller node at base address 0x44000000.
- 32 DMA channels with 32 interrupt lines.
- EDMA version 4 compatible (compatible = "nxp,mcux-edma").
- Node is left disabled by default; boards opt in.
Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
SPI_SILABS_SIWX91X_GSPI_DMA and SPI_SILABS_SIWX91X_GSPI_DMA_MAX_BLOCKS are
redundant. We can achieve the same by checking if
SPI_SILABS_SIWX91X_GSPI_DMA_MAX_BLOCKS > 0.
Then, rather than pulling the DMA if one device use it, automatically use
the DMA it exist (the user can still disable it by settings DMA_MAX_BLOCKS
== 0).
Thanks to that change, we can remove allthe #ifdef in the SPI driver.
A test in spi_siwx91x_is_dma_enabled_instance() is sufficient to make the
DMA relative functions orphans.
Then, we can enable the dma instances in the board DTS, so the user just
have to set DMA=y to enable DMA in the drivers.
The two errors cases are:
- DMA=y while referenced DMA instance in the DT is disabled. The user get
a compilation error
- DMA=n (or DMA driver is disabled) but the user explicitly set
DMA_MAX_BLOCKS > 0. The user get an error during runtime.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
SiWx91x provide two DMA hardware block: GPDMA and UDMA, The GPDMA is
properly named: silabs,gpdma. However, the UDMA is named
"silabs,siwx91x-dma" without any reference to the hardware block it is
supposed to run.
Rename the UDMA driver to fix this inconsistency.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Add build targets for nRF93M1 DK board which includes
nRF54L15 as a host MCU.
Bulk of the board definitions are copied from nRF54L15DK.
Main differences:
* The console UART is changed to uart20 as uart30 is routed to modem
* Few GPIO hogs to control the modem and UART switches
* nPM1300 PMIC set up to enable various voltages on board
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>