Add the nxp,iap-fmc84x compatible, clock and flash access time
properties to the LPC84x IAP flash controller node.
Signed-off-by: Dilip Raman <dilipr@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
- Add Devicetree nodes for the Switch Matrix (SWM) and
IOCON peripherals.
- Add UART0 to UART4 peripherals nodes with register,
clock, and interrupt properties.
Signed-off-by: Surya Prakash T <suryat@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Co-authored-by: Dilip Raman <dilipr@aerlync.com>
- Add LPC84x clock control node and associated configuration required
for system clock initialization.
Signed-off-by: Deepika R <deepika@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Co-authored-by: Dilip Raman <dilipr@aerlync.com>
Add the YAML binding definitions for the LPC84x I/O Configuration (IOCON)
and Switch Matrix (SWM) peripherals to support the new pinctrl driver.
Signed-off-by: Surya Prakash T <suryat@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Co-authored-by: Dilip Raman <dilipr@aerlync.com>
- Add Devicetree binding describing initialization properties for the
LPC84x clock control driver, including configuration of FRO mode.
Signed-off-by: Deepika R <deepika@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Co-authored-by: Dilip Raman <dilipr@aerlync.com>
Add SoC support for the NXP LPC84x (LPC845) series microcontroller.
This commit introduces:
- SoC device tree binding (nxp_lpc845.dtsi & nxp_lpc84x.dtsi)
- Kconfig configuration for LPC84x series
- Minimal SoC initialization (soc.c/soc.h)
- Build system integration (CMakeLists.txt)
Signed-off-by: Vignesh Pandian <vignesh@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Co-authored-by: Dilip Raman <dilipr@aerlync.com>
The ti,clk-divider, auto-powerdown and vref properties were declared
without a description, leaving their semantics unclear when writing
devicetree nodes. Add descriptions explaining the clock divider's
effect on the sample clock, the manual vs. automatic power-down
behaviour, and how the vref phandle is used to derive the reference
voltage in millivolts.
This is a documentation-only change; no functional behaviour is
affected.
Signed-off-by: Florian Schuele <florian@schuele-embedded.de>
The main goal of this change is being able to use counter_gecko_rtcc.c and
leuart_gecko.c on boards without an LFXO. This is the case for tyzs3.
The main changes are in soc/silabs/common, the rest is just to migrate all
of the boards.
This uses the device tree for clock-initialization only. I did not
implement a clock_control driver, because I don't see a need for that. The
drivers use CMU_ClockEnable, which abstracts away SoC differences already.
The config SOC_GECKO_HAS_HFRCO_FREQRANGE was removed, because:
- This can be detected via macros provided by gecko_sdk.
- There is an alternative to that API which wasn't implemented previously,
but is now (cmuHFRCOBand_*).
I don't own any of the boards except for tuya tyzs3, but did my best to
avoid mistakes. That being said, I found several issues, which were present
in some of the boards already:
- sltb004a: This board has a 38.4MHz HFXO crystal, but it was configured to
40MHz. I fixed that.
- tomu: This board uses HFRCO as it's HF clock, even though the SoC does
not support SOC_GECKO_HAS_HFRCO_FREQRANGE. So it was probably running at
the initial 14MHz instead.
- Many boards enabled leuart and rtcc (counter) peripherals, which need(ed)
LFXO, without ever enabling LFXO. These peripherals were probably not
working before this change.
Noteworthy finds:
- slwrb4321a: This board uses HFRCO as it's HF clock, but has a board.c
where it enables HFXO to use it as the RMII reference clock. I'm not sure
if it's okay to do that without calling CMU_HFXOInit first. I did not
modify that code to not change behavior that I don't understand.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
Remove the deprecated counter-based Maxim DS3231 driver and its
dedicated API, binding, sample, and test coverage.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add a memory node of size 0x400 at address 0. This region will be
configured in MPU for NULL pointer dereference detection.
Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
Generic MSPI driver for the ISSI IS66/67WV Serial PSRAM family
(both wrapped-burst WVS and continuous WVR variants).
Implements MEMC read/write for bus-transaction access via MSPI.
When CONFIG_MSPI_XIP=y and xip-config is present in DT with
enable=true, also implements get_mem_base so the memcpy path
is used automatically on controllers with a memory-mapped
aperture.
Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
The external memory device was updated instead of the internal
memory device which has the bootable partitions, this recfities it
to be the internal flash which is set to use mapped partitions
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Change calibration process to handle differential calibration
Configure channel 10 to differential for Nucleo N657X0-Q and
STM32N6570-DK in `adc_api` test
Pin PA10 (Arduino A2) is shared as positive input for channel 11
and negative input for channel 10, allowing to keep default pin
configuration to test single and differential input.
Signed-off-by: Basile GRUNER <basile.gruner@smile.fr>
Add a GPIO expander driver for the Raspberry Pi BCM283x, using
the VideoCore firmware property interface.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Add nor flash drivers for Realtek Bee family SoCs (RTL8752H and RTL87x2G).
Supports read, write, erase operations with page layout support.
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
Add YAML binding for the Realtek Bee nor flash, including
properties for supported flash bit modes (2-bit, 4-bit, and 4-bit DTR).
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
Implement device runtime power management for the SiWx91x
entropy driver. This ensures that the RNG is automatically
reenabled after deep sleep.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
VexiiRiscv is a RISC-V CPU core written in SpinalHDL, the successor
to VexRiscv. It features a configurable pipeline architecture and
stretches from very small RV32 to large RV64 dual issue cores.
https://github.com/SpinalHDL/VexiiRiscv
Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
This change adds basic target mode support for STM32 products.
Controller writes to target, and reading from the target, is supported.
Signed-off-by: James Growden <jgrowden@tenstorrent.com>
Add devicetree binding for the Xilinx Zynq Ultrascale+ MPSoC Real Time
Clock (xlnx,zynqmp-rtc) as a counter device.
The binding describes the RTC hardware block which provides a seconds
counter with alarm and seconds-tick interrupts.
Signed-off-by: Harini T <harini.t@amd.com>
Add ADMA (DMA controller) device tree nodes for the VersalNet
APU (Cortex-A78) subsystem. Eight ADMA channels (adma0-adma7) are
defined at their respective MMIO addresses with GIC SPI interrupts.
Signed-off-by: Abin Joseph <abin.joseph@amd.com>
Add ADMA (DMA controller) device tree nodes for the Versal Gen 2
APU (Cortex-A78) subsystem. Eight ADMA channels (adma0–adma7) are
defined at their respective MMIO addresses with GIC SPI interrupts.
Signed-off-by: Abin Joseph <abin.joseph@amd.com>
Xilinx general purpose DMA is designed to support memory to memory
transfer, memory to device and device to memory transfer.
ZynqMP Ultrascale has two instance of DMA . One located in FPD
(full power domain) is GDMA and the other located in LPD (low power domain)
is ADMA.
Versal and Versal Gen 2 have one instance of this DMA located in
LPD (low power domain) called ADMA with 8 channels.
The controller includes an AXI4 interface to read and
write memory with 16 word transfers for 64 bytes per transaction.
Introduce two yaml files to support two different devices.
Signed-off-by: Abin Joseph <abin.joseph@amd.com>
Complete cmu_N nodes including:
- Add interrupts
- Add clocks and clock-names per the clock tree reference
- cmu_3 / cmu_4 / cmu_5 use nxp,fault-reaction = "reset",
has no interrupt.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
This driver supports CLOCK_MONITOR_MODE_MEASURE:
configure programs REF_CNT from the user's window_ns and the
reference clock rate queried via clock_control; start() triggers a
single measurement whose completion is delivered through the
configure-time callback, with the device auto-disarmed before the
callback runs so the callback may restart the next measurement from
ISR context. get_rate() returns the most recent completed result.
stop() is ISR-safe and aborts an in-flight measurement; a transient
CONFIGURING state guards configure()'s unlocked clock query and HAL
init against concurrent start().
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
This driver supports CLOCK_MONITOR_MODE_WINDOW:
configure programs HFREF and LFREF from the user's expected_hz +
tolerance_ppm (auto-derived from the monitored clock via
clock_control when expected_hz is 0), start begins the background
comparison and stop disables it.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Switch boards da14695_dk_usb and da1469x_dk_pro from
fixed-partition to zephyr,mapped-partition
Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
The E4, E6 and E8 SoCs share a set of peripherals that are
additional to the minimum subset defined in ensemble_common.dtsi.
Introduce an ensemble_e4_e6_e8.dtsi resource layer (and matching
_nvic_irq/_gic_irq routing layers) to hold these, sitting between
the common layer and the per-SoC files. Rewire the E4/E6/E8 SoC
and interrupt dtsi to include the new layer instead of the common
one. E1C keeps including the common layer directly.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Add the uid node to the shared MCXE31x devicetree, describing the
unique chip identifier in the NXP OTP flash memory area via the
nxp,otp-uid binding. The node is left disabled so it has no effect
until a board enables it.
The address and size come from the MCXE31xx Reference Manual UTEST
memory map (8-byte UID at 0x1B000040, programmed by NXP).
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Add a hwinfo device-id backend that reads the unique chip identifier
stored in an NXP OTP flash memory area, as documented in the MCXE31xx
Reference Manual UTEST memory map. Add the nxp,otp-uid devicetree
binding that describes the identifier, and read it directly as memory
(8 bytes, most-significant byte first).
The hwinfo subsystem exposes its z_impl_hwinfo_* entry points as weak
symbols, so this backend implements only hwinfo_get_device_id() and
coexists with a separate reset-cause backend on the same SoC.
The backend is selected only when a node with the nxp,otp-uid
compatible is enabled, so it has no effect on its own; it is build
tested through tests/drivers/hwinfo/api once a board enables the node
(done later in this series).
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
- Change compatible from st,stm32-xspi to st,stm32-xspi-controller.
- Set op-mode to MSPI_OP_MODE_CONTROLLER.
- Set clock-frequency to 50 MHz, as st,stm32-xspi-controller.yaml
specifies it as required (may be moved to board configuration in
the future).
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
Add the st,m2-memory-connector DT binding and the corresponding
dt-bindings header defining GPIO pin identifiers for the M2
serial memory connector interface.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
Add a common disabled xspi1 controller node for STM32U3 SoCs.
This provides the XSPI controller description needed by boards
that expose external XSPI memories.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
This adds the XMC4800 BGA196 in 1M/200k and 2M/352k flash/ram variants.
Interrupt controller is untouched at present, the existing XMC4700 and
XMC4800 share a reference manual, and are identical in this regard.
Primary difference to the existing XMC4xxx in the smaller packages is the
addition of extra gpio ports 7, 8 and 9.
Pin control file is added, with basic usic and can pins only. Ports
7/8/9 are mostly for ethercat, but that is out of scope at this point.
Tested with private boards using leds on port 9.
Signed-off-by: Karl Palsson <karl.palsson@marel.com>