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

Linux 6.18.37 · Hardware Monitoring

Kernel driver isl28022

ISL28022의 버스·션트 전압 측정, 전류·전력 계산, ADC 평균화와 읽기 전용 인터페이스입니다.

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

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

1. 요약·해설

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

요약·해설

isl28022.rst:1-64

ISL28022는 버스 전압과 션트 전압을 연속 변환해 전류와 전력을 계산하고 sysfs와 debugfs에 읽기 전용으로 제공합니다.

문서 개요
항목
SourceDocumentation/hwmon/isl28022.rst
분량64 source lines
버스 전압60V fixed
ADC15bit continuous

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

동작 흐름
device properties 구성장치 명시적 등록전압 연속 측정전류·전력 계산

장치 등록에서 측정값 게시까지의 핵심 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0-or-later
2
3 Kernel driver isl28022
4 ======================
5
6 Supported chips:
7
8 * Renesas ISL28022
9
10 Prefix: 'isl28022'
11
12 Addresses scanned: none
13
14 Datasheet: Publicly available at the Renesas website
15
16 https://www.renesas.com/us/en/www/doc/datasheet/isl28022.pdf
17
18 Author:
19 Carsten Spieß <[email protected]>
20
21 Description
22 -----------
23
24 The ISL28022 is a power monitor with I2C interface. The device monitors
25 voltage, current via shunt resistor and calculated power.
26
27 Usage Notes
28 -----------
29
30 This driver does not auto-detect devices. You will have to instantiate the
31 device explicitly. Please see Documentation/i2c/instantiating-devices.rst for
32 details.
33
34 The shunt value in micro-ohms, shunt voltage range and averaging can be set
35 with device properties.
36 Please refer to the Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml
37 for bindings if the device tree is used.
38
39 The driver supports only shunt and bus continuous ADC mode at 15bit resolution.
40 Averaging can be set from 1 to 128 samples (power of 2) on both channels.
41 Shunt voltage range of 40, 80, 160 or 320mV is allowed
42 The bus voltage range is 60V fixed.
43
44 Sysfs entries
45 -------------
46
47 The following attributes are supported. All attributes are read-only.
48
49 ======================= =======================================================
50 in0_input bus voltage (milli Volt)
51 in1_input shunt voltage (milli Volt)
52
53 curr1_input current (milli Ampere)
54 power1_input power (micro Watt)
55 ======================= =======================================================
56
57 Debugfs entries
58 ---------------
59
60 The following attributes are supported. All attributes are read-only.
61
62 ======================= =======================================================
63 shunt_voltage shunt voltage (micro Volt)
64 ======================= =======================================================
65

3. 한국어 전문 번역

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

ISL28022 지원 장치와 자료

1-20

이 문서는 GPL-2.0-or-later 라이선스의 `isl28022` 커널 드라이버를 설명합니다. 지원 칩은 Renesas ISL28022이고 드라이버 접두사는 `isl28022`입니다. 주소 자동 검색은 하지 않습니다.

데이터시트는 문서에 적힌 Renesas 공개 링크에서 확인할 수 있으며 작성자는 Carsten Spieß입니다. 전류 계산에 션트 저항값이 직접 쓰이므로 데이터시트와 보드 회로의 션트 사양을 함께 확인해야 합니다.

ISL28022 식별 정보
항목
지원 칩Renesas ISL28022
드라이버 접두사isl28022
주소 검색없음(none)
데이터시트Renesas 공개 ISL28022 PDF
작성자Carsten Spieß

장치 등록과 계산에 필요한 기본 정보입니다.

장치 준비 순서
ISL28022 부품 확인I2C 주소 확인션트 저항 정격 확인device properties 준비isl28022 장치 등록

하드웨어 값과 소프트웨어 속성을 연결합니다.

.. SPDX-License-Identifier: GPL-2.0-or-later

Kernel driver isl28022
======================

Supported chips:

  * Renesas ISL28022

    Prefix: 'isl28022'

    Addresses scanned: none

    Datasheet: Publicly available at the Renesas website

               https://www.renesas.com/us/en/www/doc/datasheet/isl28022.pdf

Author:
    Carsten Spieß <[email protected]>

전력 측정과 ADC 구성

21-43

ISL28022는 I2C 인터페이스를 갖춘 전력 모니터입니다. 버스 전압과 션트 저항 양단의 전압을 측정하고, 션트 전압과 저항값으로 전류를 계산한 뒤 전압과 전류에서 전력을 계산합니다.

드라이버는 장치를 자동 감지하지 않으므로 명시적으로 인스턴스화해야 합니다. 자세한 등록 방법은 `Documentation/i2c/instantiating-devices.rst`를 참고합니다.

마이크로옴 단위 션트 저항값, 션트 전압 범위, 평균화 설정은 device properties로 지정할 수 있습니다. 장치 트리를 사용하면 `Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml` 바인딩을 따라야 합니다.

드라이버는 15비트 분해능의 션트·버스 연속 ADC 모드만 지원합니다. 두 채널 모두 1개부터 128개까지 2의 거듭제곱 개수로 평균화할 수 있습니다. 션트 전압 범위는 40, 80, 160, 320mV 중 하나이고 버스 전압 범위는 60V로 고정됩니다.

ISL28022 설정 범위
설정지원 값비고
션트 저항마이크로옴 단위device property
션트 전압 범위40 / 80 / 160 / 320mVdevice property
평균화1~128 samples, 2의 거듭제곱두 채널에 적용
ADC 모드션트·버스 연속 모드이 모드만 지원
ADC 분해능15bit고정 지원
버스 전압 범위60V고정

드라이버가 지원하는 ADC와 보드별 속성입니다.

전력 산출 경로
버스 전압 측정션트 전압 측정션트 저항값 적용전류 계산버스 전압과 전류로 전력 계산

센서 입력에서 전류와 전력을 계산하는 관계입니다.

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

The ISL28022 is a power monitor with I2C interface. The device monitors
voltage, current via shunt resistor and calculated power.

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

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

The shunt value in micro-ohms, shunt voltage range and averaging can be set
with device properties.
Please refer to the Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml
for bindings if the device tree is used.

The driver supports only shunt and bus continuous ADC mode at 15bit resolution.
Averaging can be set from 1 to 128 samples (power of 2) on both channels.
Shunt voltage range of 40, 80, 160 or 320mV is allowed
The bus voltage range is 60V fixed.

ISL28022 sysfs와 debugfs 항목

44-64

아래 sysfs 속성은 모두 읽기 전용입니다. `in0_input`은 밀리볼트 단위 버스 전압, `in1_input`은 밀리볼트 단위 션트 전압을 제공합니다. `curr1_input`은 밀리암페어 단위 전류, `power1_input`은 마이크로와트 단위 전력을 제공합니다.

debugfs의 `shunt_voltage`도 읽기 전용이며 션트 전압을 마이크로볼트 단위로 제공합니다. 같은 물리량을 sysfs에서는 밀리볼트, debugfs에서는 마이크로볼트로 표현하므로 단위를 혼동하지 않아야 합니다.

ISL28022 사용자 인터페이스
인터페이스속성단위권한
sysfsin0_input버스 전압milli Volt읽기 전용
sysfsin1_input션트 전압milli Volt읽기 전용
sysfscurr1_input전류milli Ampere읽기 전용
sysfspower1_input전력micro Watt읽기 전용
debugfsshunt_voltage션트 전압micro Volt읽기 전용

파일 위치별 물리량과 단위를 원문대로 정리했습니다.

측정값 이용 순서
in0_input으로 버스 전압 읽기in1_input으로 션트 전압 읽기curr1_input으로 계산 전류 읽기power1_input으로 계산 전력 읽기필요하면 debugfs에서 마이크로볼트 션트값 확인

단위를 확인하면서 버스와 션트 측정값을 읽습니다.

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

The following attributes are supported. All attributes are read-only.

======================= =======================================================
in0_input                bus voltage (milli Volt)
in1_input                shunt voltage (milli Volt)

curr1_input                current (milli Ampere)
power1_input                power (micro Watt)
======================= =======================================================

Debugfs entries
---------------

The following attributes are supported. All attributes are read-only.

======================= =======================================================
shunt_voltage                shunt voltage (micro Volt)
======================= =======================================================