WSL2-Linux-Kernel/Documentation/hwmon
Armin Wolf 1721badebf 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:39:21 +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
asb100.rst
asc7621.rst
aspeed-pwm-tacho.rst
bcm54140.rst
bel-pfe.rst
bpa-rs600.rst
bt1-pvt.rst
coretemp.rst
corsair-cpro.rst
corsair-psu.rst
da9052.rst
da9055.rst
dell-smm-hwmon.rst
dme1737.rst
dps920ab.rst
drivetemp.rst
ds620.rst
ds1621.rst
emc6w201.rst
emc1403.rst
emc2103.rst
f71805f.rst
f71882fg.rst
fam15h_power.rst
fsp-3y.rst
ftsteutates.rst
g760a.rst
g762.rst
gl518sm.rst
gsc-hwmon.rst
hih6130.rst
hwmon-kernel-api.rst
ibm-cffps.rst
ibmaem.rst
ibmpowernv.rst
ina2xx.rst
ina209.rst
ina3221.rst
index.rst
inspur-ipsps1.rst
intel-m10-bmc-hwmon.rst
ir35221.rst
ir36021.rst
ir38064.rst
isl68137.rst
it87.rst
jc42.rst
k8temp.rst
k10temp.rst
lineage-pem.rst
lm63.rst
lm70.rst
lm73.rst
lm75.rst
lm77.rst
lm78.rst
lm80.rst
lm83.rst
lm85.rst
lm87.rst
lm90.rst
lm92.rst
lm93.rst
lm25066.rst
lm95234.rst
lm95245.rst
lochnagar.rst
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
max6639.rst
max6642.rst
max6650.rst
max6697.rst
max8688.rst
max15301.rst
max16064.rst
max16065.rst
max16601.rst
max20730.rst
max20751.rst
max31722.rst
max31730.rst
max31785.rst
max31790.rst
max34440.rst
mc13783-adc.rst
mcp3021.rst
menf21bmc.rst
mlxreg-fan.rst
mp2888.rst
mp2975.rst
nct6683.rst
nct6775.rst
nct7802.rst
nct7904.rst
npcm750-pwm-fan.rst
nsa320.rst
ntc_thermistor.rst
nzxt-kraken2.rst
occ.rst
pc87360.rst
pc87427.rst
pcf8591.rst
pim4328.rst
pm6764tr.rst
pmbus-core.rst
pmbus.rst
powr1220.rst
pwm-fan.rst
pxe1610.rst
q54sj108a2.rst
raspberrypi-hwmon.rst
sbrmi.rst
sbtsi_temp.rst
sch5627.rst
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
sysfs-interface.rst
tc74.rst
tc654.rst
thmc50.rst
tmp102.rst
tmp103.rst
tmp108.rst
tmp401.rst
tmp421.rst
tmp513.rst
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
xdpe12284.rst
xgene-hwmon.rst
zl6100.rst