si476x.rst 5.9 KB

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