요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
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 <[email protected]>
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/
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.
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).
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은 팬 감시와 제어 기능이 통합된 디지털 온도 센서입니다.
지원 칩의 접두사와 검색 주소입니다.
주소와 기능 차이를 확인해 올바른 유형으로 연결합니다.
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 <[email protected]>
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-64LM63은 LM86에 팬 속도 감시·제어를 추가한 구조지만 일부 기능이 빠져 있습니다. 로컬 온도에는 하한과 임계 한계가 없고, 원격 온도 임계 한계는 한 번만 변경할 수 있으므로 드라이버에서는 읽기 전용으로 취급합니다.
타코미터 읽기 값은 하위 2비트를 마스킹해야 하지만 전체 폭은 여전히 16비트입니다. 온도는 섭씨 단위이며 로컬 온도 분해능은 1.0도, 원격 온도 분해능은 0.125도입니다.
대부분의 칩이 8비트 레지스터와 선택 가능한 클록 분주기를 쓰는 것과 달리 LM63은 팬 속도 측정에 16비트 값을 사용합니다. 이론적으로 83 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-95LM63의 팬 감시 핀은 경보 출력과 공유됩니다. 보드 설계에 따라 팬 감시가 불가능할 수 있으며 드라이버는 BIOS가 설정한 구성을 그대로 신뢰합니다. 이 제한은 LM63에만 있고 LM64와 LM96163은 팬 감시와 경보 출력 핀이 분리되어 있습니다. LM64는 감시가 항상 켜져 있고 LM96163은 끌 수 있습니다.
PWM 출력으로 팬 속도를 제어하며 수동·자동 두 모드가 있습니다. 자동 모드는 아직 완전하지 않아 사용자 정의 PWM/온도 곡선을 만들 수 없고 모드 변경도 지원하지 않습니다.
측정값은 `update_interval`보다 자주 갱신되지 않습니다. 더 자주 읽어도 문제는 없지만 이전 값이 반환됩니다. 자동 팬 제어 조회표의 `pwm1_auto_*` 속성은 독립적으로 5초 동안 캐시됩니다.
LM64는 사실상 GPIO가 추가된 LM63이지만 현재 드라이버는 GPIO 라인을 지원하지 않습니다. LM96163은 온도 정확도와 PWM 분해능이 향상되었으며 외부 센서를 CPU 내장 다이오드(1) 또는 3904 트랜지스터(2)로 설정할 수 있습니다.
모델별 핀과 추가 기능 차이입니다.
일반 측정 캐시와 자동 제어표 캐시를 구분합니다.
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).
요약·해설
lm63.rst:1-95로컬·원격 온도와 16비트 팬 타코미터를 읽고 모델별 팬 핀 제약, PWM 모드, 갱신 캐시를 적용합니다.
원문 분량과 핵심 인터페이스입니다.
장치 연결부터 hwmon 사용까지의 핵심 순서입니다.