Add input driver support for CRSF (Crossfire) receivers, originally
developed by Team BlackSheep (TBS) and used by ExpressLRS (ELRS) and
others.
The driver allows mapping up to 16 CRSF channels to Zephyr input events,
supporting both absolute axes (joysticks) and key events (switches), and
operates over a standard non-inverted UART interface.
Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
The HTU21D is register-compatible with the SHT21 and uses the same
measurement commands. Add it as another DT_DRV_COMPAT entry in the
existing Si7006 driver rather than a standalone driver.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Shell support with STM logging was broken as it was not used by any
test or sample. Applying fixes and improvements.
When shell was used with STM logging then the last log often was not
printed on time as it got stuck in the ETR buffer until more data was
written. Fixed by adding a periodic initial processing of the ETR
buffer content (in k_work context). If pending message is found then
shell thread is notified. We don't want to do the processing in shell
thread unless we are sure that there is at least one message to process
because shell thread erases line and prints prompt during each call to
the log processing function.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Short (0 and 1 arguments) logs where not using colors.
Align flags used for log_output formatting for both paths
used for log processing.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
At some point CONFIG_LOG_FRONTEND_STMESP_EARLY_BUF_SIZE default value
was set to 0 on cpuapp. It meant that log entries which happend before
STM and Coresight initialization were lost. Add buffer which is used
to store those logs.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
When CONFIG_PCIE_CONTROLLER is enabled,
the chosen zephyr,pcie-controller also needs to
be enabled.
Also on platforms where this chosen is set the
pcie controller is needed for the pcie to work,
therefor enable it by default.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
By default the DWMAC ethernet controller is configured
to drop all multicast packets. Currently, HW filtering is
not supported, so we need to configure the controller to
pass all multicast packets.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
When present, configure the pin as input and use GPIO for card presence
instead of SDIF_DetectCardInsert(). Useful if the board uses a pin other
than SD0_CARD_DET_N for card detection.
On the LPC55S28 we needed it to work around an issue where configuring
PIO1_13 as SD0_CARD_DET_N stalled Flexcomm6 I2C transfers. The same pin
works when muxed as GPIO.
Signed-off-by: Fabian Otto <fabian.otto@rohde-schwarz.com>
This will allow to reuse fcntl middle layer in other parts besides NSOS,
such as planned Native Simulator host FS mounting.
Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Add ethernet_api start() and stop() callbacks to support the Zephyr
net iface down/up workflow.
stop() disables MAC RX, stops DMA RX and TX channels,disables MAC TX,
and resets all descriptor ring indices.
start() seeds the RX DMA ring and enables MAC RX and TX.
Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
The Transmitter Configuration register (offset 0x408) TX enable bit is
bit 28 as per the AXI Ethernet Subsystem product guide (PG138), not bit 11.
Fixes: 4342d7108b ("drivers: ethernet: Add Xilinx AXI Enet driver")
Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
- Added autanalog MFD support in PSE84 DTS files
- Refactored autanalog ADC in PSE84 to use a common
MFD for handling the global AC configuration
- Constructed AC to use phandle in the overlay
for a better the user experience.
- Added support for a basic and advanced mode
with custom AC
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
Enable Active-High polarity for SPI chip-select in Xilinx AXI QSPI Driver.
Required e.g. for SD-Card support.
Signed-off-by: Martin Anschütz <martin.anschuetz@vert-tec.io>
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>