Documentation/devicetree/bindings/pwm/pwm-lp3943.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

TI LP3943 PWM

TI LP3943 PWM의 register, clock, PWM cell과 channel binding입니다.

Source pathDocumentation/devicetree/bindings/pwm/pwm-lp3943.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약과 해설

pwm-lp3943.txt:1-58

Controller별 필수 property와 실제 device-tree 예제를 함께 설명합니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

원문 전체 펼치기
1 TI/National Semiconductor LP3943 PWM controller
2
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
15
16 Example:
17 PWM 0 is for RGB LED brightness control
18 PWM 1 is for brightness control of LP8557 backlight device
19
20 &i2c3 {
21 lp3943@60 {
22 compatible = "ti,lp3943";
23 reg = <0x60>;
24
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 };
36
37 };
38
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 };
48
49 &i2c4 {
50 /* Backlight control with PWM 1 of LP3943 */
51 backlight@2c {
52 compatible = "ti,lp8557";
53 reg = <0x2c>;
54
55 pwms = <&pwm3943 1 10000>;
56 pwm-names = "lp8557";
57 };
58 };
59

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

필수·선택 property

1-15

TI/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";
        };
};