add crr bob carrier board support to adrv9361z7035

This commit is contained in:
Xianjun Jiao 2020-01-22 15:39:03 +01:00
parent 02af882e9b
commit 28cf2becf1
4 changed files with 104 additions and 4 deletions

View File

@ -36,8 +36,8 @@ Openwifi was born in [ORCA project](https://www.orca-project.eu/) (EU's Horizon2
board_name|actual boards used|status
-------|-------|----
zc706_fmcs2|Xilinx ZC706 dev board + FMCOMMS2/3/4|done
adrv9361z7035|ADRV9361Z7035 SOM + ADRV1CRR-BOB carrier board|done. wait for test
adrv9361z7035_fmc|ADRV9361Z7035 SOM + ADRV1CRR-FMC carrier board|done
adrv9361z7035|ADRV9361Z7035 SOM + ADRV1CRR-BOB carrier board|done. performance issue.
adrv9361z7035_fmc|ADRV9361Z7035 SOM + ADRV1CRR-FMC carrier board|done. performance issue.
adrv9364z7020|ADRV9364Z7020 SOM + ADRV1CRR-BOB carrier board|future
zcu102_fmcs2|Xilinx ZCU102 dev board + FMCOMMS2/3/4|future
zcu102_9371|Xilinx ZCU102 dev board + ADRV9371|future

@ -1 +1 @@
Subproject commit ad670a664fe06df9d2b6ed81897422fbd5de4c87
Subproject commit 916a10289920bf34f68bb2d632c909542aef4991

2
user_space/rf_init_adrv9361z7035.sh Executable file → Normal file
View File

@ -2,7 +2,7 @@
home_dir=$(pwd)
cd /sys/bus/iio/devices/iio:device3
cd /sys/bus/iio/devices/iio:device1
echo "rx bw"
cat in_voltage_rf_bandwidth

View File

@ -0,0 +1,100 @@
#!/bin/sh
home_dir=$(pwd)
cd /sys/bus/iio/devices/iio:device3
echo "rx bw"
cat in_voltage_rf_bandwidth
#echo 37500000 > in_voltage_rf_bandwidth
echo 17500000 > in_voltage_rf_bandwidth
cat in_voltage_rf_bandwidth
sync
echo "tx_bw"
cat out_voltage_rf_bandwidth
echo 37500000 > out_voltage_rf_bandwidth
#echo 40000000 > out_voltage_rf_bandwidth
#echo 20000000 > out_voltage_rf_bandwidth
cat out_voltage_rf_bandwidth
sync
#sleep 0.5
echo "rx rate"
cat in_voltage_sampling_frequency
echo 40000000 > in_voltage_sampling_frequency
#echo 20000000 > in_voltage_sampling_frequency
cat in_voltage_sampling_frequency
sync
echo "tx rate"
cat out_voltage_sampling_frequency
echo 40000000 > out_voltage_sampling_frequency
#echo 20000000 > out_voltage_sampling_frequency
cat out_voltage_sampling_frequency
sync
sleep 1
echo "rx lo"
cat out_altvoltage0_RX_LO_frequency
#echo 2427000000 > out_altvoltage0_RX_LO_frequency
echo 5240000000 > out_altvoltage0_RX_LO_frequency
#echo 2320000000 > out_altvoltage0_RX_LO_frequency
cat out_altvoltage0_RX_LO_frequency
sync
echo "tx lo"
cat out_altvoltage1_TX_LO_frequency
#echo 2447000000 > out_altvoltage1_TX_LO_frequency
echo 5250000000 > out_altvoltage1_TX_LO_frequency
#echo 2320000000 > out_altvoltage1_TX_LO_frequency
cat out_altvoltage1_TX_LO_frequency
sync
#sleep 1
echo "rx0 agc fast_attack"
#echo "rx0 agc manual"
cat in_voltage0_gain_control_mode
echo fast_attack > in_voltage0_gain_control_mode
#echo manual > in_voltage0_gain_control_mode
cat in_voltage0_gain_control_mode
sync
echo "rx1 agc fast_attack"
#echo "rx1 agc manual"
cat in_voltage1_gain_control_mode
echo fast_attack > in_voltage1_gain_control_mode
#echo manual > in_voltage1_gain_control_mode
cat in_voltage1_gain_control_mode
sync
sleep 1
echo "rx0 gain to 70" # this set gain is gpio gain - 5dB (test with agc and read back gpio in driver)
cat in_voltage0_hardwaregain
echo 70 > in_voltage0_hardwaregain
cat in_voltage0_hardwaregain
sync
echo "rx1 gain to 70"
cat in_voltage1_hardwaregain
echo 70 > in_voltage1_hardwaregain
cat in_voltage1_hardwaregain
sync
echo "tx0 gain -89dB"
cat out_voltage0_hardwaregain
echo -89 > out_voltage0_hardwaregain
cat out_voltage0_hardwaregain
sync
echo "tx1 gain 0dB"
cat out_voltage1_hardwaregain
echo 0 > out_voltage1_hardwaregain
cat out_voltage1_hardwaregain
sync
echo "rssi"
cat in_voltage0_rssi
cat in_voltage1_rssi
cd $home_dir