Documentation/devicetree/bindings/leds/leds-cpcap.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

Motorola CPCAP PMIC LEDs

CPCAP의 display, triode, flash와 privacy LED 바인딩입니다.

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

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

1. 요약·해설

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

요약과 해설

leds-cpcap.txt:1-29

기능별 compatible과 regulator 전원을 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Motorola CPCAP PMIC LEDs
2 ------------------------
3
4 This module is part of the CPCAP. For more details about the whole
5 chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt.
6
7 Requires node properties:
8 - compatible: should be one of
9 * "motorola,cpcap-led-mdl" (Main Display Lighting)
10 * "motorola,cpcap-led-kl" (Keyboard Lighting)
11 * "motorola,cpcap-led-adl" (Aux Display Lighting)
12 * "motorola,cpcap-led-red" (Red Triode)
13 * "motorola,cpcap-led-green" (Green Triode)
14 * "motorola,cpcap-led-blue" (Blue Triode)
15 * "motorola,cpcap-led-cf" (Camera Flash)
16 * "motorola,cpcap-led-bt" (Bluetooth)
17 * "motorola,cpcap-led-cp" (Camera Privacy LED)
18 - label: see Documentation/devicetree/bindings/leds/common.txt
19 - vdd-supply: A phandle to the regulator powering the LED
20
21 Example:
22
23 &cpcap {
24 cpcap_led_red: red-led {
25 compatible = "motorola,cpcap-led-red";
26 label = "cpcap:red";
27 vdd-supply = <&sw5>;
28 };
29 };
30

3. 한국어 전문 번역

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

Motorola CPCAP PMIC LED 속성

1-20

이 모듈은 CPCAP의 일부이며 전체 chip은 `Documentation/devicetree/bindings/mfd/motorola-cpcap.txt`를 참조합니다. `compatible`은 main display lighting의 `motorola,cpcap-led-mdl`, keyboard lighting의 `motorola,cpcap-led-kl`, aux display lighting의 `motorola,cpcap-led-adl` 중 하나일 수 있습니다.

또한 red, green, blue triode용 `motorola,cpcap-led-red`, `motorola,cpcap-led-green`, `motorola,cpcap-led-blue`, camera flash용 `motorola,cpcap-led-cf`, Bluetooth용 `motorola,cpcap-led-bt`, camera privacy LED용 `motorola,cpcap-led-cp`를 지원합니다. 필수 `label`은 공통 LED 바인딩을 따르고 `vdd-supply`는 LED 전원 regulator의 phandle입니다.

CPCAP LED compatible 계열
그룹compatible suffix
Displaymdl, kl, adl
Triodered, green, blue
기타cf(camera flash), bt(Bluetooth), cp(camera privacy)

CPCAP 내부 LED 기능을 세 그룹으로 정리합니다.

CPCAP red LED 예제

21-29

예제는 CPCAP 하위에 red LED를 만들고 `motorola,cpcap-led-red`, label `cpcap:red`, SW5 regulator 전원을 지정합니다.

&cpcap {
        cpcap_led_red: red-led {
                compatible = "motorola,cpcap-led-red";
                label = "cpcap:red";
                vdd-supply = <&sw5>;
        };
};