acrn-kernel/Documentation/hwmon
Armin Wolf 9aba03fb51 hwmon: (ftsteutates) Fix scaling of measurements
[ Upstream commit ca8fd8c16a ]

A user complained that the ftsteutates driver was displaying
bogus values since its introduction. This happens because the
sensor measurements need to be scaled in order to produce
meaningful results:
- the fan speed needs to be multiplied by 60 since its in RPS
- the temperature is in degrees celsius and needs an offset of 64
- the voltage is in 1/256 of 3.3V

The offical datasheet says the voltage needs to be divided by 256,
but this is likely an off-by-one-error, since even the BIOS
devides by 255 (otherwise 3.3V could not be measured).

The voltage channels additionally need a board-specific multiplier,
however this can be done by the driver since its board-specific.

The reason the missing scaling of measurements is the way Fujitsu
used this driver when it was still out-of-tree. Back then, all
scaling was done in userspace by libsensors, even the generic one.

Tested on a Fujitsu DS3401-B1.

Fixes: 08426eda58 ("hwmon: Add driver for FTS BMC chip "Teutates"")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20221224041855.83981-2-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:10 +01:00
..
abituguru-datasheet.rst
abituguru.rst
abituguru3.rst
acpi_power_meter.rst
ad7314.rst
adc128d818.rst
adm1021.rst
adm1025.rst
adm1026.rst
adm1031.rst
adm1177.rst
adm1266.rst
adm1275.rst
adm9240.rst
ads7828.rst
adt7410.rst
adt7411.rst
adt7462.rst
adt7470.rst
adt7475.rst
aht10.rst
amc6821.rst
aquacomputer_d5next.rst hwmon: (aquacomputer_d5next) Add support for Aquacomputer High Flow Next 2022-09-19 06:17:06 -07:00
asb100.rst
asc7621.rst
aspeed-pwm-tacho.rst
asus_ec_sensors.rst hwmon: (asus-ec-sensors) add definitions for ROG ZENITH II EXTREME 2022-07-13 08:39:42 -07:00
asus_wmi_sensors.rst hwmon: (asus_wmi_sensors) Support X370 Asus WMI. 2021-12-26 15:02:05 -08:00
bcm54140.rst
bel-pfe.rst
bpa-rs600.rst
bt1-pvt.rst
coretemp.rst
corsair-cpro.rst
corsair-psu.rst hwmon: (corsair-psu) Add USB id of the new HX1500i psu 2022-10-22 06:59:12 -07:00
da9052.rst
da9055.rst
dell-smm-hwmon.rst hwmon: (dell-smm) Improve documentation 2022-07-27 05:59:33 -07:00
dme1737.rst
dps920ab.rst
drivetemp.rst
ds620.rst
ds1621.rst
emc6w201.rst
emc1403.rst
emc2103.rst
emc2305.rst docs: hwmon: add emc2305.rst to docs 2022-09-19 06:17:06 -07:00
f71805f.rst
f71882fg.rst
fam15h_power.rst
fsp-3y.rst
ftsteutates.rst hwmon: (ftsteutates) Fix scaling of measurements 2023-03-10 09:33:10 +01:00
g760a.rst
g762.rst
gl518sm.rst
gsc-hwmon.rst
hih6130.rst
hwmon-kernel-api.rst hwmon: Make chip parameter for with_info API mandatory 2022-05-22 11:32:31 -07:00
ibm-cffps.rst
ibmaem.rst
ibmpowernv.rst
ina2xx.rst
ina209.rst
ina238.rst
ina3221.rst
index.rst hwmon: (pmbus) Add driver for the TEXAS TPS546D24 Buck Converter. 2022-09-25 14:21:52 -07:00
inspur-ipsps1.rst
intel-m10-bmc-hwmon.rst
ir35221.rst
ir36021.rst
ir38064.rst hwmon/pmbus: (ir38064) Add support for IR38060, IR38164 IR38263 2021-12-26 15:02:07 -08:00
isl68137.rst
it87.rst
jc42.rst
k8temp.rst
k10temp.rst
lan966x.rst hwmon: add driver for the Microchip LAN966x SoC 2022-05-22 11:32:30 -07:00
lineage-pem.rst
lm63.rst
lm70.rst hwmon: (lm70) Add ti,tmp125 support 2022-02-27 17:03:19 -08:00
lm73.rst
lm75.rst
lm77.rst
lm78.rst
lm80.rst
lm83.rst
lm85.rst
lm87.rst
lm90.rst hwmon: (lm90) Add support and detection of Philips/NXP NE1618 2022-07-13 08:38:19 -07:00
lm92.rst
lm93.rst
lm25066.rst
lm95234.rst
lm95245.rst
lochnagar.rst
lt7182s.rst hwmon: (pmbus) Add support for Analog Devices LT7182S 2022-07-13 08:38:19 -07:00
ltc2945.rst
ltc2947.rst
ltc2978.rst
ltc2990.rst
ltc2992.rst
ltc3815.rst
ltc4151.rst
ltc4215.rst
ltc4245.rst
ltc4260.rst
ltc4261.rst
max127.rst
max197.rst
max1619.rst
max1668.rst
max6620.rst
max6639.rst hwmon: (max6639) Update Datasheet URL 2022-02-27 17:03:17 -08:00
max6642.rst
max6650.rst
max6697.rst
max8688.rst
max15301.rst
max16064.rst
max16065.rst
max16601.rst hwmon: (pmbus/max16601) Add MAX16602 support 2022-05-20 10:57:05 -07:00
max20730.rst
max20751.rst
max31722.rst
max31730.rst
max31760.rst docs: hwmon: add max31760 documentation 2022-09-20 07:11:32 -07:00
max31785.rst
max31790.rst hwmon: (max31790) add fanN_enable 2022-09-19 06:17:05 -07:00
max34440.rst
mc13783-adc.rst
mcp3021.rst
menf21bmc.rst
mlxreg-fan.rst
mp2888.rst
mp2975.rst
mp5023.rst hwmon: (pmbus) Add support for MPS Multi-phase mp5023 2021-12-26 15:02:06 -08:00
nct6683.rst
nct6775.rst
nct7802.rst
nct7904.rst
npcm750-pwm-fan.rst
nsa320.rst
ntc_thermistor.rst
nzxt-kraken2.rst
nzxt-smart2.rst hwmon: add driver for NZXT RGB&Fan Controller/Smart Device v2. 2021-12-26 15:02:07 -08:00
occ.rst
pc87360.rst
pc87427.rst
pcf8591.rst
peci-cputemp.rst docs: hwmon: Document PECI drivers 2022-02-09 08:04:44 +01:00
peci-dimmtemp.rst docs: hwmon: Document PECI drivers 2022-02-09 08:04:44 +01:00
pim4328.rst
pli1209bc.rst hwmon: (pmbus) Add support for pli1209bc 2022-02-27 17:03:19 -08:00
pm6764tr.rst
pmbus-core.rst hwmon: (pmbus) Move pec attribute to I2C device 2022-07-13 08:38:17 -07:00
pmbus.rst
powr1220.rst
pwm-fan.rst hwmon: (pwm-fan) Switch regulator dynamically 2022-09-25 14:22:11 -07:00
pxe1610.rst
q54sj108a2.rst
raspberrypi-hwmon.rst
sbrmi.rst
sbtsi_temp.rst
sch5627.rst hwmon: (sch5627) Add pwmX_auto_channels_temp support 2022-02-27 17:03:19 -08:00
sch5636.rst
scpi-hwmon.rst
sht3x.rst
sht4x.rst
sht15.rst
sht21.rst
shtc1.rst
sis5595.rst
sl28cpld.rst
smm665.rst
smsc47b397.rst
smsc47m1.rst
smsc47m192.rst
sparx5-temp.rst
stpddc60.rst
submitting-patches.rst docs: process: remove outdated submitting-drivers.rst 2022-07-14 15:03:57 -06:00
sy7636a-hwmon.rst hwmon: sy7636a: Fix trivial 'underline too short' warning 2022-03-08 09:44:05 +00:00
sysfs-interface.rst ABI: hwmon: Document "label" sysfs attribute 2022-02-27 17:03:16 -08:00
tc74.rst
tc654.rst
thmc50.rst
tmp102.rst
tmp103.rst
tmp108.rst
tmp401.rst
tmp421.rst
tmp464.rst hwmon: Add driver for Texas Instruments TMP464 and TMP468 2022-03-03 07:40:42 -08:00
tmp513.rst
tps546d24.rst hwmon: (pmbus) Add driver for the TEXAS TPS546D24 Buck Converter. 2022-09-25 14:21:52 -07:00
tps23861.rst
tps40422.rst
tps53679.rst
twl4030-madc-hwmon.rst
ucd9000.rst
ucd9200.rst
userspace-tools.rst
vexpress.rst
via686a.rst
vt1211.rst
w83l785ts.rst
w83l786ng.rst
w83627ehf.rst
w83627hf.rst
w83773g.rst
w83781d.rst
w83791d.rst
w83792d.rst
w83793.rst
w83795.rst
wm831x.rst
wm8350.rst
xdpe152c4.rst hwmon: (pmbus) Add support for Infineon Digital Multi-phase xdp152 family controllers 2022-05-22 11:32:20 -07:00
xdpe12284.rst hwmon: (xdpe12284) Add support for xdpe11280 2022-03-02 09:51:11 -08:00
xgene-hwmon.rst
zl6100.rst