The core code of the eeprom target library is a simple implementation of
byte oriented read and write against a memory range. The same protocol
is used by a lot of devices that use it to address a set of register and
is useful for other target drivers as well.
Refactor it out to a library so it can be reused, structs, code, api
implementation, dt binding and helpers.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Add ti,interface-type = "rgmii" to the enet1g_phy node. The property is
required after the ti,dp83867 binding change that removed the implicit
rgmii default.
Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
Add gmii to the ti,interface-type enum so boards connected
in GMII mode can describe the PHY interface in devicetree.
Make ti,interface-type a required property and remove the rgmii
default.
Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
Add all eight LPSPI controller nodes (lpspi1-lpspi8) to the i.MX943
A55 SoC devicetree, referencing the Linux imx94.dtsi. Each node uses
the "nxp,lpspi" compatible with its register base, GIC interrupt, SCMI
clock and the required tx/rx FIFO sizes. All instances are disabled by
default and can be enabled at the board level.
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Add nxp_rt115x.dtsi with the common RT1150 family deltas against the
shared nxp_rt11xx dtsi: 798MHz ARM PLL, 1MB dedicated OCRAM, and
removal of peripherals not present on the family (100M ENET,
LPUART4/10/11, LPI2C5, LPSPI6, FLEXCAN3, SAI4, MU, MIPI DSI).
nxp_rt1151.dtsi and nxp_rt1152.dtsi provide the per-part devicetrees;
the RT1151 additionally removes CSI, eLCDIF and PXP.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Model DMAEND and FRAMETIMEOUT_DMAEND support as a devicetree
capability. Use DMAEND for finite asynchronous RX frame timeouts on
capable UARTE instances and retain STOPRX on unsupported hardware.
Disable TIMER-based byte counting when DMAEND is available. Preserve
buffer accounting when uart_rx_disable() races with an ENDRX rollover,
reject buffer responses during teardown, and restore the interrupt
state after DMM preparation failures.
Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
Update the documented TMAG5273 axis enum values in the
devicetree binding to match the values used by the driver.
Signed-off-by: Stefan Prisacariu <stefan.prisacariu@prevas.dk>
- 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>
Move the devicetree examples from the binding description
to the dedicated examples section.
Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
Update the driver of SCLK (Slow Clock Controller) for compatible with
more MPUs such as sam9x and sama5d2 series.
Signed-off-by: Tony Han <tony.han@microchip.com>
This adds support for the ARM Corstone System Architecture Specification
Ma2 (ARM CRSAS-MA2) Watchdog Timers.
Signed-off-by: Mike J. Chen <mjchen@google.com>
Co-authored-by: Wojciech Sipak <wsipak@antmicro.com>
Signed-off-by: Wojciech Sipak <wsipak@antmicro.com>
Add a display driver for the LeveTop LT7680. This was tested with the
sample `zephyr/samples/subsys/display/lvgl`.
While this display should theoretically support all 4 orientations, I only
managed to get it working with 0 and 180 degrees, so the driver only
supports these for now.
Signed-off-by: Thomas Fischer <thomas.fischer@jumo.net>
Co-authored-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
Major rework of the ICBMSG ipc service backend:
1. User callback is called from the mbox interrupt context.
Since RX holding functionality is supported it is possible to
postpone data processing to the thread context and limit the
time spent in the interrupt context to a minimum.
2.Extracted buffer allocation into separate file (heap)
Buffer can now be allocated from interrupt context as well.
3.Changed control path.
Instead of sending messages using icmsg, lightweight queue is used.
Each direction has producer and consumer queue. Each queue has n
(typically 16) byte slots. Producer is writing an index of the buffer
where new message can be found into the next free slot. Receiver is
reading from the producer queue and when buffer is processed then its
index is written to the next free slot in the consumer queue.
TX side, after each sending, is performing a garbage collection by
reading slots from the consumer queue and freeing the buffer. With this
approach producer queue is written only by the TX side and read by RX
side and consumer queue is written by the RX side and read by the
TX side. Additionally, queue supports 2 priority levels. Consumer is
first reading high priority messages.
Rework significantly reduces code size (2,5-4kB) and increases
performance. It also allows to send messages from any context and
reduced round trip time since receiver can respond directly from the
receive callback.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Assisted-by: Cursor:auto
Add a disk_access driver for virtio,blk devices.
It supports negotiated block size and scatter-gather requests.
Signed-off-by: Hongquan Li <hongquan.li@processmission.com>
Commit 6568b31857 ("dts: nordic: nrf7120: Add default memory region
for vtf monitoring") added the vtf_region_default node with a ranges
property but without #address-cells and #size-cells, which all the
sibling memory nodes declare. The parser then falls back to the
default #address-cells of 2, so the three-cell ranges value no longer
divides evenly and every nrf7120dk build fails:
devicetree error: 'ranges' property in
<Node /soc/memory@20000000/memory@fdfe0> has length 12, which is
not evenly divisible by 16
Declare #address-cells = <1> and #size-cells = <1> to match the
sibling ram0x_sram nodes and the intended 1:1 mapping.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Commits f3e371b384 ("dts: arm: nxp: enable FREQME on MCX and RT700
boards") and f7c5e4cbdf ("dts: arm: nxp: mcxn23x: Add qdc and
inputmux node") each added an identical inputmux0: inputmux@6000 node
to different parts of the same &peripheral block. The two changes
merged without a textual conflict, but the devicetree parser rejects
the duplicate node name, breaking every mcxn23x build (e.g. all
frdm_mcxn236 targets in CI):
nxp_mcxn23x_common.dtsi:1298 (column 27): parse error:
/soc/peripheral@50000000/inputmux@6000: duplicate node name
Drop the second copy, which was also out of unit-address order,
keeping the one placed between syscon@0 and freqme@11000.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
vtf monitoring requires a default address that can be accessed from app
and wifi cores. vtf_region_default is set to be top unallocated
memory in RAM03.
Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
Add SoC and devicetree support for the R-Car Gen4 R8A779G0 A76.
Co-authored-by: Yuya Hamamachi <yuya.hamamachi.sx@renesas.com>
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Add the freqme node to the MCXA15x, MCXA34x, MCXA5x, MCXAxx6, MCXN23x,
MCXNx4x and MCXL SoC devicetrees and to the RT700 cm33_cpu0 devicetree, and
enable it on frdm_mcxa153, frdm_mcxa156, frdm_mcxa266, frdm_mcxa344,
frdm_mcxa366, frdm_mcxa577, frdm_mcxn236, mcx_n5xx_evk (MCXN547),
mcx_n9xx_evk (MCXN947), frdm_mcxl255 and mimxrt700_evk (MIMXRT798S) boards.
Each freqme node lists its selectable clocks as "reference-sources" and
"target-sources" child nodes, pairing an INPUTMUX cookie with a frequency
provider: "clocks" for rates clock_control can report (FRO_HF, FRO_12M,
FRO_HF_DIV, CPU_AHB, EXT), or a fixed "clock-frequency" for fixed
oscillators (32 kHz, 16 kHz, FRO1_DIV8, FRO2). External or variable sources
(CLK_IN*, SLOW_CLK, LPOSC, FRO0, GPIO clocks) are listed as target-only
(MEASURE) with no frequency provider. The child marked "default-source" is
the power-on selection.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add a clock_monitor back-end for the NXP FREQME (Frequency Measurement)
peripheral, wrapping the MCUX lpc_freqme HAL. It supports MEASURE
(one-shot) and WINDOW (continuous MIN/MAX threshold) modes, queries the
reference rate from clock_control, and enables the peripheral gate through
clock_control. It does not enable the reference or target source clocks -
the application must ensure they are running before configure()/start();
the driver only routes and measures them.
Reference and target clocks are selected from devicetree-declared source
lists ("reference-sources" / "target-sources"); each source pairs an
INPUTMUX route with a frequency provider (a "clocks" phandle or a fixed
"clock-frequency"). clock_monitor_set_source() switches the reference and
the target between the declared sources at runtime and drops the device
back to unconfigured state, so the next configure() re-derives REF_SCALE
and the WINDOW thresholds. Reference sources must resolve a frequency;
target sources may omit one, since the target rate is measured, not
predicted.
This includes the devicetree binding, the INPUTMUX connection-cookie header
with per-family cookies (MCXA, MCXC, MCXN, MCXL, MCXW and RT700) plus the
NXP_FREQME_SOURCE_UNCHANGED sentinel, and the syscon clock identifiers used
to query the FRO / CPU-AHB / external clock rates and to gate FREQME.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add a node for the VREFBUF peripheral in the STM32G0. The VREFBUF is
available only on stm32g0X1 variants.
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
ke1xz core clock source is lpfll which is 72MHz instead of 48MHz.
ke17z512 core clock is 96MHz with an override in nxp_ke17z512.dtsi.
Signed-off-by: Wei Feng <wei.feng_5@nxp.com>
Add ext1-pwren-gpios binding to nxp,wifi.yaml for M.2 module VPCIe_3V3
power control. On imx91 (AArch64), GPC is not available so read
WL_WAKE_HOST GPIO directly via wakeup_gpios DT property instead.
Use CONFIG_PM_MCUX_GPC to guard fsl_gpc.h include, which is more
precise than excluding by SoC series.
Signed-off-by: Li Long <li.long@nxp.com>
Add uSDHC3 (Wi-Fi SDIO) and LPUART5 (BLE UART) peripheral nodes to
nxp_mimx9131.dtsi. Add M.2 shield aliases m2_wifi_sdio and m2_hci_bt_uart.
Add IMX_CCM_USDHC3_CLK clock definition for uSDHC3 peripheral.
Signed-off-by: Li Long <li.long@nxp.com>
Add the RTC device tree node for the Xilinx Zynq Ultrascale+ MPSoC. The
RTC is at 0xffa60000 with alarm (SPI 26) and seconds (SPI 27)
interrupts. The node is disabled by default.
Signed-off-by: Harini T <harini.t@amd.com>
This reverts commit f9bed91088.
build error:
Build failure - error: static assertion failed: "cpu0 clock-frequency
does not match HSE * mul"
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit adds a new DT control `hsi-prediv` for `wch,ch32v20x_30x`
devices and compile-time checks to ensure the clock configuration is valid.
This allows control of the internal clock divisor to be able to reach the
full 144MHz when using the internal clock source (`HSI`).
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Perry Naseck <pnaseck@media.mit.edu>
Define the standard `ranges` property in the `base.yaml` binding so that
other bindings can easily set it as `required: true`. The property
follows the pattern of `interrupts-extended`: type `compound` is used to
disable type-checking at DTLib level but the type is validated at EDTLib
level.
Update all bindings which explicitly assigned a type to the property
(and include `base.yaml` - which is all of them) to remove the type
assignment as it would cause build failures.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Include spi-device.yaml in the andestech,qspi-nor binding. The Egis
ET171 QSPI controller acts as an SPI bus, and its flash children must
have a reg property specifying the chip select. Adding this include
declares the reg property and avoids avoid_unnecessary_addr_size and
spi_bus_reg DTC warnings.
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Remove unnecessary #address-cells and #size-cells properties from the
kbd and kscan nodes in all mec SoCs. These properties are not needed
because the keyboard controller does not have any memory-mapped child
nodes with reg properties, and their presence triggers an
avoid_unnecessary_addr_size DTC warning.
Also update the microchip,xec-kbd binding to no longer require these
properties.
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Remove unnecessary #address-cells and #size-cells properties from the
ite,it8xxx2-pinctrl node. These properties are not needed because the
pin-controller node does not have any memory-mapped child nodes with
reg properties, and their presence triggers an
avoid_unnecessary_addr_size DTC warning.
Signed-off-by: Jeremy Bettis <jbettis@google.com>
This adds support for ARM Corstone System Architecture Specification Ma2
(ARM CRSAS-MA2) System Counter and System Timer.
The HW consists of one 64-byt System Counter, and any number
of System Timers that have match registers to generate interrupts
based on the value of the System Counter.
The timers don't have any counter/timer of their own, meaning that
System Counter can't be started or stopped independently if there is an
enabled System Timer.
Add the crsas-ma2 timer to the test for counters.
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: Krystian Hebel <khebel@antmicro.com>
Add the PCNT signal-map entries for the esp32p4 and the PCNT
pinmux macros in the pinctrl header so PCNT pins can be selected
from devicetree.
Assisted-by: Claude Code:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>