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 docs: hwmon: adm1177.rst: avoid using ReSt :doc:`foo` markup 2021-06-17 04:21:46 -07:00
adm1266.rst docs: hwmon: adm1266.rst: fix a broken reference 2020-10-28 11:26:10 -06:00
adm1275.rst dt-bindings: hwmon: convert AD ADM1275 bindings to dt-schema 2020-12-11 07:42:27 -08:00
adm9240.rst
ads7828.rst
adt7410.rst
adt7411.rst
adt7462.rst
adt7470.rst
adt7475.rst
aht10.rst hwmon: Add AHT10 Temperature and Humidity Sensor Driver 2021-01-27 17:44:18 -08:00
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 hwmon: (pmbus) Add driver for BluTek BPA-RS600 2021-04-20 06:50:14 -07:00
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 hwmon: (pmbus) Add driver for Delta DPS-920AB PSU 2021-06-17 04:21:46 -07:00
drivetemp.rst hwmon: (drivetemp) Add usage not describing impact on drive spin-down 2020-09-23 09:42:39 -07:00
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 hwmon: Add driver for fsp-3y PSUs and PDUs 2021-04-20 06:50:14 -07:00
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 hwmon: (ina2) update ti,ina2xx.yaml reference in documentation 2021-01-21 11:27:23 -08:00
ina209.rst
ina238.rst hwmon: Driver for Texas Instruments INA238 2021-12-26 15:02:05 -08:00
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 hwmon: Add hwmon driver for Intel MAX 10 BMC 2020-10-04 08:40:10 -07:00
ir35221.rst
ir36021.rst docs: hwmon: ir36021.rst: replace some characters 2021-06-17 04:21:44 -07:00
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 hwmon: (k10temp) Remove residues of current and voltage 2021-09-12 17:56:36 -07:00
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 hwmon: (lm75) Add TI TMP1075 support 2021-06-17 04:21:44 -07:00
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 hwmon: (pmbus/lm25066) Support configurable sense resistor values 2021-10-12 07:22:41 -07:00
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 docs: hwmon: (ltc2945) update datasheet link 2020-10-05 09:16:33 -07:00
ltc2947.rst
ltc2978.rst
ltc2990.rst
ltc2992.rst docs: hwmon: avoid using UTF-8 chars 2021-06-17 04:21:44 -07:00
ltc3815.rst
ltc4151.rst
ltc4215.rst
ltc4245.rst
ltc4260.rst
ltc4261.rst
max127.rst docs: hwmon: Document max127 driver 2020-12-02 17:42:24 -08:00
max197.rst
max1619.rst
max1668.rst
max6620.rst hwmon: Add Maxim MAX6620 hardware monitoring driver 2021-10-12 07:22:37 -07:00
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 hwmon: (pmbus) Add pmbus driver for MAX15301 2021-04-20 06:50:14 -07:00
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 hwmon: (pmbus) Add support for MPS Multi-phase mp2888 controller 2021-06-17 04:21:45 -07:00
mp2975.rst docs: hwmon: mp2975.rst: address some html build warnings 2020-10-28 11:26:10 -06:00
mp5023.rst hwmon: (pmbus) Add support for MPS Multi-phase mp5023 2021-12-26 15:02:06 -08:00
nct6683.rst hwmon: (nct6683) Support ASRock boards 2021-01-27 17:44:18 -08:00
nct6775.rst
nct7802.rst
nct7904.rst
npcm750-pwm-fan.rst
nsa320.rst
ntc_thermistor.rst
nzxt-kraken2.rst hwmon: add driver for NZXT Kraken X42/X52/X62/X72 2021-04-20 06:50:14 -07:00
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 hwmon: (pmbus/pim4328) Add documentation for the pim4328 PMBus driver 2021-06-17 04:21:46 -07:00
pli1209bc.rst hwmon: (pmbus) Add support for pli1209bc 2022-02-27 17:03:19 -08:00
pm6764tr.rst docs: hwmon: avoid using UTF-8 chars 2021-06-17 04:21:44 -07:00
pmbus-core.rst hwmon: (pmbus) Move pec attribute to I2C device 2022-07-13 08:38:17 -07:00
pmbus.rst hwmon: (pmbus) Add support for additional Flex BMR converters to pmbus 2021-06-17 04:21:45 -07:00
powr1220.rst
pwm-fan.rst hwmon: (pwm-fan) Switch regulator dynamically 2022-09-25 14:22:11 -07:00
pxe1610.rst
q54sj108a2.rst hwmon: (pmbus/q54sj108a2) Correct title underline length 2020-12-11 07:42:27 -08:00
raspberrypi-hwmon.rst
sbrmi.rst hwmon: (sbrmi) Add Documentation 2021-08-17 14:54:25 -07:00
sbtsi_temp.rst hwmon: (sbtsi_temp) Fix Documenation kernel-doc warning 2020-12-30 08:05:20 -08:00
sch5627.rst hwmon: (sch5627) Add pwmX_auto_channels_temp support 2022-02-27 17:03:19 -08:00
sch5636.rst
scpi-hwmon.rst dt-bindings: firmware: update arm,scpi.yaml reference 2021-08-17 14:54:25 -07:00
sht3x.rst
sht4x.rst hwmon: sht4x: update Documentation for Malformed table 2021-08-17 14:54:14 -07:00
sht15.rst
sht21.rst
shtc1.rst
sis5595.rst
sl28cpld.rst
smm665.rst
smsc47b397.rst
smsc47m1.rst
smsc47m192.rst
sparx5-temp.rst
stpddc60.rst hwmon: (pmbus/stpddc60) Add ST STPDDC60 pmbus driver 2021-04-20 06:50:14 -07:00
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 docs: hwmon: tmp103.rst: fix bad usage of UTF-8 chars 2021-05-11 11:00:18 -06:00
tmp108.rst
tmp401.rst hwmon: (tmp401) Drop support for TMP461 2021-10-27 19:48:19 -07:00
tmp421.rst hwmon: (tmp421) update documentation 2021-10-15 15:54:26 -07:00
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 hwmon: add Texas Instruments TPS23861 driver 2021-02-12 07:02:55 -08:00
tps40422.rst
tps53679.rst hwmon: (pmbus/tps53679) Add support for TI TPS53676 2021-04-20 06:50:14 -07:00
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 hwmon: (pmbus/zl6100) Update documentation for zl6100 driver 2021-06-17 04:21:44 -07:00