Skip to content

ad9740: Add pyadi-iio support - #707

Open
sarpadi wants to merge 4 commits into
mainfrom
dev_ad9740_wip
Open

ad9740: Add pyadi-iio support#707
sarpadi wants to merge 4 commits into
mainfrom
dev_ad9740_wip

Conversation

@sarpadi

@sarpadi sarpadi commented Dec 17, 2025

Copy link
Copy Markdown

Description

Adding pyadi support for the ad9740 DAC family - ad9740, ad9742, ad9744, ad9748

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

Tested in hardware with linux support

Test Configuration:

  • Hardware: Zedboard + eval ad9740 + Scope
  • OS: Linux

Documentation

If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have signed off all commits and they contain "Signed-off by: "
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@github-actions

github-actions Bot commented Dec 17, 2025

Copy link
Copy Markdown

Test Results

1 725 tests  ±0     470 ✅ ±0   13m 36s ⏱️ + 1m 30s
    1 suites ±0   1 255 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit d641b92. ± Comparison against base commit dc776eb.

This pull request removes 4 and adds 4 tests. Note that renamed tests count towards both.
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[22.5, 0.5, 13.0, 26.5, 32.0, 22.0, 32.5, 26.0, 7.5, 14.0]-depends={'gain_control_mode_chan0': 'spi', 'rx_ensm_mode_chan0': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[30.5, 19.0, 11.5, 11.0, 18.5, 27.5, 19.0, 25.0, 12.5, 16.5]-depends={'gain_control_mode_chan1': 'spi', 'rx_ensm_mode_chan1': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan0-val=[-12.3, -20.45, -11.5, -38.35, -5.0, -13.45, -23.6, -14.75, -16.7, -31.0]-depends={'atten_control_mode_chan0': 'spi'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan1-val=[-2.2, -5.8, -37.0, -29.3, -22.4, -28.35, -20.25, -1.75, -24.3, -9.1]-depends={'atten_control_mode_chan1': 'spi'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[1.0, 17.5, 27.0, 2.0, 16.5, 19.5, 14.5, 2.5, 20.5, 13.5]-depends={'gain_control_mode_chan0': 'spi', 'rx_ensm_mode_chan0': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[26.0, 8.0, 29.0, 26.5, 20.5, 0.5, 15.5, 15.5, 19.0, 21.0]-depends={'gain_control_mode_chan1': 'spi', 'rx_ensm_mode_chan1': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan0-val=[-28.4, -22.45, -3.15, -25.65, -19.05, -20.6, -35.25, -12.35, -30.65, -10.8]-depends={'atten_control_mode_chan0': 'spi'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan1-val=[-31.9, -20.6, -29.25, -15.9, -24.05, -31.7, -29.0, -39.05, -14.7, -28.7]-depends={'atten_control_mode_chan1': 'spi'}-classname=adi.adrv9002]

♻️ This comment has been updated with latest results.

@amiclaus amiclaus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as reference, check other PRs which add new parts:

  • add proper testing
  • add documentation
  • supported_parts.md needs update.
  • run pre-commit run --all-files

Signed-off-by: sarpadi <sergiu.arpadi@analog.com>
this keeps the example in sync with most recent driver updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants