LM75(4) | Device Drivers Manual | LM75(4) |
lm75
— lm75 i2c
digital temperature sensor driver
device iic
device iicbus
device lm75
The lm75
driver provides access to sensor
data and configuration over the iicbus(4).
It provides an easy and simple way to check the functionality of
an i2c bus as it provides read and write access to the
lm75
configuration register.
The access to lm75
data is made via the
sysctl(8) interface:
dev.lm75.0.%desc: LM75 temperature sensor dev.lm75.0.%driver: lm75 dev.lm75.0.%location: addr=0x49 dev.lm75.0.%pnpinfo: name=lm750 compat=national,lm75 dev.lm75.0.%parent: iicbus3 dev.lm75.0.temperature: 27.1C dev.lm75.0.thyst: 75.0C dev.lm75.0.tos: 80.0C dev.lm75.0.faults: 1 dev.lm75.0.mode: comparator dev.lm75.0.polarity: active-low dev.lm75.0.shutdown: 0
Please check the lm75
datasheet for more
details.
When used together with snmp_lm75(3) it allows
the monitoring of lm75
temperature data over
SNMP.
The lm75
driver supports both the low and
the high resolution models.
The low resolution model (lm75) provides a 9 bit output with the LSB representing 0.5C.
The high resolution model (lm75a) provides an 11 bit output with the LSB representing 0.125C.
The driver tries to auto-detect the lm75
model, but the detection of some lm75
clones may not
work reliably.
On a device.hints(5) based system, such as
MIPS
, these values are configurable for
lm75
:
lm75
i2c address on the
iicbus(4).On a FDT(4) based system, such as
ARM
, the DTS part for a lm75
device usually looks like:
i2c { /* Properties describing the controller appear here. */ ... lm750@49 { compatible = "national,lm75"; reg = <0x49>; }; };
Where:
lm75
is
wired at. lm75
temperature sensors can be wired to
8 different addresses, allowing up to 8 sensors on the same
iicbus(4).The lm75
driver first appeared in
FreeBSD 11.0.
The lm75
driver and this manual page were
written by Luiz Otavio O Souza
<loos@FreeBSD.org>.
December 26, 2017 | Debian |