diff options
author | Donggeun Kim <dg77.kim@samsung.com> | 2011-06-20 03:48:19 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-07-28 03:17:33 -0400 |
commit | f22aaaa70d8c24e5dc7d23a219c4beace8354b65 (patch) | |
tree | 855158946f04f4d4846b7cab573d55652163ec18 /Documentation/hwmon/ntc_thermistor | |
parent | dabaa0d2b4085a2037d80a40b86ba215f00b601e (diff) |
hwmon: Driver for NTC Thermistors
Add support for NTC Thermistor series. In this release, the
following thermistors are supported: NCP15WB473, NCP18WB473, NCP03WB473,
and NCP15WL333. This driver is based on the datasheet of MURATA.
The driver in the patch does conversion from the raw ADC value
(either voltage or resistence) to temperature. In order to use
voltage values as input, the circuit schematics should be provided
with the platform data. A compensation table for each type of thermistor
is provided for the conversion.
Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: KyungMin Park <kyungmin.park@samsung.com>
Reviewed-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'Documentation/hwmon/ntc_thermistor')
-rw-r--r-- | Documentation/hwmon/ntc_thermistor | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/Documentation/hwmon/ntc_thermistor b/Documentation/hwmon/ntc_thermistor new file mode 100644 index 000000000000..3bfda94096fd --- /dev/null +++ b/Documentation/hwmon/ntc_thermistor | |||
@@ -0,0 +1,93 @@ | |||
1 | Kernel driver ntc_thermistor | ||
2 | ================= | ||
3 | |||
4 | Supported thermistors: | ||
5 | * Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333 | ||
6 | Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333' | ||
7 | Datasheet: Publicly available at Murata | ||
8 | |||
9 | Other NTC thermistors can be supported simply by adding compensation | ||
10 | tables; e.g., NCP15WL333 support is added by the table ncpXXwl333. | ||
11 | |||
12 | Authors: | ||
13 | MyungJoo Ham <myungjoo.ham@samsung.com> | ||
14 | |||
15 | Description | ||
16 | ----------- | ||
17 | |||
18 | The NTC thermistor is a simple thermistor that requires users to provide the | ||
19 | resistance and lookup the corresponding compensation table to get the | ||
20 | temperature input. | ||
21 | |||
22 | The NTC driver provides lookup tables with a linear approximation function | ||
23 | and four circuit models with an option not to use any of the four models. | ||
24 | |||
25 | The four circuit models provided are: | ||
26 | |||
27 | $: resister, [TH]: the thermistor | ||
28 | |||
29 | 1. connect = NTC_CONNECTED_POSITIVE, pullup_ohm > 0 | ||
30 | |||
31 | [pullup_uV] | ||
32 | | | | ||
33 | [TH] $ (pullup_ohm) | ||
34 | | | | ||
35 | +----+-----------------------[read_uV] | ||
36 | | | ||
37 | $ (pulldown_ohm) | ||
38 | | | ||
39 | --- (ground) | ||
40 | |||
41 | 2. connect = NTC_CONNECTED_POSITIVE, pullup_ohm = 0 (not-connected) | ||
42 | |||
43 | [pullup_uV] | ||
44 | | | ||
45 | [TH] | ||
46 | | | ||
47 | +----------------------------[read_uV] | ||
48 | | | ||
49 | $ (pulldown_ohm) | ||
50 | | | ||
51 | --- (ground) | ||
52 | |||
53 | 3. connect = NTC_CONNECTED_GROUND, pulldown_ohm > 0 | ||
54 | |||
55 | [pullup_uV] | ||
56 | | | ||
57 | $ (pullup_ohm) | ||
58 | | | ||
59 | +----+-----------------------[read_uV] | ||
60 | | | | ||
61 | [TH] $ (pulldown_ohm) | ||
62 | | | | ||
63 | -------- (ground) | ||
64 | |||
65 | 4. connect = NTC_CONNECTED_GROUND, pulldown_ohm = 0 (not-connected) | ||
66 | |||
67 | [pullup_uV] | ||
68 | | | ||
69 | $ (pullup_ohm) | ||
70 | | | ||
71 | +----------------------------[read_uV] | ||
72 | | | ||
73 | [TH] | ||
74 | | | ||
75 | --- (ground) | ||
76 | |||
77 | When one of the four circuit models is used, read_uV, pullup_uV, pullup_ohm, | ||
78 | pulldown_ohm, and connect should be provided. When none of the four models | ||
79 | are suitable or the user can get the resistance directly, the user should | ||
80 | provide read_ohm and _not_ provide the others. | ||
81 | |||
82 | Sysfs Interface | ||
83 | --------------- | ||
84 | name the mandatory global attribute, the thermistor name. | ||
85 | |||
86 | temp1_type always 4 (thermistor) | ||
87 | RO | ||
88 | |||
89 | temp1_input measure the temperature and provide the measured value. | ||
90 | (reading this file initiates the reading procedure.) | ||
91 | RO | ||
92 | |||
93 | Note that each NTC thermistor has only _one_ thermistor; thus, only temp1 exists. | ||