sensor: Add driver for MCP9808 temperature sensor
The driver only supports simple temperature readings. It does not support the alarm feature. Datasheet available at <http://ww1.microchip.com/downloads/en/DeviceDoc/25095A.pdf>. Origin: Original Change-Id: I283e6697fc6947975323d280f5ff0ba625fac5a9 Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
This commit is contained in:
parent
48bdd70a07
commit
68be7b7d26
4 changed files with 194 additions and 0 deletions
|
@ -43,3 +43,38 @@ config SENSOR_DEBUG
|
|||
depends on SENSOR && PRINTK
|
||||
help
|
||||
This option enables debug output for sensor drivers.
|
||||
|
||||
menuconfig MCP9808
|
||||
bool "MCP9808 temperature sensor"
|
||||
depends on SENSOR && I2C
|
||||
default n
|
||||
help
|
||||
Enable driver for MCP9808 temperature sensor.
|
||||
|
||||
config MCP9808_DEV_NAME
|
||||
string "MCP9808 device name"
|
||||
depends on MCP9808
|
||||
default "MCP9808"
|
||||
|
||||
config MCP9808_INIT_PRIORITY
|
||||
int
|
||||
depends on MCP9808
|
||||
default 70
|
||||
prompt "Init priority"
|
||||
help
|
||||
Device driver initialization priority.
|
||||
|
||||
config MCP9808_I2C_ADDR
|
||||
hex "MCP9808 I2C slave address"
|
||||
depends on MCP9808
|
||||
default 0x18
|
||||
help
|
||||
Specify the I2C slave address for the MCP9808.
|
||||
|
||||
config MCP9808_I2C_DEV_NAME
|
||||
string "I2C master where MCP9808 is connected"
|
||||
depends on MCP9808
|
||||
default "I2C0"
|
||||
help
|
||||
Specify the device name of the I2C master device to which MCP9808 is
|
||||
connected.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue