Skip to content

thermal: Add support of multiple sensors

Alexandre Bailon linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: thermal: Update the bindings to support multiple sensorsDocumentation/devicetree/bindings/thermal/thermal-zones.yaml+27 -31 reply
2/2Thermal: Add support of multiple sensorsdrivers/thermal/thermal_of.c+432 -590 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] thermal: Add support of multiple sensors

Following this comment [1], this updates thermal_of to support multiple sensors.

This has some limitations:
- A sensor must have its own termal zone, even if it is also registered inside a thermal zone supporting multiple sensors.
- Some callbacks (such as of_thermal_set_trips) have been updated to support multiple sensors but I don't know if this really make sense.
- of_thermal_get_trend have not been updated to support multiple sensors. This would probably make sense to support it but I am not sure how to do it, especially for the average.

[1]: https://patchwork.kernel.org/comment/24723927/

Alexandre Bailon (2):
dt-bindings: thermal: Update the bindings to support multiple sensor
Thermal: Add support of multi sensor

 .../bindings/thermal/thermal-zones.yaml       |  20 +-
 drivers/thermal/thermal_of.c                  | 491 +++++++++++++++---
 2 files changed, 449 insertions(+), 62 deletions(-)
Signature · 1 line
2.34.1