Skip to contentSkip to conversation

AR9280 How does it work - Power Detector Register AR_PHY_TPCRG1 & AR_PHY_TPCRG5

ath9k-devel Дрюков Евгений 1 participant 1 message Jan 21, 2016

lore
Share & tools
lore
#0 lore raw

CloseLoop power regulator.
EPROM Version:0x0e Revision:0x16
Calibration per freq table 5Ghz: Idx:0->5300 Idx:1->5400 Idx:2->5500 Idx:3->5600 Idx:4->5700 Idx:5->5750 Idx:6->5825

EEPROM PWR\VPD table dump:
Chain:0 FreqTable:0 PD_GAIN:0?? 30\10? 52\23? 72\49? 92\98 103\154 Chain:0 FreqTable:0 PD_GAIN:1?? 70\23? 79\31? 90\47? 96\59 103\77 Chain:0 FreqTable:0 PD_GAIN:2?? 0\0? 0\0 0\0 0\0 0\0 Chain:0 FreqTable:0 PD_GAIN:3?? 0\0? 0\0 0\0 0\0 0\0

EEPROM GainOverlap = 6
EEPROM xpdMask = 0x06 -- 0110

Driver make two VPD table:
table1 10-148 sizeof 37
table2? 23-74 sizeof 17

Next step - make PDADC table.
at9280 start -5db step 0.5db

PDAC table:
00:? 000 000 000 000 000 000 001 002 003 004?<< -5db
10:? 005 006 007 008 009 010 011 012 013 014 << 0db
20:? 015 017 018 019 020 021 023 025 028 030?<< 5db
30:? 033 036 038 041 043 046 049 053 058 063?<< 10db
40:? 068 073 078 083 088 093 098 108 118 158?<< 15db
50:? 028 030 032 035 038 041 044 047 051 055?<< 20db
60:? 059 064 069 074 079 084 089 094 099 104?<< 25db <<? MAX_RATE_POWER=63 = 31db 70:? 104 104 104 104 104 104 104 104 104 104?<< 30db
80:? 104 104 104 104 104 104 104 104 104 104?<< 35db
90:? 104 104 104 104 104 104 104 104 104 104?<< 40db
100:? 104 104 104 104 104 104 104 104 104 104 << 45db
110:? 104 104 104 104 104 104 104 104 104 104? << 50db
120: 104 104 104 104 104 104 104 104?<< 55db

GainOverlap_t2 = 6
GainBoundaries0:43
GainBoundaries1:51
GainBoundaries2:51
GainBoundaries3:51

Why GainBoundaries0 = 43 ???
Max power PD_GainTable1 =?? Chain:0 FreqTable:0 PD_GAIN:0?? 30\10? 52\23? 72\49? 92\98 103\154 103\154 == 103 \ 2 = Pwr:51\ADC:154 for table1

PDADC[43] = 83 <-- GainBoundaries0
PDADC[44] = 88
PDADC[45] = 93
PDADC[46] = 98
PDADC[47] = 108
PDADC[48] = 118
PDADC[49] = 158 <<< interpolate value? <<< <-- GainBoundaries0 + GainOverlap PDADC[50] = 28
PDADC[51] = 30? <<< GainBoundaries1 GainBoundaries2 GainBoundaries3 PDADC[52] = 32
PDADC[53] = 35
PDADC[54] = 38
PDADC[55] = 41

?an anyone have any ideas on how to work the registers ?

xpdMask = 0x06 -- 0110
numXpdGain = 2
AR_PHY_TPCRG1

Quoted 4 lines

AR_PHY_TPCRG1_NUM_PD_GAIN = numXpdGain - 1 =? 1
AR_PHY_TPCRG1_PD_GAIN_1 = 2
AR_PHY_TPCRG1_PD_GAIN_2 = 1
AR_PHY_TPCRG1_PD_GAIN_3 = 0

GainOverlap = 6
GainBoundaries0:43
GainBoundaries1:51
GainBoundaries2:51
GainBoundaries3:51
AR_PHY_TPCRG5

Quoted 5 lines

AR_PHY_TPCRG5_PD_GAIN_OVERLAP = 6
AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_1 = 43
AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_2 = 51
AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_3 = 51
AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_4 = 51

Best regards, Eugene.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20160121/9d69e854/attachment.htm