Add a driver for the Hamamatsu S9706 digital RGB sensor using plain
GPIOs. All parameters (e.g. integration time and sensor range) are
runtime-configurable via sensor attributes.
Signed-off-by: Anton Puppe <anton-noel-flynn.puppe@zeiss.com>
The bring-up path pulses the power key unconditionally. On modems that
toggle power with the key, that turns off a modem still running after an
MCU-only reset, and the driver then times out against a dead bus until the
modem completes a full power cycle.
Add an optional mdm-status-gpios input reporting modem power state. When it
is present and asserted at start-up, skip the power-on pulse and bring up
the bus directly; the init script confirms the modem responds, and if it
does not, the driver powers the modem on. Boards without the GPIO behave as
before.
Signed-off-by: Paulo Santos <pauloxrms@gmail.com>
swapped-x-y exchanges only the reported event codes. That is correct
when the touchscreen's coordinate space and the display share an aspect
ratio, and wrong as soon as they do not: on a rotated non-square panel
the swapped axes still carry each other's range, so X arrives bounded by
the screen height while Y overruns the display's.
A concrete case: a 480x272 panel whose controller reports in its own
480x272 space, mounted rotated a quarter turn. swapped-x-y alone
confines the reported X to 0..272 and lets Y reach 480 on a panel 272
tall. There is no combination of the existing properties that expresses
the rotation, because none of them rescale.
Add optional output-width / output-height describing the space
coordinates should land in, and scale into it after inverting and
swapping. Each value keeps its own source range -- the value held as X
always spans screen-width -- while its target dimension follows the code
it is reported under, which swapped-x-y has already chosen. So with the
axes swapped, the X value is scaled by output-height/screen-width and
lands on INPUT_ABS_Y.
The dimensions can also come from a display controller directly: an
optional display phandle sources output-width / output-height from the
referenced node's width / height, so the panel resolution is not
duplicated on the touchscreen node.
Both output dimensions are optional and resolve to 0 when absent, which
disables scaling: every existing driver and board keeps reporting
exactly what the controller produced.
Signed-off-by: Arkadiusz Grzelka <devitwise@gmail.com>
This is almost a copy of the STM32L152xE support.
The STM32L152xE is already supported and is nearly identical.
The STM32L151xE differs only by lacking the LCD interface.
Signed-off-by: Florian Moesch <florian.moesch@draeger.com>
Describe the LTDC display controller available on
STM32 H5E4/H5E5 and H5F4/H5F5.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
(cherry picked from commit 82d6afb375)
Signed-off-by: Arkadiusz Grzelka <devitwise@gmail.com>
RTL87x2G exposes 204 KB of TCM to Zephyr (0x100c00–0x133c00).
The previous 100 KB / 104 KB split left ITCM heavily over-allocated:
actual usage is ~2.2 KB of relocation tables, while the remaining
~101 KB was idle. Meanwhile SRAM is a bottleneck; for example, the
CMSIS-DSP matrix.binary_q15 test requires ≥144 KB and fails with OOM.
Resize the split to give Zephyr more usable SRAM:
tcm0 (zephyr,sram): 0x100c00 + 176 KB → 0x12cc00
tcm1 (zephyr,itcm): 0x12cc00 + 28 KB → 0x133c00
Update the board yaml ram field for all four rtl87x2g variants
(gkh, gku, grh, gru) from the stale placeholder 100 to 176.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
Route the CPU0 IRTC wake-timer through SLEEPCON0: mark the node
wakeup-source with a wakeup-ctrls line of <&sleepcon0 27>, and enable
sleepcon0 itself. SLEEPCON0 is an always-present on-chip controller, so
it is enabled by default; CONFIG_WUC still gates whether its driver is
built. This lets the IRTC wake CPU0 from deep-sleep retention.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Include the wuc-device.yaml mixin so an nxp,irtc-wake-timer node can
declare a WUC wakeup line via the wakeup-ctrls property. The property is
optional, so SoCs whose IRTC does not route through a WUC leave it unset
and are unaffected.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Add a disabled nxp,rtc node for the MCXAXX6.
OSC32k is not available on these devices; clock-source is set to
"LPO" to select the 16.384 kHz FRO16K (VBAT domain) via CR[LPOS]=1.
Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
- Only timg0 timer seems to be consistent across all L-series. And event
that does not seem guaranteed. So only adding to mspm0l111x.
- Currently tested as counters using samples/drivers/counter/alarm on
beagleconnect_zepto (mspm0l1117).
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Add initial driver support for the Quectel BC66 and BC660K NB-IoT
cellular modems. The driver implements the standard Zephyr
cellular modem APIs and features network offloading via BSD sockets,
specifically supporting TCP and UDP clients. Device Power Management
(PM) support is also included.
Assisted-by: Claude:claude-sonnet-4.6
Assisted-by: Gemini:gemini-3.1-pro
Signed-off-by: Giovanni Piccari <giopiccari@outlook.com>
Some ST7789V panel integrations rely on the controller reset defaults
or on fixed power sequencing and must not receive the default power
and gamma configuration commands during initialization.
Instead of adding a bypass flag, make the power/gamma/tuning
devicetree properties optional (vcom, gctrl, lcm, gamma, porch-param,
cmd2en-param, pwctrl1-param, pvgam-param, nvgam-param, ram-param,
rgb-param) and only send a configuration command when its property is
present, following the existing vrhs/vdvs handling.
Existing boards set all of these properties, so their initialization
sequence is unchanged.
Signed-off-by: Yeray Lois Sanchez <yerayloissanchez@gmail.com>
FlexSPI is NXP's proprietary memory-mapped flash/PSRAM controller
with its own LUT engine, AHB buffers, and clock tree — it is not a
standard SPI bus. Including spi-device.yaml pulled in `on-bus: spi`
semantics and 11 SPI-specific properties (duplex, spi-cpol, spi-cpha,
etc.) that are meaningless for FlexSPI devices.
Replace the spi-device.yaml include with base.yaml and power.yaml,
and directly declare the only two properties FlexSPI actually uses
from the SPI binding: `reg` and `spi-max-frequency`.
This removes the incorrect SPI bus semantics from the FlexSPI binding
chain, which caused all FlexSPI descendants (including `soc-nv-flash`
grandchild nodes) to appear as SPI bus devices, misleading downstream
DTS authors into placing SPI-specific properties on nodes whose
bindings do not declare them.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
The driver reports raw controller coordinates straight to INPUT_ABS_X and
INPUT_ABS_Y, so none of the touchscreen-common orientation properties reach
it: a board wiring this part to a rotated or mirrored panel has no way to
describe that in devicetree. Every other touch driver in the tree goes
through input_touchscreen_report_pos().
Route both report paths through the helper and include
touchscreen-common.yaml in the binding. `select INPUT_TOUCH` comes with it:
input_touch.c is gated on that symbol, so without it the helper is never
compiled and the driver fails to link.
Behaviour is unchanged for existing users -- with none of the orientation
properties set the helper passes the coordinates through untouched.
Signed-off-by: Arkadiusz Grzelka <devitwise@gmail.com>
Commit 7afcac3f51 ("drivers: interrupt_controller: Use new CPU macro
to iterate through CPUs") made CPU enumeration depend on the
device_type property being declared by a matched binding, breaking the
build for CPU node compatibles that have no binding. Commit
0a26f478af3c ("dts: bindings: cpu: add arm,cortex-r8f binding") and
commit 17cf0dabd3 ("dts: bindings: cpu: add arm,armv8 binding") added
two of the three missing bindings, which also unbroke the
rcar_h3ulcb/r8a77951/a57 build through the "arm,armv8" fallback in its
CPU nodes' compatible list.
Add the Cortex-A57 binding as well so those CPUs match their specific
compatible rather than the generic fallback.
Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
The MRAMC driver requires write-block-size to be a multiple of the
16-byte MRAM word size. Set write-block-size to 16 to match the
hardware constraint and the cpuapp_mram definition.
Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
Remove wifi patch as it was a temporary location and
new Wi-Fi patch dfu solution will be proposed in next
update.
Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
Rearrange NS only flash layout, reduce the default NS memory partition
to 192KiB, maximize available memory to use for nrf7120 ns application.
Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
Add the WWDT0 devicetree node for the MCXL255 CM33 target.
WWDT0 is disabled by default and can be enabled by board or application
devicetree files.
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
Add the ability to run cameras in a logical
snapshot mode instead of always running
in video mode. In particular, the camera
starts when you ask for an image to be dequeued
and stops when it receives an image.
There are two ways to setup to run in this mode:
a) Tell it to do so in the overlay by giving the DCMI object
the property: snapshot-mode
b) At run time: I added a video control: VIDEO_CID_SNAPSHOT_MODE
Which can have the values
0 - normal - continuous video mode
1 - snapshot - snapshot mode enabled.
As mentioned in the snapshot modes, the HAL DMA is stopped after each
image and restarted when the user asks for another image. I added a
timeout default to 1 second, that handles the case where sometimes
the HAL is silently not successful in retrieving an image.
Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
Several ARM64 devicetrees declare their CPU nodes with
compatible = "arm,armv8", but no binding for that compatible exists.
With no matching binding, gen_defines emits no properties for the
node, so its device_type never reaches the generated devicetree
header.
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
cortex_r8_virt.dtsi declares its CPU node with
compatible = "arm,cortex-r8f", but no binding for that compatible
exists; dts/bindings/cpu/ only carries arm,cortex-r8.yaml and
arm,cortex-r82.yaml. With no matching binding, gen_defines emits no
properties for the node, so its device_type never reaches the
generated devicetree header.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Promote zephyr,transfer-timeout-ms to the base i2c-controller.yaml
binding so the property is available on every I2C controller node
regardless of SoC vendor.
Add two macros to <zephyr/drivers/i2c.h>:
- I2C_DT_INST_TRANSFER_TIMEOUT_MS(inst): resolves the raw millisecond
value (DT per-bus override -> CONFIG_I2C_TRANSFER_TIMEOUT_MS)
- I2C_DT_INST_TRANSFER_TIMEOUT(inst): wraps the above using
SYS_TIMEOUT_MS_INIT as a k_timeout_t struct initializer, using
SYS_FOREVER_MS when the resolved value is 0
This composes with the Kconfig added in #104163: the Kconfig remains the
portable app-wide default; the DT property is the per-bus escape hatch.
Signed-off-by: BhuvanChandra DV <bhuvanchandra.dv@rapyuta-robotics.com>
split the props for the mac address into
its own yaml, so that can be reused by the
wifi bindings, as their drivers also use the
ethernet api.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Add empty ranges properties to standalone STM32 pinctrl nodes such that
the GPIO port nodes are mapped in the root address space on all series.
Previously, only STM32N6 had this property as it was required for proper
switching between Secure and Non-Secure aliases.
Validation:
- scanned standalone STM32 pinctrl nodes to confirm ranges is now
present in each touched DTSI
Assisted-by: GitHub Copilot:GPT-5.4
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
In `stm32u595.dtsi`, various properties of the pinctrl node were being
redefined for no reason. Drop them entirely except for one: the `reg`
size of the pinctrl node is increased to 0x2800, but now at root DTSI
level instead. This is fine on STM32U5 since there is only one Reference
Manual so it's obvious where the value comes from, regardless of how
many GPIO ports actually exist in the final SoC.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The GPIOF and GPIOI nodes were declared as children of `/soc` when they
should have been childred of the `pin-controller@42020000` node instead.
Fix this error by reparenting the GPIO port nodes.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Implement counter capture callbacks for MCUX QTMR timer channels. Each
Zephyr counter device maps to one QTMR channel, so the API accepts
channel 0 and uses the DT secondary-source property as the capture
input.
Reject capture in modes that already consume the secondary source and
keep alarm and capture ownership exclusive on the channel. Add reset
support so generic counter capture tests can prepare the timer state.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Currently there is no inclusion of "device_type" in cpu.yaml, which
prevents the property from being used in gen_defines.py since it would
not show up in node.props. This is needed to enable the use of
device_type for the new set of DT CPU macros.
Signed-off-by: Omar Naffaa <onaffaa@qti.qualcomm.com>
Wi-Fi driver for ST67W611M1 coprocessor.
It communicates with an SPI interface and depends on Zephyr's own
TCP/IP stack.
Communication with host is a mix of AT commands (scan, connect,...)
and raw L2 layer data frames.
Signed-off-by: Eliott Speyser <eliott.speyser@st.com>
This commit removes a redundant HSE clock frequency definition for wch.
This value is really dependent on the component placed on a board, so
two layers of default are not necessary.
Signed-off-by: Perry Naseck <pnaseck@media.mit.edu>
Add all predefined values for phy-connection-type
from the devicetree specification (Table 4.13).
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
XIP in Zephyr is a software configuration concept (CONFIG_XIP). The MSPI
feature gated by MSPI_XIP only memory-maps the device into the SoC
address space; the mapped region can be used for plain data access as
well as code execution. Rename the feature to MEMMAP to reflect what it
actually does:
- CONFIG_MSPI_XIP -> CONFIG_MSPI_MEMMAP
- CONFIG_FLASH_MSPI_XIP_READ -> CONFIG_FLASH_MSPI_MEMMAP_READ
- struct mspi_xip_cfg -> struct mspi_memmap_cfg
- enum mspi_xip_permit / MSPI_XIP_READ_* -> mspi_memmap_permit /
MSPI_MEMMAP_READ_*
- mspi_xip_config() -> mspi_memmap_config(), driver API entry
xip_config -> memmap_config
- MSPI_XIP_CONFIG_DT{,_INST,_NO_CHECK} -> MSPI_MEMMAP_CONFIG_DT{,...}
- MSPI_XIP_CFG_STRUCT_DECLARE / MSPI_XIP_BASE_ADDR_{DECLARE,INIT} ->
MSPI_MEMMAP_*
- devicetree property xip-config -> memmap-config
Vendor HAL symbols (am_hal_mspi_xip_*) and DesignWare register names,
where XIP is the hardware documentation terminology, are unchanged.
The MSPI API is experimental, so no deprecated aliases are provided;
a migration guide entry is added in a separate commit. Add missing
Doxygen comments on new API symbols. Add missing SPDX header to the
nrf54h20dk code_relocation_nocopy overlay touched by this rename.
Fixes#104657
Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
Channel preselection is defined in st/h7/stm32h7.dtsi for ADC3 in whole
STM32H7 series. ADC3 in STM32H72x and STM32H73X don't support channel
preselection so it's removed from corresponding adc3 node.
Signed-off-by: Marin Jurjević <marinjurjevic@outlook.com>
Instead of the vendor-specific `stm32_lp_tick_source` nodelabel, update
the STM32 LPTIM systimer driver to use the `zephyr,system-timer` chosen
as singleton instance selection.
Remove support for the old mechanism entirely, triggering instead
a build error during Kconfig parsing (to avoid unnecessary compilation).
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>