Rename the EM32 UART compatible to "elan,em32-uart" for consistency with
other EM32 drivers and add the corresponding devicetree binding. The
binding documents required properties under the 'properties' section,
following the Zephyr binding schema.
Changes:
- dts: switch serial@40002000 to compatible = "elan,em32-uart"
(kept disabled)
- bindings: add dts/bindings/serial/elan,em32-uart.yaml
(reg, clocks with gate_id, current-speed, pinctrl-0/-names)
Note: interrupts are not included in this initial binding; IRQ/FIFO can be
added in follow-ups if needed.
Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Add the initial pinctrl driver support for the ELAN EM32 SoC family.
This driver provides basic pin multiplexing and electrical configuration
support. Device tree bindings are included for pin function definitions.
Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Add clock control drivers for the Elan EM32 AHB and APB domains along with
DT bindings and clock gate IDs.
Model peripheral clock gating with #clock-cells = <1>, where the clock
specifier carries a gate-id. Introduce EM32_GATE_NONE for nodes that only
need a parent clock reference without a hardware gate.
Update the EM32 SoC/board devicetree to pass gate-ids in `clocks`
properties and integrate the drivers into Kconfig/CMake.
Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Add the infoctrl syscon register block to the EM32Fxxx SoC DTSI.
The block contains oscillator trim and device information registers.
Add register offsets and field masks in soc_infoctrl.h for driver use.
Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Add a SIP-level dtsi for ESP32-P4 variants combining 16 MB of
external NOR flash with 32 MB of in-package PSRAM, mirroring the
existing esp32p4_n16r8.dtsi. Used by the Waveshare
ESP32-P4-WIFI6-Dev-Kit board.
Signed-off-by: Hongquan Li <hongquan.li@processmission.com>
Add gpioa/gpiob/gpioc and their pin-controller parent to mspm33c.dtsi.
Addresses (0x400f0000/0x400f2000/0x400f4000), IRQs (6/7/8), and the
pin-controller's combined address range are taken from the MSPM33C321A
TRM memory map and NVIC interrupt vector tables
GPIO0/1/2's DOUT/DOE/DIN/POLARITY/CPU_INT register layout is identical
to MSPM0's GPIO_Regs (same GPIO IP block), so the existing
"ti,mspm0-gpio" and "ti,mspm0-pinctrl" compatibles are reused as-is
instead of introducing new bindings.
Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
STM32MP13 offers different groups of timers similar to what we
can find on some other MCUs like STM32H7xx or STM32F7xx.
- TIM1/8: Advanced-control timers.
- TIM2/3/4/5: 16/32 bits general-purpose timers.
- TIM12/13/14: 16 bits general-purpose timers.
- TIM15/16/17: 16 bits general-purpose timers with break input.
- TIM6/7: Basic timers.
Signed-off-by: Erwan SZYMANSKI <erwan.szymanski@st.com>
Add devicetree bindings for the Analog Devices / Trinamic TMC6460
Field-Oriented Control (FOC) BLDC/PMSM gate driver. The TMC6460 can be
attached over either SPI or UART, so two compatible bindings are
provided:
- adi,tmc6460-spi: the device as a SPI child node
- adi,tmc6460-uart: the device as a UART child node, with an optional
uart-crc property to enable the TMC6460 CRC8 framing
Both bindings expose the physical motor/encoder traits (pole-pairs,
hall-mapping, abn-ppr) so that hardware description lives in devicetree
rather than in the sample sources.
Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
- Adds the eic node to the common dtsi file
- The pin related data in the node is inferred from datasheet
- Updates the binding yaml with new properties
Signed-off-by: Muhammed Asif <asifp3104@gmail.com>
Add SoC-level dts files for the RT118x derivative parts so that each
board can include a single, part-specific dtsi.
Per-core composer files are introduced for every part, in secure and
non-secure (_ns) CM33 flavors:
- RT1189: composer only (uses the series base directly)
- RT1187: composer only (same package and peripheral set as RT1189,
minus the EtherCAT block, which has no DTS node yet)
- RT1186: composer + nxp_rt1186.dtsi for the smaller-package GPIO subset
- RT1185: composer aliasing to RT1186 (same package and peripherals,
minus EtherCAT)
- RT118C: composer aliasing to RT1186 (same package, no NETC)
- RT1182: composer + nxp_rt1182.dtsi for the small-package GPIO subset
(single-core part, only CM33)
- RT1181: composer aliasing to RT1182 (same package and peripherals,
minus EtherCAT, single-core)
This matches the convention used by the RT1160/RT1170 series and lets
boards include only nxp_rt118<part>_cm<core>.dtsi instead of the
series base plus a separate package overlay.
The part overlays use /delete-node/ to reflect the peripheral count
differences of the smaller parts, so the device tree matches the
physical silicon and boards cannot accidentally enable peripherals
that do not exist.
Surviving instances per part, taken from the MCUX SDK device headers
(MIMXRT118x*_COMMON.h), parts only listed where they differ from
RT1189/RT1187:
RT1186/RT1185/RT118C RT1182/RT1181
LPUART 1-8 1-8
LPI2C 1/2/3/6 1/2/3
FLEXCAN 1/3 1/3
TPM 1-4 1-3
LPTMR 1-3 1
QTMR 1-8 1-4
FLEXPWM 1-4 3/4
SAI 1/2/4 1
ACMP 3 3
USDHC 2 2
USB/USBPHY 1 none
NETC none on RT118C present
On the single-core RT1182/RT1181 the CM33<->CM7 MU mailbox nodes are
deleted as there is no second core to talk to, and the GPIO6 pinmux
property is dropped because the package exposes no GPIO6 pins (the
referenced pads do not exist in the RT1182 package pinctrl files).
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
The RT118x family is about to grow per-part composer dtsi files for
seven derivative parts in secure and non-secure flavors. Keeping all
of them directly under dts/arm/nxp/imxrt/ next to the other RT series
would make the directory hard to navigate.
Move the existing RT118x family files into an imxrt/rt118x/
subdirectory first, following the series-subdirectory layout already
used by other vendors (st/<series>/, renesas/ra/ra<n>/, gd/<series>/,
infineon/<family>/), and update the board includes accordingly.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Updated spi_xec_qmspi_ldma driver with low power support.
Add a pm_action handler that clears MODE.ACTV and applies the
pinctrl sleep state on suspend, and reverses both on resume.
Hold a PM_STATE_SUSPEND_TO_IDLE policy lock for the duration of
each transfer (sync and async) so suspend cannot enter mid-
transaction.
Signed-off-by: Manimaran A <manimaran.a@microchip.com>
Correction to sram0_ns sram01, 02, 03 address offset. As RAM01 starts at
0x2008_0000, RAM02 starts at 0x200C_0000, RAM03 starts at 0x200E_0000.
Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
Describe the STM32N6 8 KiB backup SRAM and enable the driver with
STM32_BACKUP_PROTECTION selected. Extract the retention logic into a
dedicated helper, use the correct device-tree SRAM address, and wait
for standby retention acknowledgement on STM32N6.
Assisted-by: opencode:openai/gpt-5.6
Signed-off-by: Tobias Meyer <tobias.meyer@hula.earth>
Add the snps,dwmac-ptp-clock to all
st,stm32-ethernet, that have a ptp-clock,
independent of current driver support.
Signed-off-by: Fin Maaß <info@finmaass.de>
The current bindings are prepared for the SAM4 which has a
8-bit interface only. This commit adds optional properties
to support also 16-bit interfaces for the SAME7 family.
Signed-off-by: Sven Ginka <s.ginka@sensry.de>
Co-authored-by: Gerson Fernando Budke <nandojve@gmail.com>
Extend the WCH RCC clock driver for the CH32H41X series. Add the H41X
PLL binding and SoC clock node, handle the H41X clock-enable register
names and FPRE prescaler, and implement the 480 MHz SYSCLK and
120 MHz HCLK bring-up sequence.
Select the H41X-specific path from the RCC source compatible in
devicetree. Existing CH32V00X, CH32V20X, and CH32V30X configurations
remain unaffected.
Signed-off-by: Liu Changjie <liucj1228@outlook.com>
Add the CH32H41X SoC series under the ch32v family. The CH32H417 is
an asymmetric dual-core (AMP) RISC-V part with a QingKe V3F boot
core and a QingKe V5F application core.
Model the two cores as cpuclusters with separate CPU descriptions,
runtime-idle power states, interrupt entry, vector handling, and
non-overlapping memory. Keep the external HSE frequency
board-specific.
The optional SOC_CH32H417_BOOT_V5F setting lets the V3F early-init
hook wake the V5F image at its real flash address, 0x08010000, while
allowing standalone V3F applications to disable that behavior.
Signed-off-by: Liu Changjie <liucj1228@outlook.com>
Add the device-tree bindings needed for the WCH CH32H417 dual-core SoC:
- wch,qingke-v3f and wch,qingke-v5f CPU bindings for the two QingKe RISC-V
cores (V3F boot core and V5F application core).
- wch,h41x-afio pinctrl binding. Unlike the CH32V20x/30x AFIO remap (PCFR)
model, the CH32H41x uses an STM32-style per-pin 4-bit alternate-function
mux in the AFIO GPIOx_AFLR/AFHR registers.
- ch32h41x-pinctrl.h dt-bindings header with the pinmux encoding macros.
Signed-off-by: Liu Changjie <liucj1228@outlook.com>
The UCPD1 clock enable bit is in
RCC_APB1HENR, which should be represented as "STM32_CLOCK(APB1_2, 23)",
but the SoC DTSI used "APB1" (no _2) instead. As a result, the UCPD
clock could not really be enabled.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Adds the high-performance DMA controller (HPDMA1) node to the STM32N6
base devicetree file. Base address, clocks, and contiguous IRQ lines
(68-83) are derived directly from the vendor CMSIS device headers.
Signed-off-by: Sher Amir Singh Dullat <sheramir51@gmail.com>
Add missing nodes for the OTG_HS USB controller and associated USBPHYC
to the STM32H7R/S SoC DTSI.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Perform a few changes to the st,stm32-usbphyc binding in order to allow
its use on STM32H7R/S series SoCs:
- make the `clock-names` property mandatory
- cell names will be used in the PHY pseudo-driver for STM32H7R/S
- drop requirement to provide `reg`
- USBPHYC does not have a MMIO interface on STM32H7R/S
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add a Zephyr mbox driver for the ARM Message Handling Unit v2.
Supports doorbell-only signalling across all hardware channel
windows from a single device instance.
Signed-off-by: Ofir Shemesh <ofirshemesh777@gmail.com>
Remove the dedicated xlnx_xuartps driver and consolidate support
into the Cadence UART driver (uart_cdns), as both drivers target
the same underlying Cadence UART IP used by Xilinx platforms.
Update device tree bindings and DTS files to use the Cadence
compatible string on supported platforms, remove obsolete driver
sources, and adjust build system configuration accordingly.
Also update test overlays to reflect the driver consolidation.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
group2 muxed UART0_RTS_GPIO31 a second time instead of
UART0_CTS_GPIO30, leaving the CTS pin unmuxed, so CTS/RTS flow
control did not work for boards using this group. Verified on a
Pi Zero 2 W where GPIO 30-33 at ALT3 route uart0 to the onboard
CYW43436 BT HCI with flow control enabled.
Signed-off-by: Jonathan E. Peace <jep@alphabetiq.com>
Add SIP-level dtsi files for 32 MB flash ESP32-P4 variants:
esp32p4_n32r32.dtsi for the ESP32-P4NRW32 SIP (32 MB in-package
PSRAM and 32 MB external NOR flash) and esp32p4_lpcore_n32.dtsi
for the LP core on 32 MB flash parts.
Also add a default 32 MB partition layout with the 0x2000 boot
offset, mirroring the existing 0x1000 32 MB layout.
Signed-off-by: Hongquan Li <hongquan.li@processmission.com>
Map 1:1 using empty 'ranges;' property. Specific range property should
only be use when devices are not on the same bus interface. This also
prevents from redefining Secure/Non-Secure addresses.
Signed-off-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com>
The `ranges` property should be a `compound` because it can either be
EMPTY (a.k.a. 'boolean') or NUMS (a.k.a. 'array').
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Signed-off-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com>
Add #address-cells, #size-cells, and ranges properties to flash nodes.
This enables address translation from partition offsets to physical
flash addresses, required for zephyr,mapped-partition compatible.
Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
The swap-xy, invert-x, and invert-y properties in the
zephyr,lvgl-pointer-input devicetree binding are deprecated. Users should
instead add these properties to the underlying touch input controller
device node.
Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
Apply the default pinctrl state during PM_DEVICE_ACTION_RESUME to restore
normal SHI operation.
Apply the sleep pinctrl state during PM_DEVICE_ACTION_SUSPEND to disable
the SHI interface pins and prevent leakage.
This lets board/shim code control the pin state purely via
pm_device_runtime_get()/put().
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Add optional pinctrl support so board files can mux GPT_CLK,
GPT_CAPTUREn, and GPT_COMPAREn pins via the standard pinctrl-0
property. The default state is applied early in driver init, before
GPT_Init. A missing pinctrl state (-ENOENT) is treated as optional
and silently ignored.
Signed-off-by: Jaro Van Landschoot <jaro.vanlandschoot@basalte.be>
Allow selecting from all five GPT clock sources (off, periph,
high-freq, ext, low-freq, osc) via a new clock-source DT property.
The ext source fixes the prescaler at 1 since the frequency
is unknown to software.
gptfreq is no longer required when clock-source = "ext", in which
case counter_get_freq() returns 0 and callers work in raw ticks.
Signed-off-by: Jaro Van Landschoot <jaro.vanlandschoot@basalte.be>