On STM32H5, 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 STM32C5, 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>
Add QDEC support for STM32WBA Timers 1, 2, 3 and 4.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add QDEC support for STM32WB0 Timers 1 and 2.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add QDEC support for STM32U3 Timers 1, 2, 3 and 4.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add QDEC support for STM32N6 Timers 1, 2, 3, 4, 5 and 8.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add QDEC support for STM32H7R/S Timers 1, 2, 3,4 and 5.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add QDEC support for STM32H5 Timers 1, 2, 3, 4, 5 and 8.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add QDEC support for STM32F0 Timers 1, 2 and 3.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Add QDEC support for STM32C0 Timers 1, 2 and 3.
Also reorder the includes alphabetically.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
- Add the watchdog node for pic32cm_sg_gc device
- Update the binding for pic32cm_sg_gc device
Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
Add support for the comparator peripheral found in WCH CH5xx SoCs.
This commit also extends the comparator API with a child API to allow
dynamic configuration of the negative reference voltage. This feature
is intended to enable software-based ADC implementations using the
comparator peripheral.
Signed-off-by: Elie Carrot <elie.carrot@smile.fr>
Implements MMCM programming via the AXI register interface to provide a
configurable SPI reference clock for high-speed ADC capture. The core is
exposed through the standard Zephyr clock_control API.
CONFIG_CLOCK_CONTROL_ADI_AXI_CLKGEN is auto-selected when
DT_HAS_ADI_AXI_CLKGEN_ENABLED.
Signed-off-by: Iustin Stolniceanu <iustin.stolniceanu@analog.com>
The isw-gpios property was unconditionally required by
GPIO_DT_SPEC_INST_GET(), even though the devicetree binding documents
it as optional. This forced every board to reserve an INT/SQW GPIO
even when only basic time get/set was needed, e.g. when the pin is
intentionally left unconnected in low-power designs that rely on the
MCU's own timer for wake-up.
Switch to GPIO_DT_SPEC_INST_GET_OR() so the property is truly
optional, and compile out the ISW interrupt handling and the
alarm/update callback registration built on top of it entirely when no
maxim,ds3231-rtc instance in the build wires up isw-gpios, instead of
only gating them behind a runtime NULL check.
Add DS3231_ALARM_CB_REQUIRED, DS3231_UPDATE_CB_REQUIRED, and
DS3231_ISW_ISR_REQUIRED, derived from CONFIG_RTC_ALARM/CONFIG_RTC_UPDATE
and DT_ANY_INST_HAS_PROP_STATUS_OKAY(isw_gpios). Use these to drop
rtc_ds3231_alarm_set_callback(), rtc_ds3231_update_set_callback(),
rtc_ds3231_init_isw(), the ISR/work-queue handler, and their backing
struct fields entirely when unreachable, and to omit the matching
driver_api entries so the existing NULL-check wrappers in rtc.h return
-ENOSYS instead of a runtime -ENOTSUP.
Basic get_time()/set_time() are unaffected, since they only perform
I2C register access.
Fixeszephyrproject-rtos/zephyr#114886
Signed-off-by: Sachin Pathave <spathave2010@gmail.com>
temp sense is enabled by default but some boards skip this feature
and use a 100Ohm resistor from the TS pin to ground.
In these situations the TS disable bit needs to be set otherwise
the charger will fault.
Signed-off-by: Sahaj Sarup <sahajsarup@gmail.com>
Some USDHC instances are permanently wired to a non-removable device,
such as an SDIO Wi-Fi module, with no card-detect GPIO or host
card-detect line available. Previously this relied on falling through
to the "no card detection method configured" warning path and assuming
the card was present. Add an explicit non-removable boolean property so
boards can declare this intent directly; when set, the driver reports
the card as always present and skips card detection.
Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
The i.MX93 SoC has three USDHC instances, but the SoC devicetree only
described usdhc1 and usdhc2. Add the missing usdhc3 node, disabled by
default, so board devicetrees can enable and wire up a third
SD/SDIO/MMC bus.
Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
The Multi-function Digital Filter (MDF) is dedicated to the connection of
external Σ∆ modulators. It is mainly targeted for the following
applications:
* audio capture signals
* motor control
* metering
The MDF features:
* 6 serial digital inputs:
– SPI interface
– Manchester coded interface
– PDM interface
* 2 common clocks input/output
* Flexible connection between filters and digital inputs
* 6 flexible digital filter paths, with:
– configurable CIC filter
– reshape filter
– high-pass filter
– An offset error cancellation
– Gain control
* Short-circuit detector
* Clock absence detector
* 16 or 24-bit signed output format
* Independant delay for each bitstream
* DMA read access
* Interrupt services
Signed-off-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com>
The xG21 clock tree is asynchronous, and RHCLK (radio) is sourced
directly from the HFXO. Radio operation therefore does not require the
CPU clock to be an integer multiple of the HFXO frequency.
Configure the HFRCO DPLL at 80 MHz by default and remove the redundant
per-board overrides.
Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
Move common MCXW70 SoC nodes into nxp_mcxw70_common.dtsi and
add a separate DTSI for non-secure address mappings.
This change prepares the Devicetree hierarchy for future
MCXW70 non-secure configurations while keeping common node
definitions shared between variants.
Signed-off-by: Waqar Tahir <waqar.tahir@nxp.com>
The NXP SoC pin control headers in hal_nxp moved from the flat family
directories under dts/nxp into a <family>/<series>/pinctrl/ layout that
mirrors the dts/arm/nxp/<family>/<series>/ organization. Update every
in-tree #include of an NXP SoC *-pinctrl.h / *-pinctrl.dtsi to its new
path.
The former nxp_imx directory is split: nxp_imx/rt/* becomes the imxrt/
family and the remaining i.MX application processors become the flat
imx/ family. kinetis parts gain their series dir (including the new
k0x/km3x/kv3x). The families that are flat on the DTS side (imx, s32,
rw) keep their pinctrl headers at the family root.
This touches board -pinctrl.dtsi files, a few SoC dtsi files, test
overlays, and the mcxe31x pin controller binding example.
This change depends on the matching hal_nxp move; the west manifest
revision for hal_nxp must be bumped to the commit that performs it.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
The WCH ESIG unit holds a 96 bit unique ID. Expose via the hwinfo
driver.
The WCH RCC unit accumulates the recent reset causes. Expose via the
hwinfo APIs.
Tested on the `bluepillplus_ch32v203` by running
`tests/drivers/hwinfo/api` and verifying the ID matches minichlink, and
that pressing the reset button makes the cause change.
Signed-off-by: Michael Hope <michaelh@juju.nz>
Replace the esp_threadbr_ethernet shield with an ethernet board
qualifier for esp_threadbr. Move the W5500 wiring into the new
variant, enable NET_L2_ETHERNET for it by default and retarget
the existing tests and board documentation.
Assisted-by: Codex:GPT-5
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The CH32V series has between 16 KiB and 480 KiB of in-place
programmable program flash. Add a driver that implements the Zephyr
flash API, the appropriate Devicetree nodes, and overlays for the
`flash_shell` sample.
For the sample, trim back the default settings to fit within the ~64
KiB of flash and 8 to 20 K of RAM and add test partitions.
Use Devicetree to define the erase value. For the 003 and 006, this is
the common 0xFF but for the 20x/30x this is 0xE339. The flash API
works correctly on the 20x/30x but systems that require the erase
value to be a single byte, or assume that it is 0xFF, will not. This
can be addressed in future PRs.
Tested on the ch32v00x_core and bluepillplus_ch32v203 board by loading
the sample and running `flash test ...`. The
tests/drivers/flash/common test passes on the bluepillplus except for
the erase test which fails due to the ch32v203's half word erase
pattern.
Signed-off-by: Michael Hope <michaelh@juju.nz>
Add a dedicated SiWG917Y111MGABA SoC variant for modules using the
SiWG917M111MGTBA die.
Enable the module's external 32.768 kHz oscillator path, ACX behavior,
and external PSRAM LDO configuration. These settings are required for
the NWP to reach card-ready state and initialize Wi-Fi and Bluetooth.
Verified with hello_world, Wi-Fi scanning, Bluetooth advertising,
PSRAM access, counter alarms, and watchdog resets on BRD2708A.
Assisted-by: GitHub Copilot:gpt-5.6-sol
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
The SCL/SDA stuck low hardware timer is limited to about 255ms.
Add a new devicetree property scl-sda-low-timeout-ms that allows
designs to either modify the SCL/SDA stuck low timer or to disable
the timer completely.
Signed-off-by: Keith Short <keithshort@google.com>
Assisted-by: Antigravity:gemini-1.5-pro
The CAN node unit-address and reg base were 0x40038000; correct them to
0x40028000 to match the SoC memory map.
The Bee CAN driver does not use this reg base to reach the HAL API, so the
change has no functional impact on CAN usage.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
The Balletto SoCs use the Synopsys DesignWare GPIO controller, with one
eight pin controller instance per port and one interrupt line per pin.
Add GPIO0 to GPIO8 and LPGPIO, which is the full set the B1 carries.
LPGPIO sits in the Always-On domain and is only two pins wide.
The interrupt lines are described here for completeness, but the hardware
requires the GPIO debounce logic to be enabled for interrupt detection to
work correctly, which in turn needs the debounce clock running. That
clock is off after reset and nothing turns it on, so enabling it is left
to a follow-up change.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
The NXP MCX A family integrates the same DWC Ethernet QoS
controller as the MCX N series, but uses different PHY interface
selection. Extend the driver to also support the MCX A family
by guarding the SoC-specific parts with CONFIG_SOC_FAMILY_MCXA.
Add the PTP clock source and a ptp_clock child node to the MCXA5x
ethernet controller node, so the dwc_mac PTP clock driver can be
used.
ETH_NXP_ENET_QOS does not support PTP for the MCX A family, so
use the dwc_mac driver by default for the MCX A family, if PTP
support is required.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Use controller/peripheral and SDO/SDI terminology in sensor drivers,
following coding guideline rule A.2: switch the SPI configuration
constants to SPI_OP_MODE_CONTROLLER and update SPI wiring comments.
For the Broadcom AFBR-S50 sensor, the spi-sdi-gpios/spi-sdo-gpios
devicetree properties (named from the sensor's own perspective per
the OSHWA resolution) replace spi-mosi-gpios/spi-miso-gpios. The old
property names are still accepted, marked as deprecated in the
binding, and used as fallbacks; the Zephyr platform glue in
modules/hal_afbr is updated to the renamed fields. The Broadcom
Argus API names (s2pi_slave_t, S2PI_*) come from the vendor library
and keep their names.
Occurrences that concern I2C rather than SPI (I2C controller ACK
behavior comments in NXP drivers, the lsm6dso sensor-hub I2C master
code using ST HAL APIs and application note quotes) and vendor
register names (TDK MPUREG_MASTER_LOCK) are out of scope and keep
their wording.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Introduce the zephyr,bt-hci-spi-peripheral devicetree compatible to
replace zephyr,bt-hci-spi-slave, following coding guideline rule
A.2. The old binding is kept with a deprecation note and the hci_spi
sample keeps supporting nodes that still use it. In-tree users (the
96b_carbon nRF51822 devicetree and the sample's nRF51-DK overlay)
are migrated to the new compatible, and the sample now uses
CONFIG_SPI_PERIPHERAL and inclusive terminology in its code and
documentation.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Use controller/peripheral and SDO/SDI terminology in SPI binding
description text, following coding guideline rule A.2. Only prose is
changed; no property is renamed by this commit.
Vendor-defined names are kept where the text cites them: the
SSI_IS_MASTER DesignWare RTL parameter, the STM32H7 MIDI/MSSI
reference manual acronyms, the ti,d1-miso-d0-mosi property
description (which explains the TI TRM signal mapping the property
is named after), and SoC pinctrl node label examples.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Use controller/peripheral terminology in the NXP S32 SPI driver,
following coding guideline rule A.2:
- Add a "peripheral" boolean devicetree property; the old "slave"
property is still accepted, marked as deprecated in the binding,
and used as a fallback when the new one is not set.
- Rename driver-internal identifiers, guards, comments and log
messages accordingly.
The SPI_MCR_MSTR register field macros and the SlaveMode member of
the SPI configuration structure come from the NXP S32 RTD HAL and
keep their names.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Use controller/peripheral terminology in the Realtek Bee SPI driver,
following coding guideline rule A.2:
- Add an is-peripheral devicetree property; the old is-slave property
is still accepted, marked as deprecated in the binding, and used as
a fallback when the new one is not set.
- Rename driver-internal identifiers, guards, comments and log
messages accordingly.
The SPI0_SLAVE_TX/RX_FIFO_SIZE and SPI_Mode_Slave identifiers come
from the Realtek Bee SDK/HAL and keep their names, and the spi0_slave
devicetree node label keeps its name as it designates the dedicated
SPI0 slave-mode hardware instance of the SoC.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Use SDO/SDI and controller/peripheral terminology in the Raspberry Pi
Pico PIO SPI driver, following coding guideline rule A.2:
- Rename the sdo-gpios/sdi-gpios devicetree properties from
mosi-gpios/miso-gpios. The old property names are still accepted,
marked as deprecated in the binding, and used as a fallback by the
driver when the new ones are not set.
- Rename driver-internal identifiers and log messages accordingly.
- Migrate all in-tree boards, samples and test overlays to the new
property names.
The pico-sdk PIO helper APIs used by the driver keep their vendor
names.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Use SDO/SDI and controller/peripheral terminology in the SPI bitbang
driver, following coding guideline rule A.2:
- Rename the sdo-gpios/sdi-gpios devicetree properties from
mosi-gpios/miso-gpios. The old property names are still accepted,
marked as deprecated in the binding, and used as a fallback by the
driver when the new ones are not set.
- Rename driver-internal identifiers and log messages accordingly.
- Migrate all in-tree boards and sample overlays to the new property
names.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Remove the "zephyr,memory-region-mpu" property, deprecated in Zephyr 3.5
in favor of the "zephyr,memory-attr" bitmask.
The three BUILD_ASSERT tripwires in the ARM/ARM64 MPU drivers already
turned any remaining use of the property into a build failure, so they go
away with it, together with the now unused NODE_HAS_PROP_AND_OR helper.
The migration section in doc/services/mem_mgmt/index.rst documented a
property that no longer exists, so it is dropped and its value mapping
table moved to the 4.5 migration guide.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5
Two-line copyright notices were wrapped in the SPDX "<text>...</text>"
construct, which is only valid in an SPDX document, not a file header.
The REUSE tool then folds the literal "<text>" into the holder name
and drops the second line from the SBOM.
Remove the markers and tag the continuation line. Holder, year and
e-mail are left unchanged; only the syntax is fixed.
Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>