- Add pclk-hb-disable DTS property to control PCLK toggling
during horizontal blank periods. Different camera receivers may
have different requirement on this configuration.
- Reorder initialization sequence to apply format settings after
the common initialization table. Different format may apply differnt
configurations and overwrite the default configurations.
- Change the input XCLK frequency from 6MHz to 24MHz. According to
the data sheet and software application note, the camera sensor
requires the clock to be within the range of 10~48 MHz and the
typical value is 24 MHz. It can work with 6MHz XCLK but the
performance is not ideal. For example it glitches with VGA resolution.
- Fix resolution-specific register tables for QCIF, CIF, and VGA modes
with corrected timing and gamma settings for OV7670. When the OV7670
driver was originally enabled with the camera receiver smartdma, only
the QVGA resolution is tested, since smartdma can only support this
resolution, the others are not tested.
- Fix comment typo: case 352 is CIF, not QCIF
- Fix array size bug in QVGA format selection
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Now that the SoC can configure the active-mode DCDC output voltage
from the SPC device tree node, raise the default MCXW7x BLE TX power
to its maximum of 10 dBm.
Add 10 to the NBU max-tx-power-support list (dropping the stale
"TODO: Add 10dbm support" comment) and bump the default
max-tx-power-dbm from 7 to 10. Reaching 10 dBm requires the DCDC
regulator in its 2.5V custom mode, so set
active-dcdc-output-microvolt to 2500000 on the SPC node. The build
time cross-check in soc_dcdc.c enforces this pairing.
This affects the MCXW71 and MCXW72 families that share this common
dtsi; boards may still override max-tx-power-dbm if a lower limit is
needed.
Tested with samples/bluetooth/peripheral on frdm_mcxw71 and
frdm_mcxw72.
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
The MCXW7x active-mode DCDC regulator output voltage was previously
fixed by the power init path, which only ran when CONFIG_PM was
enabled. Some use cases (notably reaching the highest BLE TX power
levels) require a specific DCDC output voltage to be applied
unconditionally at boot.
Add an optional "active-dcdc-output-microvolt" property to the
nxp,spc binding so the target voltage is described in the device
tree. The property is intentionally SoC-agnostic: legal values are
validated per-SoC in C rather than constrained by an enum in the
binding, since the shared compatible spans several SoC families with
different DCDC capabilities.
Implement the configuration in a new soc_dcdc.c that is compiled
unconditionally (independent of CONFIG_PM). nxp_mcxw7x_dcdc_init()
maps the configured microvolt value to the HAL DCDC level, sets the
VOUT2P5_SEL bit only for the 2.5V custom mode, and applies the change
with the active-mode voltage detectors saved, disabled and restored
around it. BUILD_ASSERTs reject values the DCDC cannot produce and
cross-check the configured voltage against the NBU max-tx-power-dbm
(10 dBm requires 2.5V, above 0 dBm requires at least 1.8V). When the
property is absent the routine compiles to a no-op and the DCDC
output voltage is left untouched.
Move the active-mode DCDC handling out of set_spc_configuration() in
power.c so the device-tree configured value is preserved and not
overwritten by the low-power init path. The logic is kept
self-contained so it can later be lifted into a dedicated SPC driver
without binding or device tree churn.
Tested with samples/bluetooth/peripheral on frdm_mcxw71,
frdm_mcxw72 and frdm_mcxw70 (the latter exercising the no-op path).
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
Add a hwinfo backend that reports the reset cause on NXP MCUs that use
the MC_RGM (Reset Generation Module), such as the MCXE family, rather
than the Kinetis RCM/SIM blocks. The driver decodes the MC_RGM DES
(Destructive Event Status) and FES (Functional/External Reset Status)
registers into Zephyr RESET_* flags.
DES and FES status bits are write-1-to-clear, so
hwinfo_clear_reset_cause() writes back the latched bits it just read.
The backend binds to the existing "nxp,mc-rgm" compatible and reaches the
register block through the MC_RGM_Type CMSIS layout at the node's reg
address, so no fsl HAL component is required.
hwinfo_get_device_id is intentionally left as the weak -ENOSYS default:
the MCXE family exposes no per-die unique identifier (only SIUL2 MIDR
part identification), so reporting it as a device ID would be misleading.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
cpuppr is starting with a delay (>300 us) and cpuapp should not try
to communicate with cpuppr before it is up and running as any signal
set before cpuppr is ready is lost. One of available VPR events is
used to indicate cpuppr readiness.
Add property to nordic,vpr and nordic,nrf-vevif-task-tx bindings.
Add property to vpr and mailbox nodes. Reserve channel 15 for that.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Update the RT7xx EHCI host nodes to use clkctl4 clock specifiers
and describe the controller and PHY clock rates in devicetree.
This provides the clock information used by the host EHCI driver.
Signed-off-by: Aiden Hu <weiwei.hu@nxp.com>
New driver based on sysctrl acting as a watchdog.
After global software watchdog setup sysctrl will monitor
pings from particular local domain and reset SOC if ping
doesnt arrive before 6s timeout expires.
This software watchdog will be active only if local
domain will do wdt setup procedure.'
Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no>
Fix up the core MAX78000 devicetree includes to properly split M4 specific
pieces, define sram nodes correctly, and set up UART3 interrupts for either
core.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
Add nxp,rcm-hwinfo reset-cause nodes to the KE1xZ and KE1xF SoC
devicetrees, and add the nxp,sim-uuid device-id compatible to the
KE1xF SIM node, so the existing NXP hwinfo RCM and SIM drivers are
available on FRDM-KE15Z, FRDM-KE16Z, FRDM-KE17Z, FRDM-KE17Z512 and
TWR-KE18F. KE1xZ has no unique-ID register, so only reset cause is
enabled there. Advertise hwinfo in each board's twister supported
list.
This extends existing NXP hwinfo driver coverage without changing the
driver implementation. Verified with tests/drivers/hwinfo: builds on
all five boards, and the suite passes on FRDM-KE17Z hardware (reset
cause tests pass, device id skipped).
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Drop the 'U' specifier in macro calls in the STM32U5 device tree files to
be consistent with other STM32 devicetree files.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Having separate file for SAI device complicates the reader/developper
comprehension of the overall device-tree, since there is already other
include mechanism into play. Remove stm32l4_sai.dtsi file and merge the
SAI node into corresponding files.
Signed-off-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com>
According to the STM32 HAL documentation, the DQS port is
optional and can be disabled by passing port number 0.
Add 0 as a valid value for the st,dqs-port property to match
the documentation.
Signed-off-by: Kirill Shypachov <kshypachov@outlook.com>
use min-len/max-len for asserting the correct length of the
array, drop corresponding build asserts
Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
Following the introduction of the new stm32h5 dedicated pll-clock
compatible, update the compatible in device-trees.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
The STM32H5 PLL configuration is similar to the STM32H7 but
maximum achievable frequencies differ.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
add support for the stm32 f series in the
dwmac driver.
Assisted-by: Github Copilot:Claude Haiku 4.5
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit adds board support for the CAN-module project hardware,
including the CANBRIDGE G473, USBCAN ISO, and USBCANFD SOLO/DUAL
adapters. These boards are based on STM32G4 and F0 series MCUs.
Signed-off-by: Oleksii Mamontov <mamontov1@gmail.com>
Add a build assertion to ensure PLL1 DIVP division factor is not
an odd value different from 1 since not allowed as per SoCs reference
manuals.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add a driver for VIRTIO input devices. Events are forwarded to the input
subsystem as-is since the event codes match the Linux ones. ABS_X/ABS_Y
values can optionally be scaled to the resolution of a referenced display.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Add the nxp,wake-timer binding and disabled waketimer0 nodes for
MCX A devices that provide the 32-bit wake timer IP.
The nodes describe the 1 kHz counter clock derived from the 16 kHz
source with OSC_DIV_ENA enabled. Keeping the nodes disabled by
default lets later commits enable the IP on boards after the driver
is present.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Set min/max properties for PLL/PLLI2S/PLLSAI multiplier and consider
F401xx and F2xx specific min value at build time in driver implementation.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Set min/max properties for PLL/PLLSAI1/PLLSA2 multiplier, input divisor
and PLL/PLLSAI1/PLLSAI2 P divisor on STM32L4/L5 and consider L4 non-L4+
specific ranges at build time in driver implementation.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add microchip,refresh-mode property to Mictochip PAC194X/195X.
This property allows configuring the sensor's refresh behavior
directly from the devicetree.
Signed-off-by: Albert Jakieła <jakiela@google.com>
Added FIFO support for PSE84 autanalog SAR. The FIFO is 512 elements
deep. It can be subdivided into x8 64 elements to support 8 independent
streams of ADC data.
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Added support for FIR filters in the PSE84 autanalog SAR ADC. There
are two filters, each supporting up to 64 taps. The output can
optionally be fed into the SAR FIFOs.
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Add the radio on stm32wba to device tree and move the
bluetooth node and the ieee802154 node inside it.
Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
This commit fixes minor typos in fuel-gauge driver and also fixes the
include guard for the same. It also fixes `fuel_gauge_set_props` API
doxygen comments to reflect the correct return code.
Signed-off-by: Dev Joshi <devbhave@qti.qualcomm.com>