Staging/adrv903x ram capture - #3445
Open
stefpopa wants to merge 2 commits into
Open
Conversation
Add a debugfs interface for quick single-shot RX/ORx data captures from the ADRV903x RAM capture hardware. This provides a simple way to capture raw ADC samples for debugging and signal analysis. Usage: echo "<channel> <length>" > /sys/kernel/debug/iio/iio:deviceX/rx_data_capture cat /sys/kernel/debug/iio/iio:deviceX/rx_data_capture Where channel is 0-7 for RX0-RX7 or 8-9 for ORX0-ORX1, and length is one of the hardware-supported capture sizes (32 to 32768 samples). The memory allocation is done before taking the mutex to allow sleeping allocations (GFP_KERNEL) without holding the device lock. Signed-off-by: Stefan Popa <stefan.popa@analog.com>
stefpopa
requested review from
CiprianRegus,
amiclaus,
btogorean,
buha,
chegbeli,
danmois,
dbogdan,
machschmitt,
mhennerich,
nunojsa and
rbolboac
as code owners
July 20, 2026 11:13
Add a full IIO device (adrv903x-ramc) for RX/ORx RAM capture with proper I/Q channel support and IIO buffer infrastructure. Features: - 10 I/Q channel pairs: voltage0_i/q through voltage9_q (RX0-7, ORX0-1) - Single-shot capture triggered by buffer enable - Hardware constraint enforcement via available_scan_masks (one channel pair at a time) - Configurable sample count via sample_count sysfs attribute - 28-bit signed I/Q data with proper sign extension and bank demuxing The capture hardware can only sample one RX/ORX channel at a time, which is enforced through available_scan_masks. Users can capture data using iio_readdev or IIO Oscilloscope. Example usage: iio_readdev -u local: -s 1024 adrv903x-ramc voltage0_i voltage0_q Signed-off-by: Stefan Popa <stefan.popa@analog.com>
stefpopa
force-pushed
the
staging/adrv903x_ram_capture
branch
from
July 22, 2026 09:28
31fde24 to
57266eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
PR Type
PR Checklist