Photonicat PMU MCU will send status reports regularly,
including board temperature.
Signed-off-by: Junhao Xie <bigfoot@xxxxxxxxxxx>
---
drivers/hwmon/Kconfig | 10 +++
drivers/hwmon/Makefile | 1 +
drivers/hwmon/photonicat-hwmon.c | 129 +++++++++++++++++++++++++++++++
+static int pcat_hwmon_probe(struct platform_device *pdev)...
+{
+ dev_info(dev, "Board Temprature: %d degress C\n", hwmon->temperature);
+
+ hwmon->hwmon = devm_hwmon_device_register_with_groups(
+ dev, label, hwmon, pcat_pmu_temp_groups);
+