amc6821 内核驱动程序

支持的芯片

德州仪器 AMC6821

前缀: ‘amc6821’

扫描地址: 0x18, 0x19, 0x1a, 0x2c, 0x2d, 0x2e, 0x4c, 0x4d, 0x4e

数据手册: http://focus.ti.com/docs/prod/folders/print/amc6821.html

作者

Tomaz Mertelj <tomaz.mertelj@guest.arnes.si>

描述

此驱动程序实现了对德州仪器 amc6821 芯片的支持。该芯片具有一个片上温度传感器、一个远程温度传感器和一个 PWM 风扇调节器。PWM 可以通过软件或自动控制。

驱动程序在 sysfs 中提供以下传感器访问:

temp1_input

只读

片上温度

temp1_min

读写

temp1_max

读写

temp1_crit

读写

temp1_min_alarm

只读

temp1_max_alarm

只读

temp1_crit_alarm

只读

temp2_input

只读

远程温度

temp2_min

读写

temp2_max

读写

temp2_crit

读写

temp2_min_alarm

只读

temp2_max_alarm

只读

temp2_crit_alarm

只读

temp2_fault

只读

fan1_input

只读

转速计速度

fan1_min

读写

fan1_max

读写

fan1_fault

只读

fan1_pulses

读写

每转脉冲数可以是 2 或 4。

fan1_target

读写

目标风扇速度,与 pwm1_enable 模式 4 一起使用。

pwm1

读写

pwm1

pwm1_enable

读写

调节器模式,1=开环,2=风扇由远程温度控制,3=风扇由片上温度和远程传感器温度组合控制,4=风扇由 fan1_target 属性设定的目标转速控制。

pwm1_mode

读写

风扇占空比控制模式 (0=直流, 1=PWM)

pwm1_auto_channels_temp

只读

如果 pwm_enable==2 则为 1,如果 pwm_enable==3 则为 3

pwm1_auto_point1_pwm

只读

硬连接到 0,两个温度通道共享。

pwm1_auto_point2_pwm

读写

此值由两个温度通道共享。

pwm1_auto_point3_pwm

读写

硬连接到 255,两个温度通道共享。

temp1_auto_point1_temp

只读

硬连接到 temp2_auto_point1_temp,后者是读写属性。低于此温度风扇将停止。

temp1_auto_point2_temp

读写

比例范围的低温限制。低于此温度时 pwm1 = pwm1_auto_point2_pwm。它可以从 0 摄氏度到 124 摄氏度,以 4 摄氏度为步长。写入后读出以获取实际值。

temp1_auto_point3_temp

读写

高于此温度风扇将以最大速度运行。它可以从 temp1_auto_point2_temp 开始。它只能具有取决于 temp1_auto_point2_temp 和 pwm1_auto_point2_pwm 的某些离散值。写入后读出以获取实际值。

temp2_auto_point1_temp

读写

必须在 0 摄氏度到 63 摄氏度之间,并定义被动冷却温度。低于此温度时,风扇在闭环模式下停止。

temp2_auto_point2_temp

读写

比例范围的低温限制。低于此温度时 pwm1 = pwm1_auto_point2_pwm。它可以从 0 摄氏度到 124 摄氏度,以 4 摄氏度为步长。

temp2_auto_point3_temp

读写

高于此温度风扇将以最大速度运行。它只能具有取决于 temp2_auto_point2_temp 和 pwm1_auto_point2_pwm 的某些离散值。写入后读出以获取实际值。

模块参数

如果您的主板 BIOS 正确初始化了 amc6821,您应该使用:init=0 加载模块。

如果您的主板 BIOS 未初始化该芯片,或者您想要不同的设置,可以设置以下参数

  • init=1,

  • pwminv: 0 默认 PWM 输出,1 反转 PWM 输出。