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

Linux 6.18.37 · Hardware Monitoring

Kernel Driver Lochnagar

Lochnagar 2 미니카드용 8개 전원 레일의 전압·전류·평균 전력과 보드 온도입니다.

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

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

1. 요약·해설

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

요약·해설

lochnagar.rst:1-83

내장 Current Monitor가 최대 8개 레일을 측정하고 1~1708ms 평균 전력과 보드 온도를 보드 컨트롤러를 통해 제공합니다.

문서 개요
항목
SourceDocumentation/hwmon/lochnagar.rst
분량83 source lines
레일8개
전력 평균1~1708ms

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

동작 흐름
레일 식별전압·전류 측정평균 시간 적용전력·온도 감시

장치 연결부터 측정·이력 사용까지의 핵심 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel Driver Lochnagar
2 =======================
3
4 Supported systems:
5 * Cirrus Logic : Lochnagar 2
6
7 Author: Lucas A. Tanure Alves
8
9 Description
10 -----------
11
12 Lochnagar 2 features built-in Current Monitor circuitry that allows for the
13 measurement of both voltage and current on up to eight of the supply voltage
14 rails provided to the minicards. The Current Monitor does not require any
15 hardware modifications or external circuitry to operate.
16
17 The current and voltage measurements are obtained through the standard register
18 map interface to the Lochnagar board controller, and can therefore be monitored
19 by software.
20
21 Sysfs attributes
22 ----------------
23
24 ======================= =======================================================
25 temp1_input The Lochnagar board temperature (milliCelsius)
26 in0_input Measured voltage for DBVDD1 (milliVolts)
27 in0_label "DBVDD1"
28 curr1_input Measured current for DBVDD1 (milliAmps)
29 curr1_label "DBVDD1"
30 power1_average Measured average power for DBVDD1 (microWatts)
31 power1_average_interval Power averaging time input valid from 1 to 1708mS
32 power1_label "DBVDD1"
33 in1_input Measured voltage for 1V8 DSP (milliVolts)
34 in1_label "1V8 DSP"
35 curr2_input Measured current for 1V8 DSP (milliAmps)
36 curr2_label "1V8 DSP"
37 power2_average Measured average power for 1V8 DSP (microWatts)
38 power2_average_interval Power averaging time input valid from 1 to 1708mS
39 power2_label "1V8 DSP"
40 in2_input Measured voltage for 1V8 CDC (milliVolts)
41 in2_label "1V8 CDC"
42 curr3_input Measured current for 1V8 CDC (milliAmps)
43 curr3_label "1V8 CDC"
44 power3_average Measured average power for 1V8 CDC (microWatts)
45 power3_average_interval Power averaging time input valid from 1 to 1708mS
46 power3_label "1V8 CDC"
47 in3_input Measured voltage for VDDCORE DSP (milliVolts)
48 in3_label "VDDCORE DSP"
49 curr4_input Measured current for VDDCORE DSP (milliAmps)
50 curr4_label "VDDCORE DSP"
51 power4_average Measured average power for VDDCORE DSP (microWatts)
52 power4_average_interval Power averaging time input valid from 1 to 1708mS
53 power4_label "VDDCORE DSP"
54 in4_input Measured voltage for AVDD 1V8 (milliVolts)
55 in4_label "AVDD 1V8"
56 curr5_input Measured current for AVDD 1V8 (milliAmps)
57 curr5_label "AVDD 1V8"
58 power5_average Measured average power for AVDD 1V8 (microWatts)
59 power5_average_interval Power averaging time input valid from 1 to 1708mS
60 power5_label "AVDD 1V8"
61 curr6_input Measured current for SYSVDD (milliAmps)
62 curr6_label "SYSVDD"
63 power6_average Measured average power for SYSVDD (microWatts)
64 power6_average_interval Power averaging time input valid from 1 to 1708mS
65 power6_label "SYSVDD"
66 in6_input Measured voltage for VDDCORE CDC (milliVolts)
67 in6_label "VDDCORE CDC"
68 curr7_input Measured current for VDDCORE CDC (milliAmps)
69 curr7_label "VDDCORE CDC"
70 power7_average Measured average power for VDDCORE CDC (microWatts)
71 power7_average_interval Power averaging time input valid from 1 to 1708mS
72 power7_label "VDDCORE CDC"
73 in7_input Measured voltage for MICVDD (milliVolts)
74 in7_label "MICVDD"
75 curr8_input Measured current for MICVDD (milliAmps)
76 curr8_label "MICVDD"
77 power8_average Measured average power for MICVDD (microWatts)
78 power8_average_interval Power averaging time input valid from 1 to 1708mS
79 power8_label "MICVDD"
80 ======================= =======================================================
81
82 Note:
83 It is not possible to measure voltage on the SYSVDD rail.
84

3. 한국어 전문 번역

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

Lochnagar 2 내장 전류 모니터

1-20

이 드라이버는 Cirrus Logic Lochnagar 2 시스템을 지원하며 작성자는 Lucas A. Tanure Alves입니다.

Lochnagar 2의 내장 Current Monitor 회로는 미니카드에 제공되는 최대 8개 전원 레일의 전압과 전류를 측정합니다. 동작을 위해 하드웨어 변경이나 외부 회로가 필요하지 않습니다.

측정값은 Lochnagar 보드 컨트롤러의 표준 레지스터 맵 인터페이스를 통해 얻으므로 소프트웨어에서 감시할 수 있습니다.

Lochnagar 감시 구조
항목내용
지원 시스템Cirrus Logic Lochnagar 2
측정 회로내장 Current Monitor
전원 레일최대 8개
외부 회로불필요
접근보드 컨트롤러 표준 레지스터 맵

보드 컨트롤러와 내장 측정 회로의 역할입니다.

Lochnagar 측정 경로
내장 Current Monitor 샘플링레일별 전압·전류 계산보드 컨트롤러 레지스터 갱신hwmon 속성 읽기평균 전력과 보드 온도 감시

전원 레일의 값을 보드 컨트롤러를 통해 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` 전압 속성이 없습니다.

Lochnagar 레일 매핑
레일전압전류·전력
DBVDD1in0curr1 / power1
1V8 DSPin1curr2 / power2
1V8 CDCin2curr3 / power3
VDDCORE DSPin3curr4 / power4
AVDD 1V8in4curr5 / power5
SYSVDD측정 불가curr6 / power6
VDDCORE CDCin6curr7 / power7
MICVDDin7curr8 / power8

레일별 전압·전류·전력 채널입니다.

레일 전력 평균
레일 라벨로 채널 식별전압·전류 샘플 읽기1~1708 ms 평균 시간 선택power<n>_average 읽기SYSVDD는 전압 없이 전류·전력만 사용

평균 시간 설정에 따라 레일별 전력을 집계합니다.

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.