aboutsummaryrefslogtreecommitdiff
path: root/drivers/hwmon/gsc-hwmon.c
AgeCommit message (Collapse)AuthorFilesLines
2020-09-23hwmon: (gsc-hwmon) add fan sensorTim Harvey1-3/+29
Add a fan sensor to report RPM's from a fan tach input. Signed-off-by: Tim Harvey <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
2020-08-27hwmon: (gsc-hwmon) Scale temperature to millidegreesTim Harvey1-0/+1
The GSC registers report temperature in decidegrees celcius so we need to scale it to represent the hwmon sysfs API of millidegrees. Cc: [email protected] Fixes: 3bce5377ef66 ("hwmon: Add Gateworks System Controller support") Signed-off-by: Tim Harvey <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
2020-07-19hwmon: (gsc) add 16bit pre-scaled voltage modeTim Harvey1-3/+5
add a 16-bit pre-scaled voltage mode to adc and clarify that existing pre-scaled mode is 24bit. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
2020-05-20hwmon: Add Gateworks System Controller supportTim Harvey1-0/+390
The Gateworks System Controller has a hwmon sub-component that exposes up to 16 ADC's, some of which are temperature sensors, others which are voltage inputs. The ADC configuration (register mapping and name) is configured via device-tree and varies board to board. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Lee Jones <[email protected]>