channel-mask was a single uint32_t, limiting addressable channels to
0..31; widen it to a devicetree array of 32-bit words so parts with
more channels (e.g. MCXA577's 70-channel TSI) can use them, and size
channels[] per-instance to the enabled count instead of a fixed max.
Also attach FRO_HF_DIV as the TSI0 clock source before gating it on
MCXA, since the clock mux resets to "NONE" there and calibration
hangs forever without it.
Confirmed on frdm_mcxa577: boot, calibration, and touch events work
correctly across channels beyond 31.
Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
Implemented clock_control_set_rate and clock_control_get_rate
APIs for HFCLK and HFCLK192M.
Signed-off-by: Michal Frankiewicz <michal.frankiewicz@nordicsemi.no>
Describe the VersalNet TTC0 block and its three timer instances so
the xlnx,ttc-counter driver can bind on the APU. Leave the nodes
disabled in the SoC dtsi; boards enable the instance they use.
Signed-off-by: Satya Sri <satyasri.katru@amd.com>
Describe the Versal 2 TTC0 block and its three timer instances so
the xlnx,ttc-counter driver can bind on the APU. Leave the nodes
disabled in the SoC dtsi; boards enable the instance they use.
Signed-off-by: Satya Sri <satyasri.katru@amd.com>
Describe the Versal TTC0 block and its three timer instances so
the xlnx,ttc-counter driver can bind on the APU. Leave the nodes
disabled in the SoC dtsi; boards enable the instance they use.
Tested on versal_apu with the xlnx,ttc-counter driver.
Signed-off-by: Satya Sri <satyasri.katru@amd.com>
Add support for SCMI transport using the OP-TEE SCMI Pseudo Trusted
Application (PTA). This allows Zephyr to exchange SCMI protocol messages
with OP-TEE executing in Secure World via synchronous TEE invocations.
Because the OP-TEE subsystem initializes during POST_KERNEL, adjust the
SCMI transport, clock control, and reset driver initialization levels
and priorities to POST_KERNEL when ARM_SCMI_OPTEE_TRANSPORT is enabled.
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
We added a MSPI driver using the Microchip XEC GPSPI version 2
controller. GPSPIv2 is a highly reduced QMSPI supporting only single
and dual SPI operations. The following hardware feature were removed:
descriptors, local-DMA, and the FIFO level interrupt. GPSPIv2 supports
only one hardware controlled chip select. The chip select timing register
was moved to a different offset. GPSPIv2 does include the 8-byte TX and RX
FIFOs. It can use the central-DMA controller to move data between the
FIFOs and memory. This MSPI drivers supports both MSPI_PIO and MSPI_DMA
operations.
This driver supports only MEC174x/5x/165xB chips
Signed-off-by: Scott Worley <scott.worley@microchip.com>
We changed the Microchip XEC GPSPIv2 HW node girqs property to use
the encoding macro for GIRQ number and bit position. We added the
pcr-scr property with an encoding macro for PCR SCR register offset
and bit position.
Signed-off-by: Scott Worley <scott.worley@microchip.com>
Add native_sim fuel gauge driver backed by a Linux power_supply sysfs
device of the host (e.g. /sys/class/power_supply/BAT0). Implements
get_property() and get_buffer_property(), mapping FUEL_GAUGE_*
properties onto their sysfs attributes.
The path property is the directory of the power supply, so a directory
holding the attribute files of a fake power supply serves on a host
without a battery; the --fuel-gauge-path command line option overrides
it. Initialization fails unless the directory holds a power supply of
the Battery type.
A battery is not required to provide every attribute, so a property
whose attribute is missing is reported as unsupported; the host errno
crosses the native simulator boundary through nsi_errno. Attribute
values are parsed strictly and checked against the range of the
property, and the SBS name fields take names as long as the field.
The fuel_gauge0 node of native_sim is disabled by default, as the
name of the battery depends on the host.
Tested with samples/drivers/fuel_gauge on native_sim/native/64 with
the node enabled for the BAT0 battery of the host.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Add the device_id node for the hwinfo driver. On this family the 128-bit
unique ID is in the CAL-OTP area at 0x0a0071e0.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Arkadiusz Grzelka <devitwise@gmail.com>
Add the reset controller node. Without it, the reset cause part of the
hwinfo driver is not built for this family.
The block is 8 bytes: RCAUSE at 0x00 and DBGCTRL at 0x04.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Arkadiusz Grzelka <devitwise@gmail.com>
Add pinctrl state nodes for MSPM33C321A. Pin node properties are
derived from the device IOMUX register definitions.
Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
Add pinctrl state nodes for the MSPM0GX51X device family. Pin node
properties are derived from the device's IOMUX register definitions.
Signed-off-by: Aman Lachhiramka <a-lachhiramka@ti.com>
Add support for configuring the BQ24190 watchdog timer through a
Devicetree property.
Use the configured watchdog timeout to update the corresponding
charge termination and timer control register during device
initialization.
Signed-off-by: Priyadharsan Saravanan <priyadharsan@sacrasys.com>
Add optional I2C bus recovery for the Bee controllers. When
CONFIG_I2C_BEE_BUS_RECOVERY is enabled and scl-gpios/sda-gpios are
provided on the I2C node, recover_bus() temporarily muxes the pins to
GPIO and drives the standard bit-bang recovery sequence via the shared
i2c_bitbang helper, then restores the pinctrl default state and
reprograms the controller with the cached configuration.
On RTL87X2G the recovery lines are configured once as hardware
open-drain outputs, so each bit-bang edge is a single data-register
write that meets the SCL timing. RTL8752H has no hardware open-drain,
so its callbacks emulate it by switching pin direction (input with
pull-up for high, output-low for low).
Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Kept unified power-delay-ms property in sdhc.yaml.
Dopped power-delay-ms in other binding files.
- If host requires it, add it in dts node.
- If not, there is default value used.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Add a Devicetree binding for the Xilinx AXI/XPS Interrupt Controller
(PG099).
Document per-instance hardware capabilities from Vivado-generated DTS,
including xlnx,num-intr-inputs and optional xlnx,has-* integer flags
that describe which optional register blocks are synthesized into the
IP. Fast interrupt mode is documented but not supported by Zephyr.
Clarify that the interrupt priority cell is currently not used by the
Zephyr driver.
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Satya Sri <satyasri.katru@amd.com>
Add the "examples" section to microchip,pit-g1-timer.yaml to show
how to use PIT G1 as the system timer.
Signed-off-by: Tony Han <tony.han@microchip.com>
Add initial driver support for the AMS AS7341 11-channel spectral sensor.
The driver communicates over I2C and implements the Zephyr sensor API.
- Add driver source files (ams_as7341.c, ams_as7341.h)
- Add devicetree binding (ams,as7341.yaml)
- Add Kconfig and CMakeLists.txt integration
Signed-off-by: Parin Baudhanwala <parin.baudhanwala@dnkmail.in>
Add the PASS0 SAR ADC controller node (adc0) so the SAR-v2 ADC
driver can be enabled on CYT4DN.
Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
Both interrupt router nodes describe windows that are fifteen times
larger than the modules they cover, and the second window starts inside
the first one.
Use the sizes from the SoC address maps:
TC3xx: IR registers 0xf0037000-0xf0037fff, SRC 0xf0038000-0xf0039fff
TC4Dx: IR registers 0xf4430000-0xf4431fff, SRC 0xf4432000-0xf4435fff
Name the windows so the two blocks they describe are self-describing.
Only the base addresses are consumed today (DT_REG_ADDR_BY_IDX in
intc_infineon_aurix.h), so no runtime behaviour changes.
Signed-off-by: Hongquan Li <hongquan.li@processmission.com>
The TC4x CPU node declares #size-cells = <0> but provides an address and
size pair in reg. This creates two CPU address entries in the generated
Devicetree.
Use CPU ID 0 as the sole reg entry, matching the TC3x QEMU description.
Fixes#119646
Signed-off-by: Hongquan Li <hongquan.li@processmission.com>
Assisted-by: Codex:gpt-6
System timer speed is now calculated from the timebase-frequency value.
Increase timebase-frequency for all SoCs.
Signed-off-by: Camille BAUD <mail@massdriver.space>
Add the NPCM pin controller driver. It selects a pin's function by
writing the SCFG bits listed in devicetree, and sets the pull and
voltage level when requested.
Also add the NPCM4 pin function and pin group tables.
Signed-off-by: Alan Yang <tyang1@nuvoton.com>
Add bindings for the NPCM pin controller and the SCFG block it
programs. Each pin function lists the SCFG bits that select it, and
pin groups pick functions by phandle.
SCFG offsets differ per series, so they live in npcm4-pinctrl.h.
Signed-off-by: Alan Yang <tyang1@nuvoton.com>
Describe a single RV64IMC hart, the MRAM controller with its data
window as a child node, PLIC, machine timer and original UART
integration. Reuse the existing OpenHW vendor namespace for the
CORE-ET Erbium platform.
Take the timer frequency from /cpus/timebase-frequency through the
kernel default and use the specified PLIC priority limit. Let the
architecture select the ISA and word size from devicetree, retaining the
default hart ID mask for hart 0. Use configdefault for platform defaults
to preserve the dependencies of the existing Kconfig symbols.
Erbium implements only part of the standard F extension. Division,
square root and conversions between floats and 64-bit integers raise
M-code emulation exception 30. Omit F from the supported ISA so Zephyr
builds for rv64imc_zicsr_zifencei with the lp64 software-float ABI and
selects compatible compiler and math libraries. The port has no handler
for exception 30.
Erbium does not implement WFI. Wait for an enabled pending interrupt
with global interrupts masked before restoring interrupt delivery.
This preserves the idle wakeup contract and passes the kernel context
idle tests.
Validate software division, square root, both directions of signed and
unsigned 64-bit conversions, and subnormal arithmetic with minimal libc
and Picolibc on the unchanged public functional emulator.
Signed-off-by: Afonso Oliveira <afonso@nekko.ai>
Assisted-by: Codex:GPT-6
Include the UART needed for console output on the Erbium board. Its
original Shakti integration uses 32-bit MMIO accesses at eight-byte
register intervals, while the generic Shakti driver uses four-byte
intervals and mixed access widths.
Use openhwgroup,shakti-uart-v1 to identify the original register layout,
with interrupt enable at 0x30 and receive threshold at 0x40. The later
Erbium UART has a different interrupt register layout. Link the public
register documentation for the supported revision in the binding [1].
Follow the documented transmit flow: wait for space in the FIFO and
write the character. The functional emulator [2] also enqueues data on
the TX write, without additional configuration-register writes.
Provide polling input/output, receive error reporting and fixed 8N1
initialization. Calculate the baud divisor at build time from devicetree
clock-frequency and current-speed. Reject zero baud rates and divisors
outside 1..65535 with build assertions. Keep the divisor in the constant
device configuration and program it once at initialization. Use the
device MMIO API and add the serial Kconfig and CMake integration.
Validate polling transmit and receive with actual input on the public
et-platform functional emulator at 836a4ab600e93. Interrupt-driven,
asynchronous and runtime line-configuration APIs remain unsupported.
[1] 325b32b7ef/doc/uart.md
[2] 836a4ab600/sw-sysemu/devices/shakti_uart.h
Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>
Assisted-by: Codex:GPT-6
Order of Properties in Device Node
The following order of properties in device nodes is preferred:
“compatible”
“reg”
“ranges”
Standard/common properties (defined by common bindings,
e.g. without vendor-prefixes)
Vendor-specific properties
“status” (if applicable)
Child nodes, where each node is preceded with a blank line
Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
Fix typos in clock node references where 'mclkperiphperiph' was used
instead of 'mclkperiph' for TCC and TC timer nodes in samd5xe5x_j.dtsi.
This caused devicetree build errors for ATSAME53/SAMD5x/E5x targets.
Signed-off-by: Jay Roy <jayroy0304@gmail.com>
The RK3588 TRM (Part 1, 1.3 System Interrupt Connection) states that
every SPI is high level sensitive, and its Table 1-3 lists uart2 and
uart3 (interrupts 365 and 366, SPI 333 and 334) as high level, which is
how rk3588s.dtsi already describes them. rk3588.dtsi declares uart2
and uart3 edge-triggered instead.
The UART holds its interrupt line asserted while any interrupt source
is pending. When a new source rises before the handler has cleared the
one it serves, the line never falls, the GIC sees no new edge and the
UART stops interrupting for good: the console stops in the middle of a
line while the rest of the system keeps running.
On a ROC-RK3588-PC, interleaving shell input with shell output stopped
the console after 2, 19 and 33 bursts in three runs. With the
interrupt level-triggered, 500 bursts (5 MB of output) ran without a
stall.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Piter Zhang <zhangtdvip@163.com>
the riscv mashine timer inside this SoC is normally driven by a
external 32768 Hz watch crystal oscillator. All in-tree
boards have that external oscillator and it is also
the value that qemu assumes for the sifive_e board.
Before 07e4ba4240
32768 already was the default value, but got changed there
without reason.
In the manual of the SoC, in the chapter describing the RTC,
it is recommended to use an external 32768 Hz watch crystal oscillator
for the low-frequency clock source. And as the machine timer is driven
by the same clock, it makes sense to set SYS_CLOCK_HW_CYCLES_PER_SEC
accordingly. When the external oscillator not present a internal
oscillator is used instead, which target frequency is ~ 32kHz.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
These parts had Kconfig symbols but no devicetree entry, so
they couldn't be configured. Adding the per-mpn wrapper for
each and a missing psoc6_64 dts that ten of them need.
Build tested each with Hello World
Assisted-by: Claude:claude-opus-5
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Correct the package name - it had a stray 'epad' on the end
due to a defect in the tool used to generate these. There is
no alternative "EPAD" package variant of 64-TQFP
This package is used by 8 mpn wrappers, renaming so they can
be built.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Fixing the syntax around the delete-node for cpu0. None of these
built with the existing syntax. Verified fix by building one
of each die/series
Assisted-by: Claude:claude-opus-5
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
The EFR32 link layer reports the timeout of high duty cycle directed
advertising with an LE Enhanced Connection Complete event alone, also
when the advertising was enabled with the extended advertising
commands. Applications never got the connected callback with
BT_HCI_ERR_ADV_TIMEOUT and could not start advertising again. Set
BT_HCI_QUIRK_NO_ADV_TERM_ON_DIR_TIMEOUT so that the Host ends the
advertising set at that event.
Seen and tested on xg27_dk2602a and sixg301_rb4407a/simg301m104lil with
link layer 2026.6.1 (HCI revision 0x0660): three timeouts in a row
through bt_le_ext_adv_start() and three through bt_le_adv_start() now
each give the callback and a successful restart.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
The timeout of high duty cycle connectable directed advertising that was
enabled with the extended advertising commands may be reported with a
connection complete event instead of, or in addition to, the LE
Advertising Set Terminated event (Core Specification 6.3, Vol 4, Part E,
7.8.56). The Host acts on the terminated event only. With a Controller
that sends the connection complete alone the advertising set stays
enabled, the application gets no connected callback with
BT_HCI_ERR_ADV_TIMEOUT, and every further start returns -EALREADY.
Acting on the connection complete in general is not safe. With a
Controller that sends both events, the terminated event would end
whatever the application started in between, and the connection complete
does not name the advertising set. Add
BT_HCI_QUIRK_NO_ADV_TERM_ON_DIR_TIMEOUT for Controllers known to send
the connection complete alone. With it the Host ends the enabled high
duty cycle directed advertising set at that event, through the code that
handles the terminated event, and refuses to start a second such set
while one is enabled. A terminated event for such a set shows that the
quirk is wrong for the Controller, and the Host warns about it. The
quirk is read from devicetree at build time, so builds without it are
unchanged.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
dummy-comp sets the HAL no_compensate flag: it drops the dummy cycles
that compensate the GPIO matrix input delay on half-duplex reads and
lets full-duplex mode run at frequencies that would need them. Describe
that instead of claiming that the property enables compensation cycles.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
GPT2 to GPT6 all used IMX_CCM_GPT_CLK, so clock_control_get_rate()
returned the rate of the GPT1 clock root for each of them, and the
counter driver computed its prescaler from the wrong root. Use
IMX_CCM_GPT2_CLK to IMX_CCM_GPT6_CLK so each GPT reads its own root.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
Commit 72ff479b11 moved the secure alias ranges from the flash
controller to the flash node. That only translates the partitions, so
on secure MCXN targets the flash node resolves to 0x0 while the
partitions stay at 0x10000000: partition offsets are 0x10000000 too
large (MCUboot fails with "not same sector layout"), and the image link
address and the UID address move.
Make fmu a direct child of /soc in each composer, with the secure alias
or identity ranges, as done for MCXA5x. The flash node ranges now match
its reg.
Tested on frdm_mcxn947/mcxn947/cpu0; not tested on other MCXN boards.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Dimitrios Kafetzis <dimitrioskafetzis@gmail.com>
When adding channels to ADC nodes channels, expect address cells to be 1
and size cells to be 0.
This change ensure that users no longer need to manually assign these to
the overlay file when adding channels to ADC nodes.
example
```devicetree
&adc {
#size-cells = <0>;
#address-cells = <1>;
channel@2 {
reg = <0x2>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_VDD_1";
zephyr,acquisition-time = <0>;
};
channel@7 {
reg = <0x7>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_VDD_1";
zephyr,acquisition-time = <0>;
};
};
```
Signed-off-by: Kyle Micallef Bonnici <kyle.bonnici@nordicsemi.no>
VBAT raw values are divided down to lie within input range of PADC.
This must therefore be reapplied when reading the raw value. For the
case of nRF7120 this value is 5.5.
Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>