Add the pwm-buzzer compatible and the corresponding driver in
drivers/buzzer/buzzer_pwm.c. The PWM channel period sets the audio
frequency and the duty cycle sets the perceived volume (50% is
loudest for piezos; the driver maps the linear 0..100% volume
percentage to a triangular 0..50% duty curve so 100% volume gives
maximum loudness).
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Add the gpio-buzzer compatible and the corresponding driver in
drivers/buzzer/buzzer_gpio.c. Active buzzers contain their own
oscillator and produce a fixed tone whenever they are powered.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Allow nxp,lpc-iocon to declare clocks and wire the RT7xx IOCON
nodes to the MCUX SYSCON clock controller in the common and CPU0
devicetree descriptions.
This lets the pinctrl driver request the correct gate for each
RT7xx IOCON instance through the common clock control path.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Allow nxp,kinetis-gpio to declare clocks and wire the RT7xx GPIO
nodes to the MCUX SYSCON clock controller in the CPU0 and CPU1
devicetree descriptions.
This lets the GPIO driver request the correct gate for each RT7xx
port through the common clock control path.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Added autanalog CTB support for PSE84 device.
This implementation uses the autnonomous controller (MFD)
that is shared with other autanalog drivers.
The CTB stands for Continuous Time Block. It is a set of opamps
residing inside the autonomous (aut) analog subsystem. It is
controlled using the autonomous controller (AC), which is a
programmable state machine. The AC is shared across all autonomous
analog peripherals including the SAR, PRB, PTComp, CTB, and CTDAC.
Each CTB block contains two opamps, which need to be configured
together and accessed using the AC. A CTB MFD is used to bring
together the two opamp configurations. AC MFD then references the
combined CTB MFD configuration, and brings together all other
autanalog peripherals into a single AC setup for the application.
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Add missing SAI2 nodes in root DTSI for STM32H5 series. SAI2 is present
in the same devices as SAI1.
While at it, fix the default clock configuration of existing SAI1 nodes:
SAIn_SEL(0) corresponds to pll1_q_ck, not pll1_p_ck.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Fix the SoC DTSI file against flash size assigned to Zephyr that is
876kByte, not 808kByte.
Since commit d00f8505bf ("boards: nucleo_wb55rg: Update regarding
supported M0 BLE f/w"), Zephyr can use the first 876kB of the flash
memory. This commit updated nucleo_wb55rg board DTS file accordingly
but not the flash device 'reg' property and recently added 'ranges'
property uses a wrong value leading to access issues as for example
all storage tests on that board.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Use LL_PWR_* APIs to handle UCPD_DBDIS flags in portable way.
Fix ucpd_params.psc_ucpdclk value.
Signed-off-by: Vladimir Zidar <vladimir.zidar@ars-es.com>
Nordic's nPM10 Series PMIC watchdog driver implementation and devicetree
bindings.
Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
Move the inline comments of clocks enums to the related descriptions
so that they are visible in the generated online documentation.
Signed-off-by: Brenden Adamczak <cerebralasylum1@gmail.com>
Select CPU_HAS_DCACHE on ESP32-S2, S3 and C5 and auto-enable
CACHE_MANAGEMENT in each defconfig when ESP_SPIRAM is selected.
This activates the cache_esp32 driver where it is useful, so
portable sys_cache_data_* calls keep PSRAM and DMA buffers
coherent.
The L1 dcache line size is declared via the cpu@0 devicetree
node so the generic DCACHE_LINE_SIZE Kconfig default picks it
up automatically. SoCs without writeback cache (ESP32, C2, C3,
C6 and H2) are left untouched.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
- Moved PSE84 power states generic to the dts
rather that only supporting CM55 on the board
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Added PTComp support to PSE84.
This implementation uses the shared autonomous controller (MFD)
with other autanalog drivers.
The PTComp is a programmable threshold comparator inside the
autonomous (aut) analog subsystem. It is controlled using the
autonomous controller (AC), which is a programmable state machine.
The AC is shared across all autonomous analog peripherals including
the SAR, PRB, PTComp, CTB, and CTDAC.
The PTComp block contains two comparators for edge detection and
with a capability for boolean post-processing. These two comparator
instances need to be configured together and accessed using the AC.
A PTComp MFD is used to bring together the two comparator
configurations. AC MFD then references the combined PTComp MFD
configuration, and brings together all other autanalog peripherals
into a single AC setup for the application.
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Add DAC driver for the Analog Devices AD5529R 16-channel, 16-bit
voltage output DAC. The driver supports multiple output voltage
ranges, SPI communication, and optional reset/LDAC/clear GPIOs.
Signed-off-by: Robert Budai <robert.budai@analog.com>
Co-authored-by: Radu Ciobanu <raduciobanu096@gmail.com>
Replace the SDL display driver's default pixel format Kconfig
selection with a devicetree property and initialize the display
using the DT-provided format.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Add `Trasna` to the list of vendor prefixes, which is already used
in-tree for the `lexi-r10` LTE modem.
Signed-off-by: Jordan Yates <jordan@embeint.com>
Follow the pattern used by other PHY drivers and expose the
RTL8211F RGMII clock delay mode in devicetree.
Some MAC drivers, such as Renesas RA RMAC, can provide part of
the RGMII delay themselves. Boards then need a way to avoid
enabling the same delay in the PHY.
Keep the fallback at RX and TX delay enabled, matching the old
driver behavior for existing users.
Signed-off-by: Shan Pen <bricle031@gmail.com>
Reserve zb_settings & zb_secured in the Information Flash Region 0
(IFR0) node to the MCXW7x common devicetree include file.
These factory settings are accessed using nvmem to soc independant.
Signed-off-by: Guillaume Legoupil <guillaume.legoupil@nxp.com>
The IEEE 802.15.4 address is moved from flash hw_params_partition
to internal IFR0.
Abstraction layer is done by using CONFIG_NVMEM.
Signed-off-by: Guillaume Legoupil <guillaume.legoupil@nxp.com>
Add the Information Flash Region 0 (IFR0) node to the MCXW7x common
devicetree include file.
The IFR0 region is located at offset 0x2000000 with a size of 32KB.
This node uses the nxp,mcxw-ifr binding.
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
Add CPU clock-frequency to the bcm2711 device tree and use it to
derive SYS_CLOCK_HW_CYCLES_PER_SEC instead of relying on a
hard-coded value.
Also enable cache management by default for the BCM2711 SoC.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
The firmware provides an interface between the ARM CPU and the
VideoCore GPU for system management and platform services on
Raspberry Pi devices. It allows the ARM to communicate with the
VideoCore firmware through mailbox property channels to perform
operations such as framebuffer allocation, display configuration,
clock and power management, thermal queries, memory configuration,
and other board-specific services.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Add support for Broadcom VideoCore mailbox controller driver
for BCM2711 (Raspberry Pi 4). This driver exposes two mailbox
instances, mbox0 and mbox1, where mbox0 is used by the VideoCore
GPU to signal the ARM CPU, and mbox1 is used by the ARM CPU to
signal the VideoCore GPU.
Parts of the driver is based on Yoan Dumas pull request that was
https://github.com/zephyrproject-rtos/zephyr/pull/88501
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Signed-off-by: Yoan Dumas <yo_dumas@hotmail.fr>
Factorize aes node that is present on all WBAxx series with same resources
but the NVIC line that is 58 on WBA5xx and WBA6xx, and 52 on WBA2xx.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add the PMUC peripheral LDO regulators as a child 'regulators' node.
Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
Signed-off-by: Zhengyu Yan <859361238@qq.com>
Rename PMUC compatible to be SF32LB52x specific.
Add devicetree bindings and dt-bindings
helpers for the SF32LB52x peripheral LDO regulators
Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
Signed-off-by: Zhengyu Yan <859361238@qq.com>
Describe the RT7xx LCDIF clock connection in devicetree and allow
both DCNano LCDIF bindings to carry a clocks property.
This wires the LCDIF node to the shared MCUX SYSCON clock control
provider so the drivers can request the gate directly.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Currently there are a handful of inconsistencies between DTS for SOCs
in this series. Adds a new common peripheral file with /delete-node/
used to remove inactive peripherals.
Signed-off-by: James Bennion-Pedley <james@bojit.org>
This commit introduces a new clock control driver for NXP MCXW series
microcontrollers, replacing the previous hardcoded clock initialization
in soc.c with a devicetree-based approach.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
Implementation of a DALI driver for mcus
that provide a PWM interface for zephyr.
The Zephyr specific PWM, counter, and gpio
nodes handle the work. Hence, the `zephyr`
vendor prefix is used for the binding.
The code is tested for the STM32F091 mcu and
for the nRF52840 mcu.
Signed-off-by: Sven Hädrich <sven.haedrich@sevenlab.de>
The streaming code previously hard-coded the INT pin as active-high
push-pull when writing INT_CONFIG. Add two boolean DT properties,
int-active-low and int-open-drain, and thread them through
bmp581_config so boards with active-low or open-drain INT wiring can
be supported without patching the driver.
Defaults preserve the previous hard-coded behavior (active-high,
push-pull) so existing in-tree boards do not need DT changes. Boards
with active-low INT wiring set int-active-low, which programs
BMP5_INT_POL_ACTIVE_LOW into INT_CONFIG. Note that the GPIO flags on
int-gpios must agree with the chip-side polarity setting.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
The BMP581 driver previously only supported I2C. Add SPI and I3C
transports by extending the existing RTIO-based bus abstraction with
two new bus types (BMP581_BUS_TYPE_SPI, BMP581_BUS_TYPE_I3C),
following the pattern established by the icm45686 driver.
For SPI, the read register address is OR'd with bit 7 (BMP5_SPI_RD_MASK)
per the datasheet, and bmp581_init() performs the SPI activation dummy
read both before and after soft-reset (the device boots and reverts to
I2C/I3C mode on reset and requires a 16-SCK transaction with CSB
asserted to switch to SPI). For I3C, RTIO_IODEV_I3C_STOP/RESTART flags
are set on the read/write SQEs.
The BMP581_INIT macro now uses COND_CODE_1 to dispatch on the bus type
and instantiate the appropriate I2C/SPI/I3C iodev. Kconfig selects
I2C/SPI/I3C and the corresponding *_RTIO option conditionally based
on which buses the matching DT nodes use.
The original bosch,bmp581.yaml is split into a common binding plus
per-bus bindings (bosch,bmp581-i2c.yaml, bosch,bmp581-spi.yaml,
bosch,bmp581-i3c.yaml) that include the bus-specific yaml. Test nodes
for SPI and I3C are added to the build_all sensor test.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
On STM32N6, the USB-related clock mux is in front of USBPHYC rather than
OTGHS. Move the `clocks` cell related to mux configuration to the proper
node in SoC DTSI files.
While at it, change the default OTGPHYnCKREF_SEL(1) to OTGPHYn_SEL(3) as
the former macro cannot really be used for clock configuration with the
current implementation. Both the old and new configuration are equivalent
and select `hse_div2_osc_ck` as USBPHYC clock source. Also, update the
example DTS snippet in the binding file to use OTGPHYn_SEL().
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Lines ending with \ are not needed unless when used in #define.
This commit removes all cases of \ where this is not needed in
devicetree files.
Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
Linter not ensures that > and ] have no white spaces when these are
preceded with a block comment.
Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>