The driver currently only supports performance mode, where BWP values
above NORM_AVG4 are reserved and stop the data path on a BMA423. Reject
them in attr_set.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
bma4xx_attr_set_bwp stored the bandwidth parameter pre-shifted by
BMA4XX_SHIFT_ACC_CONF_BWP, but bma4xx_configure applies FIELD_PREP
with BMA4XX_MASK_ACC_CONF_BWP, shifting it again so the chip always
received BWP = 0. Store the raw field value instead, matching the
value domain used by bma4xx_chip_init.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
enum_frmival() reported one stepwise range with min and max swapped:
frame dropping only lengthens the interval, so the sensor interval is
the lower bound, not the upper one.
Even with the bounds fixed, one range with the sensor step advertises
intervals the DCMI cannot produce. Its frame control captures every
frame, every 2nd or every 4th one, so dropping multiplies both the
interval and the step. Report each sensor interval once per capture
rate instead, with the interval and the step scaled accordingly.
Assisted-by: Claude:claude-fable-5.1
Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
Add `codec configure <dev> <rate> <bits> <channels> <playback|
capture|both>` to the shell. The command populates an
`audio_codec_cfg` structure and calls `audio_codec_configure()`,
enabling configuration of a codec's I2S DAI from the shell.
Previously, the shell supported start/stop and property settings,
but not stream configuration.
Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
1. The NOR and NAND in the MCXN947 board are mutually exclusive,
add memc include for CONFIG_FLASH_MCUX_FLEXSPI_NAND.
2. Add Quad I/O enable, otherwise MX35LF1GE4AB write normal
but read fail
Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
Refactor Renesas OSPI_B driver to support multiple 8D-8D-8D,
1S-4S-4S, 4S-4S-4S
SPI NOR flash devices:
- Update init flow to get command value from the SFDP tables
- Update API function to support multiple protocol modes
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Fix packet length being uint8_t preventing bl616cl from
using its 1024 size capacity.
Fix off by one mistake in packet size (255 -> 256, 1023 -> 1024).
Make hex lowercase.
Signed-off-by: Camille BAUD <mail@massdriver.space>
The UDP uploader's rate control is interleaved with the iperf2 header
handling, so another UDP sender would have to copy it. Move it into
zperf_udp_pacing.c and have the uploader call it. The NXP Wi-Fi driver
relocates the compensation helper by file name, so it relocates the
new file instead.
The logic is unchanged. In the icount loopback scenario on qemu_x86 the
two calls per packet cost 0.2% of the UDP throughput, and TCP is within
0.02%.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
zperf has a source file per transport and role: a UDP and a TCP
uploader, and a UDP and a TCP receiver. Put the uploaders into
zperf_iperf2_client.c and the receivers into zperf_iperf2_server.c, so
that the file names say which protocol and which end they implement.
The code is unchanged apart from the names the two halves had in
common: the send buffers, the poll arrays and the socket index macros
get a udp_ or tcp_ prefix. Each half is built under the transport it
needs, as the separate files were.
Update the paths in the NXP Wi-Fi driver's code relocation. The
functions it names keep their names.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Add the MB85RS64V (64 Kbit) product ID, which the driver rejected at
init with "invalid device ID". The part takes a 16-bit address after
READ and WRITE, so send a 2-byte address for devices up to 512 Kbit
(size <= 64 KiB) and keep 3 bytes above that; accepting the ID alone
would shift every read by one byte and write the low address byte
into the array as data.
Signed-off-by: Kirill Shypachov <kshypachov@outlook.com>
Add a video capture driver for native_sim that reads fixed size raw
frames from a named pipe on the host and exposes them through the video
API as an ordinary zephyr,camera device. A host process such as ffmpeg
feeds the pipe from a webcam, a video file or a test pattern, which
lets video applications run on native_sim without camera hardware.
The driver is split the usual way for native_sim. The bottom half is
built in the native simulator runner context and is the only part
touching the host C library: it creates the FIFO with mkfifo() when
needed, refuses a path that exists but is not a FIFO, and opens it
O_RDONLY | O_NONBLOCK so that no read() can ever stall the simulation.
A dedicated thread polls the FIFO and reads straight into the buffer at
the head of the input queue. The buffer is only dequeued once exactly
width * height * bpp bytes have been read, so stop and flush never lose
it. While the application holds every buffer the driver stops reading
and the host writer blocks on the full pipe.
A writer disconnecting mid-frame makes read() return 0. The partial
frame is then discarded while the descriptor stays open, so the next
writer to attach is guaranteed to be frame aligned.
The application selects the format with video_set_format(), as with the
other video drivers. get_caps() lists the formats of video_sw_generator
that ffmpeg can write (RGB565, RGB24, BGR24, XRGB32, BGRX32, YUYV and
GREY), any size up to 1920x1080, with an even width for YUYV, and the
default is 320x240 RGB565. The host writer is responsible for scaling
and pixel format conversion, so it must write frames of the selected
format. A buffer queued before a larger format was selected is returned
unfilled rather than overrun.
The FIFO path comes from the fifo-path property, or defaults to
/tmp/zephyr-<device>-<pid>.fifo so that several simulator instances do
not collide. It can be overridden at runtime with the --<device>=<path>
command line option. A FIFO created by the driver is removed when the
simulator exits.
Frame intervals and controls are not implemented yet, so the driver is
marked experimental for now.
Assisted-by: Antigravity:gemini-3-pro
Signed-off-by: Changyeon Jo <changyeon@google.com>
Replaced the unused brightness-gpios with brightness-dac to support the
contrast voltage. The driver is updated to support brightness_set and
brightness_get in percent (0-100).
Signed-off-by: Erwin Herrsche <erwin@herrsche.ch>
The velocity word is int16_t and the range from the lookup table is
int32_t, so velocity * range is evaluated in 32 bits. It overflows for
the three fastest of the eight ranges: 75000 from |velocity| 28634,
150000 from 14317, 187500 from 11454, and that last threshold is about
a third of full scale. Widen to int64_t before the divide.
Signed-off-by: Hsiu-Chi Tsai <hctsai@linux.com>
Free the DAT slots still held by descriptors with no dynamic address,
left behind by a SETDASA before RSTDAA, so ENTDAA starts from a clean
slate, and bind each descriptor to the slot ENTDAA actually picks.
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Assisted-by: Claude:claude-opus-5
sw_set_clock() is called on every DAP_SWJ_Clock request, so a warning on
each one is noise in an otherwise quiet log. Nothing here is a fault.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Abner Gabriel de Souza <abner@binho.io>
On MCX the SWD bit-bang driver falls into the generic branch of
swdp_ll_pin.h, which defines FAST_BITBANG_HW_SUPPORT 0 and stubs every
swdp_ll_pin_* to nothing. Each SWCLK/SWDIO edge therefore goes through a
full gpio_pin_set_dt() call.
That branch also defines CPU_CLOCK as CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC,
which on these SoCs is the 1 MHz tick source and not the core frequency.
pin_delay_asm() burns CPU cycles, so MAX_SWJ_CLOCK() lands at 125 kHz and
every clock a host can ask for sits above it: sw_set_clock() pins
fast_clock with delay = 1 and the requested clock is ignored.
Add swdp_ll_pin_mcx.h, selected on CONFIG_SOC_FAMILY_MCXA. PSOR/PCOR move
a pin with a single store and no read-modify-write; PDDR carries the
direction and PIDR the input buffer, so the turnaround path stays correct
on a shared SWDIO. CPU_CLOCK comes from the cpu0 clock-frequency property,
which is the frequency the board actually runs at and does not depend on
board code writing SystemCoreClock.
The gate is the MCXA family rather than the nxp,kinetis-gpio compatible
because PIDR only exists on the MCX version of the block: classic Kinetis
parts, and the MCXC variants that inherit their GPIO, do not have it.
Measured on an MCXA156 probe driving an STM32H503 target, reading 128 KiB
from flash with pyOCD. Both arms were flashed to the same board in the same
session; each row is the mean of two runs, net of the fixed host overhead
(pyOCD start, pack load, connect):
before, 1 / 2 / 4 / 8 / 12 MHz 44.7 - 44.9 KB/s, flat
after, 1 MHz 42.9 KB/s
after, 2 MHz 61.7 KB/s
after, 4 MHz 78.1 KB/s
after, 8 MHz 90.7 KB/s
after, 12 MHz 100.1 KB/s
The before row is the symptom: the requested clock makes no difference at
all. After, 12 MHz is 2.24x the fixed speed the driver had before. SHA-256
over the 128 KiB is identical across all 30 reads, every clock and both
arms. Cost is +540 B of flash, no RAM change.
Note the behaviour change for existing MCXA users of this driver: the
requested clock starts being honoured, so an application that asks for a
low clock now gets it, where before it got whatever gpio_pin_set_dt()
happened to allow. At the 1 MHz default of SWDP_DEFAULT_SWCLK_FREQUENCY
that is about 4% slower than the current unclocked behaviour; above it,
the numbers above apply.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Abner Gabriel de Souza <abner@binho.io>
max3421e_xfer_data() limited each OUT packet to MAX3421E_MAX_EP_SIZE
instead of the endpoint's maximum packet size, overrunning an endpoint
whose mps is smaller. The IN path has already been fixed; this is the
same defect on the OUT side.
Pass the transfer rather than the endpoint address so both ep and mps
are available.
Not exercised on hardware: enumeration uses no OUT data stage, so the
bug is latent there and only reached by a bulk OUT or a class request to
such a device.
Assisted-by: Claude:claude-opus-5
Signed-off-by: John Goble <john.goble@nimbusdigital.com>
Add an ADC driver for the NXP Always-On Low-Power ADC (AON_LPADC)
found on the MCXL series. Multi-channel sequences are converted in
hardware: each selected channel maps to one conversion command, the
commands are chained through CMDH[NEXT], and a single software
trigger walks the chain, with the FIFO watermark interrupt draining
results in channel order.
Logical channels are therefore command slots, and how many of them an
instance reserves is derived from the channel nodes declared for it in
devicetree, so slots the application does not describe cost no RAM.
An instance without any channel node keeps the full hardware capacity
available for runtime adc_channel_setup() calls, and declaring a
channel identifier beyond the implemented commands is a build error.
The converter is fixed at 12-bit single-ended resolution and stores
results left-justified in RESFIFO[D]; the driver right-justifies them
so raw values match the 12-bit resolution reported to the ADC API.
Offset calibration is mandatory after every converter reset before
the first conversion, so init runs it with the maximum calibration
sample time, and a sequence can request it again through the
calibrate flag.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
The MCXL255 AON LPADC sits behind a peripheral clock gate in the AON
CGU (PER_CLK_EN[LPADC]); register access bus-faults while the gate is
closed. Add the MCUX_AON_LPADC_CLK identifier and map it to
CLOCK_EnableClock(kCLOCK_GateAonLPADC) so consumers can open the gate
through the standard clock control API. The case is compiled only
when an enabled nxp,aon-lpadc node exists, so other SoCs are
unaffected.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Nordic's nPM10 Series PMICs feature one-time-programmable UICR to configure
some of the control registers' reset values changing PMIC's startup
behaviour.
Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
Define configuration symbols for enabling STM32 PSA Crypto Drivers.
CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS is experimental, it is
disabled by default.
CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS is a generic config switch
to embed or not STM32 PSA Crypto Drivers. Config switches are defined
per hardware resources in STM32 SoCs:
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_AES for STM32 AES
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_CRYP for STM32 CRYP
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_SAES for STM32 SAES
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_HASH for STM32 HASH
Enabling of one of those latter are conditioned to the presence
of a related enabled node in the DT and prevents the node is
integrated in the Zephyr native crypto framework.
STM32 RNG is out of scope since Zephyr integration of PSA Crypto
makes the PSA Crypto library to rely on the already existing STM32
entropy driver.
Update manifest to sync on the STM32 HAL module that provides
PSA Crypto drivers implementation for STM32 HASH and AES/CRYP/SAES
(transparent key).
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
The elastic buffer is part of the GPIOHSPADCTRL and used by
the NRF-MSPI peripheral when in controller mode. It is used
to compensate for PVT variation on the pad and is only
supported on port 2 for MSPI00/01. It uses a feedback clock
which encounters a replica delay. This is then fed into the
EB where the core can sample it after some configured delay.
This commit ads support for this for the nrf-mspi peripheral,
configuring it when the user calls mspi_dev_config() as the
configuration of the EB will depend on the configuration of
the SPI mode. Currently, a polarity of 1 isn't supported but
this will be added at a later commit once documentation has
made it to the nrf7120 datasheet on how to use it properly.
Asserts are also added to check the DTS configuration as a
miss-configured elastic buffer can cause unexpected problems.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
Allow for vendor specific device configuration. The hook is called at
the end of a successful device configuration and receives the same
parameter mask and configuration as the driver.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
Allow the user to set an initial RX sample delay in devicetee
as this is something that can be fixed once based on your
hardware.
Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
dw_i3c_do_ccc dereferences payload->ccc.data whenever ccc.data_len says
there is data - the broadcast path hands it to write_tx_fifo and the
direct path reads the defining byte out of it. The direct path also
hands each targets.payloads[i].data to the command buffer. None of
them check for NULL.
i3c_do_ccc is a syscall, and its handler only range-checks a buffer when
it's non-NULL, so a non-zero length with no buffer gets past
verification and faults the kernel.
Reject both on entry, before the mutex is taken. i3c_stm32 and
i3c_renesas_ra already reject the ccc.data case this way.
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Assisted-by: Claude:claude-opus-5
The async RX helper returns immediately when no bytes are pending. This
leaves completed buffers with no received data outside the free pool. The
consumer cannot reclaim them by polling for data. If every buffer reaches
that state, the UART cannot obtain a buffer to restart reception.
Run the existing ordered reclaim loop before checking pending_bytes. This
keeps read-cursor updates in the consumer context. It adds no
interrupt-masked sections to producer callbacks. Preserve zero-length
claims as side-effect free.
Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
Add optional four-level grayscale output for UC8253 controllers using
PIXEL_FORMAT_L_8. Convert luminance values into the controller's two
RAM planes and retain full-plane state so fragmented writes can be
combined before refreshing the panel.
Add devicetree properties for enabling grayscale, selecting the plane
mapping, and configuring CCSET and TSSET for individual profiles.
Tested on an nRF54L15 DK with a Good Display GDEY037T03 panel using
the display API and LVGL in monochrome and grayscale modes.
Signed-off-by: Kazem Firouzmandi <kazem.firouzmandi@gmail.com>
When CONFIG_STM32_APP_IN_EXT_FLASH and CONFIG_XIP are enabled, XSPI
initialization is skipped because the bootloader
has already configured it.
Therefore in this fast path HAL_XSPI_Init() is not called and the
timeout value stays at 0.
This PR fixes the fast path and initialize the timeout to
HAL_XSPI_TIMEOUT_DEFAULT_VALUE.
Signed-off-by: Julien Racki <julien.racki-ext@st.com>
The FIFO threshold in the dmas features cell, documented in the binding,
is ignored by dma_stm32_zcfg_to_halcfg() which always selects direct
mode.
Direct mode writes every word to memory as it arrives, which is too slow
for destinations such as external SDRAM. The DCMI overruns and capture
never completes.
Enable the FIFO when the DT asks for a full threshold. This driver
transfers words, and full is the only threshold the hardware accepts at
that size, so boards asking for 1/4, 1/2 or 3/4 cannot use the FIFO at
all and keep direct mode as before.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
The HAL config helper now maps source_burst_length and dest_burst_length,
so ask for the 4 beat bursts instead of writing MemBurst and PeriphBurst
after the call.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
Ask for a 4 beat burst on the memory side with dest_burst_length instead
of leaving it equal to the data size.
Note this has no effect on its own, the burst bits are only written to
the stream when the FIFO is enabled, which it is not yet on any board.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
dma_stm32_zcfg_to_halcfg() hardcoded MemBurst and PeriphBurst to single
transfers and ignored source_burst_length and dest_burst_length, so a
driver asking for a burst through the DMA API silently got none and had
to write the HAL fields itself after the call. Derive both from the
burst length and the data size instead.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
A received packet longer than the buffer allocated for it was logged
and dropped, but the buffer was never freed, so every such packet cost
the pool one buffer for good.
Build-tested with the peripheral_hr sample on
cyw920829m2evk_02/cyw20829b0lkml. Not run on hardware.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
wiced_bt_dev_vendor_specific_command() exists for the btstack-integration
asset to link, and sent the asset's vendor commands with the Host's
bt_hci_cmd_alloc() and bt_hci_cmd_send(), ignoring the completion
callback. Neither of the asset's callers is reached: the driver's
wiced_bt_stack_init_internal() drops the post stack initialization
callback that would enable the sleep mode, which
cyw208xx_bt_enable_low_power_mode() does instead, and the only caller of
cybt_prm_download(), cybt_patchram_download.c, is not part of the build.
Report the command as unsupported instead. This was the driver's last
use of a Host API, so a build without a Host, such as the hci_uart
sample, now links.
Build-tested with the peripheral_hr and hci_uart samples on
cyw920829m2evk_02/cyw20829b0lkml, the latter with an overlay choosing
the UART. Not run on hardware.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Reset the controller, download its firmware, set the public address and
enable the low power mode from within open(), through the HCI lockstep
helper and the driver's own send path, instead of implementing the
setup() driver API op on top of the Host's bt_hci_cmd_send_sync(). The
public address comes from bt_hci_get_public_addr(), which gives
BT_ADDR_ANY when none has been set, so the controller's hard-coded
default address is still always overridden. The responses are consumed
in the driver's receive path by feeding received packets to the helper
before they are delivered.
The platform task resets the controller every time it is started, so
open() restores the helper's initial command allowance with
bt_hci_lockstep_reset() before it sends the first command: the reset
controller allows one command again without announcing it.
The firmware blocks are sent from a static command buffer sized for the
longest HCI command, to keep it off the stack of the thread that opens
the driver; the caller serializes open().
A failing or unanswered command fails open() with an error instead of
failing the Host's HCI initialization later, and is logged by the
helper. open() then shuts the platform task down again, as close()
does, since a failed open() is not followed by close(), and a platform
task that fails to start makes open() return -EIO instead of the
asset's positive result code. open() moves below close() for that.
The raw send path is factored out of send() so that it serves both the
send() op and the helper. It takes the packet with its packet indicator
instead of pulling the indicator off the buffer, so a buffer that could
not be sent is returned to the caller unmodified.
The driver no longer selects BT_HCI_SETUP. BT_AIROC still selects it
for every AIROC part, because the H4 extension of the UART-attached
ones implements the setup hook, and the Host treats a missing setup()
op as nothing to do.
Build-tested with the peripheral_hr sample on
cyw920829m2evk_02/cyw20829b0lkml. Not run on hardware.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Send the vendor-specific initialization commands, the calibration data,
the sleep configuration and the public address, from within open(),
through the HCI lockstep helper and the driver's own send path, instead
of implementing the setup() driver API op on top of the Host's
bt_hci_cmd_send_sync(). The public address comes from
bt_hci_get_public_addr(). The responses are consumed in the driver's
receive path by feeding received packets to the helper before they are
delivered.
Without a Host the helper function for these commands returned success
without sending anything, and setup() was not called there in the first
place, bt_enable_raw() opening the driver only, so a controller-only
build left the controller without its calibration data, sleep
configuration and address. They are now sent in every build, and the
driver no longer selects BT_HCI_SETUP.
A failing or unanswered command, or a failed HCI start, fails open()
with an error instead of failing the Host's HCI initialization later,
and open() then unregisters the receive callback again, as close()
does, since a failed open() is not followed by close(). open() moves
below close() for that. The helper's command allowance is restored at
every open() and after the controller's own reset that follows the
annex 55 calibration data, as neither reset announces one. The stale
comment claiming the address command gets no Command Complete goes: it
already went through bt_hci_cmd_send_sync(), which waits for one.
The raw send path is factored out of send() so that it serves both the
send() op, which keeps intercepting the vendor commands it handles
locally, and the helper.
Build-tested with the peripheral_hr sample on frdm_mcxw71 (public
address) and frdm_rw612 (calibration data and automatic sleep). Not run
on hardware.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Send the BlueNRG ACI configuration commands, the link-layer-only mode
and the public address, from within open(), through the HCI lockstep
helper and the driver's own SPI send path, instead of implementing the
setup() driver API op on top of the Host's bt_hci_cmd_send_sync(). The
public address comes from bt_hci_get_public_addr(). The responses are
consumed in the driver's receive thread by feeding received packets to
the helper before they are delivered.
That also replaces the second way the driver had of sending the
link-layer-only command: in a controller-only build it called the raw
bt_send() from inside its own open(), before the transport was open to
its user, and left the response to reach the application. Both build
types now share one path, and the driver no longer selects
BT_HCI_SETUP.
A failing or unanswered command fails open() with an error instead of
failing the Host's HCI initialization later, and is logged by the
helper. open() stops the receive thread, aborting it if it does not
exit, and resets the controller when it fails after having started
them, which also covers the existing boot timeout, since a failed
open() is not followed by close(). open() moves below close() for that,
without other changes.
The raw send path is factored out of send() and takes the device, so
that it serves both the send() op and the helper.
Build-tested on disco_l475_iot1 (st,hci-spi-v1) with the peripheral_hr
and hci_uart samples, and on nucleo_l476rg with the x_nucleo_bnrg2a1
shield (st,hci-spi-v2) with peripheral_hr. Not run on hardware.
open() takes the controller out of reset through its reset line on
every call, so it also restores the helper's initial command allowance
with bt_hci_lockstep_reset(): the controller allows one command again
without announcing it.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Write the public address into the controller from within open(), taking
it from bt_hci_get_public_addr(), instead of implementing the setup()
driver API op. The command goes through BleStack_Request() as before,
so no Host command API was involved and nothing else changes in how it
is sent.
The address is now also set in controller-only builds, where the driver
did not select BT_HCI_SETUP and bt_enable_raw() would not have called
setup() anyway: with no public address to set, which is always the case
there, it is the one derived from the device UID, as before. The driver
no longer selects BT_HCI_SETUP.
A failure to set the address fails open() instead of the Host's HCI
initialization later. open() then closes what it had opened, since a
failed open() is not followed by close(). open() moves below close()
and the address functions for that, without other changes.
Build-tested on nucleo_wba55cg with the peripheral_hr and hci_uart
samples. Not run on hardware.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
resolution-gpios is read as two lines, RES0 and RES1, through
GPIO_DT_SPEC_INST_GET_BY_IDX_OR() with an empty fallback, while
have_resolution_pins only checks that the property exists. A node with
one entry, or with one of the two set to <0>, builds and then fails at
init with -ENODEV because that spec has no port.
Make both a build error. Omitting the property stays valid, the binding
says the pins may be hard-wired.
Signed-off-by: Hsiu-Chi Tsai <hctsai@linux.com>
QEMU rejects -device for NICs built into the emulated machine (lan9118,
stellaris, cadence_gem), so QEMU failed to start on those boards with
networking enabled. Let these drivers select ETH_NIC_MODEL_ONBOARD and
configure such NICs with -nic instead.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
The MFXSTM32L152 dependency is the availability of the i2c so
set its init priority to I2C_INIT_PRIORITY instead of having
an hardcoded value as before.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
K_MEM_CACHE_NONE is Device memory on ARM and ARM64, which faults on the
unaligned stores that the row memcpy() in display_fb_write() makes whenever
an update area is not 4-pixel aligned, so map the framebuffer Normal
non-cacheable there instead.
It is also much faster: on qemu_cortex_a53, 20 full-screen display_write()
calls at 600x400 ARGB8888 drop from ~770 us to ~180 us per frame.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
Update the Infineon GPIO driver to use the standard
CONFIG_GPIO_INIT_PRIORITY instead of the generic
CONFIG_KERNEL_INIT_PRIORITY_DEVICE. This ensures the GPIO driver
initializes before peripherals that depend on it.
Signed-off-by: Vignesh Pandian <vignesh@aerlync.com>
The native backend only has drivers for SX1261/SX1262, the STM32WL
sub-GHz radio and LR1121, but unlike the LoRa Basics Modem entry its
choice entry has no dependency on them, so selecting it on a board with
another radio builds with no driver at all. Depend on those radios.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
Add PM support for IEEE 802.15.4 by taking a PM lock on the sensitive
radio paths: transmit, CCA and energy scan. Add a work task to release
the lock once the radio reports sleep, as the MAC interrupt only puts
the radio to sleep after the completion callbacks return, so the state
is not final in ISR context.
Disable the IEEE802154_RX_ON_WHEN_IDLE capability when the light sleep
option is enabled. This is pending future review and is necessary to
avoid radio switching while attaching.
Assisted-by: Grok:4.6
Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
transceive_packet() left the RX interrupt enabled after a receive
timeout, so late bytes were written through rx_buf.data into the stack
frame of the function that had already returned.
Signed-off-by: Flavio Ceolin <flavio@hubble.com>