The ULPI PHY interface driver (phy_ulpi_itf.c) was only being compiled
for STM32F7X and STM32H7X series, causing build failures on other series
that use external ULPI PHYs, such as STM32F4X boards with ULPI PHYs.
Add missing F2/F4 series to the build condition alongside the existing
F7/H7 series checks. This ensures the ULPI interface driver is compiled
for any F2/F4/F7/H7 board that has a ULPI PHY node in its devicetree.
An alternative approach removing the series checks entirely and just
checking CONFIG_DT_HAS_USB_ULPI_PHY_ENABLED was considered, however
there was a concern that the ULPI interface may have different clock
control bits on other series.
This fixes build failures like "undefined reference to
__device_dts_ord_XXX__stm32_phy" when building for STM32F4 boards with
external ULPI PHYs (e.g., adi_sdp_k1). The build failures were
introduced in commit 8b8321d184.
Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
Add support for the Telit LE910C1TX LTE modem, starting from similar
to ME910G1 and ME310G1 modems.
Signed-off-by: Luca Impagliazzo <Luca.Impagliazzo@telit.com>
On STM32H5, the bit 0 of the Option register of ADC1 controls the channel 0
switch control. It has to be set if either ADC1 or ADC2 wants to use this
channel. Until now, it was enabled only if ADC1 requested channel 0. This
commit fixes this by setting the option bit if channel 0 is used, with no
consideration of the ADC instance.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
In 'drivers/wifi/nxp/Kconfig.nxp', 'NXP_WIFI_SOFTAP_SUPPORT'
currently uses 'select NET_DHCPV4_SERVER', but this can be restrictive.
This tightly couples L2 behavior (AP) and L3 (IP).
It shouldn't matter which node acts as the DHCP server once those
nodes are linked at L2. This commit introduces a new Kconfig option
to make the DHCP server optional.
Signed-off-by: Mori Fumita <mfumita@electromag.com.au>
Mask STM_STMTCSR_TRACEID_Msk is already bit shifted so Kconfig value
should first be shifted and then masked. The way it was done previously
resulted in TraceID being cleared.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
TI MSPM0 VREF module is used by analog peripherals for reference voltage
Add support for TI MSPM0 VREF module.
Signed-off-by: Girinandha Manivelpandiyan <girinandha@linumiz.com>
This reverts commit 1643904ac4.
This change introduced a regression: A build warning when building
with clang, which is visible in the clang workflow in main
causing it to fail. The issue is in the HAL itself and the fix
is not evident.
Let's revert this commit until the issue is fixed in the HAL.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Soft reset is largely equivalent to power cycle. Add dummy read of chip ID
after soft reset in BMI270 initialization function. Dummy read is
performed via bus initialization.
Signed-off-by: Szymon Antkowiak <szymon.antkowiak@nordicsemi.no>
Add support for retrieving GPIO pin direction
when GPIO_GET_DIRECTION kconfig is enabled.
Signed-off-by: Muhammad Waleed Badar <muhammadx.waleedbadar@altera.com>
Add support for toggling a reset line during GPIO
initialization when a reset controller is available
in the device tree.
Signed-off-by: Muhammad Waleed Badar <muhammadx.waleedbadar@altera.com>
Replace direct register access using raw base addresses with
MMIO accessors to align with Zephyr DEVICE_MMIO API.
Use mem_addr_t for the base address and ensures compatibility with
architectures.
Signed-off-by: Muhammad Waleed Badar <muhammadx.waleedbadar@altera.com>
'sitronix,st7789v' panel controller driver is using ST7789V_PIXEL_FORMAT
Kconfig option to set pixel format, which is ignored in the device
initialization which instead uses DT colmod property to set the pixel
format.
Remove the Kconfig option and colmod DT property, and instead use the
standard pixel-format DT property to set the colmod register.
Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
The NWP does not deliver advanced (background) scan results to the host
when instant BG scan is disabled, so Zephyr never gets SCAN_RESULT /
SCAN_DONE for that path.
- Hardcode enable_instant_scan to 1 in advanced_scan_config with a
short comment explaining the NWP requirement.
Signed-off-by: Tejus Subramanya <ters@silabs.com>
Add a SPI-NAND flash driver for NXP FlexSPI controller. The driver
probes device geometry (page size, OOB size, pages per block, total
capacity) from the ONFI parameter page at runtime and supports read,
write, and block erase operations. Bad-block detection and marking
are exposed through the flash_ex_op interface, including the
FLASH_EX_OP_IS_BAD_BLOCK and FLASH_EX_OP_MARK_BAD_BLOCK operations.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Add memc_flexspi_apply_pinctrl() for configuring additional FlexSPI
port pins when init is skipped due to XIP, and memc_flexspi_update_lut()
for runtime LUT updates using a stack buffer to avoid XIP pointer
rejection.
Guard all irq_lock() calls with CONFIG_FLASH_MCUX_FLEXSPI_XIP so
non-XIP systems do not incur unnecessary interrupt latency.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Correct the IFX_HPPASS_SAR_CH_EXISTS macro to correctly match devicetree
nodes using a hex address.
Assisted-by: Github Copilot:claude-opus-4.6
Signed-off-by: John Batch <john.batch@infineon.com>
Move to the new MXC_SPI_GetAndClearFlags API to avoid a race condition
where flags not handled in the ISR would be cleared and missed as a result.
This fix removes the need for the previous partial workaround that simply
masked the issue in most scenario.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
When DMA is enabled, but there are no DMA channels assigned to the SPI
peripheral, properly fall back to setting up the dummy bytes for SPI RTIO
operations.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
Instead of generic success/error status use the appropriate wifi
manangement status codes that can be used to overwrite the status.
Signed-off-by: Martin Koloska <martin.koloska@bytesatwork.ch>
When a request is performed on a single accelerometer axis
(e.g. SENSOR_CHAN_ACCEL_X) the driver must return a single
scalar q31 data.
Signed-off-by: Armando Visconti <armando.visconti@st.com>
In a IMU there might be multiple concurrent asynchronous requests
active at the same time. Increase the size of the RTIO queues.
Signed-off-by: Armando Visconti <armando.visconti@st.com>
Add support for the SPI module on TI’s MSPM0 MCUs.
The driver supports master mode transfers with configurable
frame size (4–16 bits), clock polarity/phase, bit order.
Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
Signed-off-by: Jackson Farley <j-farley@ti.com>
Co-authored-by: Hans Binderup <habi@bang-olufsen.dk>
Merge the separate BL70X and BL70XL HCI drivers (hci_bflb_bl70x.c,
hci_bflb_bl70xl.c) into a single hci_bflb.c. Both SoCs share the
same on-chip HCI interface; platform differences (controller API
names, includes, RF calibration) are resolved via macros in a
single #if/#elif block at the top of the file.
Add BL70XL Kconfig (silicon revision, BLE variant selection) and
update depends lines to use the unified DT_HAS_BFLB_BT_HCI_ENABLED
combined with the SoC series.
Signed-off-by: William Markezana <william.markezana@gmail.com>
move net_eth_mac_load into iface init, that way we don't
need to save the mac address in the data struct.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Expose mode 3 (ODR-triggered) in gyro_set_mode and gyro_get_mode for
lsm6dsv320x, lsm6dsv80x, and ism6hg256x so gyro mode matches accel mode
as required by datasheet section 6.1.5.
Fixes#106389
Signed-off-by: Nancy Sangani <9d.24.nancy.sangani@gmail.com>
Add disabling of write protection also on read access to bbram for h7rsx
controllers.
On this controller family, reading the backup register will return 0 when
write protection is enabled.
Signed-off-by: Thomas Decker <decker@jb-lighting.de>
Fix two issues in the NXP HCI firmware upload code:
1. In fw_upload_wait_length(), the length complement was incorrectly
read from the same buffer offset as the length field. It should be
read from offset 2 to properly validate the length field.
2. In fw_upload_write_hdr_and_payload(), replace the call to
fw_upload_send_ack() with a direct call to fw_upload_write_data()
to send the V1_REQUEST_ACK. This ensures the ACK is sent using the
correct write function.
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
A similar fix was implemented for TWIM driver at 9974bb043f.
The bus recovery code at nrfx driver reconfigures SCL/SDA pins (namelly
sets pull-up resistors) so we need to restore the configuration to the
specified state of pinctrl after the recovery operation.
Signed-off-by: Lluis Miquel Martinez Campos <lluiscampos@proton.me>
After sys_reboot or debugger reset on nRF54LM20, USB controller fails to
initialize because the VREGUSB peripheral retains state across warm
resets. Two issues are addressed:
1. Stale VBUS_DETECTED/VBUS_REMOVED events from the previous boot
remain set in the event registers. When interrupts are enabled
without clearing them first, the ISR fires immediately with
potentially wrong event type (VBUS_REMOVED can overwrite
VBUS_DETECTED in the handler).
2. When USB cable stays connected across a reboot, no new
VBUS_DETECTED edge occurs because the peripheral was never
stopped. The regulator callback never fires, so the wrapper
never posts NRF_USBHS_PHY_READY, and usbhs_enable_core()
blocks indefinitely or times out.
Fix by clearing stale events before enabling interrupts, and by
reading the undocumented STATUS register (base + 0x400, bit 2) after
TASK_START to detect VBUS-already-present and synthesize the
REGULATOR_VOLTAGE_DETECTED callback. This matches the approach used
in the original inline vendor quirks added in commit 66b938f93a
("drivers: udc_dwc2: Add nRF54LM20A vendor quirks")
before the refactoring to a separate regulator driver.
Signed-off-by: Aleksander Strzebonski <aleksander.strzebonski@nordicsemi.no>
Add support for new pixel formats recently added in the driver header.
These formats are supported by the lcdif controller on mimxrt700_evk:
- PIXEL_FORMAT_RGB_888: 24-bit RGB format with 8 bits per component
- PIXEL_FORMAT_BGR_888: 24-bit BGR format with 8 bits per component
- PIXEL_FORMAT_ABGR_8888: 32-bit ABGR with alpha channel
- PIXEL_FORMAT_RGBA_8888: 32-bit RGBA with alpha channel
- PIXEL_FORMAT_BGRA_8888: 32-bit BGRA with alpha channel
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Improve the coordinate and address alignment logic in the CO5300
display driver. The driver now properly aligns the framebuffer
address according to the addr_align property from device tree,
in addition to ensuring coordinates are even values.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
The __HAL_RCC_PKA_IS_CLK_ENABLED macro doesn't exist in HAL2. Replace it
with LL calls that exist in both versions.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Updated async mode to read the first byte manually and the
remaining bytes using dma as buffer overflow was happening
for rx enable with 1 byte.
Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
Adds a dummy define to prevent compilation issue when HSE is not enabled,
and STM32_HSE_FREQ is set to 0.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
To access the OTP area on STM32C5, the instruction cache needs to be
disabled to prevent a bus fault.
Do it for the OTP driver, as well as the temperature and Vref sensor.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
- Add #define of BREG for infineon edge soc family
- Add #include <stdlib.h> to support "abs" call for edge family soc
- Above #include is not required in the rtc driver for psc3m5 support
Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
Align all sensor drivers that are using stmemsc (STdC) HAL i/f
to new APIs of stmemsc v2.13.1
Requires https://github.com/zephyrproject-rtos/hal_st/pull/33
Signed-off-by: Armando Visconti <armando.visconti@st.com>