830-v6.7-48-thermal-drivers-mediatek-lvts_thermal-Update-calibra.patch 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From 5d126a3c87cf7964b28bacf3826eea4266265bce Mon Sep 17 00:00:00 2001
  2. From: Balsam CHIHI <[email protected]>
  3. Date: Tue, 17 Oct 2023 21:05:45 +0200
  4. Subject: [PATCH 42/42] thermal/drivers/mediatek/lvts_thermal: Update
  5. calibration data documentation
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Update LVTS calibration data documentation for mt8192 and mt8195.
  10. Signed-off-by: Balsam CHIHI <[email protected]>
  11. Reviewed-by: Nícolas F. R. A. Prado <[email protected]>
  12. [[email protected]: Fix issues pointed out by Nícolas F. R. A. Prado <[email protected]>]
  13. Signed-off-by: Bernhard Rosenkränzer <[email protected]>
  14. Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
  15. Reviewed-by: Alexandre Mergnat <[email protected]>
  16. Signed-off-by: Daniel Lezcano <[email protected]>
  17. Link: https://lore.kernel.org/r/[email protected]
  18. ---
  19. drivers/thermal/mediatek/lvts_thermal.c | 31 +++++++++++++++++++++++--
  20. 1 file changed, 29 insertions(+), 2 deletions(-)
  21. --- a/drivers/thermal/mediatek/lvts_thermal.c
  22. +++ b/drivers/thermal/mediatek/lvts_thermal.c
  23. @@ -616,7 +616,34 @@ static int lvts_sensor_init(struct devic
  24. * The efuse blob values follows the sensor enumeration per thermal
  25. * controller. The decoding of the stream is as follow:
  26. *
  27. - * stream index map for MCU Domain :
  28. + * MT8192 :
  29. + * Stream index map for MCU Domain mt8192 :
  30. + *
  31. + * <-----mcu-tc#0-----> <-----sensor#0-----> <-----sensor#1----->
  32. + * 0x01 | 0x02 | 0x03 | 0x04 | 0x05 | 0x06 | 0x07 | 0x08 | 0x09 | 0x0A | 0x0B
  33. + *
  34. + * <-----sensor#2-----> <-----sensor#3----->
  35. + * 0x0C | 0x0D | 0x0E | 0x0F | 0x10 | 0x11 | 0x12 | 0x13
  36. + *
  37. + * <-----sensor#4-----> <-----sensor#5-----> <-----sensor#6-----> <-----sensor#7----->
  38. + * 0x14 | 0x15 | 0x16 | 0x17 | 0x18 | 0x19 | 0x1A | 0x1B | 0x1C | 0x1D | 0x1E | 0x1F | 0x20 | 0x21 | 0x22 | 0x23
  39. + *
  40. + * Stream index map for AP Domain mt8192 :
  41. + *
  42. + * <-----sensor#0-----> <-----sensor#1----->
  43. + * 0x24 | 0x25 | 0x26 | 0x27 | 0x28 | 0x29 | 0x2A | 0x2B
  44. + *
  45. + * <-----sensor#2-----> <-----sensor#3----->
  46. + * 0x2C | 0x2D | 0x2E | 0x2F | 0x30 | 0x31 | 0x32 | 0x33
  47. + *
  48. + * <-----sensor#4-----> <-----sensor#5----->
  49. + * 0x34 | 0x35 | 0x36 | 0x37 | 0x38 | 0x39 | 0x3A | 0x3B
  50. + *
  51. + * <-----sensor#6-----> <-----sensor#7-----> <-----sensor#8----->
  52. + * 0x3C | 0x3D | 0x3E | 0x3F | 0x40 | 0x41 | 0x42 | 0x43 | 0x44 | 0x45 | 0x46 | 0x47
  53. + *
  54. + * MT8195 :
  55. + * Stream index map for MCU Domain mt8195 :
  56. *
  57. * <-----mcu-tc#0-----> <-----sensor#0-----> <-----sensor#1----->
  58. * 0x01 | 0x02 | 0x03 | 0x04 | 0x05 | 0x06 | 0x07 | 0x08 | 0x09
  59. @@ -627,7 +654,7 @@ static int lvts_sensor_init(struct devic
  60. * <-----mcu-tc#2-----> <-----sensor#4-----> <-----sensor#5-----> <-----sensor#6-----> <-----sensor#7----->
  61. * 0x13 | 0x14 | 0x15 | 0x16 | 0x17 | 0x18 | 0x19 | 0x1A | 0x1B | 0x1C | 0x1D | 0x1E | 0x1F | 0x20 | 0x21
  62. *
  63. - * stream index map for AP Domain :
  64. + * Stream index map for AP Domain mt8195 :
  65. *
  66. * <-----ap--tc#0-----> <-----sensor#0-----> <-----sensor#1----->
  67. * 0x22 | 0x23 | 0x24 | 0x25 | 0x26 | 0x27 | 0x28 | 0x29 | 0x2A