The renesas RA2A1 contains an usbfs peripheral with 5 endpoints.
For which the hal driver has now been upstreamed.
To make it work with the driver a usbfs and usbfs-phy dts node
had to be added to the soc dts.
The changes within this commit have been tested and confirmed
working on ek-ra2e1.
Signed-off-by: Victor Hogeweij <hogeweyv@gmail.com>
The USBFS peripheral on Renesas RA4E2 has 5 pipes:
pipe 0 (control), pipes 4-5 (bulk) and pipes 6-7 (interrupt), with no
support for isochronous transfer. Set num-bidir-endpoints to 5 for
boards using this variant to correctly reflect the available pipe
configuration.
Remove the /delete-node usbfs and usbfs-phy lines from the RA6E2
SoC DTS to allow use of the usbfs peripheral with the driver
proposed in zephyrproject-rtos/hal_renesas#208.
Signed-off-by: Victor Hogeweij <hogeweyv@gmail.com>
Add devicetree node for the MXCRYPTO crypto engine and
TRNG to the PSE84 SoC DTS includes. This node references the
new infineon,mxcrpto, infineon,mxcrypto-crypto, and
infineon,mxcrypto-trng bindings.
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
- infineon,mxcrypto: mfd parent for crypto and trng nodes
- infineon,mxcrypto-crypto: main crypto engine
- infineon,mxcrypto-trng: true random number generator
These bindings describe the register base address and interrupt
configuration for the MXCRYPTO IP block found in several
Infineon SoCs, including PSE84
Assisted-by: Claude:claude-opus-4.7
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Enable the RP2350 on-die temperature sensor at SoC level.
The RP2350A and RP2350B devicetrees provide their respective ADC
channels, so board-specific sample overlays are no longer needed.
Remove the redundant RP2350 die_temp_polling sample overlays.
Signed-off-by: Ara Gevorgyan <aragev@gmail.com>
Add the XBAR1 mux controller node and EQDC1-4 sensor nodes to the
RT118x SoC dtsi, all disabled by default. The EQDC instances share
a single combined IRQ per instance; interrupt-names = "index" is set
to satisfy the eqdc_mcux driver's DT_INST_IRQ_BY_NAME lookup.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add board support for the Quectel KG100S Radio Board (BRD4332A), featuring
the EFR32BG21B010F1024IM32 SoC and a Semtech SX1262 LoRa transceiver for
Sub-GHz operation.
Signed-off-by: Martin Moya <martin.moya@focus.uy>
Add DTS and Kconfig support for the Silicon Labs EFR32BG21 (Blue Gecko)
series, introducing the EFR32BG21B010F1024IM32 variant.
Temporarily point `hal_silabs` to `pull/183/head` to pull in the
required HAL support for this SoC.
Signed-off-by: Martin Moya <martin.moya@focus.uy>
Use the chosen zephyr,system-timer property to indicate which timer is used
as system timer and move the timer selection from the board to the SoC
itself.
Signed-off-by: Mika Braunschweig <mika.braunschweig@siemens.com>
Use the chosen zephyr,system-timer property to indicate which timer is used
as system timer and move the timer selection from the board to the SoC
itself.
Signed-off-by: Mika Braunschweig <mika.braunschweig@siemens.com>
Extend the TI BQ24295 battery charger driver to support additional
BQ2429x family devices.
Introduce variant-specific configuration to handle differences in
register fields and parameter ranges while maintaining a common driver
implementation across the supported devices.
Signed-off-by: Priyadharsan Saravanan <priyadharsan@sacrasys.com>
Create a driver implementation for the battery charge controller
TI BQ24295.
The driver supports enabling and disabling charging, configuring charge
current and charge voltage limits at initialization and runtime, and
setting input current regulation.
It also provides charger status and fault reporting through the Zephyr
charger API.
Signed-off-by: Priyadharsan Saravanan <priyadharsan@sacrasys.com>
nrf7120 cpu DTS node is missing of clock source causes it is not
referencing the clock-frequency attribute for SystemCoreClock variable.
The SystemCoreClock variable fallbacks to 16MHz causing clock scaling
issues for some timer tests.
Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
Add the NXP LPC54628 (Cortex-M4F, 512 KB flash, 200 KB SRAM) as a second
SoC in the existing lpc54xxx series, alongside the LPC54114. The series
already provides the shared soc.h, linker script and IOCON pinctrl
header, so only the LPC54628-specific parts are added: the soc.yml and
Kconfig entries, the system PLL clock init in soc.c (clocked from the
external crystal, up to 220 MHz) selected by CONFIG_SOC_LPC54628 in
clock_init(), and the SoC devicetree with syscon/reset, IOCON pinctrl,
GPIO, PINT, GINT, the FLEXCOMM instances, the on-chip IAP flash, and the
two M_CAN instances. SystemInit is provided by the MCUXpresso SDK; the
LPC54628 has no startup assembly and runs it from soc_reset_hook.
Signed-off-by: Marvin Gnad <marvin.gnad@gmail.com>
The TSTMR is a read-only timestamp counter, but its clock source is
SoC-specific: on some SoCs (e.g. i.MX RT118x) it is a read-only view of
the System Counter (SYS_CTR) and depends on it being enabled, while on
others (e.g. MCXW or i.MX8ULP) it is a standalone counter that free-runs
from reset and has no SYS_CTR dependency at all.
On i.MX RT118x, where the TSTMR is backed by the SYS_CTR, the driver
reported a hard-coded 1 MHz rate and never enabled the SYS_CTR, so
counter_get_value() returned a frozen or wrongly-scaled count and
tests/drivers/counter/counter_basic_api (test_valid_function_without_
alarm) failed. On RT118x the SYS_CTR (and thus the TSTMR) runs at a
fixed 24 MHz.
Gate the SYS_CTR handling behind a new hidden Kconfig,
COUNTER_MCUX_TSTMR_SYSCTR_BACKEND, selected automatically when the TSTMR
driver is built on a SoC that also has an nxp,sysctr node enabled. On
those SoCs the TSTMR shares the SYS_CTR hardware, so the driver drives
the SYS_CTR_CONTROL registers directly:
- start() sets the count-enable bit (CNTCR.EN) when the counter is off;
- get_freq() returns 0 while the SYS_CTR is disabled so callers can tell
the counter is not yet running;
- the register accesses are compiled out entirely on standalone TSTMR
SoCs (e.g. MCXW or i.MX8ULP), which free-run from reset and do not
depend on SYS_CTR.
In the CCM rev2 clock driver, the IMX_CCM_SYSCTR_BASE_CLK case now also
covers the TSTMR backend and reports the fixed 24 MHz rate, while
IMX_CCM_SYSCTR_SLOW_CLK returns -ENOTSUP for the TSTMR backend: the
SYS_CTR slow-clock path is unreliable for timestamp reads on
RT1180/RT1189, so surfacing the error at init time is safer than
silently producing inaccurate timestamps.
The counter_basic_api test now treats a reported frequency of 0 as
"cannot set a millisecond period", so a not-yet-running counter is
skipped rather than mis-evaluated.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
The counter_basic_api test set run-mode = "free-run" on every GPT node
in its per-board overlays for the i.MX RT10xx, RT11xx and RT118x EVKs.
free-run is not board-specific: it is how the GPT counter is expected
to behave (compare events do not reset the counter), so repeating it in
each test overlay duplicated the same setting across many boards.
Move the property onto the GPT nodes in the NXP i.MX RT SoC devicetree
so it becomes the SoC-level default, and drop the now-redundant per-board
overrides from the counter test overlays. This also removes a duplicate
&gpt2 override in the RT1180 CM33 overlay.
The binding default stays "restart"; only these RT SoCs opt into
free-run. i.MX8M (arm64) GPT nodes are left unchanged.
Verified with west build -p always of tests/drivers/counter/
counter_basic_api on frdm_imxrt1186/mimxrt1186/cm33 and
mimxrt1170_evk/mimxrt1176/cm7; both build clean and the generated
devicetree shows run-mode sourced from the SoC dtsi.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
declare the erase-block-size property used by the flash_mspi_nor
driver to configure the address and size alignment required by
erase operations
Signed-off-by: Mohammad Odeh <zephyr@exalt.ps>
In Multi-LED mode, nothing prevents adding zeros between numbers in
the slot sequence. This is not recommended by the datasheet and can
actually render the translation map unusable because a shift appears
when reading the sensor FIFO data register. To prevent this, additional
build asserts have been added to check the slot sequence at compile time.
The default led-slot from bindings has been corrected: each type of
sensor will make all accessible LEDs available to the user by default.
Signed-off-by: Alban Chauvel <a.chauvel@catie.fr>
Enable on such boards
- lpcxpresso55s36 (LPC55S36)
- lpcxpresso55s59 (LPC55S6x)
- frdm_mcxn947 (MCXN947)
- frdm_rw612 (RW612)
- rd_rw612_bga (RW612)
For LPCXpresso55S69 board. The PowerQuad uses SRAM4 as private
working memory when enabled.
RT595 and RT685 can't be tested with the tests/subsys/dsp/basicmath/
because the source data is placed in flexspi Flash which can't
be accessed by PowerQuad.
Assisted-by: Claude Code:claude-opus-4-6
Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
Add a DSP backend that offloads element-wise math operations to the
NXP PowerQuad hardware coprocessor found on LPC55S6x and similar SoCs.
Unsupported operations fall back to CMSIS-DSP software implementations.
Accelerated operations: add, sub, mult, scale, negate, and dot_prod
for f32, q31, and q15 types. The implementation uses PowerQuad's
matrix engine with three-tier chunking: full 16x16 blocks, partial
rows of 16, and a CMSIS-DSP tail for remainders under 16 elements.
The backend is enabled via Kconfig (DSP_BACKEND_POWERQUAD) and is
auto-selected when the nxp,lpc-powerquad devicetree node is present.
Assisted-by: Claude Code:claude-opus-4-6
Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
Add a devicetree binding for the NXP LPC PowerQuad DSP coprocessor.
The binding requires reg and clocks properties, allowing the driver
to locate the peripheral and manage its clock through the clock
control subsystem.
Assisted-by: Claude Code:claude-opus-4-6
Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
The ST Zio connector extends the ARDUINO Uno V3 connectivity through four
female headers (CN7, CN8, CN9 and CN10) available on STM32 Nucleo-144
boards.
Add a generic "st-zio-header" GPIO nexus binding and the matching ST_ZIO_*
pin constants so boards can expose the Zio connector pins with convenient,
silkscreen-aligned names. This mirrors the existing st-morpho-header
binding.
Signed-off-by: Michele Vaccari <michele.vaccari@outlook.com>
Reassign IRQs so that none are of level 3. Modify peripheral mapping
through INPUTMUX and modify IRQ numbers in SoC's DT.
This is due to the fact that the default exception handling level
of the DSP (EXCM_LEVEL) is 2, thus L3 IRQs can't be masked during
critical sections.
Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
Assisted-by: Claude:claude-opus-4.8
Reassign IRQs so that none are of level 3. Modify peripheral mapping
through INPUTMUX and modify IRQ numbers in SoC's DT.
This is due to the fact that the default exception handling level
of the DSP (EXCM_LEVEL) is 2, thus L3 IRQs can't be masked during
critical sections.
Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
Assisted-by: Claude:claude-opus-4.8
By default, the UART RX FIFO is configured to trigger an interrupt
when it is half full. This end up breaking implementations that
assumed a per-byte interrupt delivery. These changes make these
properties adjustable in the DTS for RX and TX FIFOs.
Signed-off-by: Steven Macías <esmu@bang-olufsen.dk>
Added Driver support for LTC4286 Hot-Swap Controller and Power Monitor.
Supports power telemetry and interrupt support to alert host device of
fault and warning events.
Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
Move the ite,it8xxx2-pinctrl container node from the /soc node to the
root / node.
The pin-controller node is a logical container for pin configuration
states rather than a memory-mapped bus peripheral on the SoC bus. When
located inside /soc, DTC treats its children as addressable by the SoC
bus address/size cells, triggering avoid_unnecessary_addr_size
warnings/errors. Moving it to the root matches the convention used across
other SoC families in Zephyr (such as npcx and rp2040).
Assisted-by: Antigravity:gemini-1.5-pro
Signed-off-by: Jeremy Bettis <jbettis@google.com>
By default the autanalog and ctb nodes had status set
to okay for the pse84 boards. It makes more sense for
the default status to be disabled and for the specific
tests/samples to enable them as needed.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
The mux subsystem rework converted the PWM and qdec INPUTMUX consumers
to mux-states and deleted the #inputmux-cells specifier space, but this
driver was left behind on inputmux-connections, so enabling capture now
fails at devicetree parse time (counter_capture on frdm_mcxa153).
Convert it the same way as pwm_mcux_ctimer: mux-states in the binding
and test overlay (same cells, renamed), a mux_state_apply() loop in the
driver with its error propagated out of init, select MUX in Kconfig,
and the missing Counter entry in the 4.5 migration guide.
Fixes#115616
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
Describe I2S0 and its TX and RX DMA request slots in the common
MAX32690 devicetree. Select the EV kit pin routing and document the
onboard MAX9867 audio connections.
Signed-off-by: Shan Pen <bricle031@gmail.com>
Drop all properties related to wake-up pins from the `st,stm32-pwr`
binding as they have been migrated to `st,stm32-pwr-wkupctrl`.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Migrate all existing STM32 wake-up pin DTSI implementations towards the
new `st,stm32-pwr-wkupctrl` binding. For compatibility, also update the
DTS of a few STM32C0-based boards, which have to define some of the
wake-up pins because the mapping is package-specific on this series,
as well as all overlays for `samples/boards/st/power_mgmt/blinky`.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add new bindings for the wake-up lines control logic integrated inside
the STM32 Power Controller (PWR). There is one main binding with most
of the properties, as well as two derivatives for a few series where
the available features differ from "the majority":
- st,stm32f1-pwr-wkupctrl for series where wake-up pins are forced into
input pull-down configuration, rising edge polarity whenever enabled
(no configurable polarity or pull-up/pull-down selection)
- st,stm32f7-pwr-wkupctrl for STM32F7 series on which it isn't possible
to enable the internal pull-up/pull-down resistors for wake-up pins
All other series share the same feature set covered by the main binding:
- configurable polarity: rising or falling edge detection
- configurable resistor: pull-up/pull-down/no-pull
Availability of some additional features is indicated by the presence of
vendor-specific properties declared in the main binding instead of using
dedicated bindings.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
For migration towards the new binding, allow the PWR nodes to get rid of
the #address-cells and #size-cells properties, which become unnecessary
as wake-up pin nodes are no longer direct children of the PWR node.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The Power Controller is memory-mapped so it should go inside /soc.
However, for some reason, the node was present in the root node instead
for STM32F1 and STM32F4 series.
Move the PWR node of these series inside /soc where it really belongs.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Adds bindings for the Infineon HPPASS CSG comparator device. Each CSG
slice exposes an independent comparator with configurable inputs,
edge-detect trigger, and hardware output routing. The interrupts are
shared and handled by the parent MFD driver.
Assisted-by: Github Copilot:claude-opus-4.7
Signed-off-by: John Batch <john.batch@infineon.com>
xspim node use io-port-x properties to document mux configuration,
which would create a link in the dependency graph.
Thought, xspim should run before so this dependency should not be taken
into account.
Set dependency-mode as "ignore" for these props.
Note: "reverse" mode couldn't be used neither, it would be more adapted,
but in some case, dependency graph doesn't apply (flash_xspi_stm32.c case,
where the device node isn't the xspi controler, but the flash device)
Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
Describe all six ENETC Virtual Station Interfaces (enetc{0,1,2}_vsi{0,1})
on the i.MX95 M7 with their SI/port register windows, mac-index, si-index
and the shared NETCMIX block clock, all disabled by default.
Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
Add a NETC Virtual Station Interface (VSI) driver and its binding so Zephyr
can drive an ENETC virtual function while a separate OS owns the PSI/PF.
The driver brings the SI up off the boot path in a service thread, gating
first access on the NETC clock and the PF's SR-IOV VF-enable bit so it
can't fault on a not-yet-decoding SI. It programs its own unicast MAC and
multicast-promiscuous mode through VSI->PSI messages.
Note: the current Zephyr NETC PSI driver implements neither SR-IOV nor
PSI<->VSI messaging, so only the Zephyr-VSI-to-Linux-PSI path is tested.
Rework the shared Tx datapath for throughput: coalesced Tx-completion
interrupts (frame-threshold + timer), a per-slot buffer ring so frames
aren't serialised on one buffer, and backpressure that blocks on a full
ring instead of dropping. PTP egress timestamps are read with a bounded
busy-wait.
Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
With the deprecation of fixed-partition, updated all mpns and board
to migrate to new binding mapped-partition.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
With the deprecation of fixed-partition, updated all mpns and board
to migrate to new binding mapped-partition.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Pull the Nordic Wi-Fi RF board parameters and the 6 GHz transmit power
ceiling bindings into the nRF7120 Wi-Fi binding, so a board can describe
the antenna fitted to it and the power it may transmit at the edges of
each band, across all three bands.
The DK is characterised with a net antenna gain of 0 dB in 2.4 GHz and
5 GHz. Its edge ceilings stay at the default of 31 dBm, which places no
restriction beyond the transmit power ceiling of the band, and its 6 GHz
values stay at the conservative binding defaults until the DK is
characterised.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Claude:claude-opus-5
The Wi-Fi transmit power ceilings were set in the nRF7120 SoC dtsi,
which presents them as a property of the SoC. They are not. The silicon
ceilings live in the ICR region, and the devicetree value is the further
restriction the board imposes on top of them, so two boards built around
the same SoC need different values and a board had no obvious place to
override them.
Move them to the nRF7120 DK, the only board that enables the Wi-Fi node.
Boards that leave the node disabled are unaffected, as edtlib only
enforces required properties on nodes with status "okay".
The values are carried over unchanged, so behaviour on the DK is
preserved.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Claude:claude-opus-5
Antenna gain and band edge ceilings describe the antenna fitted to a
board, the loss of the RF path to it, and the power the board may
transmit at the edges of each band to stay within the spectral emission
mask. All of them are per-board values and none is a property of the
SoC, so devicetree is the right home for them, next to the transmit
power ceilings that live there already.
Add an include-only binding holding them. Antenna gain is a signed net
figure, so a board whose RF path loses more than its antenna gains
states a negative value, and there is no separate PCB loss property.
Band edge ceilings are absolute limits in dBm and default to 31, which
places no restriction beyond the transmit power ceiling of the band.
The sub-band boundaries deliberately differ between the antenna gain and
the edge ceiling properties, and the 6 GHz band is split into six
sub-bands for antenna gain but only two, UNII-5 and UNII-6, for the edge
ceilings, so each property documents its own frequency range rather than
sharing one definition.
Add the 6 GHz transmit power ceilings as a separate include alongside
the existing 2.4 GHz and 5 GHz ones, so a tri-band part can pull them in
without affecting the dual-band parts.
The properties follow the layout of the Nordic Wi-Fi RF parameters and
so are vendor prefixed rather than presented as a cross-vendor
interface. The include is not tied to a single part: nRF70 keeps
equivalent values in Kconfig today and can be migrated onto it
separately.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Claude:claude-opus-5
Eight of the nine transmit power ceiling properties were marked
'required'; wifi-max-tx-pwr-5g-high-mcs7 was not, which is a bug rather
than a decision. Requiring them also means a board cannot build until it
states a value for every rate and sub-band, with no way to say "use a
safe default" for a rate it has not characterised yet.
Drop 'required' and give each property a conservative default instead,
matching the values currently used for the Sheliak DK, so a board that
has not been characterised transmits too little rather than risking a
regulatory limit. These can be revisited once the DK is characterised.
This also scales better to parts with more sub-bands, where requiring
every property would oblige a dual-band board to describe a band it does
not operate.
No board changes behaviour: every board in tree sets all of the
properties that apply to it, so the defaults are not reached today.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Claude:claude-opus-5