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

Linux 6.18.37 · Hardware Monitoring

Kernel driver ltc4260

LTC4260 핫스왑 컨트롤러의 명시적 등록, 전압 분압과 1 mOhm 기준 전류 환산, 경보입니다.

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

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

1. 요약·해설

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

요약·해설

ltc4260.rst:1-64

활선 백플레인 핫스왑을 지원하며 ADC 전압에 분압비를 곱하고 SENSE 전류를 실제 감지 저항에 맞춰 환산합니다.

문서 개요
항목
SourceDocumentation/hwmon/ltc4260.rst
분량64 source lines
예시 주소0x10
자동 탐색없음

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

운영 흐름
장치 등록전압 분압 환산전류 Rsense 환산경보 확인

장치 연결부터 측정·경보 처리까지의 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver ltc4260
2 =====================
3
4 Supported chips:
5
6 * Linear Technology LTC4260
7
8 Prefix: 'ltc4260'
9
10 Addresses scanned: -
11
12 Datasheet:
13
14 http://cds.linear.com/docs/en/datasheet/4260fc.pdf
15
16 Author: Guenter Roeck <[email protected]>
17
18
19 Description
20 -----------
21
22 The LTC4260 Hot Swap controller allows a board to be safely inserted
23 and removed from a live backplane.
24
25
26 Usage Notes
27 -----------
28
29 This driver does not probe for LTC4260 devices, since there is no register
30 which can be safely used to identify the chip. You will have to instantiate
31 the devices explicitly.
32
33 Example: the following will load the driver for an LTC4260 at address 0x10
34 on I2C bus #1::
35
36 $ modprobe ltc4260
37 $ echo ltc4260 0x10 > /sys/bus/i2c/devices/i2c-1/new_device
38
39
40 Sysfs entries
41 -------------
42
43 Voltage readings provided by this driver are reported as obtained from the ADC
44 registers. If a set of voltage divider resistors is installed, calculate the
45 real voltage by multiplying the reported value with (R1+R2)/R2, where R1 is the
46 value of the divider resistor against the measured voltage and R2 is the value
47 of the divider resistor against Ground.
48
49 Current reading provided by this driver is reported as obtained from the ADC
50 Current Sense register. The reported value assumes that a 1 mOhm sense resistor
51 is installed. If a different sense resistor is installed, calculate the real
52 current by dividing the reported value by the sense resistor value in mOhm.
53
54 ======================= =======================
55 in1_input SOURCE voltage (mV)
56 in1_min_alarm Undervoltage alarm
57 in1_max_alarm Overvoltage alarm
58
59 in2_input ADIN voltage (mV)
60 in2_alarm Power bad alarm
61
62 curr1_input SENSE current (mA)
63 curr1_alarm SENSE overcurrent alarm
64 ======================= =======================
65

3. 한국어 전문 번역

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

LTC4260 활선 백플레인 핫스왑 등록

1-38

LTC4260은 `ltc4260` 접두사를 사용하는 Hot Swap 컨트롤러로, 보드를 전원이 인가된 백플레인에 안전하게 삽입하거나 제거할 수 있게 합니다. 저자는 Guenter Roeck이고 주소 자동 탐색은 없습니다.

칩을 안전하게 식별할 레지스터가 없어 장치를 명시적으로 생성해야 합니다. I2C 버스 1의 주소 `0x10` 예시는 `modprobe ltc4260` 다음 `echo ltc4260 0x10 > /sys/bus/i2c/devices/i2c-1/new_device`를 사용합니다.

LTC4260 등록 정보
항목
역할라이브 백플레인 핫스왑
접두사ltc4260
자동 탐색없음
예시I2C 1, 0x10

식별 레지스터가 없는 핫스왑 장치를 보드 주소로 생성합니다.

LTC4260 생성
보드의 I2C 주소 확인ltc4260 모듈 적재new_device로 명시적 생성전압·전류·경보 속성 확인

회로 주소를 확인한 뒤 명시적으로 연결합니다.

Kernel driver ltc4260
=====================

Supported chips:

  * Linear Technology LTC4260

    Prefix: 'ltc4260'

    Addresses scanned: -

    Datasheet:

        http://cds.linear.com/docs/en/datasheet/4260fc.pdf

Author: Guenter Roeck <[email protected]>


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

The LTC4260 Hot Swap controller allows a board to be safely inserted
and removed from a live backplane.


Usage Notes
-----------

This driver does not probe for LTC4260 devices, since there is no register
which can be safely used to identify the chip. You will have to instantiate
the devices explicitly.

Example: the following will load the driver for an LTC4260 at address 0x10
on I2C bus #1::

        $ modprobe ltc4260
        $ echo ltc4260 0x10 > /sys/bus/i2c/devices/i2c-1/new_device

전압 분압과 감지 저항 전류 환산

39-64

전압은 ADC 레지스터 값을 그대로 보고합니다. 분압 저항이 있으면 측정 전압 쪽 저항 R1과 접지 쪽 저항 R2를 사용해 보고값에 `(R1+R2)/R2`를 곱하여 실제 전압을 구합니다.

전류는 ADC Current Sense 레지스터 값이며 1 mOhm 감지 저항을 가정합니다. 다른 저항을 사용하면 보고값을 실제 감지 저항의 mOhm 값으로 나눠 실제 전류를 계산합니다.

`in1_input`은 SOURCE 전압, `in1_min_alarm`과 `in1_max_alarm`은 저전압·과전압 알람입니다. `in2_input`은 ADIN 전압이고 `in2_alarm`은 power bad 알람입니다. `curr1_input`은 SENSE 전류이며 `curr1_alarm`은 SENSE 과전류 알람입니다.

LTC4260 sysfs
속성의미단위
in1_inputSOURCE 전압mV
in1_min/max_alarm저전압 / 과전압상태
in2_input / in2_alarmADIN / 전력 불량mV / 상태
curr1_input / curr1_alarmSENSE 전류 / 과전류mA / 상태

전압·전류 측정과 핫스왑 경보입니다.

LTC4260 물리값 계산
SOURCE·ADIN ADC 값 읽기분압비 (R1+R2)/R2 적용SENSE 전류 읽기실제 Rsense(mOhm)로 나누기전압·전류 경보 함께 확인

ADC 보고값에 보드 외부 저항값을 적용합니다.


Sysfs entries
-------------

Voltage readings provided by this driver are reported as obtained from the ADC
registers. If a set of voltage divider resistors is installed, calculate the
real voltage by multiplying the reported value with (R1+R2)/R2, where R1 is the
value of the divider resistor against the measured voltage and R2 is the value
of the divider resistor against Ground.

Current reading provided by this driver is reported as obtained from the ADC
Current Sense register. The reported value assumes that a 1 mOhm sense resistor
is installed. If a different sense resistor is installed, calculate the real
current by dividing the reported value by the sense resistor value in mOhm.

======================= =======================
in1_input                SOURCE voltage (mV)
in1_min_alarm                Undervoltage alarm
in1_max_alarm                Overvoltage alarm

in2_input                ADIN voltage (mV)
in2_alarm                Power bad alarm

curr1_input                SENSE current (mA)
curr1_alarm                SENSE overcurrent alarm
======================= =======================