Add support for using the AMC6821 as a cooling device. The AMC6821
registers with the thermal framework only if the `cooling-levels`
property is present in the fan device tree child node. Existing behavior
is unchanged, so the AMC6821 can still be used without the thermal
framework (hwmon only).
Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>
---
João Paulo Gonçalves (3):
dt-bindings: hwmon: amc6821: Add cooling levels
hwmon: (amc6821) Move reading fan data from OF to a function
hwmon: (amc6821) Add cooling device support
.../devicetree/bindings/hwmon/ti,amc6821.yaml | 6 +
drivers/hwmon/amc6821.c | 147 ++++++++++++++++++---
2 files changed, 131 insertions(+), 22 deletions(-)
---
base-commit: 7e801aa73daa456c4404fde177d3fc397661abf0
change-id: 20250530-b4-v1-amc6821-cooling-device-support-b4-41efee7492d8
Best regards,
--
João Paulo Gonçalves <joao.goncalves@toradex.com>