Describe the DCMIPP camera pipeline of the STM32MP25 with its CSI-2
host: registers at 0x48030000, DCMIPP and CSI interrupts, DCMIPP and
CSI2 clocks and resets, the dump, main and auxiliary pipes and a CSI-2
D-PHY input endpoint. The DCMIPP kernel clock is selected by the
Cortex-A35 firmware, so only the DCMIPP and CSI gates are listed. The
node uses the existing st,stm32-dcmipp binding and driver.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Jerome LAMY <jerome.lamy@savoirfairelinux.com>
Add a common dts for Renesas RX74x series and the dts for
r5k574x mcu
Add bindings for icum and rx system controller
Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
The new RX74x MCU from Renesas is using RXv3e core which have
new ISA, this commit is only aim to add the definition support
for this target.
Adding bindings for rx cpu core version
Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
The pllchild and pll0out compatibles are only declared inside the
child-binding of the PLL binding, so the documentation has no page for
them and the board pages listing them fail to resolve the reference.
Nothing matches on these compatibles: the driver walks the PLL nodes by
label, and child nodes get their properties from the parent's
child-binding. Drop them, as the other clock child nodes already do.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
MCXW7x keeps every CMC SRAM bank powered in all modes, including banks the
linked image never uses. Add an opt-in feature
(CONFIG_SOC_MCXW7X_SHUTDOWN_UNUSED_RAM) that powers off, in all modes via
the CMC SRAMDIS register, every bank lying entirely above the top of used
RAM (_image_ram_end). Bank geometry comes from a new optional "sram-banks"
property on the nxp,cmc node, so the code is SoC-agnostic and the
VBAT-retained bank is omitted from the list. No-op under the default
arena size (-1, mask 0).
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
Declare the opamp device class on the opamp controller base binding, so
that opamp nodes can be enumerated at build time through
DT_FOREACH_CLASS_STATUS_OKAY(), DT_NUM_CLASS_STATUS_OKAY() and
$(dt_class_enabled,opamp), instead of a hand-maintained compatible list.
One declaration on the base binding covers every opamp binding in the
tree: infineon,autanalog-ctb-opamp, nxp,opamp and nxp,opamp-fast include
opamp-controller.yaml directly, and st,stm32g4-opamp inherits it through
st,stm32-opamp. All four opamp drivers register DEVICE_API(opamp, ...),
so the class name matches a registered device API class.
Nothing is added to DTS files or to zephyr.dts.
Build-tested samples/drivers/opamp/output_measure on
frdm_mcxn947/mcxn947/cpu0 (direct include) and nucleo_g474re (inherited
through st,stm32-opamp); both emit the per-node class macros and
DT_FOREACH_OKAY_CLASS_opamp for the enabled instance.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Add the bflb,bt-hci controller node (disabled by default) and a
bl808_em_32kb.dtsi include that trims 32 KB of WRAM off system RAM for
the BLE Exchange Memory, mirroring the bl60x and bl61x EM includes.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Add device node to support UHC on Renesas RA SoCs
Signed-off-by: Minh Hoang <minh.hoang.wm@bp.renesas.com>
Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
First commit to support UHC driver for Renesas RA family
Signed-off-by: Minh Hoang <minh.hoang.wm@bp.renesas.com>
Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
Add a driver for the AD Semiconductor TSM12 12-channel capacitive touch
sensor, which also covers register-compatible parts such as the Si12T
used on the M5Stack StackChan.
Each configured channel reports a key press as soon as any touch level
is detected. The sensor is polled, or read on interrupt when int-gpios
is set and then polled until all channels are released.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add vendor prefix for AD Semiconductor Co., Ltd. (adsemi), maker of
the TSM12 capacitive touch sensor.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
The raw microchip,pad-edge-rate property duplicates the Linux devicetree
ABI for the same hardware control.
Replace it with vsc8531,vddmac and vsc8531,edge-slowdown. Convert the
voltage-dependent slowdown percentage to the register setting at compile
time using the datasheet table. Reject unsupported combinations at build
time and leave the pad edge-rate control register untouched when
edge-slowdown is absent.
Document the percentages as typical silicon measurements and add build
coverage for default and explicit settings.
Assisted-by: Codex:GPT-6
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
The clock source for the `enet1g_ptp_clock` device was incorrectly set
in the device tree file.
This commit updates the clock property for the `enet1g_ptp_clock`
so that its clock root is correctly driven by `IMX_CCM_ENET1G_PLL`.
This fix ensures that the PTP clock operates at the correct frequency
and uses the proper hardware source.
Signed-off-by: Mateo Ivankovic <mateo.ivankovic@inovex.de>
Add common DTS includes for WisBlock Sensor Slot positions A-F.
Each maps the slot's signals onto the I/O Slot connector exposed by
the WisBlock Core Module.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
Add dts/vendor/rakwireless/rak4630.dtsi describing which nRF52840
peripherals are exposed through the RAK4630 WisDuo SoM WisConnector
pads. Consumed by the RAK4631 WisBlock Core Module.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
Map WisBlock Sensor Slot signals (positions A-F) to SoC GPIO pins.
WisBlock Sensor Module shields use this binding to reference slot
connector lines independent of the underlying WisBlock Core Module.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
Map WisBlock I/O Slot signals to SoC GPIO pins. WisBlock Core Module
boards use this binding to expose the slot connector lines to board
DTS and shields without duplicating the pin assignment per board.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
Update or add the NIST configuration for a selection of STM32.
The configuration comes from ST Application Note AN4230, Table 3.
Some series that were using the default configuration C from their RefMan
now uses the NIST compliant one. For some others, the NIST compliant
configuration seems to have changed since last revision, in that case
update the values.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add the VBAT sensor node and configure SAADC channel 0 for internal
battery voltage measurement.
Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
Commit e9f6701f15 ("dts: nxp: mcx: prepare mcxa flash nodes for
mapped partitions") added an empty ranges; to the fmu flash-controller
node so zephyr,mapped-partition children of flash@0 could translate
their address up to the CPU address space.
fmu sits inside &peripheral (peripheral@50000000), whose own ranges
maps its bus space to 0x50000000. Giving fmu its own ranges makes
EDT's _translate() keep climbing past fmu into that non-identity
mapping, so CONFIG_FLASH_BASE_ADDRESS resolves to 0x50000000 instead
of 0x0 on every frdm_mcxa577 variant, breaking LinkServer flashing.
Dropping ranges from fmu instead would silence the symptom but leaves
fmu without any bus mapping to flash@0, which is not representative:
the flash controller does have memory-mapped access to flash, so an
absent ranges is not the correct way to describe it either.
Move fmu out from under &peripheral into /soc as a direct sibling,
alongside sram and peripheral, matching the placement Nordic uses for
the same situation (flash_controller as a sibling of peripheral@50000000
in nrf5340_cpuapp.dtsi/_ns.dtsi). Once fmu is no longer nested inside
a node with a non-identity ranges, an empty ranges; on fmu is safe:
translation still stops at /soc, which has no ranges of its own, so
CONFIG_FLASH_BASE_ADDRESS keeps resolving to 0x0 while fmu correctly
declares its address-space relationship to flash@0.
Verified with west build -b frdm_mcxa577 and
-b frdm_mcxa577/mcxa577/ns samples/hello_world: CONFIG_FLASH_BASE_ADDRESS
is 0x0 on both variants and zephyr.dts keeps flash-controller@50095000
(secure) / @40095000 (non-secure) as direct children of soc. Also
flashed and ran samples/hello_world on physical frdm_mcxa577 hardware
via the on-board MCU-Link CMSIS-DAP probe: LinkServer auto-detects the
on-chip flash region at 0x0 and programs it there, and the board boots
and prints "Hello World! frdm_mcxa577/mcxa577" over the MCU-Link VCom
UART.
Fixes#119682
Signed-off-by: Peter Wang <chaoyi.wang@nxp.com>
refresh-rate only said that it counts SDRAM clock cycles, so boards
copied values computed for another clock. Add the formula from the
FMC_SDRTR description (RM0090 Rev 22, section 37.7.5; the F7 and H7
reference manuals give the same one), what the SDRAM clock is, and an
example.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: YunHung Hua <oliverhua.us@gmail.com>
Recent upstream changes added initial 8-bit Intel 8080 bus support to the
STM32 FMC MIPI-DBI driver, but left several gaps and safety checks:
- In mipi_dbi_stm32_fmc_write_display(), 16-bit mode increments by 2
bytes without validating whether desc->buf_size is even. If an odd
buffer size is provided, sys_get_le16() reads 1 byte past the end of
the buffer. Add an explicit check returning -EINVAL for odd buffers.
- Replace the naked MIPI_DBI_FMC_IS_8BIT macro with a parenthesized
MIPI_DBI_FMC_ADDR_SHIFT macro using BIT() to prevent
operator precedence issues or unsigned integer overflow.
- Add a compile-time BUILD_ASSERT in MIPI_DBI_STM32_FMC_INIT verifying
that the parent memory bus width is strictly 8-bit or 16-bit.
- Update dts/bindings/mipi-dbi/st,stm32-fmc-mipi-dbi.yaml to document
both 8-bit and 16-bit Intel 8080 operation and explain the physical
HADDR address shifting rules.
Related to #118104
Signed-off-by: Priyanshu Singh <singhpriyanshu9838@gmail.com>
Allows selection of either 3.3V or 1.8V P4
voltage. If 1v8 is selected and VIOP4 is
driven with 3.3V, the port will be damaged.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
STM32G4 ADC1/3/4/5 can convert VREFINT on IN18; ADC2 cannot. Add
disabled st,stm32-vref nodes next to the SoC files that introduce
those ADC instances. Keep the existing vref label and add vref1 for
consistency with the numbered ADC3/4/5 nodes.
Link: https://github.com/zephyrproject-rtos/zephyr/pull/117114#discussion_r3841545245
Assisted-by: Cursor:grok-4.6
Signed-off-by: Lasse Fröhner <lasse@starcopter.com>
When CONFIG_ADC_STM32_VREFINT_CALIBRATE is enabled, measure VREF+ from
VREFINT on each owning ADC child at init and on sequence.calibrate,
cache it SoC-wide, and return it from adc_ref_get() / adc_ref_internal().
Parent DT vref-mv remains the fallback.
Look up st,stm32-vref io-channels against ADC child nodes, including
disabled vref nodes. Read the cache without taking stm32_adc_vref_lock
in the stream ISR.
Link: https://github.com/zephyrproject-rtos/zephyr/issues/113971
Assisted-by: Cursor:grok-4.6
Signed-off-by: Lasse Fröhner <lasse@starcopter.com>
The INT1 pad is left disabled by the soft reset at init, so FIFO
interrupts never reach the host and streaming never completes. Enable
it as a push-pull output whose active level follows the int1-gpios
polarity.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
Refactor Renesas OSPI_B driver to support multiple 8D-8D-8D,
1S-4S-4S, 4S-4S-4S
SPI NOR flash devices:
- Update init flow to get command value from the SFDP tables
- Update API function to support multiple protocol modes
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add a video capture driver for native_sim that reads fixed size raw
frames from a named pipe on the host and exposes them through the video
API as an ordinary zephyr,camera device. A host process such as ffmpeg
feeds the pipe from a webcam, a video file or a test pattern, which
lets video applications run on native_sim without camera hardware.
The driver is split the usual way for native_sim. The bottom half is
built in the native simulator runner context and is the only part
touching the host C library: it creates the FIFO with mkfifo() when
needed, refuses a path that exists but is not a FIFO, and opens it
O_RDONLY | O_NONBLOCK so that no read() can ever stall the simulation.
A dedicated thread polls the FIFO and reads straight into the buffer at
the head of the input queue. The buffer is only dequeued once exactly
width * height * bpp bytes have been read, so stop and flush never lose
it. While the application holds every buffer the driver stops reading
and the host writer blocks on the full pipe.
A writer disconnecting mid-frame makes read() return 0. The partial
frame is then discarded while the descriptor stays open, so the next
writer to attach is guaranteed to be frame aligned.
The application selects the format with video_set_format(), as with the
other video drivers. get_caps() lists the formats of video_sw_generator
that ffmpeg can write (RGB565, RGB24, BGR24, XRGB32, BGRX32, YUYV and
GREY), any size up to 1920x1080, with an even width for YUYV, and the
default is 320x240 RGB565. The host writer is responsible for scaling
and pixel format conversion, so it must write frames of the selected
format. A buffer queued before a larger format was selected is returned
unfilled rather than overrun.
The FIFO path comes from the fifo-path property, or defaults to
/tmp/zephyr-<device>-<pid>.fifo so that several simulator instances do
not collide. It can be overridden at runtime with the --<device>=<path>
command line option. A FIFO created by the driver is removed when the
simulator exits.
Frame intervals and controls are not implemented yet, so the driver is
marked experimental for now.
Assisted-by: Antigravity:gemini-3-pro
Signed-off-by: Changyeon Jo <changyeon@google.com>
Replaced the unused brightness-gpios with brightness-dac to support the
contrast voltage. The driver is updated to support brightness_set and
brightness_get in percent (0-100).
Signed-off-by: Erwin Herrsche <erwin@herrsche.ch>
An application that needs both a single and a double tap from the same
button currently has to use the raw key events to implement that in the
application code. The double tap device does not consume its input, so
a double tap still delivers both of its raw presses, and the
application has to defer acting on a raw press until the double tap
delay has expired, duplicating logic the driver already has.
Add a single-tap-codes property, similar to the optional short-codes
property of input-longpress. When set, a key event is emitted once the
double tap delay expires without a second press.
The event is only emitted if the key has been released before the delay
expired, so that holding a key down does not report a single tap.
Behavior is unchanged for nodes that do not set the new property.
Tested with tests/subsys/input/double_tap on native_sim, and on
nrf52840 hardware with a four button gpio-keys setup feeding both
input-longpress and input-double-tap from the same buttons.
Signed-off-by: Marek Czerski <ma.czerski@gmail.com>
Add the AON LPADC node to the MCXL255 CM33 devicetree
and enable it on frdm_mcxl255 CPU0 with its pinmux.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Add an ADC driver for the NXP Always-On Low-Power ADC (AON_LPADC)
found on the MCXL series. Multi-channel sequences are converted in
hardware: each selected channel maps to one conversion command, the
commands are chained through CMDH[NEXT], and a single software
trigger walks the chain, with the FIFO watermark interrupt draining
results in channel order.
Logical channels are therefore command slots, and how many of them an
instance reserves is derived from the channel nodes declared for it in
devicetree, so slots the application does not describe cost no RAM.
An instance without any channel node keeps the full hardware capacity
available for runtime adc_channel_setup() calls, and declaring a
channel identifier beyond the implemented commands is a build error.
The converter is fixed at 12-bit single-ended resolution and stores
results left-justified in RESFIFO[D]; the driver right-justifies them
so raw values match the 12-bit resolution reported to the ADC API.
Offset calibration is mandatory after every converter reset before
the first conversion, so init runs it with the maximum calibration
sample time, and a sequence can request it again through the
calibrate flag.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Nordic's nPM10 Series PMICs feature one-time-programmable UICR to configure
some of the control registers' reset values changing PMIC's startup
behaviour.
Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
Add support for hspadctrl and nrf7120's elastic buffer.
This is the recommended setting for the EB for all
scenarios although this won't cover if the CPOL=1
and your delay is less than half SCK period. Guidance
on what to set in this scenario will come later.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>