Add GPIO_PULL_UP and GPIO_PULL_DOWN handling in pin_configure
and enable LP_IO wakeup source in pin_interrupt_configure via
rtcio_ll_wakeup_enable(). Both rtcio_ll_intr_enable() and
rtcio_ll_wakeup_enable() are required for LP_IO wakeup to
function, as clk_en must be set for the interrupt status
register to update.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
codec_configure_filters () never reports errors and always returns
0.
The error check at the call site is therefore dead code.
Make the function void and drop the unused error handling.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
codec_configure_filters () never reports errors and always returns
0.
The error check at the call site is therefore dead code.
Make the function void and drop the unused error handling.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Use the DEVICE_API macro to make sure the device API is in the respective
API linker section.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Some of the peripherals might be used in the bootloader
and not cleaned up properly for the next image in the boot chain.
Ensure that affected registers are always cleaned up before use.
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
As the TDTxR registers reset value is undefined they must be fully
initialized when used.
Without full initialization, the TGT bit might be inadvertently set,
causing the 16-bit timestamp to be sent as the last two data bytes
when CONFIG_CAN_RX_TIMESTAMP is enabled.
Fixes: #98768
Signed-off-by: Giuseppe Iellamo <giellamo@gmail.com>
For wifi embedded supplicant, use params->sae_password and
params->sae_password_length for SAE/SAE-H2E/SAE-AUTO in nxp_wifi_connect
and nxp_wifi_start_ap, as psk is NUll and psk_length is 0.
This resolves WPA3-SAE auth failures.
Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
Rename internal variables, helpers and logs from "master" to
"controller" in STM32 I2C drivers.
No functional changes.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Rename internal variables, helpers and logs from "slave" to "target"
in STM32 I2C drivers.
No functional changes.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Call HAL_ETH_SetMDIOClockRange to set back the MDIO clock range
as it is set to 0 during the software reset.
Signed-off-by: Julien Racki <julien.racki-ext@st.com>
Increases performance, reduces clock cross-domain errors,
Shaves up to 20mA off the power consumption somehow.
Signed-off-by: Camille BAUD <mail@massdriver.space>
- Add `max-bitrate-supported` property to indicate the maximum
bitrate that the channel can support.
- Update `max-bitrate-supported` property value for all Renesas RA
devices
- Update driver i2c_renesas_ra_iic.c to check `clock-frequency`
property and bitrate runtime configure is correct
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
The GINT peripheral provides grouped GPIO interrupt
functionality, allowing multiple pins to be combined
into a single interrupt source.
Support the peripheral in interrupt controller
Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
Fix warnings reported by clang about the use of a C23 extension about
usage of a label at the end of a compound statement.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Moving the declaration of half_pos out of the switch case to avoid
C23 extensions that cause build failures in some environments.
BUG=None
TEST=None
Signed-off-by: Rob Barnes <robbarnes@google.com>
The function device_pm_control_nop has been deprecated and replacing it
with NULL is required for compilation.
Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Correct GET_EDMA_CHANNEL_SHARED_IRQ_MASK_WIDTH to handle cases
where DMA channel count is ≤ 32. The previous implementation used
integer division by 32, returning 0 for counts < 32, which caused
issues in dma_mcux_edma_multi_channels_irq_handler().
New logic:
- Return 1 for ≤ 32 channels (one uint32_t mask)
- Return dma_channels / 32 for > 32 channels
Ensures proper mask width calculation for all supported channel
Signed-off-by: Ha Duong Quang <ha.duongquang@nxp.com>
The mcxw driver was parsing Thread Vendor-Specific ACK Probing IE
with hardcoded token positions, assuming LQI at offset 6, Link
Margin at offset 7, and RSSI at offset 8. This failed when tokens
were in a different order or when fewer than 3 metrics were present.
Parse the IE length field and iterate through all tokens, matching
them by value (0x01=RSSI, 0x02=Link Margin, 0x03=LQI) instead of
position. This supports 1-2 metrics in any order as per Thread 1.2.
Signed-off-by: Baptiste Coffin <baptiste.coffin_1@nxp.com>
Remove self-assignment in the initializer, Remove setting up all
other bits insted of clearing.
Signed-off-by: Ramakrishna Chintha <ramakrishna.chintha@intel.com>
Rework flash simulator to use per-instance configuration,
replacing single global state and enabling support for
multiple independent simulator instances.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Whenever a buffer descriptor or one of its properties is
referenced, either in macros, struct declarations or variable
declarations, use the spelling 'rx_bd'/'RX_BD'/'tx_bd'/'TX_BD'
instead of 'rxbd'/'RXBD'/'txbd'/'TXBD'.
Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
Add fixes for ZynqMP-based targets:
- Consider the retrofitted 64-bit RX/TX buffer descriptor ring
base address registers which didn't exist on the Zynq-7000 yet.
- Properly tie off the unused set of RX/TX BD ring base address
registers as described in the ZynqMP TRM (UG1085 v2.4, chap. 34:
'GEM Ethernet', 'Programming Model', 'Initialize the controller',
p. 1064): indicate that there's no data to be transmitted via the
unused TX BD ring, and that no data can be placed via the unused
RX BD ring.
- Change the DMA layout: instead of having both the BD rings and
the packet buffers in non-cached memory or the Zynq's OCM, place
the BD rings in uncached memory but place the actual RX/TX packet
buffers in cached memory instead.
- Add the required cache maintenance operations for this layout.
- Select the required facilities for nocache memory and cache
maintenance support in the driver's Kconfig file.
Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
In tickless mode, advance last_count in whole tick increments rather
than setting it to the raw timer value. This prevents sub-tick ISR
latency from accumulating in last_count, which would otherwise manifest
as long-term timer drift.
The fix inverts the conditional logic so that:
- Tickless mode: last_count += elapsed_ticks * CYC_PER_TICK
- Tickful mode: last_count = now (unchanged behavior)
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Add optional support for controlling a hardware enable pin via devicetree.
When an enable GPIO is provided, the driver configures it as an output and
toggles it in stepper enable/disable so boards can energize and de-energize
the driver stage reliably.
If no enable GPIO is present, behavior is unchanged.
Signed-off-by: Andre Stefanov <mail@andrestefanov.de>
Unchecked indexing into intc_gpio_data.cb could lead to overflow in
the following functions:
- stm32_gpio_intc_set_irq_callback
- stm32_gpio_intc_remove_irq_callback
Fixeszephyrproject-rtos/zephyr#103573
Signed-off-by: Moritz Gericke <xmoexdev@gmail.com>
Add property for overriding the maximum number of hardware message buffers
used for RX filters on a per-instance basis.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
The maximum number of RX filters is limited by the number of message
buffers, which cannot exceed 128. Add a range to the Kconfig option
imposing this.
Remove artificial build-time check on CONFIG_CAN_MCUX_FLEXCAN_MAX_FILTERS
being larger than zero, as transmit-only configuration is otherwise fully
supported.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit moves NXP Bluetooth HCI calibration data handling from the
HAL to Zephyr hci_nxp driver.
Added Kconfig choice to select antenna diversity.
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>