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

Linux 6.18.37 · Hardware Monitoring

Kernel driver g760a

G760A의 32kHz pulse period 기반 폐루프 fan speed 제어입니다.

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

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

1. 요약·해설

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

요약·해설

g760a.rst:1-40

Programmed pulse period와 실제 fan pulse를 비교하고 두 alarm bit를 보고합니다.

문서 개요
항목
SourceDocumentation/hwmon/g760a.rst
분량40 source lines
Clock32kHz
Update2초

원문 분량과 핵심 범위입니다.

핵심 흐름
Period 설정Fan pulse 측정RPM 계산Alarm 판정

장치 동작의 기본 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver g760a
2 ===================
3
4 Supported chips:
5
6 * Global Mixed-mode Technology Inc. G760A
7
8 Prefix: 'g760a'
9
10 Datasheet: Publicly available at the GMT website
11
12 http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf
13
14 Author: Herbert Valerio Riedel <[email protected]>
15
16 Description
17 -----------
18
19 The GMT G760A Fan Speed PWM Controller is connected directly to a fan
20 and performs closed-loop control of the fan speed.
21
22 The fan speed is programmed by setting the period via 'pwm1' of two
23 consecutive speed pulses. The period is defined in terms of clock
24 cycle counts of an assumed 32kHz clock source.
25
26 Setting a period of 0 stops the fan; setting the period to 255 sets
27 fan to maximum speed.
28
29 The measured fan rotation speed returned via 'fan1_input' is derived
30 from the measured speed pulse period by assuming again a 32kHz clock
31 source and a 2 pulse-per-revolution fan.
32
33 The 'alarms' file provides access to the two alarm bits provided by
34 the G760A chip's status register: Bit 0 is set when the actual fan
35 speed differs more than 20% with respect to the programmed fan speed;
36 bit 1 is set when fan speed is below 1920 RPM.
37
38 The g760a driver will not update its values more frequently than every
39 other second; reading them more often will do no harm, but will return
40 'old' values.
41

3. 한국어 전문 번역

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

G760A 지원 정보

1-17

이 드라이버는 Global Mixed-mode Technology Inc. G760A를 prefix `g760a`로 지원합니다. Datasheet는 GMT website의 `http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf`에 공개되어 있습니다. 저자는 Herbert Valerio Riedel입니다.

G760A metadata
항목
ChipGMT G760A
Prefixg760a
DatasheetEDS-760A.pdf
VendorGlobal Mixed-mode Technology Inc.

Fan controller의 기본 식별 정보입니다.

G760A 등록
G760A 식별32kHz clock 가정PWM period interface 등록RPM·alarm attribute 등록

PWM controller를 fan feedback interface와 함께 엽니다.

Kernel driver g760a
===================

Supported chips:

  * Global Mixed-mode Technology Inc. G760A

    Prefix: 'g760a'

    Datasheet: Publicly available at the GMT website

      http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf

Author: Herbert Valerio Riedel <[email protected]>

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

32kHz period 기반 폐루프 제어

18-32

GMT G760A Fan Speed PWM Controller는 fan에 직접 연결되어 fan speed를 closed-loop로 제어합니다.

Fan speed는 연속한 speed pulse 두 개 사이의 period를 `pwm1`으로 설정해 programming합니다. Period는 32kHz clock source를 가정한 clock cycle count로 정의됩니다. Period 0은 fan을 멈추고 255는 fan을 maximum speed로 설정합니다.

`fan1_input`으로 반환하는 측정 RPM도 32kHz clock과 회전당 2 pulse fan을 가정해 측정된 speed pulse period에서 계산합니다.

G760A speed 변환
항목
Clock32kHz 가정
pwm1연속 pulse 사이 period count
Period 0Fan stop
Period 255Maximum speed
fan1_input2 pulse/revolution 기준 RPM

같은 32kHz 기준을 설정과 측정에 사용합니다.

Closed-loop fan control
pwm1 period 설정PWM으로 fan 구동Speed pulse period 측정RPM 계산목표와 차이를 폐루프 보정

Programmed period와 실제 pulse period를 비교합니다.


The GMT G760A Fan Speed PWM Controller is connected directly to a fan
and performs closed-loop control of the fan speed.

The fan speed is programmed by setting the period via 'pwm1' of two
consecutive speed pulses. The period is defined in terms of clock
cycle counts of an assumed 32kHz clock source.

Setting a period of 0 stops the fan; setting the period to 255 sets
fan to maximum speed.

The measured fan rotation speed returned via 'fan1_input' is derived
from the measured speed pulse period by assuming again a 32kHz clock
source and a 2 pulse-per-revolution fan.

Alarm bit와 2초 update 간격

33-40

`alarms` 파일은 G760A status register의 alarm bit 두 개를 제공합니다. Bit 0은 실제 fan speed가 programmed fan speed와 20%보다 많이 다를 때 설정되고, bit 1은 fan speed가 1920 RPM 아래일 때 설정됩니다.

G760A 드라이버는 값을 2초보다 자주 갱신하지 않습니다. 더 자주 읽어도 해는 없지만 이전에 cache된 값을 반환합니다.

G760A alarm
항목조건
alarms bit 0실제 속도와 programmed speed 차이 >20%
alarms bit 1Fan speed <1920 RPM
Update interval최소 2초
빈번한 read이전 cache 값 반환

Status bit 조건과 cache 주기입니다.

Alarm 확인
2초 update 대기fan1_input 읽기Programmed speed와 비교alarms bit 판정필요 시 다음 update 후 재검증

갱신 주기를 고려해 측정값과 status를 함께 읽습니다.

The 'alarms' file provides access to the two alarm bits provided by
the G760A chip's status register: Bit 0 is set when the actual fan
speed differs more than 20% with respect to the programmed fan speed;
bit 1 is set when fan speed is below 1920 RPM.

The g760a driver will not update its values more frequently than every
other second; reading them more often will do no harm, but will return
'old' values.