요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
Motorola CPCAP PMIC LEDs
------------------------
This module is part of the CPCAP. For more details about the whole
chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt.
Requires node properties:
- compatible: should be one of
* "motorola,cpcap-led-mdl" (Main Display Lighting)
* "motorola,cpcap-led-kl" (Keyboard Lighting)
* "motorola,cpcap-led-adl" (Aux Display Lighting)
* "motorola,cpcap-led-red" (Red Triode)
* "motorola,cpcap-led-green" (Green Triode)
* "motorola,cpcap-led-blue" (Blue Triode)
* "motorola,cpcap-led-cf" (Camera Flash)
* "motorola,cpcap-led-bt" (Bluetooth)
* "motorola,cpcap-led-cp" (Camera Privacy LED)
- label: see Documentation/devicetree/bindings/leds/common.txt
- vdd-supply: A phandle to the regulator powering the LED
Example:
&cpcap {
cpcap_led_red: red-led {
compatible = "motorola,cpcap-led-red";
label = "cpcap:red";
vdd-supply = <&sw5>;
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 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 기능을 세 그룹으로 정리합니다.
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>;
};
};
요약과 해설
leds-cpcap.txt:1-29기능별 compatible과 regulator 전원을 설명합니다.