blob: d0e7f91726b9c42f1eb2afa999c6ee8181c64dd1 [file] [log] [blame]
Donggeun Kimf22aaaa2011-06-20 16:48:19 +09001Kernel driver ntc_thermistor
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03002============================
Donggeun Kimf22aaaa2011-06-20 16:48:19 +09003
Naveen Krishna Chatradhi8b6f5e02014-06-25 11:59:31 +05304Supported thermistors from Murata:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03005
Beomho Seo887ee432015-04-30 13:07:43 +09006* Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473,
Joseph McNally54ce3a02016-02-28 22:31:23 +00007 NCP15WL333, NCP03WF104, NCP15XH103
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03008
Beomho Seo887ee432015-04-30 13:07:43 +09009 Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473',
Joseph McNally54ce3a02016-02-28 22:31:23 +000010 'ncp15wl333', 'ncp03wf104', 'ncp15xh103'
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030011
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090012 Datasheet: Publicly available at Murata
13
Johannes Pointnered67f082014-07-01 08:05:52 +020014Supported thermistors from EPCOS:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030015
Johannes Pointnered67f082014-07-01 08:05:52 +020016* EPCOS NTC Thermistors B57330V2103
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030017
Johannes Pointnered67f082014-07-01 08:05:52 +020018 Prefixes: b57330v2103
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030019
Johannes Pointnered67f082014-07-01 08:05:52 +020020 Datasheet: Publicly available at EPCOS
21
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090022Other NTC thermistors can be supported simply by adding compensation
23tables; e.g., NCP15WL333 support is added by the table ncpXXwl333.
24
25Authors:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030026
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090027 MyungJoo Ham <myungjoo.ham@samsung.com>
28
29Description
30-----------
31
Naveen Krishna Chatradhi8b6f5e02014-06-25 11:59:31 +053032The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor
33that requires users to provide the resistance and lookup the corresponding
34compensation table to get the temperature input.
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090035
36The NTC driver provides lookup tables with a linear approximation function
37and four circuit models with an option not to use any of the four models.
38
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030039Using the following convention::
40
41 $ resistor
42 [TH] the thermistor
43
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090044The four circuit models provided are:
45
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -0300461. connect = NTC_CONNECTED_POSITIVE, pullup_ohm > 0::
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090047
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030048 [pullup_uV]
49 | |
50 [TH] $ (pullup_ohm)
51 | |
52 +----+-----------------------[read_uV]
53 |
54 $ (pulldown_ohm)
55 |
56 -+- (ground)
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090057
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -0300582. connect = NTC_CONNECTED_POSITIVE, pullup_ohm = 0 (not-connected)::
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090059
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030060 [pullup_uV]
61 |
62 [TH]
63 |
64 +----------------------------[read_uV]
65 |
66 $ (pulldown_ohm)
67 |
68 -+- (ground)
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090069
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -0300703. connect = NTC_CONNECTED_GROUND, pulldown_ohm > 0::
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090071
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030072 [pullup_uV]
73 |
74 $ (pullup_ohm)
75 |
76 +----+-----------------------[read_uV]
77 | |
78 [TH] $ (pulldown_ohm)
79 | |
80 -+----+- (ground)
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090081
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -0300824. connect = NTC_CONNECTED_GROUND, pulldown_ohm = 0 (not-connected)::
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090083
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030084 [pullup_uV]
85 |
86 $ (pullup_ohm)
87 |
88 +----------------------------[read_uV]
89 |
90 [TH]
91 |
92 -+- (ground)
Donggeun Kimf22aaaa2011-06-20 16:48:19 +090093
94When one of the four circuit models is used, read_uV, pullup_uV, pullup_ohm,
95pulldown_ohm, and connect should be provided. When none of the four models
96are suitable or the user can get the resistance directly, the user should
97provide read_ohm and _not_ provide the others.
98
99Sysfs Interface
100---------------
Donggeun Kimf22aaaa2011-06-20 16:48:19 +0900101
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -0300102=============== == =============================================================
103name the mandatory global attribute, the thermistor name.
104=============== == =============================================================
105temp1_type RO always 4 (thermistor)
Donggeun Kimf22aaaa2011-06-20 16:48:19 +0900106
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -0300107temp1_input RO measure the temperature and provide the measured value.
108 (reading this file initiates the reading procedure.)
109=============== == =============================================================
Donggeun Kimf22aaaa2011-06-20 16:48:19 +0900110
111Note that each NTC thermistor has only _one_ thermistor; thus, only temp1 exists.