Wiki

This version (11 Jun 2018 09:05) was approved by larsc.

ADRV9009/ADRV9008 Advanced Plugin

The ADRV9009/ADRV9008 Advanced plugin works with the IIO Oscilloscope. You always use the latest version if possible. Changing any field will immediately write changes which have been made to the ADRV9009 settings to the driver, but not to the HW unless the Save Settings button is pressed.

The ADRV9009 Advanced Plugin allows testing of different device driver initialization options and values. In contrast to the controls on the ADRV9009/ADRV9008 Main Plugin – the controls here are not part of the main driver API.

In the No-OS driver the values directly correspond to members of the (taliseInit_t) talInit init structure. For the ADRV9009 Linux Device Driver each control corresponds to a specific devicetree property. Since the ADRV9009 Linux driver uses the Analog Devices provided API driver. Ultimately also for the Linux driver maps any settings back to the taliseInit_t init structure. It's therefore recommended to consult the ADRV9009 User Guide for more information about the options provided here.

 taliseInit_t structure

See more details about ADRV9009/ADRV9008 Customization.

In order for the settings made on these plugin to take affect, the Save Settings button must be pressed. It should be noted that the driver then reinitialized the ADRV9009 from reset, which will rerun all calibrations and this may take several seconds to complete.

TIP: After you customized the driver for your application needs you can read back all values from the Linux debugfs:

This specifies any shell prompt running on the target

root@analog:/sys/bus/iio/devices/iio:device3# cd /sys/kernel/debug/iio/iio\:device3
root@analog:/sys/kernel/debug/iio/iio:device3# grep “” * | sed “s/:/ = </g” | awk '{print $0“>;”}'
adi,arm-gpio-config-en-tx-tracking-cals-enable = <0>;
adi,arm-gpio-config-en-tx-tracking-cals-gpio-pin-sel = <0>;
adi,arm-gpio-config-en-tx-tracking-cals-polarity = <0>;
adi,arm-gpio-config-orx1-tx-sel0-pin-enable = <0>;
adi,arm-gpio-config-orx1-tx-sel0-pin-gpio-pin-sel = <0>;
adi,arm-gpio-config-orx1-tx-sel0-pin-polarity = <0>;
adi,arm-gpio-config-orx1-tx-sel1-pin-enable = <0>;
adi,arm-gpio-config-orx1-tx-sel1-pin-gpio-pin-sel = <0>;
adi,arm-gpio-config-orx1-tx-sel1-pin-polarity = <0>;
adi,arm-gpio-config-orx2-tx-sel0-pin-enable = <0>;
adi,arm-gpio-config-orx2-tx-sel0-pin-gpio-pin-sel = <0>;
adi,arm-gpio-config-orx2-tx-sel0-pin-polarity = <0>;
adi,arm-gpio-config-orx2-tx-sel1-pin-enable = <0>;
adi,arm-gpio-config-orx2-tx-sel1-pin-gpio-pin-sel = <0>;
adi,arm-gpio-config-orx2-tx-sel1-pin-polarity = <0>;
adi,aux-dac-enables = <0>;
adi,aux-dac-resolution0 = <0>;
adi,aux-dac-resolution1 = <0>;

[ -- snip -- ]

Simply update the values here: ADRV9009 Devicetree Initialization

For the No-OS driver the mapping can be found here: ADRV9009 Customization


Screenshots / Descriptions

Clock Settings

 BIST

Calibrations

 BIST

TX Settings

 BIST

RX Settings

 BIST

Observation RX Settings

 BIST

Frequency Hopping Mode Setup

 BIST

PA Protection Settings

 BIST

Gain Settings

 BIST

AGC Settings

 BIST

ARM GPIO Settings

 BIST

AUX DAC Settings

 BIST

JESD204B Settings

 BIST

JESD204B Framer Settings

 BIST

JESD204B Deframer Settings

 BIST

BIST

 BIST

BIST stands for Build-In Self-Test. Selections on this Tab take immediately effect and therefore don’t require the Save Settings Button. Functionality exposed here is only meant to inject test patterns/data than can be used to validate the Digital Interface or functionality of the device.

There are three major facilities.

BIST TX NCO Tone

User selectable tone with frequency in kHz, that can be injected into the TX path.

BIST PRBS

Patterns and Pseudorandom Binary Sequence (PRBS) that can be injected into the RX path.

resources/tools-software/linux-software/adrv9009_advanced_plugin.txt · Last modified: 16 May 2018 14:44 by mhennerich