Commit c83959f89f1cbe2e712c11e4a77d89f4d34d09ff
Committed by
Guenter Roeck
1 parent
202e4851f8
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
hwmon: (lm75) Add support for TMP112
TMP112 is compatible to LM75. Signed-off-by: Frans Klaver <frans.klaver@xsens.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Showing 3 changed files with 13 additions and 4 deletions Side-by-side Diff
Documentation/hwmon/lm75
... | ... | @@ -42,13 +42,14 @@ |
42 | 42 | Addresses scanned: none |
43 | 43 | Datasheet: Publicly available at the ST website |
44 | 44 | http://www.st.com/internet/analog/product/121769.jsp |
45 | - * Texas Instruments TMP100, TMP101, TMP105, TMP75, TMP175, TMP275 | |
46 | - Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp175', 'tmp75', 'tmp275' | |
45 | + * Texas Instruments TMP100, TMP101, TMP105, TMP112, TMP75, TMP175, TMP275 | |
46 | + Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp112', 'tmp175', 'tmp75', 'tmp275' | |
47 | 47 | Addresses scanned: none |
48 | 48 | Datasheet: Publicly available at the Texas Instruments website |
49 | 49 | http://www.ti.com/product/tmp100 |
50 | 50 | http://www.ti.com/product/tmp101 |
51 | 51 | http://www.ti.com/product/tmp105 |
52 | + http://www.ti.com/product/tmp112 | |
52 | 53 | http://www.ti.com/product/tmp75 |
53 | 54 | http://www.ti.com/product/tmp175 |
54 | 55 | http://www.ti.com/product/tmp275 |
drivers/hwmon/Kconfig
... | ... | @@ -894,8 +894,8 @@ |
894 | 894 | - NXP's LM75A |
895 | 895 | - ST Microelectronics STDS75 |
896 | 896 | - TelCom (now Microchip) TCN75 |
897 | - - Texas Instruments TMP100, TMP101, TMP105, TMP75, TMP175, | |
898 | - TMP275 | |
897 | + - Texas Instruments TMP100, TMP101, TMP105, TMP112, TMP75, | |
898 | + TMP175, TMP275 | |
899 | 899 | |
900 | 900 | This driver supports driver model based binding through board |
901 | 901 | specific I2C device tables. |
drivers/hwmon/lm75.c
... | ... | @@ -52,6 +52,7 @@ |
52 | 52 | tmp100, |
53 | 53 | tmp101, |
54 | 54 | tmp105, |
55 | + tmp112, | |
55 | 56 | tmp175, |
56 | 57 | tmp275, |
57 | 58 | tmp75, |
... | ... | @@ -255,6 +256,12 @@ |
255 | 256 | data->sample_time = HZ; |
256 | 257 | clr_mask |= 1 << 7; /* not one-shot mode */ |
257 | 258 | break; |
259 | + case tmp112: | |
260 | + set_mask |= 3 << 5; /* 12-bit mode */ | |
261 | + clr_mask |= 1 << 7; /* not one-shot mode */ | |
262 | + data->resolution = 12; | |
263 | + data->sample_time = HZ / 4; | |
264 | + break; | |
258 | 265 | case tmp105: |
259 | 266 | case tmp175: |
260 | 267 | case tmp275: |
... | ... | @@ -323,6 +330,7 @@ |
323 | 330 | { "tmp100", tmp100, }, |
324 | 331 | { "tmp101", tmp101, }, |
325 | 332 | { "tmp105", tmp105, }, |
333 | + { "tmp112", tmp112, }, | |
326 | 334 | { "tmp175", tmp175, }, |
327 | 335 | { "tmp275", tmp275, }, |
328 | 336 | { "tmp75", tmp75, }, |