AnsweredAssumed Answered

Re: AD9371 Rx AGC gain table

Question asked by bensonyeung2 on Jan 5, 2017
Latest reply on May 12, 2017 by mhennerich
Branched from an earlier discussion
Branched to a new discussion

Vinod,

 

I tried to follow the instruction from

 

AD9371 highly integrated, wideband RF transceiver Linux device driver [Analog Devices Wiki] 

 

root@analog:/sys/bus/iio/devices/iio:device3# ls /lib/firmware/ad9* ad9371_std_gaintable  root@analog:/sys/bus/iio/devices/iio:device3# cat /lib/firmware/ad9371_std_gaintable > gain_table_config

But what I got was:

root@analog:/sys/bus/iio/devices/iio:device1#
root@analog:/sys/bus/iio/devices/iio:device1# cat gain_table_config
cat: gain_table_config: Permission denied

Does this mean this feature is not supported in a10soc platform(altera_4.6 branch)?

From UG-992, looks like I need to mykonos_user.c and modify the gain table directly and rebuild
linux?

 * \brief Contains Mykonos default gain table values for Rx, ObsRx, and SnRx
 *
 * Mykonos API version: 1.2.05.3475
 */

#include <linux/kernel.h>
#include "t_mykonos.h"
#include "mykonos_user.h"

/**
 * \brief Default Rx gain table settings
 */
uint8_t RxGainTable [61][4] =
{
    /* Order: {FE table, External Ctl, Digital Gain/Atten, Enable Atten} */
        {0, 0, 0, 0},  /* Gain index 255 */
        {3, 0, 2, 1},  /* Gain index 254 */
        {6, 0, 3, 1},  /* Gain index 253 */
        {10, 0, 0, 0}, /* Gain index 252 */
        {13, 0, 1, 1}, /* Gain index 251 */
        {16, 0, 0, 0}, /* Gain index 250 */
        {18, 0, 3, 1}, /* Gain index 249 */
        {21, 0, 1, 1}, /* Gain index 248 */
        {23, 0, 3, 1}, /* Gain index 247 */
        {25, 0, 4, 1}, /* Gain index 246 */



Let me know if this approach is correct?

Benson

Outcomes