summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Richard <thomas.richard@bootlin.com>2025-02-03 12:01:06 +0100
committerLee Jones <lee@kernel.org>2025-03-21 11:31:01 +0000
commitddbc194589e20ec0470a97715b2025e89e627cc5 (patch)
tree20e35cb90417399020414edfb78dd96fb61700cc
parentb904243247d1acb0ebbd4978feb639441dc51fc1 (diff)
mfd: cgbc: Add support for HWMON
The Board Controller has some internal sensors. Add a hwmon cell for the cgbc-hwmon driver which adds support for temperature, voltage, current and fan sensors. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://lore.kernel.org/r/20250203-congatec-board-controller-hwmon-v4-2-ff6c76a4662c@bootlin.com Signed-off-by: Lee Jones <lee@kernel.org>
-rw-r--r--drivers/mfd/cgbc-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
index 0b3788c2c1af..21cdb00bf7f2 100644
--- a/drivers/mfd/cgbc-core.c
+++ b/drivers/mfd/cgbc-core.c
@@ -236,6 +236,7 @@ static struct mfd_cell cgbc_devs[] = {
{ .name = "cgbc-gpio" },
{ .name = "cgbc-i2c", .id = 1 },
{ .name = "cgbc-i2c", .id = 2 },
+ { .name = "cgbc-hwmon" },
};
static int cgbc_map(struct cgbc_device_data *cgbc)