요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
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 <[email protected]>
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.
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.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Lattice POWR1220AT8 지원
1-17Scott Kanowitz가 작성한 `powr1220` 드라이버는 Lattice POWR1220AT8을 지원합니다. 주소를 자동 검색하지 않으며 Lattice 웹사이트에서 데이터시트를 구할 수 있습니다.
전압 감시 드라이버의 기본 정보입니다.
알려진 보드 주소로 감시 기능을 연결합니다.
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 <[email protected]>
12비트 ADC와 자동 감쇠기
18-31POWR1220은 전압 입력 14개 감시, 출력 전압 trim 설정, GPIO 기능을 포함하지만 이 드라이버는 전압 모니터링 부분만 구현합니다.
전압은 단계 크기 2 mV의 12비트 ADC로 샘플링합니다.
인라인 감쇠기를 사용하면 0~6 V를 측정할 수 있습니다. 감쇠기 사용 여부는 입력의 max 설정값에 따라 결정되며 저범위 최대값 2 V를 넘는 값을 설정하면 드라이버가 감쇠기를 활성화합니다.
ADC 분해능과 max 기반 감쇠기 선택입니다.
설정한 최대 전압에 맞춰 감쇠기를 자동 전환합니다.
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초입니다.
원문의 채널 표기를 그대로 보존합니다.
최소 주기를 지키면서 요청된 전압을 새로 읽습니다.
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.
요약·해설
powr1220.rst:1-532 mV 단계 ADC로 저범위 2 V 또는 감쇠 범위 6 V를 선택하고 VMON1~12·VCCA·VCCINP를 최소 1초 주기로 읽습니다.
원문 분량과 핵심 장치 구성을 정리합니다.
장치 인식부터 측정·제어까지의 핵심 순서입니다.