Introduce a new Kconfig option `I2C_BUS_RECOVERY` to provide
a common switch for enabling I2C bus recovery support.
This ensures consistent behavior across drivers and simplifies
configuration for platforms requiring i2c bus recovery.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Remove unnecessary kconfig dependency and change help message to not
try to list exhaustively the supported platforms.
We can instead just depend on the DT node being present and enabled,
otherwise we will need to keep adding platforms here over time, both
in the depends line and in the help message.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Add counter RTC driver support for Realtek Bee series SoCs,
including RTL87x2G and RTL8752H.
This driver supports:
- Basic counter operations
- Alarm configuration and callbacks
Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
When modem driver starts up, it should only open DLC channels
that it is reading.
Otherwise the remote end might send URC messages into these channels,
causing Chat module to read outdated buffered messages when it
switches reading from DLC1 to DLC2.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
When int16_t *_min and *_max are > INT16_MAX apart, subsequent
int16_t *_range silently overflows, leading to unexpected axis
samples. Promote *_range to int32_t to fix.
Signed-off-by: David Chalco <david@chalco.io>
imx_usdhc.c does not use any symbols from fsl_cache.h, and
fsl_usdhc.h does not require it transitively.
Remove the unused include to avoid build failures on targets where
the cache HAL header is not available, such as MCXN947 CPU1 virtual
board builds.
Signed-off-by: Hake Huang <hake.huang@nxp.com>
Use one file per vendor quirk. No modification to any content,
only the same code being moved to separate files.
Signed-off-by: Josuah Demangeon <josuah.demangeon@nordicsemi.no>
When PPP is terminated, add small delay before attempting
to run AT commands to restart the PPP.
Assume same delay is OK as switching from CMUX to plain AT
mode.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
Convert three NXP drivers from raw DT_REG_ADDR() register access
to the Zephyr device MMIO API (DEVICE_MMIO_ROM / DEVICE_MMIO_RAM /
DEVICE_MMIO_MAP):
With the MMIO API, the drivers create their own mapping at init time via
DEVICE_MMIO_MAP() thus the corresponding mmu_regions entries are removed
from the five NXP SoC files that carried them.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
nRF54x devices supports 4-9 bit frame size. Extend UART driver to
support data sizes supported by the Zephyr UART API (5-9 bits).
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
When a regulator is configured with regulator-boot-on, commit e572a6f
changed regulator_fixed and regulator_gpio to configure the GPIO pin as
GPIO_OUTPUT_ACTIVE during init, then pass is_enabled=true to
regulator_common_init(). This causes startup_delay_us to be silently
skipped since the delay only exists in the else-if branch which is
never reached when is_enabled=true.
Add the startup delay directly in regulator_fixed_init() and
regulator_gpio_init() before calling regulator_common_init(), so the
delay is applied only in the drivers where the GPIO state is known to
have just been actively set, not in the common path where the regulator
may already have been enabled by hardware or a bootloader.
Assisted-by: Claude:claude-sonnet-4-6
Fixes#102508
Signed-off-by: Mohit Talwar <talwarmohit2005@gmail.com>
Some of the sensore channels (e.g. SENSOR_CHAN_GRAVITY_VECTOR and/or
SENSOR_CHAN_GBIAS_XYZ) are returning three axis values. The current
code was passing a single value and was actually crashing.
Signed-off-by: Armando Visconti <armando.visconti@st.com>
Add SENSOR_ATTR_CHIP_ID entry (last one) in sensor_attribute_name
declaration/initialization. This is fixing a sensor_shell crash.
Signed-off-by: Armando Visconti <armando.visconti@st.com>
Replace direct flag checks in i2c_dump_msgs_rw() with helper
functions to improve readability and consistency.
Use i2c_is_read_op() instead of checking I2C_MSG_READ directly.
Introduce i2c_is_reset_op() to handle restart conditions and
use i2c_is_stop_op() for stop detection. Also change the loop
index type from unsigned int to uint8_t.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Add CONFIG_INPUT_FT5336_PM_MODE_MONITOR to select monitor mode
(0x01) for PM suspend. Monitor mode reduces the scan rate and
auto-wakes on touch detection, allowing touch events to resume
without a hardware reset. When disabled, hibernate mode is used
which requires reset-gpios to be defined.
Reconfigure interrupt GPIO on PM resume for SoCs that lose
peripheral state in deep sleep.
Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
Guard TARGET_BOOT_STS and TARGET_BOOT_DONE vwire signaling with
CONFIG_ESPI_AUTOMATIC_BOOT_DONE_ACKNOWLEDGE.
This allows boot status acknowledgment timing to be configurable
based on different eSPI boot flows.
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Fixed CTRLA register write bugs in spi g1 driver
Updated the transfer function for handling dma mode
Fixes#106580
Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
Add support for the base DT property "supply-gpios" and related
"t-reset-recovery", as in the flash_mspi_nor driver.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
Realtek Bee series GPIO does not support configuring a pin as both
input and output simultaneously. Return -ENOTSUP to skip related
test cases.
Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Add support for retrieving the direction of selected GPIO
pins. The it51xxx SoC does not support a combined
input-output mode, so return -ENOTSUP when such that mode
is requested.
Tested with:
- tests/drivers/gpio/gpio_hogs
- tests/drivers/gpio/gpio_get_direction
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Removed hard-coded QSPI transfer mode definitions and replaced them
with MSPI-specific constants which is part of the new MDK.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
nRF7120's QSPI peripheral has been renamed to MSPI.
To align with this change, the driver has been updated to
use MSPI semantics instead of QSPI.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
QSPI peripheral is now called MSPI in the MDK. To align
with this change, peripheral has been renamed in the
devicetree to MSPI.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
The emulator would not work when the write block size of the flash is
greater than 255 and have an erase value other than 0xff. This commit
fixes those problems by retrieving the flash erase value from the
flash device and by changing the flash_cbs variable type to support
larger write block sizes. Also fixed some typos
Signed-off-by: Jip Anema <janema@highvolteng.com>
The driver provides basic RTC functionality including time read and
write, alarm configuration(alarm1 and alarm2), and daylight saving
time (DST) support.
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Implement ibi_crr_response for the DW driver by setting/clearing the
MR_REJECT bit (bit 14) in the target's DAT entry. The DW IP
automatically NACKs MR requests from targets with this bit set and
issues a directed DISEC CCC.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
When an unknown PID is discovered during ENTDAA, allocate a device
descriptor from the mem slab via i3c_device_desc_alloc(), populate it
with the PID, dynamic address, BCR, and DCR, assign controller
private data, and attach it to the bus device list. This matches the
Cadence I3C driver behavior and ensures dynamically discovered
devices are tracked.
Also set controller_priv for known PIDs in the same path, which was
previously missing.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>