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

Linux 6.18.37 · Hardware Monitoring

Kernel driver powr1220

Lattice POWR1220AT8의 14개 전압 입력을 12비트 ADC와 자동 감쇠기로 측정합니다.

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

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

1. 요약·해설

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

요약·해설

powr1220.rst:1-53

2 mV 단계 ADC로 저범위 2 V 또는 감쇠 범위 6 V를 선택하고 VMON1~12·VCCA·VCCINP를 최소 1초 주기로 읽습니다.

문서 개요
항목
SourceDocumentation/hwmon/powr1220.rst
분량53 source lines
입력14
갱신최소 1초

원문 분량과 핵심 장치 구성을 정리합니다.

운영 흐름
입력 max 확인감쇠기 선택ADC 요청채널 매핑전압 반환

장치 인식부터 측정·제어까지의 핵심 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver powr1220
2 ======================
3
4 Supported chips:
5
6 * Lattice POWR1220AT8
7
8 Prefix: 'powr1220'
9
10 Addresses scanned: none
11
12 Datasheet: Publicly available at the Lattice website
13
14 http://www.latticesemi.com/
15
16 Author: Scott Kanowitz <scott.kanowitz@gmail.com>
17
18 Description
19 -----------
20
21 This driver supports the Lattice POWR1220AT8 chip. The POWR1220
22 includes voltage monitoring for 14 inputs as well as trim settings
23 for output voltages and GPIOs. This driver implements the voltage
24 monitoring portion of the chip.
25
26 Voltages are sampled by a 12-bit ADC with a step size of 2 mV.
27 An in-line attenuator allows measurements from 0 to 6 V. The
28 attenuator is enabled or disabled depending on the setting of the
29 input's max value. The driver will enable the attenuator for any
30 value over the low measurement range maximum of 2 V.
31
32 The input naming convention is as follows:
33
34 ============== ========
35 driver name pin name
36 ============== ========
37 in0 VMON1
38 in1 VMON2
39 in2 VMON3
40 in2 VMON4
41 in4 VMON5
42 in5 VMON6
43 in6 VMON7
44 in7 VMON8
45 in8 VMON9
46 in9 VMON10
47 in10 VMON11
48 in11 VMON12
49 in12 VCCA
50 in13 VCCINP
51 ============== ========
52
53 The ADC readings are updated on request with a minimum period of 1s.
54

3. 한국어 전문 번역

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

Lattice POWR1220AT8 지원

1-17

Scott Kanowitz가 작성한 `powr1220` 드라이버는 Lattice POWR1220AT8을 지원합니다. 주소를 자동 검색하지 않으며 Lattice 웹사이트에서 데이터시트를 구할 수 있습니다.

POWR1220 식별
항목
Lattice POWR1220AT8
접두사powr1220
주소 검색없음
데이터시트Lattice 웹사이트 공개

전압 감시 드라이버의 기본 정보입니다.

POWR1220 등록
POWR1220AT8 확인I2C 주소 확인powr1220 장치 생성전압 감시부 초기화14개 입력 채널 공개

알려진 보드 주소로 감시 기능을 연결합니다.

Kernel driver powr1220
======================

Supported chips:

  * Lattice POWR1220AT8

    Prefix: 'powr1220'

    Addresses scanned: none

    Datasheet: Publicly available at the Lattice website

               http://www.latticesemi.com/

Author: Scott Kanowitz <scott.kanowitz@gmail.com>

12비트 ADC와 자동 감쇠기

18-31

POWR1220은 전압 입력 14개 감시, 출력 전압 trim 설정, GPIO 기능을 포함하지만 이 드라이버는 전압 모니터링 부분만 구현합니다.

전압은 단계 크기 2 mV의 12비트 ADC로 샘플링합니다.

인라인 감쇠기를 사용하면 0~6 V를 측정할 수 있습니다. 감쇠기 사용 여부는 입력의 max 설정값에 따라 결정되며 저범위 최대값 2 V를 넘는 값을 설정하면 드라이버가 감쇠기를 활성화합니다.

POWR1220 측정 범위
항목값·동작
ADC12비트
단계 크기2 mV
저범위최대 2 V
감쇠 범위0~6 V
감쇠기 선택입력 max > 2 V이면 활성화
드라이버 구현전압 감시만 지원

ADC 분해능과 max 기반 감쇠기 선택입니다.

입력 범위 선택
inX max 설정 읽기2 V 초과 여부 판단초과하면 인라인 감쇠기 활성화12비트 ADC 샘플링2 mV 단계 전압으로 변환

설정한 최대 전압에 맞춰 감쇠기를 자동 전환합니다.

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

This driver supports the Lattice POWR1220AT8 chip. The POWR1220
includes voltage monitoring for 14 inputs as well as trim settings
for output voltages and GPIOs. This driver implements the voltage
monitoring portion of the chip.

Voltages are sampled by a 12-bit ADC with a step size of 2 mV.
An in-line attenuator allows measurements from 0 to 6 V. The
attenuator is enabled or disabled depending on the setting of the
input's max value. The driver will enable the attenuator for any
value over the low measurement range maximum of 2 V.

VMON·전원 채널 매핑과 갱신 주기

32-53

입력 이름은 VMON1~VMON12와 전원 레일 VCCA, VCCINP에 대응합니다. `in0`은 VMON1, `in1`은 VMON2, 이후 입력은 순서대로 연결됩니다.

원문 표에는 `in2`가 VMON3과 VMON4에 모두 중복되어 있고 `in3` 항목이 없습니다. 아래 표는 오류를 임의로 고치지 않고 이 중복을 그대로 표시합니다.

`in4`~`in11`은 VMON5~VMON12, `in12`는 VCCA, `in13`은 VCCINP입니다.

ADC 판독은 요청 시 갱신되며 최소 갱신 주기는 1초입니다.

POWR1220 입력 이름
드라이버 이름핀 이름비고
in0VMON1
in1VMON2
in2VMON3
in2VMON4원문 중복, in3 미기재
in4~in11VMON5~VMON12순차 대응
in12VCCA
in13VCCINP

원문의 채널 표기를 그대로 보존합니다.

ADC 요청 갱신
입력 이름을 VMON·전원 핀에 매핑최근 갱신 시각 확인1초 이내이면 기존 값 유지필요하면 ADC 변환 요청새 전압 값 반환

최소 주기를 지키면서 요청된 전압을 새로 읽습니다.

The input naming convention is as follows:

============== ========
driver name    pin name
============== ========
in0            VMON1
in1            VMON2
in2            VMON3
in2            VMON4
in4            VMON5
in5            VMON6
in6            VMON7
in7            VMON8
in8            VMON9
in9            VMON10
in10           VMON11
in11           VMON12
in12           VCCA
in13           VCCINP
============== ========

The ADC readings are updated on request with a minimum period of 1s.