内核驱动 ntc_thermistor

Murata 提供的支持的热敏电阻

  • Murata NTC 热敏电阻 NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333, NCP03WF104, NCP15XH103

    前缀: ‘ncp15wb473’, ‘ncp18wb473’, ‘ncp21wb473’, ‘ncp03wb473’, ‘ncp15wl333’, ‘ncp03wf104’, ‘ncp15xh103’

    数据手册: 可在 Murata 公开获取

EPCOS 提供的支持的热敏电阻

  • EPCOS NTC 热敏电阻 B57330V2103

    前缀: b57330v2103

    数据手册: 可在 EPCOS 公开获取

其他 NTC 热敏电阻可以通过简单地添加补偿表来支持;例如,通过表 ncpXXwl333 添加 NCP15WL333 支持。

作者

MyungJoo Ham <myungjoo.ham@samsung.com>

描述

NTC(负温度系数)热敏电阻是一种简单的热敏电阻,需要用户提供电阻并查找相应的补偿表以获得温度输入。

NTC 驱动程序提供带有线性近似函数和四个电路模型的查找表,可以选择不使用任何这四个模型。

使用以下约定

$    resistor
[TH] the thermistor

提供的四个电路模型是

  1. connect = NTC_CONNECTED_POSITIVE, pullup_ohm > 0

    [pullup_uV]
        |    |
       [TH]  $ (pullup_ohm)
        |    |
        +----+-----------------------[read_uV]
        |
        $ (pulldown_ohm)
        |
       -+- (ground)
    
  2. connect = NTC_CONNECTED_POSITIVE, pullup_ohm = 0 (未连接)

    [pullup_uV]
        |
       [TH]
        |
        +----------------------------[read_uV]
        |
        $ (pulldown_ohm)
        |
       -+- (ground)
    
  3. connect = NTC_CONNECTED_GROUND, pulldown_ohm > 0

    [pullup_uV]
        |
        $ (pullup_ohm)
        |
        +----+-----------------------[read_uV]
        |    |
       [TH]  $ (pulldown_ohm)
        |    |
       -+----+- (ground)
    
  4. connect = NTC_CONNECTED_GROUND, pulldown_ohm = 0 (未连接)

    [pullup_uV]
        |
        $ (pullup_ohm)
        |
        +----------------------------[read_uV]
        |
       [TH]
        |
       -+- (ground)
    

当使用四个电路模型之一时,应提供 read_uV、pullup_uV、pullup_ohm、pulldown_ohm 和 connect。 当这四个模型都不合适或者用户可以直接获得电阻时,用户应该提供 read_ohm,而 _不_ 提供其他的。

Sysfs 接口

name

强制性的全局属性,热敏电阻名称。

temp1_type

只读

始终为 4 (热敏电阻)

temp1_input

只读

测量温度并提供测量值。(读取此文件会启动读取过程。)

请注意,每个 NTC 热敏电阻只有 _一个_ 热敏电阻;因此,只存在 temp1。