← Documents Documentation/ABI/testing/sysfs-class-led-driver-lm3533 GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

LM3533 LED ALS, pattern, and PWM sysfs ABI

LM3533 LED의 ALS current channel·enable, pattern rise/fall timing, LED id, brightness mapping과 zone별 PWM mask를 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-class-led-driver-lm3533
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

ALS input and pattern timing

sysfs-class-led-driver-lm3533:1-39

두 ALS output current channel과 ALS control enable, pattern generator의 8단계 rise·fall timing을 제공합니다.

LED identity, mapping, and PWM zones

sysfs-class-led-driver-lm3533:40-73

LED id, exponential·linear brightness mapping과 global·zone별 PWM input enable bit를 정의합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/class/leds/<led>/als_channel
2 Date: May 2012
3 KernelVersion: 3.5
4 Contact: Johan Hovold <jhovold@gmail.com>
5 Description:
6 Set the ALS output channel to use as input in
7 ALS-current-control mode (1, 2), where:
8
9 == ============
10 1 out_current1
11 2 out_current2
12 == ============
13
14 What: /sys/class/leds/<led>/als_en
15 Date: May 2012
16 KernelVersion: 3.5
17 Contact: Johan Hovold <jhovold@gmail.com>
18 Description:
19 Enable ALS-current-control mode (0, 1).
20
21 What: /sys/class/leds/<led>/falltime
22 What: /sys/class/leds/<led>/risetime
23 Date: April 2012
24 KernelVersion: 3.5
25 Contact: Johan Hovold <jhovold@gmail.com>
26 Description:
27 Set the pattern generator fall and rise times (0..7), where:
28
29 == =======
30 0 2048 us
31 1 262 ms
32 2 524 ms
33 3 1.049 s
34 4 2.097 s
35 5 4.194 s
36 6 8.389 s
37 7 16.78 s
38 == =======
39
40 What: /sys/class/leds/<led>/id
41 Date: April 2012
42 KernelVersion: 3.5
43 Contact: Johan Hovold <jhovold@gmail.com>
44 Description:
45 Get the id of this led (0..3).
46
47 What: /sys/class/leds/<led>/linear
48 Date: April 2012
49 KernelVersion: 3.5
50 Contact: Johan Hovold <jhovold@gmail.com>
51 Description:
52 Set the brightness-mapping mode (0, 1), where:
53
54 == ================
55 0 exponential mode
56 1 linear mode
57 == ================
58
59 What: /sys/class/leds/<led>/pwm
60 Date: April 2012
61 KernelVersion: 3.5
62 Contact: Johan Hovold <jhovold@gmail.com>
63 Description:
64 Set the PWM-input control mask (5 bits), where:
65
66 ===== ===========================
67 bit 5 PWM-input enabled in Zone 4
68 bit 4 PWM-input enabled in Zone 3
69 bit 3 PWM-input enabled in Zone 2
70 bit 2 PWM-input enabled in Zone 1
71 bit 1 PWM-input enabled in Zone 0
72 bit 0 PWM-input enabled
73 ===== ===========================
74

3. 한국어 전문 번역

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

ALS current-control input channel

1-13
항목한국어 전문 번역
What/sys/class/leds/<led>/als_channel
Date2012년 5월
KernelVersion3.5
ContactJohan Hovold <jhovold@gmail.com>
DescriptionALS-current-control mode에서 input으로 사용할 ALS output channel을 1 또는 2로 설정합니다.
ALS output channel
Channel
1out_current1
2out_current2

als_channel 값과 대응 output current입니다.

ALS current-control enable

14-20
항목한국어 전문 번역
What/sys/class/leds/<led>/als_en
Date2012년 5월
KernelVersion3.5
ContactJohan Hovold <jhovold@gmail.com>
Description0 또는 1로 ALS-current-control mode를 enable합니다.

Pattern generator fall time

21-21
항목한국어 전문 번역
What/sys/class/leds/<led>/falltime
Date원문에 명시되지 않음
DescriptionPattern generator의 fall time을 설정합니다. risetime과 같은 0-7 timing table을 사용하며 상세 값은 다음 section에 보존했습니다.

Pattern generator rise time

22-39
항목한국어 전문 번역
What/sys/class/leds/<led>/risetime
Date2012년 4월
KernelVersion3.5
ContactJohan Hovold <jhovold@gmail.com>
DescriptionPattern generator의 fall·rise time을 0-7 값으로 설정합니다.
LM3533 pattern timing
시간
02048 us
1262 ms
2524 ms
31.049 s
42.097 s
54.194 s
68.389 s
716.78 s

falltime과 risetime이 공유하는 값입니다.

LM3533 LED identifier

40-46
항목한국어 전문 번역
What/sys/class/leds/<led>/id
Date2012년 4월
KernelVersion3.5
ContactJohan Hovold <jhovold@gmail.com>
Description이 LED의 id를 0-3 범위로 가져옵니다.

Brightness mapping mode

47-58
항목한국어 전문 번역
What/sys/class/leds/<led>/linear
Date2012년 4월
KernelVersion3.5
ContactJohan Hovold <jhovold@gmail.com>
DescriptionBrightness mapping mode를 설정합니다. 0은 exponential mode, 1은 linear mode입니다.
Brightness mapping
Mode
0Exponential
1Linear

linear 속성의 두 mapping mode입니다.

PWM input control mask

59-73
항목한국어 전문 번역
What/sys/class/leds/<led>/pwm
Date2012년 4월
KernelVersion3.5
ContactJohan Hovold <jhovold@gmail.com>
DescriptionPWM-input control mask를 설정합니다. 원문은 5-bit mask라고 부르지만 bit 5부터 bit 0까지의 의미를 나열합니다.
LM3533 PWM input mask
Bit동작
5Zone 4에서 PWM input enable
4Zone 3에서 PWM input enable
3Zone 2에서 PWM input enable
2Zone 1에서 PWM input enable
1Zone 0에서 PWM input enable
0PWM input enable

원문 bit 번호와 zone enable 의미를 그대로 보존합니다.