The flexcomm0..flexcomm3 nodes declared their two clocks as a single
phandle-array cell block:
clocks = <&clkctl1 MCUX_FLEXCOMMx_CLK &clkctl1 MCUX_FLEXCOMMx_LP_CLK>;
A phandle-array entry has a fixed shape <&phandle specifier...> where
the number of specifiers is fixed by the referenced node's #clock-cells.
Two phandle groups therefore cannot share one < > block; the combining
of < > groups is only valid for plain integer arrays. Each phandle plus
its specifier must be its own cell block.
Split the two clocks into separate cells so the property is a valid
phandle-array:
clocks = <&clkctl1 MCUX_FLEXCOMMx_CLK>, <&clkctl1 MCUX_FLEXCOMMx_LP_CLK>;
flexcomm14 has a single clock and is unchanged.
Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
Follow the family layout that already exists under soc/nxp/lpc/ and
move the LPC LPC84X family dtsi files (2 files) into a matching
lpc84x/ subdirectory. This keeps the dts layer aligned with the soc
layer.
Updated the board dts callers (lpc845brk) and any internal
cross-references. No functional change; the resulting devicetree is
byte-identical before and after this move.
Signed-off-by: Wei Feng <wei.feng_5@nxp.com>
Follow the family layout that already exists under soc/nxp/lpc/ and
move the LPC LPC55XXX family dtsi files (12 files) into a matching
lpc55xxx/ subdirectory. This keeps the dts layer aligned with the soc
layer.
Updated the board dts callers (lpcxpresso55s06 + 55s16 + 55s28 + 55s36 +
55s69) and any internal cross-references. No functional change; the
resulting devicetree is byte-identical before and after this move.
Signed-off-by: Wei Feng <wei.feng_5@nxp.com>
Follow the family layout that already exists under soc/nxp/lpc/ and
move the LPC LPC54XXX family dtsi files (3 files) into a matching
lpc54xxx/ subdirectory. This keeps the dts layer aligned with the soc
layer.
Updated the board dts callers (lpcxpresso54114 (m0 and m4)) and any
internal cross-references. No functional change; the resulting devicetree
is byte-identical before and after this move.
Signed-off-by: Wei Feng <wei.feng_5@nxp.com>
Follow the family layout that already exists under soc/nxp/lpc/ and
move the LPC LPC51U68 family dtsi files (1 file) into a matching
lpc51u68/ subdirectory. This keeps the dts layer aligned with the soc
layer.
Updated the board dts callers (lpcxpresso51u68) and any internal
cross-references. No functional change; the resulting devicetree is
byte-identical before and after this move.
Signed-off-by: Wei Feng <wei.feng_5@nxp.com>
Follow the family layout that already exists under soc/nxp/lpc/ and
move the LPC LPC11U6X family dtsi files (4 files) into a matching
lpc11u6x/ subdirectory. This keeps the dts layer aligned with the soc
layer.
Updated the board dts callers (lpcxpresso11u68 + faze) and any internal
cross-references. No functional change; the resulting devicetree is
byte-identical before and after this move.
Signed-off-by: Wei Feng <wei.feng_5@nxp.com>
The shared nxp_rt10xx.dtsi places the DCP crypto engine at
0x402fc000, which is correct for RT105x/RT106x but wrong for
the RT1011. On RT1011 the DCP is located at 0x400f0000.
Accessing 0x402fc000 during DCP_Init() hits an unimplemented
AIPS slot and triggers an imprecise data bus fault (Zephyr
fatal error 26) before main(), e.g. running samples/drivers/
crypto on mimxrt1010_evk/mimxrt1011.
Relocate the DCP node to 0x400f0000 for RT1011. Verified on
hardware: boot now proceeds past crypto_dcp_init into main().
Assisted-by: GitHubCopilot:claude-opus-4.8
Signed-off-by: Hake Huang <hake.huang@nxp.com>
Add missing `clocks` cell for the kernel clock on TIM8 in DTSI for
high-/XL-density STM32F1 devices, which prevented use of the peripheral
as the driver expects this cell to be present.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.
Signed-off-by: Fin Maaß <info@finmaass.de>
Allign the devicetree structure of the wch ethernet
nodes wich the other existing nodes, that also use the
Synopsys Designware IP.
With that also move the "mdi-port-ctrl" from the
mdio node to the ethernet node, wich is now the
parent of the mdio node.
Signed-off-by: Fin Maaß <info@finmaass.de>
Allign the devicetree structure of the wch ethernet
nodes wich the other existing nodes, that also use the
Synopsys Designware IP.
Signed-off-by: Fin Maaß <info@finmaass.de>
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.
Signed-off-by: Fin Maaß <info@finmaass.de>
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.
Signed-off-by: Fin Maaß <info@finmaass.de>
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.
Signed-off-by: Fin Maaß <info@finmaass.de>
As per our documentation, we have to reuse bindings from Linux, there
they use "snps,dwmac-mdio", so let's use the same one here in zephyr.
The esp32 itself is not in Linux, but the ethernet IP from Synopsys is.
Signed-off-by: Fin Maaß <info@finmaass.de>
As per our documentation, we have to reuse bindings from Linux, there
they use "snps,dwmac-mdio", so let's use the same one here in zephyr.
Signed-off-by: Fin Maaß <info@finmaass.de>
The audio PLL should be set to 786.432MHz to be able to derive
standard audio samples rates 16kHz, 32kHz, 48kHz, etc.
This requires a multiplier of 32.768. It used to be rounded to 32.77.
Signed-off-by: Koen Van Herck <koen.v.herck@gmail.com>
Corrects register address for the HPPASS_SAR adc block. The previous
0x7000 address offset is the offset for the calibration data block.
Assisted-by: Github Copilot:claude-opus-4.7
Signed-off-by: John Batch <john.batch@infineon.com>
Define labeled Cortex-A55 and Cortex-A76 CPU nodes for RK3588 and select
the combined Cortex-A76/A55 CPU configuration. Keep the existing
ROC-RK3588-PC SMP variant on its supported Cortex-A55 CPUs.
Signed-off-by: Chao Liu <chao.liu@processmission.com>
CONFIG_SMP_BOOT_DELAY was a global, application-level switch that made
the kernel skip starting every secondary CPU at boot, used in-tree only
by two tests and in practice by one platform class (intel_adsp, where
the host or PM policy brings DSP cores up on demand). Boot topology is
a hardware/platform property, and all-or-nothing is needlessly coarse.
Replace it with a per-CPU devicetree flag, zephyr,deferred-start, on
the /cpus children (mirroring zephyr,deferred-init for devices):
z_smp_init() now always runs and simply skips flagged CPUs, which are
brought up at run time with the existing k_smp_cpu_start() (or
k_smp_cpu_resume()). Deferral is per CPU, so asymmetric bring-up
(start some cores at boot, defer others) is now expressible, and the
special-case branch disappears from the boot path.
The flag is declared in the common cpu.yaml binding. The lookup uses
DT_PROP_OR() so cpu nodes whose binding does not cover the property
simply cannot be deferred rather than breaking the build; a binding
for the intel,x86_64 compatible used by qemu_x86_64's cpu nodes was
missing entirely and is added.
The two users are converted: tests/kernel/multiprocessing/
smp_boot_delay marks the secondary CPUs in per-board overlays (both
tests pass on qemu_x86_64) and tests/boards/intel_adsp/smoke gains
overlays for its four platforms (all build). Normal SMP boot is
unaffected (verified on qemu_x86_64, all CPUs online).
Out-of-tree users migrate by dropping CONFIG_SMP_BOOT_DELAY=y and
adding zephyr,deferred-start to the deferred cpu nodes in their board
overlay.
Assisted-by: Claude:claude-fable-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit migrates the existing pinmux driver for the musca-b1
board to the newer pinctrl API. The new implementation also fixes
a bug in the original pinmux driver which would have selected
alternative function 2 instead of ALTF1 as desired.
The musca-s1 pinmux driver has been left as this board is
deprecated.
Signed-off-by: Laurie Fay <Laurie.Fay@arm.com>
The TMP112 can stay in shutdown (SD) mode and perform a single
conversion on demand via the one-shot (OS) bit. This is the lowest
idle-current mode and suits battery-powered designs that sample
infrequently.
Expose this mode through the conversion-rate property: setting it to 0
keeps the sensor shut down and triggers a one-shot conversion on every
sample_fetch call, blocking until the OS bit reads back as 1 (typ.
10 ms per datasheet 7.4.3) or a timeout elapses. The same mode can be
selected at runtime by setting a 0 Hz sampling frequency through
sensor_attr_set().
Because a new value (0) is prepended to the conversion-rate enum, the
device-tree enum index no longer maps directly onto the CR register
field, so the init path subtracts one for the periodic rates.
Tested on an nRF54L15-DK with a TMP112 over I2C: the periodic rates are
unchanged and conversion-rate = 0 returns correct readings on demand
while the sensor is held in shutdown between fetches.
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Martin Hubáček <martin.hubacek@hardwario.com>
The RTS5817's SPI is based on snps,designware-spi, but it's not
entirely the same, so DW spi drivers cannot be used directly.
The rts5817 spi driver uses some DW spi code:
1. pin_ctrl is handled in the spi_dw.c code initialization.
2. Several APIs defined in spi_dw.h is used by spi_rts5817.c.
Signed-off-by: Darcy Lu <darcy_lu@realsil.com.cn>
Define Bluetooth interrupts from the devicetree for "st,stm32wb-rf"
compatible devices.
Note mix-len/max-len properties are not set for interrupts DT properties
in st,stm32wb-rf.yaml since current DT parsing process badly handles
them when interrupt-parent property must be used to locate the
interrupt cells size. Rely on min-len/max-len set for interrupt-names
for the properties consistency (edtlib.py ensures interrupts and
interrupt-names have the same number of elements).
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add support for the Texas Instruments ADC081C021/027, ADC101C021/027
and ADC121C021/027 single-channel I2C ADCs. The six parts share one
register map and differ only in the resolution of the left aligned
conversion result, so one driver handles all of them.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
A property that is both required and resolves to a default value
is contradictory, since the default guarantees the property is
always present. edtlib warns on every occurrence.
Where a base binding supplies the default, the local required is
dropped, but only where a const or enum still rejects that
default so an absent property remains a build failure. Bindings
whose allowed values include the inherited default keep required,
as dropping it there would silently accept a wrong value. The
serlcd binding is the inverse case, where the base marks the
property required, so the local default is dropped instead.
Assisted-by: Claude Code:opus-4-8
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The "st,stm32-usbphyc" compatible was used for three different hardware
programming models, which goes against the Devicetree Specification.
This was masked though special checks in CMake which is hacky at best.
Split the compatible in three compatibles (2 new + 1 reused):
- "st,stm32-usbphyc" where the PHY clock frequency is configured
through USBPHYC registers in the RCC MMIO interface (STM32H7R/S)
- "st,stm32f7-usbphyc" where the PHY clock frequency is configured
through a distinct MMIO interface with five options available:
12, 12.5, 16, 24 and 25 MHz
- "st,stm32n6-usbphyc" where the PHY clock frequency is configured
through a distinct MMIO interface with three options available:
19.2, 20 and 24 MHz
Update SoC DTSI and drivers (Kconfig, CMakeLists and source) to work
with the new organization brought by these bindings.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add a disk driver that exposes any device implementing the memc
read/write API as a block device. This enables using external
memory as storage for FAT filesystems or general block I/O without
requiring memory-mapped access.
The driver uses the zephyr,memc-ram-disk compatible and reads the
backing memc device phandle, disk name, and sector configuration
from devicetree. Read and write operations are translated directly
to memc_read() and memc_write() calls.
Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
Add ADC driver support for Realtek Bee series SoCs,
including RTL87x2G and RTL8752H.
This driver supports:
- 12-bit resolution
- Divide mode and Bypass mode
Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Add an SPI SMP transport for mcumgr where the device operates as an
SPI peripheral and exchanges raw SMP packets with the SPI controller,
with no additional framing layer. A single data-ready GPIO signals
the controller when a response is ready to be read, avoiding a
resident polling thread. Zero-byte packets are handled via
smp_reassembly_drop() to clear a partial reassembly buffer.
Includes the Kconfig, the zephyr,smp-spi devicetree binding, and the
SMP_SPI transport enum entry.
Signed-off-by: Sanjay Varghese <Varghesemela@gmail.com>
Add pinctrl support for Renesas RZ/A3M
Remove the default from the binding and use DT_PROP_OR(..., 0) when
extracting FILNUM/FILCLKSEL, so DT_NODE_HAS_PROP() distinguishes an
explicitly requested filter from an absent property.
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
Support Zephyr RTOS on Cortex A720 for R-Car X5H.
For more information and documentation, please visit the product page:
https://www.renesas.com/secure/gen5-r-car-x5h
Signed-off-by: Nam Nguyen <nam.nguyen.xn@renesas.com>
Define the Versal IPI controller nodes.
Use the controller addresses, message buffer locations, interrupts, and
agent IDs from the Versal hardware description.
Signed-off-by: Takumi Ando <takumi@spacecubics.com>
Make interrupt-names DT description required for "st,stm32wba-radio"
compatible nodes for consistency since these are expected by the driver
and bound element counts (both interrupts are needed) and supported name
values.
Note mix-len/max-len properties are not set for interrupts DT properties
in st,stm32wba-radio.yaml since current DT parsing process badly handles
them when interrupt-parent property must be used to locate the
interrupt cells size. Rely on min-len/max-len set for interrupt-names
for the properties consistency (edtlib.py ensures interrupts and
interrupt-names have the same number of elements).
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
The property was both `boolean` and `required: true` so it was always
present on nodes with the compatible (i.e., STM32WL5 "SUBGHZSPI" node).
The SPI driver serialized this property into field `use_subghzspi_nss`,
but it really acted as `is_subghzspi` instead... which does not require
a specific property: the SUBGHZSPI node can be identified by its special
compatible `st,stm32-spi-subghz` alone!
Drop the `use-subghz-nss` property from the binding since it is useless,
and update the STM32WL SoC DTSI accordingly. In the STM32 SPI driver,
rename the `use_subghzspi_nss` field to `is_subghzspi` and initialize it
to true iff an SPI node has the special compatible. While at it, inline
function spi_stm32_is_subghzspi() into its only caller and add a comment
explaining why the check is needed to slightly simplify the driver.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Create a new quectel,21-g.yaml device tree binding and modify the
current EG25-G modem cellular code to also support EG21-G, removing
specific references to EG25-G from the implementation and
making sure the proper definitions exist for both EG21 and EG25.
Also make mdm-reset-gpios optional for EG25-G.
Signed-off-by: Guilherme Costa <guilhermecosta@stratioautomotive.com>
The AD4170 driver already supports the "-4" members of this Sigma-Delta
ADC family (AD4170-4, AD4190-4, AD4195-4) from a single shared driver,
differentiated by compatible string and PRODUCT_ID.
Add support for the "-8" variants. Per their datasheets, the AD4195-8
and AD4190-8 both report PRODUCT_ID 0x49 and expose analog inputs
AIN8..AIN15 in addition to AIN0..AIN7; the register map, 24-bit
resolution, 16 channels, 8 setups and filters are identical to the rest
of the family.
Wire up two new compatibles (adi,ad4195-8-adc, adi,ad4190-8-adc),
extend the ad4170_input enum and the dt-bindings header with the extra
analog inputs, and add the parts to the build_all coverage.
Signed-off-by: Robert Budai <robert.budai@analog.com>
`stm32h755.dtsi` includes `stm32h745.dtsi` which in turn includes
`stm32h7_dualcore.dtsi`, so the latter should not be included again from
`stm32h755.dtsi`.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>