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 輸出。