Make the m55hp_cfg register block optional to support single-core
Alif SoCs (such as from the Balletto family) that only have the
Cortex-M55 HE subsystem. Multi-core SoCs that have both RTSS-HE
and RTSS-HP subsystems require all 7 register blocks.
Update the binding documentation accordingly.
Signed-off-by: Silesh C V <silesh@alifsemi.com>
Fix build error:
eth_nxp_imx_netc.c:304: error: too few arguments to function
'netc_eth_get_ptp_clock'
Add the missing argument tested with:
west build -p -b imx943_evk/mimx94398/m33/ddr
samples/net/ethernet/tsn-switch
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
wait_bus_idle is only used if CONFIG_I2C_TARGET is set.
Guard function in ifdef block to avoid unused function
warning.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Used ptp_clock only when NETC_PTP_TIMESTAMPING_SUPPORT is true.
This is to keep same with driver timestamping operations code in
other places, and also to keep same with dsa core driver which uses
ptp_clock when NET_L2_PTP is true.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
As pointed out in #106786, when disentangling the bitstream from the chip,
for every 8 bits, instead of sampling bit 1, 3, 5, and 7, bit 0, 3, 5, and
7 are erroneously sampled. The behavior of sampling bit 0 is undefined in
the datasheet, and causes data corruption in some cases.
This fix has been tested on actual hardware and no regression is observed.
Fixes#106786
Signed-off-by: Terry Geng <terry@terriex.com>
Avoid copying (cloning) the data to be transmitted and
just increase the reference count of the original buffer.
This is more efficient and reduces memory and CPU usage.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The PCA series GPIO driver was updated to allow disabling automatic
reset. This feature would enable GPIO expander ports to retain states
which could be helpful for situations where certain pins are configured
in the bootloader and their states need to be retained when switching to
application code.
Signed-off-by: Lay Desai <lay.desai@he360.com>
Consolidate the SPI_CTRLR0 INST_L/ADDR_L masking with the cmd/addr
length application into a single conditional. In standard SPI mode with
DMA, the controller still needs INST_L and ADDR_L to drive the cmd/addr
phase via scatter-gather, so only mask these fields in PIO mode.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
Add new implementations for entropy driver and random subsystem
based on ARM64 RNDRRS and RNDR instructions.
Signed-off-by: Christoph Busold <cbusold@qti.qualcomm.com>
Add new inline function entropy_get_default_device which returns
the "zephyr,entropy" device or the architectural entropy device,
if the former is not set, and use that in all places to query the
entropy device.
This allows using architectural drivers which do not have a DT
node.
Signed-off-by: Christoph Busold <cbusold@qti.qualcomm.com>
Issue found in tcpci_tcpm_transmit_data():
1. Control messages (0 data objects) caused cnt=0, skipping the
TX buffer write entirely. Fix by gating on msg->type instead.
Fixes#105736
Signed-off-by: Way Young <wayyoung@gmail.com>
Adds a timeout which is non-0 for this driver, Kconfig based on
commit by Jordan Yates:
95d8deb572
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
update the ieee802154 driver to be compliant
with LL update integrating 802.15.4 error code
unification change
Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
Selecting MCUX_LPTMR_TIMER directly from
/chosen/zephyr,system-timer broadens the default behavior for
any SoC DTSI that now sets the chosen node. KE1xF only
intends to use LPTMR under PM, while MCX-W7xx and i.MX95 M7
still require their SoC-specific selection rules.
Keep the generic Kconfig selection policy implicit and retain
the SoC-specific enablement rules in the MCX-W7xx and i.MX95
M7 defconfigs.
This keeps the chosen-based instance selection while avoiding
unintended system timer changes outside the narrow fix scope.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
The ISR was computing the receive buffer offset using the host's
msg_base and remote_ipi_id, which points to the outbound (TX) buffer.
Fix to use the remote's msg_base and host's ipi_id to correctly read
from the inbound (RX) buffer.
TX (send): off = parent_msg_base + (remote_id × BUF_STRIDE)
RX (recv): off = remote_msg_base + (host_id × BUF_STRIDE)
Signed-off-by: Harini T <harini.t@amd.com>
Make init structures static so that they are not exposed externally.
This also ensures the structures are stored in data section
Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Signed-off-by: Harini T <harini.t@amd.com>
RV3032 PMU register should be set from DTS info, but is always being
set to 0 which prevents backup power source configuration.
Restore building PMU reg from DTS.
Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
Set the OSPI memory mapped timeout period to avoid keeping the chip
select line asserted indefinitely after memory mapped accesses.
This is needed when OSPI1 and OSPI2 operate simultaneously with shared
IO0-IO3 and CLK lines, and both instances use memory mapped mode.
The timeout period follows the recommendation from the STM32U575xx and
STM32U585xx device errata, ES0499 section 2.6.4.
Allow dqs-port to be set to 0. The STM32 HAL uses value 0 to indicate
that the DQS port is not used.
Update the debug log printed when CONFIG_STM32_MEMMAP is not enabled,
because stm32_ospi_set_memorymap() is not called in that case.
Signed-off-by: Kirill Shypachov <kshypachov@outlook.com>
The EFM32HG (Series 0) WDOG has no IRQ support, no window mode
and no reset-disable bit.
Guard the logic with HAL feature macros and use `IF_ENABLED` with
`DT_INST_IRQ_HAS_IDX` for conditional IRQ setup.
Add the `wdog0` node to the EFM32HG device tree.
Signed-off-by: Patryk Koscik <pkoscik@antmicro.com>
Adds support to the infineon i2s driver for arbitrary memory block
sizes. The driver was previously limited to block sizes that matched the
hardware FIFOs.
Signed-off-by: Brett Peterson <brett.peterson@infineon.com>
Add a generic I2C_TRANSFER_TIMEOUT_MS option, not tied to any specific
driver, as well as a I2C_TRANSFER_TIMEOUT helper to handle conversions
and infinite timeout and a helper for driver that only supports finite
timeouts.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
As mentioned in the i2c_burst_write documentation, this API may not be
supported by all I2C devices. The recommendation from this documentation
is to use i2c_write with a buffer containing the combined address and
data.
The ssd1306 driver was working well when using I2C but not when using
I2C over I3C. In this case, the control command was sent in a separate
transaction, which the SSD1306 does not support. To fix this issue, we
should apply the recommended approach and use i2c_write instead of
i2c_burst_write. The solution implemented uses chunks to avoid stack
overflow when using large buffers (it can be up to 1 kB).
Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
the plca related api functions are only needed
for T1S ethernet phys, therefore hide them
behind a Kconfig, that is selected from the phy,
so we don't include these if they are not needed.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This fix adds a macro for writing register updates in big endian
at compile-time to fix an issue with multi-device configurations.
Previously, the I2C write function would flip the byte order of
arrays unconditionally, which is problematic if arrays are shared
across instances of a driver. Adds a new "raw write" for I2C
transactions where the uint32_t array to write is already in BE32
format.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Addresses checkpatch and related warnings, including:
- Update select files within Cirrus haptics subdirectory to not have
execute permissions.
- Fixes identified warnings by adding `const` where appropriate.
- Add `__maybe_unused` qualifiers where appropriate.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Because I2C- and SPI-related source files only need to be compiled
if corresponding Kconfig options are enabled, update CMakeLists.txt
accordingly.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Add support for software resets in case no reset GPIO can be provided.
Add a mailbox write to prevent hibernation during bringup because
we can no longer rely on a hardware reset to make sure the device is
not hibernating.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Rather than return the current logging state on success and an
error code on failure (without real benefit), simplify the
function to return success or failure, which also simplifies
the implementation.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
This interrupt indicates that the current was limited, not that
an overcurrent condition was detected. Since it is not a fatal
error, remove the addition to error_bitmask and correct the
language.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
The initial driver implementation used ring buffers, kept a private
variable to count "effects in flight", and register GPIO callbacks
to log playback events, but these ultimately bloat the driver and
introduce new issues where a dropped start or complete playback can
force the driver into a bad state. Additionally, the mailbox events
already provide sufficient log information if needed. As a result,
let's simplify the driver's logging mechanisms.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
The register and address width macros are used across files, so
remove duplicates and expose in the private header file.
Ensure macros match the datasheets where appropriate, and
organize the macros more clearly. Add unsigned specifiers for
clarity.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Split the generic cirrus,cs40l5x compatible into device-specific
variants. Update the driver and Kconfig accordingly. Update the
CRD40L50 demonstration board's compatible to cirrus,cs40l50. Move
the device ID from the data struct to the config struct. Move uses
of DT_ANY_INST_HAS_PROP_STATUS_OKAY() and similar macros from the
device driver to Kconfig to support new DT_DRV_COMPAT usage in the
driver.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Many structures and functions in the public CS40L5x do not need to be
exposed to userspace. Split the header accordingly into private
and public headers, and remove comments accordingly.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>