android_kernel_xiaomi_sm8350/Documentation/hwmon
Guenter Roeck c2242478f2 hwmon: (lm90) Add basic support for TI TMP461
[ Upstream commit f8344f7693a25d9025a59d164450b50c6f5aa3c0 ]

TMP461 is almost identical to TMP451 and was actually detected as TMP451
with the existing lm90 driver if its I2C address is 0x4c. Add support
for it to the lm90 driver. At the same time, improve the chip detection
function to at least try to distinguish between TMP451 and TMP461.

As a side effect, this fixes commit 24333ac26d ("hwmon: (tmp401) use
smb word operations instead of 2 smb byte operations"). TMP461 does not
support word operations on temperature registers, which causes bad
temperature readings with the tmp401 driver. The lm90 driver does not
perform word operations on temperature registers and thus does not have
this problem.

Support is listed as basic because TMP461 supports a sensor resolution
of 0.0625 degrees C, while the lm90 driver assumes a resolution of 0.125
degrees C. Also, the TMP461 supports negative temperatures with its
default temperature range, which is not the case for similar chips
supported by the lm90 and the tmp401 drivers. Those limitations will be
addressed with follow-up patches.

Fixes: 24333ac26d ("hwmon: (tmp401) use smb word operations instead of 2 smb byte operations")
Reported-by: David T. Wilson <david.wilson@nasa.gov>
Cc: David T. Wilson <david.wilson@nasa.gov>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-29 12:23:35 +01:00
..
ab8500.rst
abituguru3.rst
abituguru-datasheet.rst
abituguru.rst
abx500.rst
acpi_power_meter.rst
ad7314.rst
adc128d818.rst
adm1021.rst
adm1025.rst
adm1026.rst
adm1031.rst
adm1275.rst
adm9240.rst
ads7828.rst
adt7410.rst
adt7411.rst
adt7462.rst
adt7470.rst
adt7475.rst
amc6821.rst
asb100.rst
asc7621.rst
aspeed-pwm-tacho.rst
coretemp.rst
da9052.rst
da9055.rst
dme1737.rst
ds620.rst
ds1621.rst
emc6w201.rst
emc1403.rst
emc2103.rst
f71805f.rst
f71882fg.rst
fam15h_power.rst
ftsteutates.rst
g760a.rst
g762.rst
gl518sm.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
ir35221.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 hwmon: (lm90) Add basic support for TI TMP461 2021-12-29 12:23:35 +01:00
lm92.rst
lm93.rst
lm25066.rst
lm95234.rst
lm95245.rst
lochnagar.rst
ltc2945.rst
ltc2978.rst
ltc2990.rst
ltc3815.rst
ltc4151.rst
ltc4215.rst
ltc4245.rst
ltc4260.rst
ltc4261.rst
max197.rst
max1619.rst
max1668.rst
max6639.rst
max6642.rst
max6650.rst
max6697.rst
max8688.rst
max16064.rst
max16065.rst
max20751.rst
max31722.rst
max31785.rst
max31790.rst
max34440.rst
mc13783-adc.rst
mcp3021.rst
menf21bmc.rst
mlxreg-fan.rst
nct6683.rst
nct6775.rst
nct7802.rst
nct7904.rst
npcm750-pwm-fan.rst
nsa320.rst
ntc_thermistor.rst
occ.rst
pc87360.rst
pc87427.rst
pcf8591.rst
pmbus-core.rst
pmbus.rst
powr1220.rst
pwm-fan.rst
pxe1610.rst
raspberrypi-hwmon.rst
sch5627.rst
sch5636.rst
scpi-hwmon.rst
sht3x.rst
sht15.rst
sht21.rst
shtc1.rst
sis5595.rst
smm665.rst
smsc47b397.rst
smsc47m1.rst
smsc47m192.rst
submitting-patches.rst
sysfs-interface.rst
tc74.rst
tc654.rst
thmc50.rst
tmp102.rst
tmp103.rst
tmp108.rst
tmp401.rst
tmp421.rst
tps40422.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
xgene-hwmon.rst
zl6100.rst