요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
Kernel Driver Lochnagar
=======================
Supported systems:
* Cirrus Logic : Lochnagar 2
Author: Lucas A. Tanure Alves
Description
-----------
Lochnagar 2 features built-in Current Monitor circuitry that allows for the
measurement of both voltage and current on up to eight of the supply voltage
rails provided to the minicards. The Current Monitor does not require any
hardware modifications or external circuitry to operate.
The current and voltage measurements are obtained through the standard register
map interface to the Lochnagar board controller, and can therefore be monitored
by software.
Sysfs attributes
----------------
======================= =======================================================
temp1_input The Lochnagar board temperature (milliCelsius)
in0_input Measured voltage for DBVDD1 (milliVolts)
in0_label "DBVDD1"
curr1_input Measured current for DBVDD1 (milliAmps)
curr1_label "DBVDD1"
power1_average Measured average power for DBVDD1 (microWatts)
power1_average_interval Power averaging time input valid from 1 to 1708mS
power1_label "DBVDD1"
in1_input Measured voltage for 1V8 DSP (milliVolts)
in1_label "1V8 DSP"
curr2_input Measured current for 1V8 DSP (milliAmps)
curr2_label "1V8 DSP"
power2_average Measured average power for 1V8 DSP (microWatts)
power2_average_interval Power averaging time input valid from 1 to 1708mS
power2_label "1V8 DSP"
in2_input Measured voltage for 1V8 CDC (milliVolts)
in2_label "1V8 CDC"
curr3_input Measured current for 1V8 CDC (milliAmps)
curr3_label "1V8 CDC"
power3_average Measured average power for 1V8 CDC (microWatts)
power3_average_interval Power averaging time input valid from 1 to 1708mS
power3_label "1V8 CDC"
in3_input Measured voltage for VDDCORE DSP (milliVolts)
in3_label "VDDCORE DSP"
curr4_input Measured current for VDDCORE DSP (milliAmps)
curr4_label "VDDCORE DSP"
power4_average Measured average power for VDDCORE DSP (microWatts)
power4_average_interval Power averaging time input valid from 1 to 1708mS
power4_label "VDDCORE DSP"
in4_input Measured voltage for AVDD 1V8 (milliVolts)
in4_label "AVDD 1V8"
curr5_input Measured current for AVDD 1V8 (milliAmps)
curr5_label "AVDD 1V8"
power5_average Measured average power for AVDD 1V8 (microWatts)
power5_average_interval Power averaging time input valid from 1 to 1708mS
power5_label "AVDD 1V8"
curr6_input Measured current for SYSVDD (milliAmps)
curr6_label "SYSVDD"
power6_average Measured average power for SYSVDD (microWatts)
power6_average_interval Power averaging time input valid from 1 to 1708mS
power6_label "SYSVDD"
in6_input Measured voltage for VDDCORE CDC (milliVolts)
in6_label "VDDCORE CDC"
curr7_input Measured current for VDDCORE CDC (milliAmps)
curr7_label "VDDCORE CDC"
power7_average Measured average power for VDDCORE CDC (microWatts)
power7_average_interval Power averaging time input valid from 1 to 1708mS
power7_label "VDDCORE CDC"
in7_input Measured voltage for MICVDD (milliVolts)
in7_label "MICVDD"
curr8_input Measured current for MICVDD (milliAmps)
curr8_label "MICVDD"
power8_average Measured average power for MICVDD (microWatts)
power8_average_interval Power averaging time input valid from 1 to 1708mS
power8_label "MICVDD"
======================= =======================================================
Note:
It is not possible to measure voltage on the SYSVDD rail.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Lochnagar 2 내장 전류 모니터
1-20이 드라이버는 Cirrus Logic Lochnagar 2 시스템을 지원하며 작성자는 Lucas A. Tanure Alves입니다.
Lochnagar 2의 내장 Current Monitor 회로는 미니카드에 제공되는 최대 8개 전원 레일의 전압과 전류를 측정합니다. 동작을 위해 하드웨어 변경이나 외부 회로가 필요하지 않습니다.
측정값은 Lochnagar 보드 컨트롤러의 표준 레지스터 맵 인터페이스를 통해 얻으므로 소프트웨어에서 감시할 수 있습니다.
보드 컨트롤러와 내장 측정 회로의 역할입니다.
전원 레일의 값을 보드 컨트롤러를 통해 hwmon으로 전달합니다.
Kernel Driver Lochnagar
=======================
Supported systems:
* Cirrus Logic : Lochnagar 2
Author: Lucas A. Tanure Alves
Description
-----------
Lochnagar 2 features built-in Current Monitor circuitry that allows for the
measurement of both voltage and current on up to eight of the supply voltage
rails provided to the minicards. The Current Monitor does not require any
hardware modifications or external circuitry to operate.
The current and voltage measurements are obtained through the standard register
map interface to the Lochnagar board controller, and can therefore be monitored
by software.
8개 레일의 전압·전류·평균 전력
21-83`temp1_input`은 Lochnagar 보드 온도를 밀리섭씨로 보고합니다. 각 전원 레일에는 라벨, 전압(mV), 전류(mA), 평균 전력(uW), 1~1708 ms 범위의 전력 평균 시간이 대응합니다.
레일은 DBVDD1, 1V8 DSP, 1V8 CDC, VDDCORE DSP, AVDD 1V8, SYSVDD, VDDCORE CDC, MICVDD입니다. DBVDD1은 `in0/curr1/power1`, 1V8 DSP는 `in1/curr2/power2`, 1V8 CDC는 `in2/curr3/power3`, VDDCORE DSP는 `in3/curr4/power4`, AVDD 1V8은 `in4/curr5/power5`에 대응합니다.
SYSVDD는 `curr6/power6`, VDDCORE CDC는 `in6/curr7/power7`, MICVDD는 `in7/curr8/power8`에 대응합니다. SYSVDD 레일은 전압을 측정할 수 없어 `in5` 전압 속성이 없습니다.
레일별 전압·전류·전력 채널입니다.
평균 시간 설정에 따라 레일별 전력을 집계합니다.
Sysfs attributes
----------------
======================= =======================================================
temp1_input The Lochnagar board temperature (milliCelsius)
in0_input Measured voltage for DBVDD1 (milliVolts)
in0_label "DBVDD1"
curr1_input Measured current for DBVDD1 (milliAmps)
curr1_label "DBVDD1"
power1_average Measured average power for DBVDD1 (microWatts)
power1_average_interval Power averaging time input valid from 1 to 1708mS
power1_label "DBVDD1"
in1_input Measured voltage for 1V8 DSP (milliVolts)
in1_label "1V8 DSP"
curr2_input Measured current for 1V8 DSP (milliAmps)
curr2_label "1V8 DSP"
power2_average Measured average power for 1V8 DSP (microWatts)
power2_average_interval Power averaging time input valid from 1 to 1708mS
power2_label "1V8 DSP"
in2_input Measured voltage for 1V8 CDC (milliVolts)
in2_label "1V8 CDC"
curr3_input Measured current for 1V8 CDC (milliAmps)
curr3_label "1V8 CDC"
power3_average Measured average power for 1V8 CDC (microWatts)
power3_average_interval Power averaging time input valid from 1 to 1708mS
power3_label "1V8 CDC"
in3_input Measured voltage for VDDCORE DSP (milliVolts)
in3_label "VDDCORE DSP"
curr4_input Measured current for VDDCORE DSP (milliAmps)
curr4_label "VDDCORE DSP"
power4_average Measured average power for VDDCORE DSP (microWatts)
power4_average_interval Power averaging time input valid from 1 to 1708mS
power4_label "VDDCORE DSP"
in4_input Measured voltage for AVDD 1V8 (milliVolts)
in4_label "AVDD 1V8"
curr5_input Measured current for AVDD 1V8 (milliAmps)
curr5_label "AVDD 1V8"
power5_average Measured average power for AVDD 1V8 (microWatts)
power5_average_interval Power averaging time input valid from 1 to 1708mS
power5_label "AVDD 1V8"
curr6_input Measured current for SYSVDD (milliAmps)
curr6_label "SYSVDD"
power6_average Measured average power for SYSVDD (microWatts)
power6_average_interval Power averaging time input valid from 1 to 1708mS
power6_label "SYSVDD"
in6_input Measured voltage for VDDCORE CDC (milliVolts)
in6_label "VDDCORE CDC"
curr7_input Measured current for VDDCORE CDC (milliAmps)
curr7_label "VDDCORE CDC"
power7_average Measured average power for VDDCORE CDC (microWatts)
power7_average_interval Power averaging time input valid from 1 to 1708mS
power7_label "VDDCORE CDC"
in7_input Measured voltage for MICVDD (milliVolts)
in7_label "MICVDD"
curr8_input Measured current for MICVDD (milliAmps)
curr8_label "MICVDD"
power8_average Measured average power for MICVDD (microWatts)
power8_average_interval Power averaging time input valid from 1 to 1708mS
power8_label "MICVDD"
======================= =======================================================
Note:
It is not possible to measure voltage on the SYSVDD rail.
요약·해설
lochnagar.rst:1-83내장 Current Monitor가 최대 8개 레일을 측정하고 1~1708ms 평균 전력과 보드 온도를 보드 컨트롤러를 통해 제공합니다.
원문 분량과 핵심 인터페이스입니다.
장치 연결부터 측정·이력 사용까지의 핵심 순서입니다.