blob: 01a8d44425aa1c4b993fad750e4da0ca0c082420 [file] [log] [blame]
Andrey Smirnovb879a9c2013-04-18 20:46:08 -03001SI476x Driver Readme
2------------------------------------------------
3 Copyright (C) 2013 Andrey Smirnov <andrew.smirnov@gmail.com>
4
5TODO for the driver
6------------------------------
7
8- According to the SiLabs' datasheet it is possible to update the
9 firmware of the radio chip in the run-time, thus bringing it to the
10 most recent version. Unfortunately I couldn't find any mentioning of
11 the said firmware update for the old chips that I tested the driver
12 against, so for chips like that the driver only exposes the old
13 functionality.
14
15
16Parameters exposed over debugfs
17-------------------------------
18SI476x allow user to get multiple characteristics that can be very
19useful for EoL testing/RF performance estimation, parameters that have
20very little to do with V4L2 subsystem. Such parameters are exposed via
21debugfs and can be accessed via regular file I/O operations.
22
23The drivers exposes following files:
24
25* /sys/kernel/debug/<device-name>/acf
26 This file contains ACF(Automatically Controlled Features) status
27 information. The contents of the file is binary data of the
28 following layout:
29
Mauro Carvalho Chehabf1668f12016-07-17 20:32:28 -030030 ============= ============== ====================================
31 Offset Name Description
32 ============= ============== ====================================
33 0x00 blend_int Flag, set when stereo separation has
34 crossed below the blend threshold
35 0x01 hblend_int Flag, set when HiBlend cutoff
36 frequency is lower than threshold
37 0x02 hicut_int Flag, set when HiCut cutoff
38 frequency is lower than threshold
39 0x03 chbw_int Flag, set when channel filter
40 bandwidth is less than threshold
41 0x04 softmute_int Flag indicating that softmute
42 attenuation has increased above
43 softmute threshold
44 0x05 smute 0 - Audio is not soft muted
45 1 - Audio is soft muted
46 0x06 smattn Soft mute attenuation level in dB
47 0x07 chbw Channel filter bandwidth in kHz
48 0x08 hicut HiCut cutoff frequency in units of
49 100Hz
50 0x09 hiblend HiBlend cutoff frequency in units
51 of 100 Hz
52 0x10 pilot 0 - Stereo pilot is not present
53 1 - Stereo pilot is present
54 0x11 stblend Stereo blend in %
55 ============= ============== ====================================
Andrey Smirnovb879a9c2013-04-18 20:46:08 -030056
57
58* /sys/kernel/debug/<device-name>/rds_blckcnt
59 This file contains statistics about RDS receptions. It's binary data
60 has the following layout:
61
Mauro Carvalho Chehabf1668f12016-07-17 20:32:28 -030062 ============= ============== ====================================
63 Offset Name Description
64 ============= ============== ====================================
65 0x00 expected Number of expected RDS blocks
66 0x02 received Number of received RDS blocks
67 0x04 uncorrectable Number of uncorrectable RDS blocks
68 ============= ============== ====================================
Andrey Smirnovb879a9c2013-04-18 20:46:08 -030069
70* /sys/kernel/debug/<device-name>/agc
71 This file contains information about parameters pertaining to
72 AGC(Automatic Gain Control)
73
74 The layout is:
Mauro Carvalho Chehabf1668f12016-07-17 20:32:28 -030075
76 ============= ============== ====================================
77 Offset Name Description
78 ============= ============== ====================================
79 0x00 mxhi 0 - FM Mixer PD high threshold is
80 not tripped
81 1 - FM Mixer PD high threshold is
82 tripped
83 0x01 mxlo ditto for FM Mixer PD low
84 0x02 lnahi ditto for FM LNA PD high
85 0x03 lnalo ditto for FM LNA PD low
86 0x04 fmagc1 FMAGC1 attenuator resistance
87 (see datasheet for more detail)
88 0x05 fmagc2 ditto for FMAGC2
89 0x06 pgagain PGA gain in dB
90 0x07 fmwblang FM/WB LNA Gain in dB
91 ============= ============== ====================================
Andrey Smirnovb879a9c2013-04-18 20:46:08 -030092
93* /sys/kernel/debug/<device-name>/rsq
94 This file contains information about parameters pertaining to
95 RSQ(Received Signal Quality)
96
97 The layout is:
Mauro Carvalho Chehabf1668f12016-07-17 20:32:28 -030098
99 ============= ============== ====================================
100 Offset Name Description
101 ============= ============== ====================================
102 0x00 multhint 0 - multipath value has not crossed
103 the Multipath high threshold
104 1 - multipath value has crossed
105 the Multipath high threshold
106 0x01 multlint ditto for Multipath low threshold
107 0x02 snrhint 0 - received signal's SNR has not
108 crossed high threshold
109 1 - received signal's SNR has
110 crossed high threshold
111 0x03 snrlint ditto for low threshold
112 0x04 rssihint ditto for RSSI high threshold
113 0x05 rssilint ditto for RSSI low threshold
114 0x06 bltf Flag indicating if seek command
115 reached/wrapped seek band limit
116 0x07 snr_ready Indicates that SNR metrics is ready
117 0x08 rssiready ditto for RSSI metrics
118 0x09 injside 0 - Low-side injection is being used
119 1 - High-side injection is used
120 0x10 afcrl Flag indicating if AFC rails
121 0x11 valid Flag indicating if channel is valid
122 0x12 readfreq Current tuned frequency
123 0x14 freqoff Signed frequency offset in units of
124 2ppm
125 0x15 rssi Signed value of RSSI in dBuV
126 0x16 snr Signed RF SNR in dB
127 0x17 issi Signed Image Strength Signal
128 indicator
129 0x18 lassi Signed Low side adjacent Channel
130 Strength indicator
131 0x19 hassi ditto fpr High side
132 0x20 mult Multipath indicator
133 0x21 dev Frequency deviation
134 0x24 assi Adjacent channel SSI
135 0x25 usn Ultrasonic noise indicator
136 0x26 pilotdev Pilot deviation in units of 100 Hz
137 0x27 rdsdev ditto for RDS
138 0x28 assidev ditto for ASSI
139 0x29 strongdev Frequency deviation
140 0x30 rdspi RDS PI code
141 ============= ============== ====================================
Andrey Smirnovb879a9c2013-04-18 20:46:08 -0300142
143* /sys/kernel/debug/<device-name>/rsq_primary
144 This file contains information about parameters pertaining to
145 RSQ(Received Signal Quality) for primary tuner only. Layout is as
146 the one above.