[PATCH v2 0/3] hwmon: (amc6821) Add Cooling device support

From: João Paulo Gonçalves
Date: Tue Jun 03 2025 - 07:46:26 EST


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).

v2:
- Remove devm_action on release and call of_node_put() manually
- Change of_pwm_polarity to store resulting pwm polarity on driver private data
v1:
- https://lore.kernel.org/lkml/20250530-b4-v1-amc6821-cooling-device-support-b4-v1-0-7bb98496c969@xxxxxxxxxxx/

Signed-off-by: João Paulo Gonçalves <joao.goncalves@xxxxxxxxxxx>
---
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 | 115 +++++++++++++++++++--
2 files changed, 112 insertions(+), 9 deletions(-)
---
base-commit: 7e801aa73daa456c4404fde177d3fc397661abf0
change-id: 20250602-b4-amc6821-cooling-device-support-c03b0a899357

Best regards,
--
João Paulo Gonçalves <joao.goncalves@xxxxxxxxxxx>