2016-10-15 20:20:03 +08:00
|
|
|
# Kconfig - TMP112 temperature sensor configuration options
|
2016-06-18 19:14:11 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Firmwave
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-06-18 19:14:11 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig TMP112
|
|
|
|
bool
|
|
|
|
prompt "TMP112 Temperature Sensor"
|
2017-09-22 02:28:16 +08:00
|
|
|
depends on I2C
|
2016-06-18 19:14:11 +08:00
|
|
|
default n
|
|
|
|
help
|
2018-01-07 22:16:29 +08:00
|
|
|
Enable the driver for Texas Instruments TMP112 High-Accuracy Digital
|
|
|
|
Temperature Sensors.
|
|
|
|
|
|
|
|
The TMP102 is compatible with the TMP112 but is less accurate and has
|
|
|
|
been successfully tested with this driver.
|
2016-06-18 19:14:11 +08:00
|
|
|
|
|
|
|
config TMP112_NAME
|
|
|
|
string
|
|
|
|
prompt "Driver name"
|
|
|
|
default "TMP112"
|
|
|
|
depends on TMP112
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Device name with which the TMP112 sensor is identified.
|
2016-06-18 19:14:11 +08:00
|
|
|
|
2016-10-05 20:45:54 +08:00
|
|
|
config TMP112_I2C_ADDR
|
|
|
|
hex "I2C address for TMP112"
|
2016-06-18 19:14:11 +08:00
|
|
|
depends on TMP112
|
2016-10-05 20:45:54 +08:00
|
|
|
default 0x48
|
2016-06-18 19:14:11 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
I2C address of the TMP112 sensor.
|
2016-06-18 19:14:11 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
0x48: A0 connected GND and A1 connected to GND.
|
|
|
|
0x49: A0 connected VDD and A1 connected to GND.
|
|
|
|
0x4A: A0 connected SDA and A1 connected to GND.
|
|
|
|
0x4B: A0 connected SCL and A1 connected to GND.
|
2016-06-18 19:14:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
config TMP112_I2C_MASTER_DEV_NAME
|
|
|
|
string
|
|
|
|
prompt "I2C master where TMP112 is connected"
|
|
|
|
depends on TMP112
|
|
|
|
default "I2C_0"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Specify the device name of the I2C master device to which the
|
|
|
|
TMP112 chip is connected.
|