Remove st,stm32-sdio devicetree binding and extend
st,stm32-sdmmc to cover the SDHC/SDIO host-controller use case.
This keeps a single STM32 SDMMC hardware compatible in devicetree
and avoids interface-specific compatible selection.
Signed-off-by: Sara Touqan <zephyr@exalt.ps>
Signed-off-by: Sarah Younis <zephyr@exalt.ps>
Signed-off-by: Mohammad Odeh <zephyr@exalt.ps>
This introduces APIs for input capture on the STM32.
Rename callback in data to alarm_cb to prevent confusion with other
callbacks.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Add bt-hci node to bl61x.dtsi using the shared bflb,bt-hci binding.
Add exchange memory overlays for 32 KB and 64 KB configurations
that reduce WRAM available to the application when BLE is enabled.
Signed-off-by: William Markezana <william.markezana@gmail.com>
The RT1020, RT1024, and RT1050 SoC variants do not include a third
FlexCAN controller (flexcan3) in hardware. The current device tree
definitions incorrectly inherit this node from the base RT10xx device
tree.
This patch removes the flexcan3 node (can@401d8000) from the following
SoC-specific device tree files:
- nxp_rt1020.dtsi
- nxp_rt1024.dtsi
- nxp_rt1050.dtsi
Signed-off-by: William Tang <william.tang@nxp.com>
Add devicetree binding for the TE Connectivity HTU31D digital
humidity and temperature sensor. The sensor communicates over I2C
at address 0x40 or 0x41 depending on the ADDR pin configuration.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Add devicetree nodes for the MSPM0 watchdog peripherals and
set them disabled by default.
Signed-off-by: Sanjay Vallimanalan <sanjay@linumiz.com>
Signed-off-by: Jackson Farley <j-farley@ti.com>
Add the device tree file for the SoC AB1C1F4M51820PH0. This file
will host the SoC specific peripheral instances in addition to the
common resources inherited from balletto_common.dtsi.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Add the pinctrl node for the balletto family. Balletto shares the
pin control architecture with Alif Ensemble.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Add clock controller node for the balletto family. Balletto
family shares the same clock module architecture with Ensemble
differing only in the absence of the HP core configuration
region (m55_cfg).
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Make the m55hp_cfg register block optional to support single-core
Alif SoCs (such as from the Balletto family) that only have the
Cortex-M55 HE subsystem. Multi-core SoCs that have both RTSS-HE
and RTSS-HP subsystems require all 7 register blocks.
Update the binding documentation accordingly.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Add fixed-clock nodes for some of the Balletto family root clocks.
These clocks serve as input sources for peripheral clocks managed
by the clock controller.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Balletto SoCs have a peripheral region at 0x1A000000 (8 MB)
that hosts peripherals such as pinmux and clock control registers.
This deviates from the standard Cortex-M memory map and requires
explicit MPU configuration with device memory attributes.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
The Alif Balletto family of processors contain a single
Cortex-M55 core residing in the High Efficiency Real Time
Subsystem (RTSS-HE).
Add a common device tree file that serves as the foundation
for all SoCs in the Balletto family. This file currently defines
the CPU, MPU, TCM and NVIC nodes that are common across the family.
Peripheral instances shared across all Balletto SoCs will be
added to this file as driver support is introduced in future
patches.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
The ocram1_available address is ocram1+0x4000.
According to DTSpec v0.3, Section 2.3.8:
> If the property is defined with an empty value, it specifies
that the parent and child address spaces are identical, and
no address translation is required.
If the property is not present in a bus node, it is assumed that
no mapping exists between the child address space and the parent
address space.
So should add empty range. Otherwise the ocram1_available address
is 0x4000.
Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
The PCA series GPIO driver was updated to allow disabling automatic
reset. This feature would enable GPIO expander ports to retain states
which could be helpful for situations where certain pins are configured
in the bootloader and their states need to be retained when switching to
application code.
Signed-off-by: Lay Desai <lay.desai@he360.com>
The examples used "xlnx,versal-ipi-mailbox" and
"xlnx,versal-ipi-dest-mailbox" which do not match the actual
compatible strings defined in the binding.
Signed-off-by: Harini T <harini.t@amd.com>
Set the OSPI memory mapped timeout period to avoid keeping the chip
select line asserted indefinitely after memory mapped accesses.
This is needed when OSPI1 and OSPI2 operate simultaneously with shared
IO0-IO3 and CLK lines, and both instances use memory mapped mode.
The timeout period follows the recommendation from the STM32U575xx and
STM32U585xx device errata, ES0499 section 2.6.4.
Allow dqs-port to be set to 0. The STM32 HAL uses value 0 to indicate
that the DQS port is not used.
Update the debug log printed when CONFIG_STM32_MEMMAP is not enabled,
because stm32_ospi_set_memorymap() is not called in that case.
Signed-off-by: Kirill Shypachov <kshypachov@outlook.com>
The EFM32HG (Series 0) WDOG has no IRQ support, no window mode
and no reset-disable bit.
Guard the logic with HAL feature macros and use `IF_ENABLED` with
`DT_INST_IRQ_HAS_IDX` for conditional IRQ setup.
Add the `wdog0` node to the EFM32HG device tree.
Signed-off-by: Patryk Koscik <pkoscik@antmicro.com>
Add support for software resets in case no reset GPIO can be provided.
Add a mailbox write to prevent hibernation during bringup because
we can no longer rely on a hardware reset to make sure the device is
not hibernating.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Split the generic cirrus,cs40l5x compatible into device-specific
variants. Update the driver and Kconfig accordingly. Update the
CRD40L50 demonstration board's compatible to cirrus,cs40l50. Move
the device ID from the data struct to the config struct. Move uses
of DT_ANY_INST_HAS_PROP_STATUS_OKAY() and similar macros from the
device driver to Kconfig to support new DT_DRV_COMPAT usage in the
driver.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Introduce a PECI transport driver that operates over the eSPI bus,
enabling platforms without a native PECI controller to communicate
with the host CPU via an embedded controller.
This driver:
- Implements the PECI transaction layer on top of eSPI OOB channel
- Serializes PECI transactions to ensure protocol correctness
- Integrates with the existing PECI core infrastructure
- Allows PECI consumers (e.g. DTT, thermal, power management) to remain
transport-agnostic
A corresponding devicetree binding enables PECI-over-eSPI by defining
a PECI child node under the eSPI controller node.
Signed-off-by: Bernardo Perez Priego <bernardo.perez.priego@intel.com>
Add an invert-direction boolean DT property that negates the axis value
reported by the event worker. This handles boards where the physical
encoder orientation produces a direction opposite to what the quadrature
state machine reports without swapping the A/B GPIO wires.
Signed-off-by: Andrew Yong <me@ndoo.sg>
Add a Supervisor-mode board variant for the QEMU RISC-V 64-bit virt
machine so twister exercises S-mode in CI.
Configure board.cmake to append s=on,u=on,pmp=on,priv_spec=v1.12.0,
sv39=on when CONFIG_RISCV_S_MODE is set, using string(APPEND) consistent
with the CONFIG_RISCV_PMP flag handling.
Three flags are required for compatibility with the rv64i bare CPU in
QEMU 10 (shipped with the Zephyr SDK):
- sv39=on instead of mmu=on: QEMU 10 separates MMU hardware presence
from the satp addressing mode; without an explicit mode QEMU defaults
to bare and virtual addressing is disabled.
- pmp=on: the rv64i bare CPU has no PMP by default; reset.S writes PMP
CSRs unconditionally, causing an illegal-instruction trap before UART
is initialised if PMP support is absent.
- zicntr=on: QEMU 10 separates Zicntr from the base I extension; without
it csrr time traps with mcause=2 in the M-mode SBI timer handler.
Set riscv,privilege-modes = "m", "s", "u" on all cpu nodes in the
S-mode devicetree overlay so all harts correctly describe Supervisor-mode
support on SMP systems. Simplify the privilege-modes binding wording to
avoid implying that only M-mode is assumed when the property is absent.
Exclude tests incompatible with S-mode: semihosting (requires M-mode
firmware), shared-interrupt tests (only one software-triggerable IRQ in
S-mode), and the RISC-V ISR table tests (timer IRQ already claimed).
Signed-off-by: Alexios Lyrakis <alexios.lyrakis@gmail.com>
Introduce CONFIG_RISCV_S_MODE to select Supervisor-mode execution.
Add depends on !RISCV_S_MODE to RISCV_PMP since PMP CSRs are
inaccessible from S-mode.
Add an M-mode SBI shim (reset.S + sbi.S) that configures exception
delegation, PMP, and counter access before dropping to S-mode via mret.
The shim handles SBI_SET_TIMER ecalls from S-mode and forwards MTIP to
STIP so the supervisor timer driver works without a full SBI firmware.
Introduce privilege-level abstractions in isr.S (RV_CAUSE, RV_EPC,
RV_STATUS, RV_TVAL, etc.) and update all runtime code that previously
accessed M-mode-only CSRs (mcause, mtval, mstatus, mie, mip) to use the
S-mode equivalents when CONFIG_RISCV_S_MODE is set.
ARCH_EXCEPT in kernel context uses ebreak (cause=3, Breakpoint) instead
of a direct z_riscv_fatal_error() call. In S-mode, ecall (cause=9) is
kept in M-mode for SBI and never reaches the S-mode exception handler;
a direct call with NULL esf caused the stack unwinder to crash into an
infinite fault loop. ebreak is delegated to S-mode by our medeleg
configuration; isr.S treats ebreak with t0=RV_ECALL_RUNTIME_EXCEPT the
same way M-mode treats ecall-based ARCH_EXCEPT.
Signed-off-by: Alexios Lyrakis <alexios.lyrakis@gmail.com>
The new hardware supports fifo mode for all i2c channels. This commit
adds support for fifo mode across all i2c channels.
Additionally, the compilation fails when the `I2C_IT51XXX_FIFO_MODE`
option is disabled because the isr function is behind this option.
This change also resolves this issue.
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Add support for the SkyStar-GD32F407VET6 board:
- Board documentation describing hardware features and usage
- Pin control for USART0 and PWM
- DTS defining GPIO, LEDs, keys, and PWM
- YAML metadata for board ID, memory, and vendor
- Default defconfig enabling MPU, console, UART, and GPIO
Signed-off-by: Liu Changjie <liucj1228@outlook.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Remove unnecessary #address-cells and #size-cells from lpcomp0 nodes
as they have no addressable child resources.
Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
Remove unnecessary #address-cells and #size-cells from lpcomp0 nodes
as they have no addressable child resources.
Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>