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

Linux 6.18.37 · Hardware Monitoring

Kernel driver menf21bmc_hwmon

MEN 14F021P00 BMC의 PIC16F917 ADC를 통한 다섯 보드 전압과 고정 한계 감시입니다.

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

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

1. 요약·해설

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

요약·해설

menf21bmc.rst:1-55

MFD 부모를 명시적으로 생성하고 BMC ADC에서 3.3V·5V·12V·대기·배터리 전압을 읽습니다.

문서 개요
항목
SourceDocumentation/hwmon/menf21bmc.rst
분량55 source lines
전압 채널5개
속성모두 읽기 전용

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

운영 흐름
MFD 생성BMC 연결ADC 읽기한계 비교전원 상태 판단

장치 등록부터 측정·경보 처리까지의 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver menf21bmc_hwmon
2 =============================
3
4 Supported chips:
5
6 * MEN 14F021P00
7
8 Prefix: 'menf21bmc_hwmon'
9
10 Addresses scanned: -
11
12 Author: Andreas Werner <[email protected]>
13
14 Description
15 -----------
16
17 The menf21bmc is a Board Management Controller (BMC) which provides an I2C
18 interface to the host to access the features implemented in the BMC.
19
20 This driver gives access to the voltage monitoring feature of the main
21 voltages of the board.
22 The voltage sensors are connected to the ADC inputs of the BMC which is
23 a PIC16F917 Mikrocontroller.
24
25 Usage Notes
26 -----------
27
28 This driver is part of the MFD driver named "menf21bmc" and does
29 not auto-detect devices.
30 You will have to instantiate the MFD driver explicitly.
31 Please see Documentation/i2c/instantiating-devices.rst for
32 details.
33
34 Sysfs entries
35 -------------
36
37 The following attributes are supported. All attributes are read only
38 The Limits are read once by the driver.
39
40 =============== ==========================
41 in0_input +3.3V input voltage
42 in1_input +5.0V input voltage
43 in2_input +12.0V input voltage
44 in3_input +5V Standby input voltage
45 in4_input VBAT (on board battery)
46
47 in[0-4]_min Minimum voltage limit
48 in[0-4]_max Maximum voltage limit
49
50 in0_label "MON_3_3V"
51 in1_label "MON_5V"
52 in2_label "MON_12V"
53 in3_label "5V_STANDBY"
54 in4_label "VBAT"
55 =============== ==========================
56

3. 한국어 전문 번역

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

MEN 14F021P00 BMC 전압 감시

1-32

Andreas Werner가 작성한 `menf21bmc_hwmon` 드라이버는 MEN 14F021P00을 지원하며 주소 자동 검색은 하지 않습니다.

menf21bmc는 호스트가 BMC 기능에 접근할 수 있도록 I2C 인터페이스를 제공하는 보드 관리 컨트롤러입니다. 이 hwmon 드라이버는 보드 주요 전압 감시 기능을 노출합니다.

전압 센서는 PIC16F917 마이크로컨트롤러인 BMC의 ADC 입력에 연결됩니다. 이 드라이버는 `menf21bmc` MFD 드라이버의 일부이며 MFD 장치를 명시적으로 생성해야 합니다.

MEN BMC 구성
항목
지원 장치MEN 14F021P00
접두사menf21bmc_hwmon
BMC MCUPIC16F917
인터페이스I2C + MFD
자동 검색없음

호스트 I2C에서 BMC ADC의 주요 전압을 읽습니다.

BMC 전압 접근
menf21bmc MFD 명시적 생성BMC I2C 인터페이스 연결hwmon 자식 등록PIC16F917 ADC 읽기주요 전압 노출

MFD 부모를 생성한 뒤 hwmon 자식이 ADC 값을 제공합니다.

Kernel driver menf21bmc_hwmon
=============================

Supported chips:

        * MEN 14F021P00

          Prefix: 'menf21bmc_hwmon'

          Addresses scanned: -

Author: Andreas Werner <[email protected]>

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

The menf21bmc is a Board Management Controller (BMC) which provides an I2C
interface to the host to access the features implemented in the BMC.

This driver gives access to the voltage monitoring feature of the main
voltages of the board.
The voltage sensors are connected to the ADC inputs of the BMC which is
a PIC16F917 Mikrocontroller.

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

This driver is part of the MFD driver named "menf21bmc" and does
not auto-detect devices.
You will have to instantiate the MFD driver explicitly.
Please see Documentation/i2c/instantiating-devices.rst for
details.

5개 보드 전압과 부팅 시 읽는 한계값

33-55

모든 속성은 읽기 전용이고 최소·최대 한계는 드라이버가 한 번만 읽습니다. `in0`은 +3.3V, `in1`은 +5.0V, `in2`는 +12.0V, `in3`은 +5V 대기 전압, `in4`는 온보드 배터리 `VBAT`입니다.

각 `in[0-4]_min`과 `max`는 최소·최대 전압 한계입니다. 레이블은 `MON_3_3V`, `MON_5V`, `MON_12V`, `5V_STANDBY`, `VBAT`입니다.

menf21bmc 전압 채널
채널전압레이블
in0+3.3VMON_3_3V
in1+5.0VMON_5V
in2+12.0VMON_12V
in3+5V Standby5V_STANDBY
in4온보드 배터리VBAT

입력 번호와 보드 전원 레일의 대응입니다.

보드 전압 확인
드라이버 초기화 때 min/max 읽기in0-in4 현재값 읽기레이블로 전원 식별최소·최대 한계 비교보드 전원 상태 판단

고정 한계와 현재값을 채널별로 비교합니다.


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

The following attributes are supported. All attributes are read only
The Limits are read once by the driver.

=============== ==========================
in0_input        +3.3V input voltage
in1_input        +5.0V input voltage
in2_input        +12.0V input voltage
in3_input        +5V Standby input voltage
in4_input        VBAT (on board battery)

in[0-4]_min        Minimum voltage limit
in[0-4]_max        Maximum voltage limit

in0_label        "MON_3_3V"
in1_label        "MON_5V"
in2_label        "MON_12V"
in3_label        "5V_STANDBY"
in4_label        "VBAT"
=============== ==========================