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>
No need to have such a low MTU 576 bytes as it prevents sending
larger packets for loopback interface. If one have low MTU setting
and one tries to send for example larger UDP packets, then one
can get this rather confusing error message
Available payload buffer (548) is not enough for requested DGRAM (1197)
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Rename the NXP LPC family MCAN driver to not use "MCUX" in its name as this
is not a shim driver based on the MCUXpresso HAL.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
Implement readout protection for the STM32U5 / STM32L5 series.
Move the stm32u5 / stm32l5 flash register manipulation in
flash_stm32_option_bytes_write() to be called by the
flash_stm32_set_rdp_level().
Signed-off-by: Johannes Schuler <jschuler@testo.de>
Add a helper function to check the lock status of the QSPI-FIU
bus controller mutex. This is useful for debug assertions and
verifying exclusive access in high-level drivers.
Signed-off-by: Firas Sammoura <fsammoura@google.com>
For drivers that were making mentions to master/slave terminology in
their comments or code without no reason to do so (i.e. no API in their
HAL is using such terminology), the terminology was dropped and replaced
with controller/peripheral terminology.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
I2S bus specification 3.0 [1] updated terms "Master" and "Slave" to
"Controller" and "Target". This rename macros using these terms and
deprecates old names.
[1] https://www.nxp.com/docs/en/user-manual/UM11732.pdf
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Have bbram shell commands use the new SHELL_HELP macro
Also fix the syntax for "read" command as it wasn't
correctly indicating that count cannot be specified
without address.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
There are many drivers which control a disabled-by-default watchdog timer
but take the liberty of selecting HAS_WDT_DISABLE_AT_BOOT and interpreting
WDT_DISABLE_AT_BOOT=n as "enable the timer", which does not correspond to
the semantics of this option.
Update all such drivers to no longer select HAS_WDT_DISABLE_AT_BOOT and
ignore the WDT_DISABLE_AT_BOOT option.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
WDT_DISABLE_AT_BOOT should only be used to forcefully disable watchdog
timers that are enabled by default after system reset. Update the Kconfig
help text of WDT_DISABLE_AT_BOOT and its dependency HAS_WDT_DISABLE_AT_BOOT
to make this clear.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
IOMEM interface base address is stored in both device configuration
and device data structures. Remove the occurence in the config data
that is used only for trace messages.
No functional changes.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Use same retry counter for APN script as the dial-script uses.
When dial-script fails, shut down the modem. Don't restart from
beginning.
When might still have CMUX connected, so jumping to IDLE->RESUME
leaves the CMUX connected, while the state machine expect otherwise.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
For some reason, the driver was not requesting the HAL to enable SOF even
if the feature was enabled at UDC stack level.
Fix by requesting HAL to enable SOF based on stack configuration.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
When build:
west build -p -b rpi_pico2/rp2350a/m33/w zephyr/samples/net/wifi/shell
Warnings occur (leading to errors in Twister runs):
.../drivers/wifi/infineon/airoc_wifi.c:749:9: warning: enumeration value
'__WIFI_FREQ_BANDWIDTH_AFTER_LAST' not handled in switch [-Wswitch]
.../drivers/wifi/infineon/airoc_wifi.c:749:9: warning: enumeration value
'WIFI_FREQ_BANDWIDTH_UNKNOWN' not handled in switch [-Wswitch]
749 | switch (params->bandwidth) {
| ^~~~~~
Signed-off-by: Stephan Linz <linz@li-pro.net>
Remove a useless return value check in i2s_ambiq_init().
The variable 'ret' was initialized to zero and checked before being
assigned, making the condition always false.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Add the SPDX-License-Identifier tag to the file header to properly
declare the Apache-2.0 license, in line with Zephyr licensing
requirements.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
The mailbox send callback is always invoked with a valid device
pointer.
Remove the redundant NULL check.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
the ads1119 has its own driver connected to CONFIG_ADC_ADS1119,
so remove it from CONFIG_ADC_ADS1X1X. Also the driver under
CONFIG_ADC_ADS1X1X doesn't support it.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Starting from revision 1.1 nPM1304 has support for soft start on the LDSW
regulators configured in the LDO mode. This requires special handling and
is done automatically for applicable device versions.
Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
The driver and module now supports nRF70 only, nRF71 support will be
added in the future using a new driver.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
The udc_submit_ep_event() does not document this requirement, but the
`net_buf` provided to it must have been removed from the driver's
internal queue before submission. This wasn't noticed because the list
node member of `net_buf` was untouched, but is now causing list corruption
due to 5137439a47 when multiple packets are
enqueued.
Fix by always dequeuing buffers before submitting them to the UDC stack.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
In some cases UARTE peripheral is generating RXTO events together with
ENDRX events. Those events are unexpected and should not be handled.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>