]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: cgbc: Add support for HWMON
authorThomas Richard <thomas.richard@bootlin.com>
Mon, 3 Feb 2025 11:01:06 +0000 (12:01 +0100)
committerLee Jones <lee@kernel.org>
Fri, 21 Mar 2025 11:31:01 +0000 (11:31 +0000)
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>
drivers/mfd/cgbc-core.c

index 0b3788c2c1afdbaea13e88ab82b18d1160b16597..21cdb00bf7f220ed91af95f0075a8b5e51b107d1 100644 (file)
@@ -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)