41#include "adi_ad9081.h"
44#define MAX_NUM_MAIN_DATAPATHS 4
45#define MAX_NUM_CHANNELIZER 8
217#define AD9081_PERI_SEL_GPIO6 2
218#define AD9081_PERI_SEL_GPIO7 3
219#define AD9081_PERI_SEL_GPIO8 4
220#define AD9081_PERI_SEL_GPIO9 5
221#define AD9081_PERI_SEL_GPIO10 6
222#define AD9081_PERI_SEL_SYNCINB1_P 7
223#define AD9081_PERI_SEL_SYNCINB1_N 8
225#define AD9081_FFH_CHAN_SEL_REG_MODE 0
226#define AD9081_FFH_CHAN_SEL_1GPIO_MODE 1
227#define AD9081_FFH_CHAN_SEL_2GPIO_MODE 2
228#define AD9081_FFH_CHAN_SEL_3GPIO_MODE 3
229#define AD9081_FFH_CHAN_SEL_4GPIO_MODE 4
230#define AD9081_FFH_CHAN_SEL_GPIO0_EDGE_MODE 8
231#define AD9081_FFH_CHAN_SEL_GPIO1_EDGE_MODE 9
232#define AD9081_FFH_CHAN_SEL_GPIO2_EDGE_MODE 10
233#define AD9081_FFH_CHAN_SEL_GPIO3_EDGE_MODE 11
234#define AD9081_FFH_CHAN_SEL_FHT_EXP_MODE 12
239#define DEFRAMER_LINK0_TX 0
240#define DEFRAMER_LINK1_TX 1
241#define FRAMER_LINK0_RX 2
242#define FRAMER_LINK1_RX 3
struct ad7616_init_param init_param
Definition ad7616_sdz.c:106
#define MAX_NUM_MAIN_DATAPATHS
Definition ad9081.h:44
int32_t ad9081_init(struct ad9081_phy **device, const struct ad9081_init_param *init_param)
Definition ad9081.c:1447
#define MAX_NUM_CHANNELIZER
Definition ad9081.h:45
void ad9081_work_func(struct ad9081_phy *phy)
int32_t ad9081_remove(struct ad9081_phy *device)
Definition ad9081.c:1631
Header file of Clock Driver.
Header file of GPIO Interface.
Header file of SPI Interface.
uint8_t rx_ffh_gpio_mux_selection[6]
Definition ad9081.h:211
struct no_os_clk * dev_clk
Definition ad9081.h:160
struct no_os_gpio_init_param * ms_sync_enable
Definition ad9081.h:157
struct no_os_spi_init_param * spi_init
Definition ad9081.h:155
bool leader_follower_sync
Definition ad9081.h:164
bool continuous_sysref_mode_disable
Definition ad9081.h:177
struct no_os_gpio_init_param * lf_output_pin
Definition ad9081.h:159
uint32_t tx_channel_interpolation
Definition ad9081.h:190
uint32_t tx_full_scale_current_ua[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:188
uint8_t master_slave_sync_gpio_num
Definition ad9081.h:163
bool config_sync_0a_cmos_enable
Definition ad9081.h:172
uint8_t rx_main_enable[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:202
uint8_t sysref_cmos_single_end_term_pos
Definition ad9081.h:168
uint8_t sysref_cmos_single_end_term_neg
Definition ad9081.h:169
struct no_os_clk * jesd_rx_clk
Definition ad9081.h:161
bool sysref_cmos_input_enable
Definition ad9081.h:167
uint64_t adc_frequency_hz
Definition ad9081.h:195
uint8_t rx_channel_digital_gain_6db_enable[MAX_NUM_CHANNELIZER]
Definition ad9081.h:208
uint8_t rx_main_digital_gain_6db_enable[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:201
bool tx_disable
Definition ad9081.h:178
int64_t rx_main_nco_frequency_shift_hz[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:198
bool leader
Definition ad9081.h:165
uint8_t rx_channel_enable[MAX_NUM_CHANNELIZER]
Definition ad9081.h:209
int64_t tx_main_nco_frequency_shift_hz[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:185
uint32_t nyquist_zone[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:196
uint32_t rx_channel_decimation[MAX_NUM_CHANNELIZER]
Definition ad9081.h:205
uint8_t tx_dac_channel_crossbar_select[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:186
bool sysref_coupling_ac_en
Definition ad9081.h:166
uint32_t rx_main_decimation[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:199
uint8_t rx_channel_complex_to_real_enable[MAX_NUM_CHANNELIZER]
Definition ad9081.h:206
int64_t tx_channel_nco_frequency_shift_hz[MAX_NUM_CHANNELIZER]
Definition ad9081.h:191
struct no_os_gpio_init_param * lf_input_pin
Definition ad9081.h:158
uint16_t tx_channel_gain[MAX_NUM_CHANNELIZER]
Definition ad9081.h:192
bool jesd_sync_pins_01_swap_enable
Definition ad9081.h:171
bool nco_sync_direct_sysref_mode_enable
Definition ad9081.h:175
uint64_t dac_frequency_hz
Definition ad9081.h:182
struct link_init_param * jtx_link_rx[2]
Definition ad9081.h:212
bool rx_disable
Definition ad9081.h:179
uint8_t tx_maindp_dac_1x_non1x_crossbar_select[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:187
uint32_t sysref_average_cnt_exp
Definition ad9081.h:176
bool nco_test
Definition ad9081.h:180
uint32_t nco_sync_ms_extra_lmfc_num
Definition ad9081.h:174
uint32_t multidevice_instance_count
Definition ad9081.h:170
uint8_t rx_main_complex_to_real_enable[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:200
struct no_os_gpio_init_param * gpio_reset
Definition ad9081.h:156
int64_t rx_channel_nco_frequency_shift_hz[MAX_NUM_CHANNELIZER]
Definition ad9081.h:204
struct link_init_param * jrx_link_tx[2]
Definition ad9081.h:193
struct no_os_clk * jesd_tx_clk
Definition ad9081.h:162
uint8_t rx_channel_nco_mixer_mode[MAX_NUM_CHANNELIZER]
Definition ad9081.h:207
uint32_t tx_main_interpolation
Definition ad9081.h:184
uint8_t rx_cddc_nco_channel_select_mode[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:210
uint32_t lmfc_delay_dac_clk_cycles
Definition ad9081.h:173
uint32_t jrx_tpl_phase_adjust
Definition ad9081.h:51
unsigned long lane_rate_kbps
Definition ad9081.h:55
struct jesd204_link jesd204_link
Definition ad9081.h:50
uint8_t logiclane_mapping[8]
Definition ad9081.h:52
unsigned long lane_cal_rate_kbps
Definition ad9081.h:56
bool is_jrx
Definition ad9081.h:48
uint64_t lane_rate
Definition ad9081.h:54
adi_cms_jesd_param_t jesd_param
Definition ad9081.h:49
uint8_t link_converter_select[16]
Definition ad9081.h:53
uint8_t rx_fddc_mxr_if[MAX_NUM_CHANNELIZER]
Definition ad9081.h:117
uint8_t rx_fddc_gain_6db_en[MAX_NUM_CHANNELIZER]
Definition ad9081.h:126
bool sysref_cmos_input_en
Definition ad9081.h:78
bool is_initialized
Definition ad9081.h:92
struct no_os_clk * dev_clk
Definition ad9081.h:71
uint8_t rx_cddc_nco_channel_select_mode[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:128
uint8_t sync_ms_gpio_num
Definition ad9081.h:73
uint32_t lmfc_delay
Definition ad9081.h:87
uint32_t tx_main_interp
Definition ad9081.h:99
uint32_t tx_chan_interp
Definition ad9081.h:104
struct no_os_gpio_desc * ms_sync_en_gpio
Definition ad9081.h:66
int64_t rx_cddc_shift[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:114
uint32_t nco_sync_ms_extra_lmfc_num
Definition ad9081.h:88
bool tx_disable
Definition ad9081.h:93
uint64_t adc_frequency_hz
Definition ad9081.h:111
uint8_t sysref_cmos_single_end_term_pos
Definition ad9081.h:79
uint32_t sysref_average_cnt_exp
Definition ad9081.h:90
struct no_os_gpio_desc * lf_input_pin
Definition ad9081.h:67
adi_ad9081_device_t ad9081
Definition ad9081.h:81
uint32_t rx_nyquist_zone[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:112
bool tx_ffh_hopf_via_gpio_en
Definition ad9081.h:107
int64_t rx_fddc_shift[MAX_NUM_CHANNELIZER]
Definition ad9081.h:121
bool config_sync_0a_cmos_en
Definition ad9081.h:86
struct dac_settings_cache dac_cache
Definition ad9081.h:108
uint8_t rx_cddc_c2r[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:118
uint8_t rx_fddc_c2r[MAX_NUM_CHANNELIZER]
Definition ad9081.h:124
struct ad9081_jesd_link jrx_link_tx[2]
Definition ad9081.h:82
uint8_t rx_cddc_gain_6db_en[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:125
bool sysref_continuous_dis
Definition ad9081.h:91
struct no_os_clk * jesd_tx_clk
Definition ad9081.h:70
struct jesd204_dev * jdev
Definition ad9081.h:72
bool nco_sync_direct_sysref_mode_en
Definition ad9081.h:89
uint32_t adc_chan_decimation[MAX_NUM_CHANNELIZER]
Definition ad9081.h:122
int64_t tx_main_shift[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:102
bool l_f_sync
Definition ad9081.h:75
uint64_t dac_frequency_hz
Definition ad9081.h:97
struct no_os_clk * jesd_rx_clk
Definition ad9081.h:69
uint32_t multidevice_instance_count
Definition ad9081.h:84
uint8_t rx_fddc_select
Definition ad9081.h:127
uint32_t adc_dcm[2]
Definition ad9081.h:110
struct no_os_gpio_desc * gpio_reset
Definition ad9081.h:65
uint8_t sysref_cmos_single_end_term_neg
Definition ad9081.h:80
uint32_t tx_dac_fsc[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:106
uint8_t rx_ffh_gpio_mux_sel[6]
Definition ad9081.h:129
struct no_os_gpio_desc * lf_output_pin
Definition ad9081.h:68
uint8_t rx_fddc_dcm[MAX_NUM_CHANNELIZER]
Definition ad9081.h:123
uint32_t adc_main_decimation[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:115
bool config_sync_01_swapped
Definition ad9081.h:85
bool rx_disable
Definition ad9081.h:94
uint8_t rx_cddc_dcm[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:116
bool nco_test
Definition ad9081.h:95
bool leader
Definition ad9081.h:76
int64_t tx_chan_shift[MAX_NUM_CHANNELIZER]
Definition ad9081.h:105
uint8_t tx_dac_chan_xbar[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:100
bool sysref_coupling_ac_en
Definition ad9081.h:77
struct no_os_spi_desc * spi_desc
Definition ad9081.h:64
uint8_t tx_dac_chan_xbar_1x_non1x[MAX_NUM_MAIN_DATAPATHS]
Definition ad9081.h:101
uint8_t rx_cddc_select
Definition ad9081.h:119
struct ad9081_jesd_link jtx_link_rx[2]
Definition ad9081.h:83
uint16_t chan_gain[MAX_NUM_CHANNELIZER]
Definition ad9081.h:60
Definition ad9361_util.h:63
uint32_t version
Definition ad9081.h:146
uint32_t bits_per_sample
Definition ad9081.h:139
uint32_t samples_per_converter_per_frame
Definition ad9081.h:136
uint32_t octets_per_frame
Definition ad9081.h:134
uint32_t device_id
Definition ad9081.h:133
uint32_t dual_link
Definition ad9081.h:145
uint8_t link_converter_select[16]
Definition ad9081.h:149
uint32_t tpl_phase_adjust
Definition ad9081.h:151
uint32_t frames_per_multiframe
Definition ad9081.h:135
uint32_t lanes_per_device
Definition ad9081.h:142
uint32_t subclass
Definition ad9081.h:143
uint32_t converter_resolution
Definition ad9081.h:138
uint8_t logical_lane_mapping[8]
Definition ad9081.h:147
uint32_t control_bits_per_sample
Definition ad9081.h:141
uint32_t high_density
Definition ad9081.h:137
uint32_t converters_per_device
Definition ad9081.h:140
uint32_t link_mode
Definition ad9081.h:144
Definition no_os_clk.h:58
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128