요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
TI/National Semiconductor LP3943 PWM controller
3
Required properties:
4
- compatible: "ti,lp3943-pwm"
5
- #pwm-cells: Should be 2. See pwm.yaml in this directory for a
6
description of the cells format.
7
Note that this hardware limits the period length to the
8
range 6250~1600000.
9
- ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1.
10
0 = output 0
11
1 = output 1
12
.
13
.
14
15 = output 15
16
Example:
17
PWM 0 is for RGB LED brightness control
18
PWM 1 is for brightness control of LP8557 backlight device
20
&i2c3 {
21
lp3943@60 {
22
compatible = "ti,lp3943";
23
reg = <0x60>;
25
/*
26
* PWM 0 : output 8, 9 and 10
27
* PWM 1 : output 15
28
*/
29
pwm3943: pwm {
30
compatible = "ti,lp3943-pwm";
31
#pwm-cells = <2>;
32
ti,pwm0 = <8 9 10>;
33
ti,pwm1 = <15>;
34
};
35
};
37
};
39
/* LEDs control with PWM 0 of LP3943 */
40
pwmleds {
41
compatible = "pwm-leds";
42
rgb {
43
label = "indi::rgb";
44
pwms = <&pwm3943 0 10000>;
45
max-brightness = <255>;
46
};
47
};
49
&i2c4 {
50
/* Backlight control with PWM 1 of LP3943 */
51
backlight@2c {
52
compatible = "ti,lp8557";
53
reg = <0x2c>;
55
pwms = <&pwm3943 1 10000>;
56
pwm-names = "lp8557";
57
};
58
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
필수·선택 property
1-15TI/National Semiconductor LP3943 PWM controller의 필수 `compatible`은 `ti,lp3943-pwm`, `#pwm-cells`는 2입니다. Hardware period 범위는 6250~1600000입니다. `ti,pwm0` 또는 `ti,pwm1`은 channel 0·1이 사용할 output pin 번호 0-15를 지정합니다.
Device-tree 예제
16-58예제는 PWM0의 output 8·9·10으로 RGB LED brightness를 제어하고 PWM1 output 15로 LP8557 backlight를 제어합니다. 두 consumer 모두 period 10000을 사용합니다.
&i2c3 {
lp3943@60 {
compatible = "ti,lp3943";
reg = <0x60>;
/*
* PWM 0 : output 8, 9 and 10
* PWM 1 : output 15
*/
pwm3943: pwm {
compatible = "ti,lp3943-pwm";
#pwm-cells = <2>;
ti,pwm0 = <8 9 10>;
ti,pwm1 = <15>;
};
};
};
/* LEDs control with PWM 0 of LP3943 */
pwmleds {
compatible = "pwm-leds";
rgb {
label = "indi::rgb";
pwms = <&pwm3943 0 10000>;
max-brightness = <255>;
};
};
&i2c4 {
/* Backlight control with PWM 1 of LP3943 */
backlight@2c {
compatible = "ti,lp8557";
reg = <0x2c>;
pwms = <&pwm3943 1 10000>;
pwm-names = "lp8557";
};
};
요약과 해설
pwm-lp3943.txt:1-58Controller별 필수 property와 실제 device-tree 예제를 함께 설명합니다.