← Documents Documentation/hwmon/lm63.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver lm63

LM63·LM64·LM96163 온도, 16비트 팬 타코미터, PWM과 캐시 주기입니다.

Source pathDocumentation/hwmon/lm63.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

lm63.rst:1-95

로컬·원격 온도와 16비트 팬 타코미터를 읽고 모델별 팬 핀 제약, PWM 모드, 갱신 캐시를 적용합니다.

문서 개요
항목
SourceDocumentation/hwmon/lm63.rst
분량95 source lines
팬 측정16비트
자동 표 캐시5초

원문 분량과 핵심 인터페이스입니다.

동작 흐름
칩 탐색온도·타코미터 읽기캐시 주기 적용지원 PWM 제어

장치 연결부터 hwmon 사용까지의 핵심 순서입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 Kernel driver lm63
2 ==================
3
4 Supported chips:
5
6 * National Semiconductor LM63
7
8 Prefix: 'lm63'
9
10 Addresses scanned: I2C 0x4c
11
12 Datasheet: Publicly available at the National Semiconductor website
13
14 http://www.national.com/pf/LM/LM63.html
15
16 * National Semiconductor LM64
17
18 Prefix: 'lm64'
19
20 Addresses scanned: I2C 0x18 and 0x4e
21
22 Datasheet: Publicly available at the National Semiconductor website
23
24 http://www.national.com/pf/LM/LM64.html
25
26 * National Semiconductor LM96163
27
28 Prefix: 'lm96163'
29
30 Addresses scanned: I2C 0x4c
31
32 Datasheet: Publicly available at the National Semiconductor website
33
34 http://www.national.com/pf/LM/LM96163.html
35
36
37 Author: Jean Delvare <jdelvare@suse.de>
38
39 Thanks go to Tyan and especially Alex Buckingham for setting up a remote
40 access to their S4882 test platform for this driver.
41
42 https://www.tyan.com/
43
44 Description
45 -----------
46
47 The LM63 is a digital temperature sensor with integrated fan monitoring
48 and control.
49
50 The LM63 is basically an LM86 with fan speed monitoring and control
51 capabilities added. It misses some of the LM86 features though:
52
53 - No low limit for local temperature.
54 - No critical limit for local temperature.
55 - Critical limit for remote temperature can be changed only once. We
56 will consider that the critical limit is read-only.
57
58 The datasheet isn't very clear about what the tachometer reading is.
59
60 An explanation from National Semiconductor: The two lower bits of the read
61 value have to be masked out. The value is still 16 bit in width.
62
63 All temperature values are given in degrees Celsius. Resolution is 1.0
64 degree for the local temperature, 0.125 degree for the remote temperature.
65
66 The fan speed is measured using a tachometer. Contrary to most chips which
67 store the value in an 8-bit register and have a selectable clock divider
68 to make sure that the result will fit in the register, the LM63 uses 16-bit
69 value for measuring the speed of the fan. It can measure fan speeds down to
70 83 RPM, at least in theory.
71
72 Note that the pin used for fan monitoring is shared with an alert out
73 function. Depending on how the board designer wanted to use the chip, fan
74 speed monitoring will or will not be possible. The proper chip configuration
75 is left to the BIOS, and the driver will blindly trust it. Only the original
76 LM63 suffers from this limitation, the LM64 and LM96163 have separate pins
77 for fan monitoring and alert out. On the LM64, monitoring is always enabled;
78 on the LM96163 it can be disabled.
79
80 A PWM output can be used to control the speed of the fan. The LM63 has two
81 PWM modes: manual and automatic. Automatic mode is not fully implemented yet
82 (you cannot define your custom PWM/temperature curve), and mode change isn't
83 supported either.
84
85 The lm63 driver will not update its values more frequently than configured with
86 the update_interval sysfs attribute; reading them more often will do no harm,
87 but will return 'old' values. Values in the automatic fan control lookup table
88 (attributes pwm1_auto_*) have their own independent lifetime of 5 seconds.
89
90 The LM64 is effectively an LM63 with GPIO lines. The driver does not
91 support these GPIO lines at present.
92
93 The LM96163 is an enhanced version of LM63 with improved temperature accuracy
94 and better PWM resolution. For LM96163, the external temperature sensor type is
95 configurable as CPU embedded diode(1) or 3904 transistor(2).
96

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

LM63·LM64·LM96163 지원 정보

1-43

드라이버는 National Semiconductor LM63, LM64, LM96163을 지원합니다. LM63과 LM96163은 I2C 주소 `0x4c`, LM64는 `0x18`과 `0x4e`에서 검색되며 접두사는 각각 `lm63`, `lm64`, `lm96163`입니다.

작성자는 Jean Delvare이며, Tyan과 Alex Buckingham이 S4882 시험 플랫폼의 원격 접근을 제공했습니다. 원문은 각 칩의 공개 데이터시트와 Tyan 사이트 링크를 포함합니다.

LM63은 팬 감시와 제어 기능이 통합된 디지털 온도 센서입니다.

LM63 계열 주소
접두사I2C 주소
LM63lm630x4c
LM64lm640x18, 0x4e
LM96163lm961630x4c

지원 칩의 접두사와 검색 주소입니다.

LM63 계열 탐색
I2C 주소 검색칩 ID와 모델 확인lm63 계열 드라이버 결합온도·팬 채널 등록

주소와 기능 차이를 확인해 올바른 유형으로 연결합니다.

Kernel driver lm63
==================

Supported chips:

  * National Semiconductor LM63

    Prefix: 'lm63'

    Addresses scanned: I2C 0x4c

    Datasheet: Publicly available at the National Semiconductor website

               http://www.national.com/pf/LM/LM63.html

  * National Semiconductor LM64

    Prefix: 'lm64'

    Addresses scanned: I2C 0x18 and 0x4e

    Datasheet: Publicly available at the National Semiconductor website

               http://www.national.com/pf/LM/LM64.html

  * National Semiconductor LM96163

    Prefix: 'lm96163'

    Addresses scanned: I2C 0x4c

    Datasheet: Publicly available at the National Semiconductor website

               http://www.national.com/pf/LM/LM96163.html


Author: Jean Delvare <jdelvare@suse.de>

Thanks go to Tyan and especially Alex Buckingham for setting up a remote
access to their S4882 test platform for this driver.

  https://www.tyan.com/

온도 제한과 16비트 타코미터

44-64

LM63은 LM86에 팬 속도 감시·제어를 추가한 구조지만 일부 기능이 빠져 있습니다. 로컬 온도에는 하한과 임계 한계가 없고, 원격 온도 임계 한계는 한 번만 변경할 수 있으므로 드라이버에서는 읽기 전용으로 취급합니다.

타코미터 읽기 값은 하위 2비트를 마스킹해야 하지만 전체 폭은 여전히 16비트입니다. 온도는 섭씨 단위이며 로컬 온도 분해능은 1.0도, 원격 온도 분해능은 0.125도입니다.

대부분의 칩이 8비트 레지스터와 선택 가능한 클록 분주기를 쓰는 것과 달리 LM63은 팬 속도 측정에 16비트 값을 사용합니다. 이론적으로 83 RPM까지 측정할 수 있습니다.

LM63 측정 특성
항목특성
로컬 온도1.0 C 분해능, 하한·임계 한계 없음
원격 온도0.125 C 분해능, 임계 한계 읽기 전용 취급
타코미터하위 2비트 마스킹, 16비트 폭
최저 팬 속도이론상 83 RPM

로컬·원격 온도와 팬 타코미터의 차이입니다.

타코미터 해석
16비트 타코미터 값 읽기하위 2비트 마스킹유효 카운트 해석RPM으로 환산팬 정지 여부 판정

원시 값을 유효한 팬 속도로 변환합니다.

Description
-----------

The LM63 is a digital temperature sensor with integrated fan monitoring
and control.

The LM63 is basically an LM86 with fan speed monitoring and control
capabilities added. It misses some of the LM86 features though:

 - No low limit for local temperature.
 - No critical limit for local temperature.
 - Critical limit for remote temperature can be changed only once. We
   will consider that the critical limit is read-only.

The datasheet isn't very clear about what the tachometer reading is.

An explanation from National Semiconductor: The two lower bits of the read
value have to be masked out. The value is still 16 bit in width.

All temperature values are given in degrees Celsius. Resolution is 1.0
degree for the local temperature, 0.125 degree for the remote temperature.

팬 핀 공유·PWM 모드·갱신 주기

65-95

LM63의 팬 감시 핀은 경보 출력과 공유됩니다. 보드 설계에 따라 팬 감시가 불가능할 수 있으며 드라이버는 BIOS가 설정한 구성을 그대로 신뢰합니다. 이 제한은 LM63에만 있고 LM64와 LM96163은 팬 감시와 경보 출력 핀이 분리되어 있습니다. LM64는 감시가 항상 켜져 있고 LM96163은 끌 수 있습니다.

PWM 출력으로 팬 속도를 제어하며 수동·자동 두 모드가 있습니다. 자동 모드는 아직 완전하지 않아 사용자 정의 PWM/온도 곡선을 만들 수 없고 모드 변경도 지원하지 않습니다.

측정값은 `update_interval`보다 자주 갱신되지 않습니다. 더 자주 읽어도 문제는 없지만 이전 값이 반환됩니다. 자동 팬 제어 조회표의 `pwm1_auto_*` 속성은 독립적으로 5초 동안 캐시됩니다.

LM64는 사실상 GPIO가 추가된 LM63이지만 현재 드라이버는 GPIO 라인을 지원하지 않습니다. LM96163은 온도 정확도와 PWM 분해능이 향상되었으며 외부 센서를 CPU 내장 다이오드(1) 또는 3904 트랜지스터(2)로 설정할 수 있습니다.

LM63 계열 팬 기능
모델팬 감시추가 사항
LM63경보 출력과 핀 공유, BIOS 구성 신뢰감시 가능 여부가 보드에 종속
LM64별도 핀, 항상 활성GPIO는 드라이버 미지원
LM96163별도 핀, 비활성화 가능향상된 정확도·PWM, 센서 유형 설정
공통수동·자동 PWM사용자 정의 자동 곡선과 모드 전환 미지원

모델별 핀과 추가 기능 차이입니다.

팬 제어 데이터 갱신
BIOS 팬 핀 구성 확인update_interval에 따라 측정 갱신더 빠른 읽기에는 캐시 값 반환pwm1_auto_*는 5초 수명 적용지원되는 PWM 모드 유지

일반 측정 캐시와 자동 제어표 캐시를 구분합니다.


The fan speed is measured using a tachometer. Contrary to most chips which
store the value in an 8-bit register and have a selectable clock divider
to make sure that the result will fit in the register, the LM63 uses 16-bit
value for measuring the speed of the fan. It can measure fan speeds down to
83 RPM, at least in theory.

Note that the pin used for fan monitoring is shared with an alert out
function. Depending on how the board designer wanted to use the chip, fan
speed monitoring will or will not be possible. The proper chip configuration
is left to the BIOS, and the driver will blindly trust it. Only the original
LM63 suffers from this limitation, the LM64 and LM96163 have separate pins
for fan monitoring and alert out. On the LM64, monitoring is always enabled;
on the LM96163 it can be disabled.

A PWM output can be used to control the speed of the fan. The LM63 has two
PWM modes: manual and automatic. Automatic mode is not fully implemented yet
(you cannot define your custom PWM/temperature curve), and mode change isn't
supported either.

The lm63 driver will not update its values more frequently than configured with
the update_interval sysfs attribute; reading them more often will do no harm,
but will return 'old' values. Values in the automatic fan control lookup table
(attributes pwm1_auto_*) have their own independent lifetime of 5 seconds.

The LM64 is effectively an LM63 with GPIO lines. The driver does not
support these GPIO lines at present.

The LM96163 is an enhanced version of LM63 with improved temperature accuracy
and better PWM resolution. For LM96163, the external temperature sensor type is
configurable as CPU embedded diode(1) or 3904 transistor(2).