A fetch triggers a conversion and sleeps until it completes, for as
long as the configured conversion times and averaging take. Add a
continuous-mode property, with which the device converts continuously
and a fetch reads the last conversions without waiting.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
The switch to 4-byte address mode was done while parsing the BFP, so the
remaining SFDP tables were read in 4-byte mode with a 3-byte address.
Enter 4-byte mode once all the tables have been read, and fail init if
the switch fails.
Signed-off-by: Julien Racki <julien.racki-ext@st.com>
With four-byte-opcodes set, only the read and program opcodes were
converted. The SFDP erase opcodes (0x20, 0x52, 0xD8) were sent with a
32-bit address while the flash was in 3-byte mode, so the erase did not
execute. Convert them to 0x21, 0x5C and 0xDC too.
Signed-off-by: Julien Racki <julien.racki-ext@st.com>
System-managed PM resume leaves deep power-down from the idle
thread while wake interrupts are still masked. k_sleep() cannot
elapse there: it needs the system timer interrupt and must not
suspend the idle thread.
Keep the millisecond delay, but busy-wait when the caller cannot
yield. Initialization and other thread contexts still sleep.
Signed-off-by: Leo Li <leo.li@rakwireless.com>
When available, use UUID provided by Ironside SE boot report as
a device ID instead of NFC tag header.
Signed-off-by: Michał Bainczyk <michal.bainczyk@nordicsemi.no>
The MCXL feature headers expose the temperature sensor calibration
constants as TEMP_PARAMETER_A/B/ALPHA, without the FSL_FEATURE_LPADC_
prefix the driver expects, so the build fails with undeclared
identifiers on MCXL255.
Map the unprefixed names onto the prefixed ones when only the former
are defined. The guards make this a no-op on SoCs whose headers already
provide the prefixed macros.
Assisted-by: Vero:claude-opus-4.6
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
The ICM-456xx has an FIR anti-alias filter on the ADC output in
low-noise mode. It is off at power-up, and the driver had no way to
turn it on, so vibration above the output bandwidth can alias into the
data.
Add the accel-aaf and gyro-aaf properties to enable it. The
interpolator, set by the same register fields, stays off: it is only
needed with an external clock or in I3C synchronous mode.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add an I2C emulator for the ITE IT8300 GPIO expander. Model register reads
and writes, output data mirroring, write-one-to-clear interrupt status,
global interrupt status, and the active-low ALERT signal.
Expose helpers to reset the emulated device, inject GPIO input changes,
and access registers so tests can validate driver behavior.
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Add GPIO driver and devicetree bindings for the ITE IT8300 GPIO
expander.
The IT8300 provides 34 GPIO pins divided into five GPIO groups. Each
group is represented by an ite,it8300-gpio child node, while the parent
ite,it8300 node manages the shared I2C connection and optional active-low
ALERT# interrupt.
The device only reports that a pin has changed and does not provide
per-pin edge polarity information. Cache the previous input state and
filter the latched changes in the alert work handler to provide rising,
falling, and both-edge interrupt support.
The driver was tested with the IT8300 connected to it51xxx_evb and
passed the following Zephyr GPIO test suites:
- drivers/gpio/basic_api
- drivers/gpio/get_direction
- drivers/gpio/gpio_hogs
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
The X and Y position registers were read in two I2C transfers, so a
reported position could mix coordinates of two samples while the finger
moves. Read XPOS_H to YPOS_L in a single burst.
The event bits are now taken from the first byte read, instead of the
low byte of a 16-bit value in CPU byte order, which only matched
XPOS_H on little endian CPUs.
Tested on a LilyGO T-Display S3 AMOLED Plus with a CST816T.
Signed-off-by: Aliaksandr Trafimchuk <a13x4nd3r.t@gmail.com>
For SoCs that support clock control, turn on the gate clock
during init. Nodes without a clocks property are unaffected.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
The current driver sends the sleep configuration commands at init
unconditionally. Module firmware without low power support rejects
them and the driver fails to initialize.
Add ST67W611M1_LOW_POWER to control the init commands and the power
save and TWT operations. It defaults to y to keep current behavior.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
Teach the Xilinx SDHC driver to also drive the Zynq-7000 PS SD/SDIO
controller (same Arasan 8.9a IP, one generation older). It binds to
"arasan,sdhci-8.9a", the compatible the Linux Zynq-7000 devicetree uses
for this controller.
The data transfer path is selected with Kconfig: XLNX_SDHC_ADMA2 or
XLNX_SDHC_PIO, which moves the data through the Buffer Data Port; the
unused path is compiled out. PIO is the default when a Zynq-7000
controller is enabled, as ADMA2 is not yet supported there. In PIO mode
the buffer-ready and transfer-complete events are taken from the
interrupt handler when the node has an interrupt, as the handler
acknowledges those status bits, and polled otherwise. The handler and
the signal-enable mask now also cover Buffer Write Ready.
Per-SoC differences come from the compatible:
- maximum SD clock: 208 MHz on Versal; 50 MHz on Zynq-7000, which has no
PHY/tap-delay block and therefore no UHS modes.
- tap delay: the SD input/output tap-delay registers exist only on
Versal. They lie outside the Zynq-7000 register window, so they are
not programmed there when switching to High Speed.
- broken slot type: the Zynq-7000 Capabilities register reports an
embedded slot although carriers wire a removable SD slot. The SD slot
type is forced so the eMMC command-framing and power paths (which
reject CMD8/R7 and assert the eMMC reset) are not taken.
A command without a data phase now writes Transfer Mode 0 rather than
leaving the data-transfer bits set. Zynq-7000 rejects the command
otherwise, and 0 is the spec-correct value.
struct reg_base is no longer __packed. A packed struct makes GCC split
the 16-bit interrupt-enable writes into byte stores, which the Zynq-7000
controller drops: status-enable stays 0, so Command-Complete never
latches. Every register is naturally aligned, so the layout does not
change; BUILD_ASSERTs check the offsets. The register interface is
32 bits wide and discards 64-bit accesses, so the three 64-bit registers
(Capabilities, Max Current Capabilities, ADMA System Address) are split
into lower and upper words that are accessed separately.
Tested on a Trenz TE0726 (Zynq-7000, PIO) with a 7.7 GB SDHC card, with
and without the interrupt line. The card comes up at 4-bit High Speed
(50 MHz). Single- and multi-block reads of several sectors, in
alternating order, match reference data written by independent code.
Single-block raw writes read back correctly, and a 66536-byte file
written through FatFs (single- and multi-block writes) reads back intact
after a remount and through an independent SD/FatFs implementation; the
other files on the card are unchanged. The Versal configuration was
built but not run on hardware.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: David Paul-Beier <david@paul-beier.de>
Support simultaneous RX/TX DMA queues, 24-bit frames with PLL clock
selection, and PM suspend/resume. Use I2S_OPT_*_CONTROLLER/TARGET for
the current I2S options API.
Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
By default, the LED strip cache driver updates a strip only up to the
targeted LED. But some backend controllers may be unable to keep the
signal low after a transmission. A high signal at the end of the
transmission may be interpreted as an additional bit by the next LED,
which can affect its state.
This adds an "update all LEDs" Kconfig option. When enabled, the driver
always updates all LEDs of the strip on each transmission.
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
The led-strip-cache driver exposes a virtual LED device composed of
one or more LED strip devices. It bridges the LED and LED strip APIs
and provides a cache for all pixels of the underlying strips. It allows
users to configure individual LEDs via the ->set_color() method of the
LED API.
If multiple LED strips are specified, they are concatenated in phandle
order in the same LED device.
led-strips = <&led_strip_0>, <&led_strip_1>;
strip 0 (M pixels) strip 1 (N pixels)
/ \ / \
LEDs = [ 0 ... M-1 ] [ M ... M+N-1 ]
When an LED is updated, the corresponding pixel in the cache is modified
and the cached pixels are passed to the underlying LED strip device.
The cache uses one struct led_rgb per LED, so its memory footprint is
three bytes per LED (four if CONFIG_LED_STRIP_RGB_SCRATCH is enabled).
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
i2s_stm32_set_clock() stores the ratio between the I2S kernel clock and
the bit clock in a uint8_t before splitting it into I2SDIV and ODD, so
ratios of 256 and above lose their high bits and i2s_configure() still
returns 0. With a 96 MHz I2S clock and 16-bit stereo, 11025 Hz needs a
ratio of 272 and gets 16, and 8000 Hz needs 375 and gets 119.
Keep the ratio in a uint32_t and reject ratios whose I2SDIV does not
fit in its 8 bits.
Fixes#121177
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: YunHung Hua <oliverhua.us@gmail.com>
Add an optional xtal-capcode property to the BL808 clock controller and
program it into the AON crystal capacitor codes before powering the
crystal. Boards keep the reset default when the property is absent.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Advertise HT with MCS0-7 and the short guard interval on 20 MHz, the
only channel width the firmware uses, and decode HT20 single-stream
rates in the reported TX rate.
On the M1S Dock the PHY TX rate goes from 48 to 72.2 Mbit/s and UDP
download from 12.5 to 17.9 Mbit/s at the same offered load.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Copy each received frame into a net_pkt from the firmware RX callback
instead of staging it in a ring drained by the system work queue. This
saves a copy and a thread hop per frame and the ring's RAM, 1600 bytes
per slot, along with WIFI_BFLB_WIFI4_RX_RING_CNT.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Add the SoC glue for the BL808 wifi4 firmware blob on the wifi4 driver:
MAC clock ungate, PHY power tables from devicetree, the firmware task
running the blob's own wifi_main(), the WIFI_RAM sections, and the IPC
glue for the BL808 shared environment, whose TX path queues descriptors
on list_ongoing and recycles them from list_cfm. Data frames use all
four descriptors; only EAPOL frames wait for their confirmation, as the
PTK is installed once handshake message 4 has left.
blob_printf() moves from the BLE OS shim to bflb_rf.c, shared by the
BLE controller, the WiFi firmware and the PHY library, and is quiet
outside WiFi debug builds as both blobs trace every scanned channel.
The first RF calibration, run at bring-up, executes with interrupts
locked: preempting it hangs the SoC. Unlike the BL602 one, the BL808
firmware also recalibrates periodically while it tracks a BSS
(mm_sta_tbtt -> rfc_channel_ops -> rf_init). Those calibrations keep
interrupts enabled, as locking them stalls the MAC for the whole
calibration: firmware timers run late and auth/assoc responses are
missed (join status 11/14).
Provide link stubs for the firmware symbols the driver and SoC glue
reference, for CONFIG_BUILD_ONLY_NO_BLOBS builds.
Signed-off-by: William Markezana <william.markezana@gmail.com>
The BL60x and BL808 PHY libraries are linked when CONFIG_BFLB_PHYRF is
set, so have their BLE controllers select it.
Signed-off-by: William Markezana <william.markezana@gmail.com>
The rate word format is the MAC's and the same on every wifi4 SoC, so
decode it once in the driver. The SoC glue only reads the rate word
from its station table, whose size differs per SoC.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Point the hal_bouffalolab module at the revision that moves the wifi4
firmware host interface headers to include/bouffalolab/common/wifi4,
shared by BL60x and BL808, and the BL808 WiFi blobs.
Update the BL60x include path accordingly and drop the lmac_types.h
includes, as the shared headers use the standard integer types.
Signed-off-by: William Markezana <william.markezana@gmail.com>
The DMA path always ran a receive channel next to the transmit one,
only to know when the last byte had been shifted out. For write-only
transfers, such as display pixel data, that doubles the DMA traffic and
the SERCOM DATA accesses through the peripheral bridge, which limits the
throughput at high bus clocks.
When there is nothing to receive, turn the receiver off, run the
transmit channel alone and, once it has loaded the last byte, wait for
INTFLAG.TXC, at most two byte times, before releasing chip select. The
receiver is turned back on before completing, which also flushes it, so
the other paths are unchanged.
On a Wio Terminal driving its ILI9341 at 60 MHz, a renderer streaming
about 150 KB per frame went from 29 to 35 fps, its wait for the display
going from 10 ms to 5 ms per frame.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
The series has no CLOCK_GetWdtClkFreq(). Its watchdog is clocked by the
dedicated watchdog oscillator, whose rate is read with
CLOCK_GetWdtOscFreq(), so the default branch does not compile once a
wwdt node is enabled.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Marvin Gnad <marvin.gnad@gmail.com>
CONFIG_SOC_SERIES_LPC54XXX selects a CLOCK_SetClkDiv(kCLOCK_DivWdtClk)
call, but neither SoC in the series has a WDTCLKDIV register, so
neither SDK defines kCLOCK_DivWdtClk and the branch does not compile.
The watchdog is fed by the dedicated watchdog oscillator; its only
divider is the DIVSEL field of WDTOSCCTRL, which selects the
oscillator frequency together with FREQSEL rather than dividing a
clock routed to the peripheral. CLOCK_GetWdtOscFreq() already accounts
for it, so the rate the driver reads stays correct.
The branch has never been built: it is guarded on an enabled wwdt node
and no LPC54xxx board had one. Enabling the watchdog on lpcxpresso54628
is what turns it into a build error.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Marvin Gnad <marvin.gnad@gmail.com>
The device tree binding for the rpi_pico dma driver describes three
channel configuration flags (high-prio, byte swap and quiet irq) of
which only one (high-priority) is used in the driver.
This patch defines a set of macros to allow users to enable these flags
in the device tree dma channel specification, as described in the
binding, proposes a way to encode them into struct dma_config fields
that aren't used by the driver, and applies the configuration flags in
the config dma driver callback.
The main purpose of this change is to allow multiple word-sizes in
scenarios where byte swapping is required.
Signed-off-by: Ricardo Cañuelo Navarro <rcn@igalia.com>
RM0456 §36.3 requires software to wait for VRR after setting ENVR with
HIZ cleared. In hold mode (HIZ set) VRR detection is disabled and the
bit keeps its last state, so there is nothing to wait for.
Tested on an STM32U599 board with 1.1 uF on VREF+, reading VREFBUF_CSR
as each call returns: without this change enable() and set_voltage()
return with VRR clear, and it sets up to 260 us later.
Signed-off-by: Eden Frosst <eden.frosst@rbr-global.com>
The driver takes its reset line from the devicetree with
RESET_DT_SPEC_INST_GET_OR() and deasserts it through the reset API, so
every instance with a `resets` property references the RCC reset
controller device. When nothing else in the build selects RESET, that
device is not built and the link fails:
undefined reference to `__device_dts_ord_92'
Select RESET when an instance has a `resets` property.
Signed-off-by: Eden Frosst <eden.frosst@rbr-global.com>
A transfer with no receive buffer still runs the receive DMA, which
moves every received word out of the FIFO only for it to be discarded.
Set TCR[RXMSK] instead, which the reference manual suggests for
half-duplex transfers, and do not start the receive DMA. With receive
masked there is no receive callback, so each transmit callback moves on
to the next chunk by itself and the last one completes the transfer.
That relies on the previous commit: the transmit DMA finishes before the
last word has left the shift register.
Mask only when no buffer in the receive set passed in takes data. NULL
receive buffers are still consumed alongside the transmit data, so the
transfer clocks as many words as it would unmasked. A peripheral keeps
the receive DMA, since completing from the transmit side would not wait
for the controller to clock the data out.
Measured on an i.MX RT1176 driving an ST7789 through MIPI DBI SPI on
v4.4.2, with this series and the board's local Ethernet patches
applied, drawing 76x284 frames row by row while the board receives TCP
continuously on the 1G port, in 10 s windows:
without this change 8 windows, 198 to 200 frames, 50.3 ms per frame
with it 14 windows, 202 to 239 frames (median 222),
45.1 ms per frame on average
A frame is about 10% shorter on average. With the change the frame time
varies from window to window; without it, it hardly moves.
No transfer timed out in either case. On an earlier tree the unmasked
receive FIFO overflowed under load, SR[REF] ended the transfer and the
caller got -ETIMEDOUT, since the driver does not look at REF; that did
not reproduce here.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hashimoto Kenichi <hashimoto.kenichi@genetec.co.jp>
Draining the TX FIFO does not mean the transfer is over: the last word
is still in the shift register when the FIFO reports empty. Poll SR[MBF]
as well, using the same cycle limit as lpspi_wait_tx_fifo_empty().
Release the chip select before spi_context_complete() rather than after,
on both the success and the error path. That call wakes the waiting
thread, or for an asynchronous transfer runs the user callback in
interrupt context; either may start the next transfer, which would then
be deselected. For an asynchronous transfer the callback is also the
only place the chip select is released, since the check after
spi_context_wait_for_completion() never runs.
A transfer usually completes from the receive DMA callback, and the last
received word only lands once it has been shifted in, so the bus is
already idle by then. The next commit completes transmit-only transfers
from the transmit DMA callback instead, which fires while the last word
is still going out; it depends on this one.
The transmit callback can also be serviced after the last receive one,
when both are pending and the receive one is taken first. That path
completed the transfer without the TCR that ends the continuous frame,
so a hardware chip select stayed asserted and SR[MBF] stayed set. Issue
it there as well.
A timeout in the wait is reported to the caller as -EIO. The wait is
skipped in peripheral mode, where SR[MBF] follows the chip select driven
by the controller, and when SPI_HOLD_ON_CS keeps the frame open on
LPSPI version 2.
Measured on an i.MX RT1176 driving an ST7789 through MIPI DBI SPI on
v4.4.2, with the next commit applied and this one removed (SCK at 1 MHz):
- With a GPIO chip select, 150 of 609 clocks during panel init went out
with CS deasserted. The panel never left sleep and stayed blank.
- With hardware PCS0, DC changed before the last bit of each transfer,
so the panel latched the last byte of every parameter phase as a
command. The image came up colour-inverted: the low byte of a RASET
row number had been executed as INVON (0x21).
With both commits applied, both configurations draw the test pattern
correctly. With neither, they do as well.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hashimoto Kenichi <hashimoto.kenichi@genetec.co.jp>
Return -EALREADY for duplicate connect requests after releasing the common
semaphore. Avoid the connection failure path so the active interface is
preserved without emitting a failed connection event.
Tested on Pico 2 W through CMSIS-DAP and USB: duplicate-connect rejection
preserved the IP address and active interface without a connection event.
Four DHCP reconnects and 12,214 matching UDP echoes passed with no payload
mismatches.
Assisted-by: Codex:gpt-6.1-sol
Signed-off-by: Karl Von Richter <karl@embeint.com>
Use net_buf_unref to release AIROC buffers through the normal reference-
counted pool path and preserve NET_BUF_POOL_USAGE accounting. Calling
net_buf_destroy directly bypasses reference counting and can cause
incorrect available-buffer counts and assertions during radio startup.
Tested on Pico 2 W through CMSIS-DAP and USB: 4,096 buffer allocation and
release cycles and shared-reference checks passed.
Assisted-by: Codex:gpt-6.1-sol
Signed-off-by: Karl Von Richter <karl@embeint.com>
With CONFIG_PWM_CAPTURE, pwm_stm32_set_cycles() resets the trigger
input to LL_TIM_TS_ITR0 and clears the MSM bit before it enables a PWM
output. LL_TIM_TS_ITR0 is not defined on STM32WBA23/WBA25, which have
no TIM1, or on STM32WB0, and STM32WB0 has no
LL_TIM_DisableMasterSlaveMode(), so the driver fails to build for them.
Skip the trigger reset where LL_TIM_TS_ITR0 is not defined, as the
trigger input is unused while slave mode is disabled, and the MSM reset
on series whose timers have no master mode and hence no MSM bit. Commit
50cd54c80f ("drivers: pwm: stm32: guard slave trigger against missing
LL_TIM_TS_ macros") fixed the same problem for the devicetree slave
trigger.
Fixes#120935
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: YunHung Hua <oliverhua.us@gmail.com>
The stack keeps the air clear by holding to a duty cycle, which is what
EU868 needs and the only thing the region interface can express. Other
plans listen before they talk instead, and there is nowhere to say so.
Let a region hand back the width to measure, an RSSI threshold and a
listen time for a channel, and say how many further channels to draw when
one is busy. Selection draws at random, so the MAC listens on the channel
it drew and, where the channel is busy, draws again up to that many times
before reporting that it found nowhere to send.
The width is named separately from the channel because the bands that ask
for this measure a slice wider than the channel they are clearing, so the
datarate's own bandwidth is not what the listening is done over.
EU868 leaves the new callback NULL and is unaffected.
Listening needs a GFSK modem and an RSSI read, which not every driver
exposes, so LORA_HAS_GFSK_MODEM and LORA_HAS_RSSI mark the ones that do
and the SX126x driver selects both. A region that reaches the medium this
way depends on them, and so drops out of a build whose radio cannot scan
rather than failing at the first send.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
ETH_PHY_DRIVER is now selected by the Ethernet drivers that need a PHY
driver, so it no longer has to be enabled by default whenever
ETH_DRIVER is enabled.
This also makes the default of qemu_cortex_a9, which disabled the PHY
drivers without NET_QEMU_ETHERNET, redundant, so remove it.
Enable ETH_PHY_DRIVER in the Ethernet build_all test, as it builds the
PHY drivers without a MAC driver. On qemu_cortex_a9 delete the
zephyr,uart-pipe chosen node in the test, so that Ethernet instead of
SLIP networking is used and the GEM and its MDIO driver, needed by the
PHY driver, are built.
Built tests/drivers/build_all/ethernet for native_sim and
qemu_cortex_a9 and checked the resulting configuration of network
samples on nucleo_h753zi and qemu_cortex_a9.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Select ETH_PHY_DRIVER in every Ethernet driver that uses a PHY device,
so that the drivers no longer rely on it being enabled by default.
For the DWC MAC drivers the select is placed in the two core symbols,
which all glue drivers select. The NETC DSA driver selects it as well,
as the DSA ports need a PHY device.
The WIZnet and DM9051 drivers define their PHY device themselves and do
not need a driver from drivers/ethernet/phy. They select it too, as the
net shell only shows the PHY link state and provides the set_link
command with ETH_PHY_DRIVER enabled.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The driver emits a preprocessor warning whenever it is built for a QEMU
target, as the checksum offloading is always disabled there. The
warning can not be acted upon and makes the build fail when warnings
are treated as errors, as twister does.
Only warn when the offloading is disabled through the devicetree.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Let ETH_DWMAC_MMU depend on CPU_HAS_MMU instead of MMU.
MMU is selected by the architecture MMU options, which makes it part of
long chains of reverse dependencies. A driver depending on it creates
a Kconfig dependency loop as soon as one of the DWC cores selects a
symbol that leads to PINCTRL or CLOCK_CONTROL.
Built tests/drivers/build_all/ethernet for qemu_cortex_a9 with
NET_QEMU_ETHERNET and NET_L2_ETHERNET enabled, which builds
ETH_DWMAC_MMU through the board overlay of the test.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Select DMA instead of depending on DMA_XILINX_AXI_DMA. The DMA driver
is enabled by default once DMA is enabled and its devicetree node is
present, so the Ethernet driver no longer needs CONFIG_DMA=y to be set
by the application.
This also keeps the driver free of a dependency on DMA, which has a
long list of reverse dependencies and would create a Kconfig dependency
loop as soon as the driver selects a symbol that leads to PINCTRL.
Built samples/net/dhcpv4_client for cv64a6_genesys_2 with an overlay
adding the MAC, MDIO and PHY nodes.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
`UNUSED()` is a macro provided by the STM32 HAL. Avoid relying on it to
discard rvalues; instead, cast them to void plainly to achieve the
desired effect. This is the pattern commonly seen in tree (along with
use of `ARG_UNUSED()`, which seems wrong given it is for arguments, as
the name implies).
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
This commit uses the IRQ pin's GPIO_ACTIVE_HIGH / GPIO_ACTIVE_LOW to set
the polarity in the LSM6DSO. It also introduces a device tree property
to control whether that pin is push-pull or open-drain.
Signed-off-by: Dan Collins <dan@collinsnz.com>
The boot ROM can leave the flash in octal mode. Read the ID in octal
mode first and only send the SPI sequence that enables octal mode when
the flash does not answer with the Macronix manufacturer ID.
READ_ID_OPI was always the DTR sequence, which does not work in STR
mode. Add an STR sequence, selected like the other octal commands.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Jaro Van Landschoot <jaro.vanlandschoot@basalte.be>
Add support for configuring the i2c bus speed at runtime.
Fixes issue #120271.
Tested with: $i2c speed i3c@f03c00 1
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
The STM32F4 lines with an over-drive mode (F42x, F43x, F446, F469 and
F479) run HCLK at up to 168 MHz without it and at up to 180 MHz with
it, and APB1/APB2 at up to 42/84 MHz without it and 45/90 MHz with it
(DS9405, DS9484 and DS11189 Table 17, DS10693 Table 16). Only STM32F7
enabled over-drive, so an STM32F4 set to 180 MHz, such as
weact_stm32f446_core, ran out of specification.
Use the STM32F7 sequence on the STM32F4 lines that have PWR_CR_ODEN when
HCLK is above 168 MHz; it matches RM0090 section 5.1.4. Stop clears
ODEN and ODSWEN, and the clock setup that runs on exit from Stop sets
them again. Revision A of the STM32F42x/F43x has no over-drive (ES0206
2.2.12) and cannot run above 168 MHz either way.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: YunHung Hua <oliverhua.us@gmail.com>
Add an option of reading the SFDP data from flash chips and processing
it at runtime instead of requiring it to be provided in dts arrays.
Selection of the MSPI NOR flash instances for which the runtime SFDP
processing should be performed is done by setting the `use-runtime-sfdp`
property in their devicetree nodes.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>