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

Linux 6.18.37 · Hardware Monitoring

Kernel driver adm1177

ADM1177 Hot-Swap power monitor의 명시적 등록과 전압·전류 sysfs를 설명합니다.

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

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

1. 요약·해설

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

요약·해설

adm1177.rst:1-36

자동 검색하지 않는 ADM1177을 등록하고 측정 전압·전류와 과전류 shutdown threshold를 사용하는 방법입니다.

문서 개요
항목
SourceDocumentation/hwmon/adm1177.rst
분량36 source lines
DetectionExplicit only
Writablecurr1_max

원문과 핵심 지원 범위를 요약합니다.

핵심 흐름
I2C 장치 선언Driver bind전압·전류 읽기과전류 threshold 설정

드라이버를 이해할 때의 주요 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver adm1177
2 =====================
3
4 Supported chips:
5 * Analog Devices ADM1177
6 Prefix: 'adm1177'
7 Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf
8
9 Author: Beniamin Bia <beniamin.bia@analog.com>
10
11
12 Description
13 -----------
14
15 This driver supports hardware monitoring for Analog Devices ADM1177
16 Hot-Swap Controller and Digital Power Monitors with Soft Start Pin.
17
18
19 Usage Notes
20 -----------
21
22 This driver does not auto-detect devices. You will have to instantiate the
23 devices explicitly. Please see Documentation/i2c/instantiating-devices.rst
24 for details.
25
26
27 Sysfs entries
28 -------------
29
30 The following attributes are supported. Current maximum attribute
31 is read-write, all other attributes are read-only.
32
33 in0_input Measured voltage in millivolts.
34
35 curr1_input Measured current in milliamperes.
36 curr1_max Overcurrent shutdown threshold in milliamperes.
37

3. 한국어 전문 번역

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

ADM1177과 명시적 장치 생성

1-24

이 드라이버는 Analog Devices `ADM1177` Hot-Swap Controller 및 Soft Start Pin을 갖춘 Digital Power Monitor의 hardware monitoring을 지원합니다. Prefix는 `adm1177`, 데이터시트 URL은 `https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf`이며 저자는 Beniamin Bia입니다.

드라이버는 장치를 자동 검색하지 않습니다. 사용자가 장치를 명시적으로 instantiate해야 하며 자세한 방법은 `Documentation/i2c/instantiating-devices.rst`를 참조합니다.

ADM1177 driver 개요
항목
장치Analog Devices ADM1177
기능Hot-Swap Controller와 Digital Power Monitor
추가 pinSoft Start Pin
Autodetection지원하지 않음
등록명시적 I2C instantiation

지원 기능과 등록 조건입니다.

ADM1177 등록
I2C bus와 장치 주소 확인ADM1177 장치를 명시적으로 instantiateadm1177 driver 결합Voltage와 current hwmon attribute 등록

자동 검색이 없으므로 platform에서 장치를 선언합니다.

Kernel driver adm1177
=====================

Supported chips:
  * Analog Devices ADM1177
    Prefix: 'adm1177'
    Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf

Author: Beniamin Bia <beniamin.bia@analog.com>


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

This driver supports hardware monitoring for Analog Devices ADM1177
Hot-Swap Controller and Digital Power Monitors with Soft Start Pin.


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

This driver does not auto-detect devices. You will have to instantiate the
devices explicitly. Please see Documentation/i2c/instantiating-devices.rst
for details.

전압과 전류 sysfs attribute

25-36

드라이버는 아래 sysfs attribute를 지원합니다. Current maximum attribute인 `curr1_max`만 read-write이고 나머지는 모두 read-only입니다.

`in0_input`은 millivolt 단위의 측정 전압입니다. `curr1_input`은 milliampere 단위의 측정 전류이고, `curr1_max`는 milliampere 단위의 overcurrent shutdown threshold입니다.

ADM1177 sysfs
Attribute의미단위권한
in0_input측정 전압mVRead-only
curr1_input측정 전류mARead-only
curr1_max과전류 shutdown thresholdmARead-write

단위와 접근 권한을 함께 표시합니다.

과전류 기준 설정
curr1_max에 허용 전류 기록curr1_input에서 실제 전류 읽기in0_input에서 전압 확인Threshold 초과 시 장치의 shutdown 동작 평가

측정값과 쓰기 가능한 shutdown threshold를 사용합니다.



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

The following attributes are supported. Current maximum attribute
is read-write, all other attributes are read-only.

in0_input                Measured voltage in millivolts.

curr1_input                Measured current in milliamperes.
curr1_max                Overcurrent shutdown threshold in milliamperes.