Add counter child node to ULPT instances on RA8X1 and RA8X2 SoCs
to enable ULPT counter driver support
Signed-off-by: Khanh Nguyen <khanh.nguyen.wz@bp.renesas.com>
Add counter driver for the Renesas RA Ultra-Low-Power Timer (ULPT)
with Kconfig, devicetree binding, and driver implementation
Signed-off-by: Khanh Nguyen <khanh.nguyen.wz@bp.renesas.com>
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Add count-source and prescaler properties to renesas,ra-ulpt binding
Update ULPT nodes on RA8X1 and RA8X2 accordingly
Signed-off-by: Khanh Nguyen <khanh.nguyen.wz@bp.renesas.com>
The new update SDIO support on renesas,ra-sdhc driver required the
sdio-int interupt signal to be defined on device tree, this add the
sdio interrupt define on the Renesas SoC
Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add the litex_vexiiriscv board, a LiteX SoC with a VexiiRiscv softcore
CPU, generated for the Efinix Titanium Ti375 C529 Development Kit.
As the SoC is generated by the LiteX SoC Builder, the board definition
is only a snapshot of one specific configuration and may change at any
time. This is documented prominently in the board documentation, along
with the instruction to generate devicetree and Kconfig overlays with
litex_json2dts_zephyr.py for the SoC actually in use.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Update the QSPI node with nxp,qspi compatible, add second reg
entry for AMBA base address, clock reference to MC_CGM QSPI SFCK,
and child node address/size cells. Remove unused quadspi_ardb node.
Add mux-10-dc-0-div property to nxp,mc-cgm binding for SFCK divider.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Add QSPI controller node to the MCXE24x SoC dtsi using the
nxp,qspi compatible, with AMBA base address, SPLL async clock
references, and child node address/size cells.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Add MSPI controller driver for NXP QSPI hardware. The driver
dynamically builds LUT sequences from MSPI transfer parameters,
supporting single and quad SPI modes. It handles MCXE24X hardware
quirks including SFAR auto-reset, minimum 16-byte TX IDATSZ, and
big-endian FIFO byte ordering.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Add mxicy,mx25um51345g and winbond,w25q512nw compatibles so the XSPI
NOR flash controller node can select its chip config at build time.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Generalise the octal-only driver to a per-chip config and LUT table
so it can also drive the on-board Winbond W25Q512NW quad SPI NOR on
RT700 XSPI0. The octal path is unchanged.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
timebase-frequency is a optional prop for
/cpus/cpu* nodes according to the devicetree spec,
so add it to cpu.yaml.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The VSC8541 MAC-interface pad edge rate depends on the VDDMAC supply
voltage and board-level signal-integrity requirements. The driver
currently leaves the setting at its reset default, so boards cannot
select the value recommended for their electrical design.
Add a microchip,pad-edge-rate devicetree property accepting values 0
through 7. Default it to 7 to preserve existing behavior, and program
the selected value into page 2 register 27 after the PHY software
reset.
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
Add a GPIO nexus binding for the MR-MCXN-T1 stacking header. The board
mates a stacking header that carries the expansion boards. Expansion-board
overlays must reference connector nexus labels rather than raw SoC GPIO
controllers, so the board needs a nexus that maps the header's control
lines (sensor interrupts, resets, indicator and user inputs). The binding
follows the existing connector-header pattern and includes gpio-nexus.yaml.
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
Add IOMUX pin-controller node for AM13E using the ti,mspm0-pinctrl
compatible. IOMUX base is 0x400cc000.
Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
The generic dwc_mac driver handles the NuMaker EMAC, and both
in-tree boards now describe the MDIO controller and the PHY that it
needs. Remove the NuMaker Ethernet driver, its Kconfig option and the
phy-addr property that only it used.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The EMAC is a Synopsys DesignWare MAC and exposes the station
management interface and the IEEE 1588 timestamp unit as blocks of
its own register space. Describe them as child nodes so the generic
dwc_mac MDIO and PTP clock drivers can bind to them.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The EMAC of the M467 and the M55M1 connects to its PHY through RMII only.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The EMAC of the M467 and the M55M1 has no multicast hash filter and
nine MAC address entries, not a 64 bin hash table and sixteen
entries as commit 0b91e76bcb ("dts: ethernet: nuvoton: describe
multicast filter capabilities") assumed.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Declare that display controllers belong to the "display" device
class: every binding including display-controller.yaml inherits the
class, and the maxim,max7219 and raydium,rm67199/rm692c9 bindings,
which do not use the controller base binding, declare it directly.
With these, every driver registering the display device API is
covered by the class.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Declare that I3C controllers belong to the "i3c" and "i2c" device
classes: every binding including i3c-controller.yaml inherits the
classes, and the ite,it51xxx-i3cs binding, which does not use the
controller base binding, declares them directly. The i2c entry
matches the runtime view, where DEVICE_API_EXTENDS(i3c, i2c, ...)
makes DEVICE_API_IS(i2c, dev) true for I3C controllers.
Assisted-by: Claude:claude-fable-5
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Add a hardware-agnostic hwinfo backend that reads the device unique
identifier, and optionally the EUI-64, from NVMEM cells referenced by
a zephyr,hwinfo-nvmem devicetree pseudo-node.
As with the SoC-specific backends, only one device-id backend can be
linked into an image, so a conflicting backend must be disabled when
enabling this one.
Assisted-by: Claude:claude-fable-5
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add SoC devicetree includes and bindings for Six301, the
first Series 3 device from Silicon Labs.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Before starting communication with the Wi-Fi core, the antenna switch
(ANTSW) needs to be steered towards WLAN. This has to happen before the
LMAC processor is kickstarted in soc_early_init_hook(), which runs before
the GPIO driver is available (and, for TF-M, in the secure image), so
GPIO hogs or the GPIO driver cannot be used here.
Describe the steering line in devicetree through a new
nordic,nrf71-wifi-antsw node instead of hardcoding the pin, and drive it
in soc_early_init_hook() using NRF_DT_GPIOS_TO_PSEL with the nrf_gpio
HAL. Going through the HAL keeps the access on the P0 alias that matches
the build's security state, so it works in both secure and non-secure
builds.
The steering is sequenced after the antenna switch is powered
(pwr_antswc) and before the Wi-Fi core is kickstarted. A build assertion
enforces that steering is only configured when pwr_antswc is present, so
the switch is never steered without being powered.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Claude:claude-opus-4.8
Describe the Clock and Reset Unit, the system and PHP GRF syscon
regions, and the two GMAC controllers with their MDIO and PTP child
nodes. Both GMAC nodes and PTP clocks are left disabled in the SoC
dtsi; boards enable the instances they wire up.
Enable GMAC0 and its PTP clock on roc_rk3588_pc for build testing.
Board Kconfig defaults enable ETH_DRIVER, CLOCK_CONTROL and RESET.
The glue is covered by net.ethernet.build.default via the in-tree
board Twister conf.
Signed-off-by: Yanzhao Cui <cuiyanzhao@kylinos.cn>
Add the platform glue that brings up the Synopsys DesignWare MAC found
on the RK3588, along with the rockchip,rk3588-gmac binding.
Bus init asserts the CRU reset line, programs the RGMII interface select,
clock direction and TX/RX delays through the system and PHP GRF syscon
regions, then deasserts reset. Because the RGMII transmit clock is
divided down in the PHP GRF instead of being driven by the MAC, the
divider is reprogrammed from the platform link speed change hook.
DMA descriptors use the linker nocache region. The driver depends on
64BIT and derives the GMAC instance id from the register address rather
than the devicetree instance number.
Signed-off-by: Yanzhao Cui <cuiyanzhao@kylinos.cn>
Add a reset controller driver for the RK3588 Clock and Reset Unit,
together with its devicetree binding. The CRU exposes the peripheral
soft reset lines through write-enable protected registers; the driver
implements the assert, deassert and toggle operations on top of them so
peripherals such as the GMAC controllers can be reset from devicetree.
The driver maps the parent CRU MMIO region and uses the soft reset
registers through offsets from that base.
Signed-off-by: Yanzhao Cui <cuiyanzhao@kylinos.cn>
Add a clock controller driver for the RK3588 Clock and Reset Unit,
together with its devicetree bindings. The driver gates and ungates the
peripheral clocks selected by the clock IDs from the rk3588-cru
dt-bindings header and reports nominal rates for the GMAC clocks so the
MAC can derive its CSR setting without a fixed snps,clk-csr property.
The driver maps the parent CRU MMIO region and uses the clock gate
registers through offsets from that base.
Signed-off-by: Yanzhao Cui <cuiyanzhao@kylinos.cn>
The ENET module, MAC, MDIO and PTP clock nodes had no status property
and were therefore enabled on every board using the SoC. Networking
applications failed to build for boards without an Ethernet PHY, such
as the S32K148-EVB without the nxp_adtja1101 shield, because the MAC
has no phy-handle.
Disable the nodes in the SoC devicetree, as done for MCXE24x. The
children need their own status because the MAC, MDIO and PTP clock
drivers instantiate per node and reference the parent device.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Neither lpadc0 nor lpadc1 declared zephyr,disabling-power-states, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter any power
state during a conversion.
Per MCXAP172M240F70 RM Rev. 1 section 30.6 ("Module operation in low power
modes") the ADC analog block is not active in Power Down and Deep Power
Down powers off the domain holding the LPADC registers, so neither state
can be entered mid-conversion. Give both nodes that list. Covers A577.
Deep Sleep stays listed even though the hardware does allow the converter
to keep running there -- CTRL[DOZEN] is 0 after reset, only the bus clock
is gated, and hardware triggers and the compare wakeup remain live. That
holds only while ADCK keeps running, and the SoC clock configuration makes
no such promise, so the conservative entry is the correct default. A board
or application that arranges a low-power ADCK source can drop &deepsleep
in its own overlay.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
None of lpadc0..lpadc3 declared zephyr,disabling-power-states, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter any power
state during a conversion.
Per MCXAP144M180FS6 RM Rev. 1 section 24.5 ("Module operation in low power
modes") the ADC analog block is not active in Power Down and Deep Power
Down powers off the domain holding the LPADC registers, so neither state
can be entered mid-conversion. Give all four nodes that list. Covers A366,
A346 and A266.
Deep Sleep stays listed even though the hardware does allow the converter
to keep running there -- CTRL[DOZEN] is 0 after reset, only the bus clock
is gated, and hardware triggers and the compare wakeup remain live. That
holds only while ADCK keeps running, and the SoC clock configuration makes
no such promise, so the conservative entry is the correct default. A board
or application that arranges a low-power ADCK source can drop &deepsleep
in its own overlay.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Neither lpadc0 nor lpadc1 declared zephyr,disabling-power-states, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter any power
state during a conversion.
Per MCXAP100M180F40 RM Rev. 1 section 24.5 ("Module operation in low power
modes") the ADC analog block is not active in Power Down and Deep Power
Down powers off the domain holding the LPADC registers, so neither state
can be entered mid-conversion. Give both nodes that list. Covers A344 and
A343.
Deep Sleep stays listed even though the hardware does allow the converter
to keep running there -- CTRL[DOZEN] is 0 after reset, only the bus clock
is gated, and hardware triggers and the compare wakeup remain live. That
holds only while ADCK keeps running, and the SoC clock configuration makes
no such promise, so the conservative entry is the correct default. A board
or application that arranges a low-power ADCK source can drop &deepsleep
in its own overlay.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Neither lpadc0 nor lpadc1 declared zephyr,disabling-power-states, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter any power
state during a conversion.
Per MCXAP100M96FS6 RM section 23.5 ("Module operation in low power modes")
the ADC analog block is not active in Power Down and Deep Power Down powers
off the domain holding the LPADC registers, so neither state can be entered
mid-conversion. Give both nodes that list.
Deep Sleep stays listed even though the hardware does allow the converter
to keep running there -- CTRL[DOZEN] is 0 after reset, only the bus clock
is gated, and hardware triggers and the compare wakeup remain live. That
holds only while ADCK keeps running, and the SoC clock configuration makes
no such promise, so the conservative entry is the correct default. A board
or application that arranges a low-power ADCK source can drop &deepsleep
in its own overlay.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
lpadc0 declared no zephyr,disabling-power-states, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter any power
state during a conversion.
Per MCXAP64M96FS3 RM Rev. 7 section 23.5 ("Module operation in low power
modes") the ADC analog block is not active in Power Down -- the table
spells that cell "Static", which the RM legend defines as "the module is
not active in state retention status" -- and Deep Power Down powers off the
domain holding the LPADC registers. Neither state can be entered
mid-conversion. Covers A153, A152, A143, A142, A133 and A132.
Deep Sleep stays listed even though the hardware does allow the converter
to keep running there -- CTRL[DOZEN] is 0 after reset, only the bus clock
is gated, and hardware triggers and the compare wakeup remain live. That
holds only while ADCK keeps running, and the SoC clock configuration makes
no such promise, so the conservative entry is the correct default. A board
or application that arranges a low-power ADCK source can drop &deepsleep
in its own overlay.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Neither lpadc0 nor lpadc1 declared zephyr,disabling-power-states, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter any power
state during a conversion.
Per MCX Nx4x RM Rev. 6 Table 336 ("Module operation in low power modes")
the ADC analog block is off in Power Down, and Deep Power Down powers off
the domain holding the LPADC registers, so neither state can be entered
mid-conversion. Give both nodes that list. Covers N947, N946, N547 and
N546.
Deep Sleep stays listed even though the hardware does allow the converter
to keep running there -- CTRL[DOZEN] is 0 after reset, only the bus clock
is gated, and hardware triggers and the compare wakeup remain live. That
holds only while ADCK keeps running, and the SoC clock configuration makes
no such promise, so the conservative entry is the correct default. A board
or application that arranges a low-power ADCK source can drop &deepsleep
in its own overlay.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
lpadc0 declared zephyr,disabling-power-states = <&deepsleep &powerdown>
and lpadc1 declared nothing at all, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter deep
power down during a conversion on lpadc0, and any state at all on lpadc1.
Per MCX N23x RM Rev. 4 Table 220 ("Module operation in low power modes")
the ADC analog block is off in Power Down, and Deep Power Down gates the
whole CORE domain including the LPADC registers, so neither state can be
entered mid-conversion. Add &deeppowerdown to lpadc0 and give lpadc1 the
same list. Covers N236 and N235.
Deep Sleep stays listed even though the hardware does allow the converter
to keep running there -- CTRL[DOZEN] is 0 after reset, only the bus clock
is gated, and hardware triggers and the compare wakeup remain live. That
holds only while ADCK keeps running, and the SoC clock configuration makes
no such promise, so the conservative entry is the correct default. A board
or application that arranges a low-power ADCK source can drop &deepsleep
in its own overlay.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
CTRL[DOZEN] decides whether the converter keeps running once the system
enters a low-power mode. The driver never touched it, so the setting came
from the MCUX SDK default, which is not the register reset value and was
not visible in device tree.
Expose it as stop-in-low-power-mode. Absent -- the default -- matches the
CTRL reset value: DOZEN is 0, so the converter keeps running in the
low-power modes where it stays functional, and hardware trigger detection,
an active conversion and the compare-based wakeup all survive. That does
require the functional clock ADCK to keep running, which the clock
configuration must arrange. Setting the property stops the converter for
the duration of any low-power mode instead.
Note the SDK field is inverted with respect to the register field:
enableInDozeMode clears DOZEN.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This adds support for XSPI controller needed for MSPI
devices. The node is disabled by default and meant to
be enabled by boards.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
Add MC_CGM clock gate entries and frequency query support for the
NXP eMIOS peripheral:
- Add LISTIFY-based gate entries for all eMIOS instances, guarded
by CONFIG_PWM_NXP_EMIOS and FSL_FEATURE_SOC_EMIOS_COUNT, so
clock gating follows the same pattern used by ADC and FlexCAN.
- Add a MCUX_EMIOS0/1/2_CLK case in mc_cgm_get_subsys_rate() that
returns CLOCK_GetCoreClkFreq(). The eMIOS SDK provides per-
instance gate IDs (kCLOCK_Emios0/1/2) but only a single shared
clock query enum (kCLOCK_EmiosClk), so frequency lookup cannot
use LISTIFY and is handled via switch-case instead. This is
documented in the comment block above mc_cgm_rate_map[].
Required by the eMIOS PWM driver to obtain the input clock
frequency at init time.
Also update emios clocks phandle array in mcxe31x common DTSI.
Signed-off-by: William Tang <william.tang@nxp.com>
Complete the three eMIOS instances in nxp_mcxe31x_common.dtsi:
- Add missing interrupts and interrupt-names for emios_1 and
emios_2 (previously omitted).
- Add clocks = <&mc_cgm MCUX_EMIOS_CLK> to all three instances.
- Add counter_bus child nodes for bus A/B/C/D/F on each instance,
mapping the fixed eMIOS channels used as modulus counters.
- Add a pwm sub-node compatible with "nxp,emios-pwm" to each
instance so board DTS overlays can enable PWM without
re-declaring the compatible string.
All new nodes default to status = "disabled"; boards opt in
individually via their DTS files.
Signed-off-by: William Tang <william.tang@nxp.com>
Add two new DT binding YAML files for the NXP Enhanced Modular
I/O Subsystem (eMIOS) peripheral:
- nxp,emios.yaml: top-level eMIOS module binding, covering the
global-prescaler property and counter-bus child node with
individual channel sub-nodes (channel, prescaler, mode).
- nxp,emios-pwm.yaml: eMIOS PWM sub-node binding, declaring
#pwm-cells and per-channel properties (mode, counter-bus-type,
prescaler, phase-shift).
These bindings are required before SoC DTSI and board DTS nodes
that reference compatible = "nxp,emios" and "nxp,emios-pwm" can
be parsed by the DT toolchain.
Signed-off-by: William Tang <william.tang@nxp.com>
Add support for NXP JPEG decoder hardware module. This driver provides
memory-to-memory (M2M) video transformation capability to decode JPEG
compressed images into raw pixel formats.
Key features:
- Supports JPEG input format (VIDEO_PIX_FMT_JPEG)
- Resolution support: 64x64 to 8192x8192 pixels (16-pixel step)
- Automatic format detection from JPEG header parsing
- No color space conversion (output format matches JPEG encoding)
- Interrupt-driven operation with input/output buffer queues
- Configurable output buffer pitch for flexible memory layouts
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
RCC_CCIPR3.ETH1PTPCLKSEL resets to "kernel clock disabled", so the PTP
timer of the MAC has no clock unless the mux is programmed. Describe it
as the "mac-clk-ptp" entry of the ethernet node, sourced from rcc_hclk1,
so a driver that supports timestamping both selects the source and can
read its rate back.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Add pm_s2ram_mark_set/pm_s2ram_mark_check_and_clear, which mark the
POWMAN BOOT0..3 registers with the resume trampoline's boot vector in
RAM, letting the bootrom branch there after SWCORE is powered back up
instead of doing a cold boot. Enable HAS_PM_S2RAM_CUSTOM_MARKING and
build the file when CONFIG_PM_S2RAM is enabled. Also restore the core
CPU state that the SWCORE power-down clears before the (FP-active)
context restore: besides VTOR, re-enable all coprocessors (FPU
CP10/CP11, GPIO CP0, CP4) via runtime_init_per_core_enable_coprocessors,
and rebuild the exception and IRQ priorities via
z_arm_exc_setup()/z_arm_interrupt_init(). Without this the kernel
faults non-deterministically when resuming from deep sleep.
Add a raspberrypi,pico-powman devicetree binding and node so the
POWMAN base address used for the BOOT0..3/SCRATCH0 registers comes
from devicetree, matching this SoC family's convention, rather than
being hardcoded. The node intentionally overlaps the existing vreg
node's address: RP2350 folds VREG_AND_CHIP_RESET into POWMAN, unlike
RP2040, so the two nodes describe the same physical block from
different logical angles. Access those registers via
sys_write32()/sys_read32() rather than raw volatile pointer
dereferences.
Signed-off-by: Gabriel Germano <gabriel.lucasgermano@gmail.com>