Add the BSEC OTP controller with the fuses ST
programs the MAC addresses of both MACs into as NVMEM cells, at the
same offsets Linux uses.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The BMM350 driver only supported I2C. Extend the existing RTIO bus
abstraction to also drive the sensor over I3C, following the same
multi-bus pattern used by the bmp581 driver.
A new BMM350_BUS_TYPE_I3C bus type is selected per devicetree instance
based on the bus the node sits on. The RTIO register read/write helpers
set the I3C stop/restart iodev flags, and bus readiness is checked via
the I3C controller device. Register access, triggering and one-shot/
streaming all flow through the existing bus_io vtable unchanged.
Add a bosch,bmm350-i3c.yaml binding that reuses the common properties,
make the I2C/I3C Kconfig selects conditional on the instance bus, and
add an I3C node to the sensor build_all test.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Add support for the Texas Instruments ADC124S021, a 4-channel
12-bit SPI ADC.
The driver implements the Zephyr ADC API and supports single-ended
reads on channels 0 through 3. Unsupported ADC API features such as
programmable gain, differential mode, oversampling, calibration, and
selectable resolution return -ENOTSUP.
Signed-off-by: Manuel Sanchez Monge <manuel.sanchezm2003@gmail.com>
Rework the sleep path timing calculation to improve precision by
calculating sleep time and wakeup margins with the right time
references.
When CONFIG_ESP32_PM_SLP_IRAM_OPT is enabled, the early wake path
(RTC timer re-enable, GPIO restore, and post-exit ops) is also
placed in IRAM so resume does not refill from flash after CPU
power down.
Light sleep DT exit-latency-us is 0 so PM does not shorten the
budget; the RTC lead is applied in power.c. C5 keeps flash powered
in light sleep via SOC_ESP32_PM_FLASH_KEEP_POWER_IN_LSLP.
Assisted-by: Grok:4.6
Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
Add the MHU mailbox nodes for RZ/G2L, G2LC and G2UL.
Update the existing RZ/G3S and V2L nodes to the reworked binding.
Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Rework the Renesas RZ MHU MBOX driver to align Renesas RA IPC
Mbox driver so that a single MHU unit serves both TX and RX
on one MBOX channel, and so that one driver instance can own
several channels.
Binding: rename "channel" to "unit", since it indexes the MHU
hardware unit and not the MBOX channel; replace "tx-mask" and
"rx-mask" with a single "channel-mask"; make "shared-memory"
optional.
Rename the Kconfig timeout option to
MBOX_RENESAS_RZ_MHU_BUSY_WAIT_TIMEOUT_US
Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Add support for accessing the 2-byte RAM of the Micro Crystal RV-3028
through the Zephyr retained memory API.
Signed-off-by: Janez Ugovsek <janez@ugovsek.info>
Add the inputmux and fmeas (compatible "nxp,fmeas") nodes to the RT6xx,
RT5xx and RW6xx SoC devicetrees. FREQME sits at offset 0x2f000 and
INPUTMUX at 0x26000 within the peripheral region. Each fmeas node wires
its gate clock (MCUX_FREQME_CLK) and reference clock (MCUX_SYSTEM_CLK)
and carries default reference/target INPUTMUX routing via the
NXP_FMEAS_* cookies; the node is left disabled by default and is
enabled by the application overlays that use it.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add a clock_monitor back-end for the NXP BASIC Frequency Measurement
(fmeas) block, wrapping the MCUX SDK fsl_fmeas HAL. The block has no
interrupt line and no MIN/MAX threshold registers, so only MEASURE
(one-shot) mode is supported and WINDOW mode returns -ENOTSUP:
completion is polled from a workqueue and reported as MEASURE_DONE, or
as CLOCK_LOST when no target edges are counted. The HAL fixes the
window at 2^20 reference cycles, so window_ns is ignored.
Reference and target clocks are routed through INPUTMUX and selected at
runtime from devicetree source lists, each pairing a mux route with a
fixed rate or a clock_control provider.
Serialization is a single k_spinlock that is never held across a call
into another subsystem: configure() resolves the reference rate into
locals first and commits them in one short region, and set_source()
parks the state machine at CONFIGURING for the duration of the
re-route. start() arms the block and queues the poll inside its region
and stop() cancels inside its own, so the two cannot interleave and
both stay ISR-safe as the API requires.
Adds the nxp,fmeas binding, its NXP_FMEAS_* INPUTMUX cookie macros and
the fsl_fmeas / inputmux HAL component selection.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Assisted-by: Claude:claude-opus-5
The RSCANFD is capable of CAN and CAN FD communications.
It features 8 channels per controller.
The controller itself is referred as "global", and there is a specific
binding for the channels.
Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
The TSTMR peripheral on MCXW72 is clocked by the SIRC oscillator,
which is not stable enough to guarantee reliable timestamp counter
operation. Keeping the node enabled leads to inaccurate timing on
MCXW72 parts.
The tstmr0 node is defined in the shared nxp_mcxw7x_common.dtsi that
is used by both MCXW71 and MCXW72. To disable it for MCXW72 only,
without affecting MCXW71, delete the node in nxp_mcxw72.dtsi via
/delete-node/ and drop the now-dangling &tstmr0 board overrides from
the frdm_mcxw72 and mcxw72_evk board DTS files.
Verified that devicetree preprocessing of the frdm_mcxw72 board parses
cleanly with the node removed, that no &tstmr0 reference remains in the
MCXW72 board/SoC DTS, and that nxp_mcxw7x_common.dtsi still defines
tstmr0 so MCXW71 is unaffected.
Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
The STM32WL3 flash controller IP is compatible with STM32WB0.
Use the STM32WB0 compatible to select the existing flash driver.
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
zephyr,mapped-partition needs an unbroken chain of ranges from the
partition up to the CPU address space; the k2x, k6x and k8x flash
controllers and flash nodes had none. Flash starts at offset 0 on these
parts, so an identity ranges suffices.
nxp_k6x.dtsi is also used by rddrone_fmuk66, which keeps
fixed-partitions for now; that binding is unaffected by the added ranges
and the board builds byte-identical.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
zephyr,mapped-partition needs an unbroken chain of ranges from the
partition up to the CPU address space; the ke1xz and ke1xf flash
controllers and flash nodes had none.
The ke1xz variants replace the common flash controller via
/delete-node/, so nxp_ke17z.dtsi and nxp_ke17z512.dtsi each need the
ranges added to their own redefinition rather than to nxp_ke1xz.dtsi.
Flash starts at offset 0 on these parts, so an identity ranges suffices.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
zephyr,mapped-partition needs an unbroken chain of ranges from the
partition up to the CPU address space; ftfe and the kv5x flash nodes had
none.
Give ftfe an identity ranges and each flash node a triplet mapping offset
0x0 to its 0x10000000 base, plus address/size cells. Both the 512K and 1M
variants are updated so the family is not left half-converted.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
zephyr,mapped-partition resolves a partition's address through devicetree
address translation, and gen_defines.py requires an ancestor that
literally lists "soc-nv-flash" in compatible. The mcxe31b flash node had
neither: only "nxp,c40-flash", which merely includes soc-nv-flash.yaml,
and no ranges.
Add the soc-nv-flash fallback compatible plus ranges and address/size
cells, so the partitions can be converted in the following commit.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Give mimxrt798s, mimxrt758s, and mimxrt735s each their own composer
dtsi that includes the shared per-core dtsi and applies part-specific
deltas, instead of having boards include a shared series file
directly.
mimxrt758s and mimxrt735s lack the HiFi4 DSP core present on
mimxrt798s: delete the &dsp control node and the CPU-to-HiFi4 mailbox
nodes (mbox4_a on cpu0, mbox2_b on cpu1).
mimxrt735s additionally has 5MiB of SRAM in two discrete physical
ranges instead of mimxrt798s/mimxrt758s's contiguous 7.5MiB block:
0x000000-0x3FFFFF (4MiB) and 0x580000-0x67FFFF (1MiB), with no SRAM
present in between. The &sram ranges property is split into matching
sub-ranges per alias window. Within the second range, 0x5C0000-0x5FFFFF
(CPU1 data) and 0x600000-0x67FFFF (CPU1 code) already match the
existing sram3 and sram_code partitions, so they are left as-is;
0x580000-0x5BFFFF is reserved for the HiFi1 core but left undeclared
for now, since HiFi1 has no devicetree modeling elsewhere in this tree
yet.
Update the mimxrt700_evk and frdm_imxrt700 mimxrt798s board files to
include the new nxp_rt798s_cm33_cpu*.dtsi composer files instead of
the shared per-core dtsi directly.
Signed-off-by: Wei Feng <wei.feng_5@nxp.com>
Add support for software-managed RTS flow control to work around
hardware RTS silicon limitations on affected STM32 SoC revisions:
- Add st,sw-rts-gpios property to st,stm32-uart-base binding.
- Add UART_STM32_ABNORMAL_RTS_ERRATUM_WORKAROUND Kconfig option with
automatic GPIO selection.
- Configure USART hardware for CTS-only flow control.
- Assert RTS (active low) on rx_enable and deassert on rx_disable
or buffer exhaustion.
Fixes#36849
Signed-off-by: Priyanshu Singh <singhpriyanshu9838@gmail.com>
The main SRAM is four banks, not three: SRAM0 (64K) at 0x20000000, then
SRAM1, SRAM2 and SRAM3 (32K each) at 0x20010000, 0x20018000 and
0x20020000. Split the oversized sram1 node and add sram3, so that each
bank, and so each AHB matrix port, can be addressed on its own.
Update the lpcxpresso54628 comment that named the banks it merges.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Marvin Gnad <marvin.gnad@gmail.com>
The KMU requires a 96-byte push area at the start of RAM. This was
previously handled by a linker script, but as a hardware requirement it
belongs in devicetree.
Add a kmu_push_area reserved-memory node at 0x20000000, and add a
cpuapp_sram_app child node to cpuapp_sram covering the SRAM that is
left for the application. The chosen zephyr,sram is pointed at that
child node, so sram, cpuapp_sram and the ram0x_sram nodes keep
describing the SRAM as the hardware presents it.
The overlays that limit the SRAM available to the application are
updated to resize cpuapp_sram_app instead of cpuapp_sram.
Both nodes are guarded by USE_NON_SECURE_ADDRESS_MAP, as TF-M/NS builds
manage the KMU push area through their own partition layout.
Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
The KMU requires a 96-byte push area at the start of RAM. This was
previously handled by a linker script, but as a hardware requirement it
belongs in devicetree.
Add a kmu_push_area reserved-memory node at 0x20000000 for all nRF54L
devices with KMU support, and add a cpuapp_sram_app child node to
cpuapp_sram covering the SRAM that is left for the application. The
chosen zephyr,sram is pointed at that child node, so cpuapp_sram keeps
describing the SRAM as the hardware presents it, starting at
0x20000000.
Every overlay and snippet that limits the SRAM available to the
application is updated to resize cpuapp_sram_app instead of
cpuapp_sram, since resizing the latter would put the application RAM
back on top of the KMU push area.
Both nodes are guarded by USE_NON_SECURE_ADDRESS_MAP, as TF-M/NS builds
manage the KMU push area through their own partition layout.
Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
Add a driver for the VIRTIO SPI controller device (virtio spec 1.4,
section 5.21), letting a Zephyr guest drive a SPI bus exposed by a
hypervisor or a vhost-user backend.
The device carries a single transfer per request, so a transceive call
is split into one request per contiguous chunk of the buffer sets, with
cs_change holding the chip select asserted in between. The controller
capabilities are read from the device configuration space at init and
checked against the SPI configuration. Every request is a round trip to
the device, so the SPI API can only be used from a thread.
Assisted-by: Claude Code:opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Added all device nodes for TPM to be used as PWM, as there are already
some device nodes for TPM which are used as counter, so using different
name for TPM which are used as PWM.
Signed-off-by: Jianchao Wang <jianchao.wang_1@nxp.com>
Added one node for TPM to be used as PWM, as there are already
some device nodes for TPM which are used as counter, so using
different name for TPM which are used as PWM.
Signed-off-by: Jianchao Wang <jianchao.wang_1@nxp.com>
Update Renesas Flash-HP for mapped-partition migration
Remove extend operation for Flash-HP since the block protect belong to
OFS setting
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
RV_TIMER_BASE is derived from the mtimer devicetree node but the
register offsets used with it are relative to the rv_timer base at
0x40100000. Since commit f11f68eade that node describes only the
mtime and mtimecmp registers, so DT_REG_ADDR() returns 0x40100110
rather than the timer's base. The function soc_early_init_hook()
therefore writes CTRL to 0x40100114 and INTR_ENABLE0 to 0x40100210,
instead of 0x40100004 and 0x40100100.
Signed-off-by: Adrian Śliwa <asliwa@internships.antmicro.com>
Add flash-controller node (flashctl) wrapping flash0 in mspm0.dtsi
with ti,mspm0-flash-controller compatible and add the corresponding
DT binding.
Fix flash node compatible from serial-flash to soc-nv-flash and rename
node from serial-flash@0 to flash@0 throughout all MSPM0 device DTSIs.
Switch device DTSIs from path-based flash0 override to label reference
(&flash0) since flash0 is now a child of flashctl. Add ranges to flash
nodes to enable zephyr,mapped-partition children.
For GX51X devices (g151x, g351x) with two code banks, flash1 and flash2
are moved under &flashctl with soc-nv-flash compatible.
Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
Add a driver for the Plantower PMSA003I laser particulate matter sensor.
The sensor exposes PM1.0/PM2.5/PM10 mass concentrations (both CF=1
standard particle and atmospheric environment) and 0.3/0.5/1.0/2.5/5.0/10
um particle counts over I2C, read as a 32-byte fixed frame from register
0x00 with a start-byte, frame-length and checksum validation.
The optional reset and set pins are internally pulled up on the sensor,
so they are handled only when wired in the devicetree.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
The header qdec_stm32.h is included in each root dtsi file for each
STM32 series. There is no need to include it in child dtsi files.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
STM32H7R/S was missing some pwm nodes on Timers 9, 12, 13 and 14.
These timers supports PWM so the node has been added.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
On STM32U5, Timers 6 and 7 are basic timers that do not support PWM.
Remove it from the device tree.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
On STM32U3, Timers 6 and 7 are basic timers that do not support PWM.
Remove it from the device tree.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
On STM32L4, Timer 7 is a basic timer that do not support PWM.
Remove it from the device tree.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>