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

Linux 6.18.37 · Hardware Monitoring

Kernel driver ina209

INA209의 high-side 전압·전류·전력 측정, 이력, 경보, 보정 레지스터 동작입니다.

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

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

1. 요약·해설

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

요약·해설

ina209.rst:1-99

다단계 전압·전력 경보와 이력을 제공하며 보정 정보가 없으면 10 mOhm 기준 기본값을 사용합니다.

문서 개요
항목
SourceDocumentation/hwmon/ina209.rst
분량99 source lines
측정Voltage·current·power
Fallback10 mOhm

원문 분량과 핵심 기능입니다.

측정 흐름
Shunt·bus 측정평균·이력 갱신한계 경보보정값 검증

장치 설정에서 hwmon 값까지의 핵심 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver ina209
2 ====================
3
4 Supported chips:
5
6 * Burr-Brown / Texas Instruments INA209
7
8 Prefix: 'ina209'
9
10 Addresses scanned: -
11
12 Datasheet:
13 https://www.ti.com/lit/gpn/ina209
14
15 Author:
16 - Paul Hays <[email protected]>
17 - Ira W. Snyder <[email protected]>
18 - Guenter Roeck <[email protected]>
19
20
21 Description
22 -----------
23
24 The TI / Burr-Brown INA209 monitors voltage, current, and power on the high side
25 of a D.C. power supply. It can perform measurements and calculations in the
26 background to supply readings at any time. It includes a programmable
27 calibration multiplier to scale the displayed current and power values.
28
29
30 Sysfs entries
31 -------------
32
33 The INA209 chip is highly configurable both via hardwiring and via
34 the I2C bus. See the datasheet for details.
35
36 This tries to expose most monitoring features of the hardware via
37 sysfs. It does not support every feature of this chip.
38
39 ======================= =======================================================
40 in0_input shunt voltage (mV)
41 in0_input_highest shunt voltage historical maximum reading (mV)
42 in0_input_lowest shunt voltage historical minimum reading (mV)
43 in0_reset_history reset shunt voltage history
44 in0_max shunt voltage max alarm limit (mV)
45 in0_min shunt voltage min alarm limit (mV)
46 in0_crit_max shunt voltage crit max alarm limit (mV)
47 in0_crit_min shunt voltage crit min alarm limit (mV)
48 in0_max_alarm shunt voltage max alarm limit exceeded
49 in0_min_alarm shunt voltage min alarm limit exceeded
50 in0_crit_max_alarm shunt voltage crit max alarm limit exceeded
51 in0_crit_min_alarm shunt voltage crit min alarm limit exceeded
52
53 in1_input bus voltage (mV)
54 in1_input_highest bus voltage historical maximum reading (mV)
55 in1_input_lowest bus voltage historical minimum reading (mV)
56 in1_reset_history reset bus voltage history
57 in1_max bus voltage max alarm limit (mV)
58 in1_min bus voltage min alarm limit (mV)
59 in1_crit_max bus voltage crit max alarm limit (mV)
60 in1_crit_min bus voltage crit min alarm limit (mV)
61 in1_max_alarm bus voltage max alarm limit exceeded
62 in1_min_alarm bus voltage min alarm limit exceeded
63 in1_crit_max_alarm bus voltage crit max alarm limit exceeded
64 in1_crit_min_alarm bus voltage crit min alarm limit exceeded
65
66 power1_input power measurement (uW)
67 power1_input_highest power historical maximum reading (uW)
68 power1_reset_history reset power history
69 power1_max power max alarm limit (uW)
70 power1_crit power crit alarm limit (uW)
71 power1_max_alarm power max alarm limit exceeded
72 power1_crit_alarm power crit alarm limit exceeded
73
74 curr1_input current measurement (mA)
75
76 update_interval data conversion time; affects number of samples used
77 to average results for shunt and bus voltages.
78 ======================= =======================================================
79
80 General Remarks
81 ---------------
82
83 The power and current registers in this chip require that the calibration
84 register is programmed correctly before they are used. Normally this is expected
85 to be done in the BIOS. In the absence of BIOS programming, the shunt resistor
86 voltage can be provided using platform data. The driver uses platform data from
87 the ina2xx driver for this purpose. If calibration register data is not provided
88 via platform data, the driver checks if the calibration register has been
89 programmed (ie has a value not equal to zero). If so, this value is retained.
90 Otherwise, a default value reflecting a shunt resistor value of 10 mOhm is
91 programmed into the calibration register.
92
93
94 Output Pins
95 -----------
96
97 Output pin programming is a board feature which depends on the BIOS. It is
98 outside the scope of a hardware monitoring driver to enable or disable output
99 pins.
100

3. 한국어 전문 번역

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

INA209 지원 정보와 측정 기능

1-28

`ina209` 커널 드라이버는 Burr-Brown / Texas Instruments INA209를 지원합니다. 주소 자동 검색은 하지 않으며 데이터시트는 TI의 `https://www.ti.com/lit/gpn/ina209`에서 제공됩니다. 저자는 Paul Hays, Ira W. Snyder, Guenter Roeck입니다.

INA209는 직류 전원 공급 장치의 high side에서 전압, 전류, 전력을 감시합니다. 백그라운드에서 측정과 계산을 수행하므로 언제든 읽을 수 있는 값을 제공하며, 표시되는 전류와 전력값의 배율을 조정하는 프로그래밍 가능한 보정 승수를 포함합니다.

INA209 기본 정보
항목
Burr-Brown / Texas Instruments INA209
접두사ina209
주소 검색없음
측정 위치DC 전원 공급 장치 high side
측정량전압·전류·전력
보정프로그래밍 가능한 calibration multiplier

지원 칩과 핵심 측정 기능입니다.

INA209 측정
High-side shunt와 bus 감시백그라운드 측정 수행보정 승수 적용전류·전력 계산언제든 sysfs에서 읽기

백그라운드 변환과 보정을 거쳐 읽기값을 제공합니다.

Kernel driver ina209
====================

Supported chips:

  * Burr-Brown / Texas Instruments INA209

    Prefix: 'ina209'

    Addresses scanned: -

    Datasheet:
        https://www.ti.com/lit/gpn/ina209

Author:
        - Paul Hays <[email protected]>
        - Ira W. Snyder <[email protected]>
        - Guenter Roeck <[email protected]>


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

The TI / Burr-Brown INA209 monitors voltage, current, and power on the high side
of a D.C. power supply. It can perform measurements and calculations in the
background to supply readings at any time. It includes a programmable
calibration multiplier to scale the displayed current and power values.

INA209 sysfs 측정·이력·경보 속성

29-78

INA209는 배선과 I2C 버스 양쪽에서 매우 세밀하게 구성할 수 있습니다. 드라이버는 하드웨어 감시 기능 대부분을 sysfs로 내보내지만 칩의 모든 기능을 지원하지는 않습니다.

Shunt 전압 채널 `in0`과 bus 전압 채널 `in1`은 각각 mV 단위 현재값, 과거 최고·최저값, 이력 재설정, 최대·최소 및 임계 최대·최소 경보 한계, 각 한계 초과 경보를 제공합니다.

전력 채널은 uW 단위 현재·과거 최고값, 이력 재설정, 최대·임계 한계와 경보를 제공합니다. 전류 채널은 mA 단위 `curr1_input`을 제공합니다. `update_interval`은 데이터 변환 시간을 정하며 shunt 전압과 bus 전압 결과를 평균할 때 사용하는 샘플 수에 영향을 줍니다.

INA209 sysfs
기능군속성의미·단위
Shunt 현재·이력in0_input / in0_input_highest / in0_input_lowest현재·최고·최저 shunt 전압, mV
Shunt 이력in0_reset_historyshunt 전압 이력 재설정
Shunt 한계in0_max / in0_min / in0_crit_max / in0_crit_min최대·최소·임계 한계, mV
Shunt 경보in0_max_alarm / in0_min_alarm / in0_crit_max_alarm / in0_crit_min_alarm각 한계 초과
Bus 현재·이력in1_input / in1_input_highest / in1_input_lowest현재·최고·최저 bus 전압, mV
Bus 이력in1_reset_historybus 전압 이력 재설정
Bus 한계in1_max / in1_min / in1_crit_max / in1_crit_min최대·최소·임계 한계, mV
Bus 경보in1_max_alarm / in1_min_alarm / in1_crit_max_alarm / in1_crit_min_alarm각 한계 초과
전력power1_input / power1_input_highest / power1_reset_history현재·최고 전력과 이력 재설정, uW
전력 한계power1_max / power1_crit / power1_max_alarm / power1_crit_alarm최대·임계 한계와 경보, uW
전류curr1_input측정 전류, mA
변환update_interval변환 시간과 평균 샘플 수에 영향

원문의 전체 속성을 기능군별로 보존했습니다.

INA209 경보 평가
Shunt·bus 전압 변환update_interval에 따라 평균최고·최저 이력 갱신최대·최소·임계 한계 비교전압·전력 경보 게시

현재값과 이력, 다단계 한계를 함께 사용합니다.


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

The INA209 chip is highly configurable both via hardwiring and via
the I2C bus. See the datasheet for details.

This tries to expose most monitoring features of the hardware via
sysfs. It does not support every feature of this chip.

======================= =======================================================
in0_input                shunt voltage (mV)
in0_input_highest        shunt voltage historical maximum reading (mV)
in0_input_lowest        shunt voltage historical minimum reading (mV)
in0_reset_history        reset shunt voltage history
in0_max                        shunt voltage max alarm limit (mV)
in0_min                        shunt voltage min alarm limit (mV)
in0_crit_max                shunt voltage crit max alarm limit (mV)
in0_crit_min                shunt voltage crit min alarm limit (mV)
in0_max_alarm                shunt voltage max alarm limit exceeded
in0_min_alarm                shunt voltage min alarm limit exceeded
in0_crit_max_alarm        shunt voltage crit max alarm limit exceeded
in0_crit_min_alarm        shunt voltage crit min alarm limit exceeded

in1_input                bus voltage (mV)
in1_input_highest        bus voltage historical maximum reading (mV)
in1_input_lowest        bus voltage historical minimum reading (mV)
in1_reset_history        reset bus voltage history
in1_max                        bus voltage max alarm limit (mV)
in1_min                        bus voltage min alarm limit (mV)
in1_crit_max                bus voltage crit max alarm limit (mV)
in1_crit_min                bus voltage crit min alarm limit (mV)
in1_max_alarm                bus voltage max alarm limit exceeded
in1_min_alarm                bus voltage min alarm limit exceeded
in1_crit_max_alarm        bus voltage crit max alarm limit exceeded
in1_crit_min_alarm        bus voltage crit min alarm limit exceeded

power1_input                power measurement (uW)
power1_input_highest        power historical maximum reading (uW)
power1_reset_history        reset power history
power1_max                power max alarm limit (uW)
power1_crit                power crit alarm limit (uW)
power1_max_alarm        power max alarm limit exceeded
power1_crit_alarm        power crit alarm limit exceeded

curr1_input                current measurement (mA)

update_interval                data conversion time; affects number of samples used
                        to average results for shunt and bus voltages.
======================= =======================================================

보정 레지스터와 출력 핀 범위

79-99

칩의 전력·전류 레지스터를 사용하려면 보정 레지스터가 올바르게 프로그래밍되어야 합니다. 일반적으로 BIOS가 이를 설정합니다. BIOS 설정이 없다면 플랫폼 데이터로 shunt 저항값을 제공할 수 있으며, 이 드라이버는 그 목적으로 `ina2xx` 드라이버의 플랫폼 데이터를 사용합니다.

플랫폼 데이터가 보정 레지스터 값을 제공하지 않으면 드라이버는 기존 보정 레지스터가 0이 아닌지 확인합니다. 이미 프로그래밍되어 있으면 그 값을 유지하고, 0이면 10 mOhm shunt 저항에 해당하는 기본값을 보정 레지스터에 기록합니다.

출력 핀 프로그래밍은 BIOS에 의존하는 보드 기능입니다. 출력 핀을 켜거나 끄는 것은 하드웨어 모니터링 드라이버의 범위를 벗어나므로 이 드라이버가 제어하지 않습니다.

INA209 보정 우선순위
순서조건동작
1플랫폼 데이터에 shunt 정보 제공해당 보정 사용
2기존 calibration register가 0이 아님기존 값 유지
3보정 정보가 없고 레지스터가 010 mOhm 기준 기본값 기록
출력 핀보드·BIOS 기능hwmon 드라이버에서 제어하지 않음

보정값 출처와 fallback 동작을 정리했습니다.

보정값 결정
플랫폼 데이터 확인없으면 calibration register 읽기0이 아니면 기존 값 유지0이면 10 mOhm 기본값 기록전류·전력 측정 활성화

전류·전력 읽기 전에 사용할 보정 레지스터 값을 선택합니다.


General Remarks
---------------

The power and current registers in this chip require that the calibration
register is programmed correctly before they are used. Normally this is expected
to be done in the BIOS. In the absence of BIOS programming, the shunt resistor
voltage can be provided using platform data. The driver uses platform data from
the ina2xx driver for this purpose. If calibration register data is not provided
via platform data, the driver checks if the calibration register has been
programmed (ie has a value not equal to zero). If so, this value is retained.
Otherwise, a default value reflecting a shunt resistor value of 10 mOhm is
programmed into the calibration register.


Output Pins
-----------

Output pin programming is a board feature which depends on the BIOS. It is
outside the scope of a hardware monitoring driver to enable or disable output
pins.