요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
* Analog Devices ADP1653 flash LED driver
Required Properties:
- compatible: Must contain "adi,adp1653"
- reg: I2C slave address
- enable-gpios: Specifier of the GPIO connected to EN pin
There are two LED outputs available - flash and indicator. One LED is
represented by one child node, nodes need to be named "flash" and "indicator".
Required properties of the LED child node:
- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt
Required properties of the flash LED child node:
- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt
- flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt
- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt
Example:
adp1653: led-controller@30 {
compatible = "adi,adp1653";
reg = <0x30>;
enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */
flash {
flash-timeout-us = <500000>;
flash-max-microamp = <320000>;
led-max-microamp = <50000>;
};
indicator {
led-max-microamp = <17500>;
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
ADP1653 flash와 indicator 출력
1-22Analog Devices ADP1653 flash LED driver의 필수 `compatible`은 `adi,adp1653`, `reg`는 I2C slave address, `enable-gpios`는 EN pin에 연결한 GPIO specifier입니다.
장치에는 flash와 indicator 두 LED output이 있습니다. LED 하나를 child node 하나로 표현하며 node 이름은 각각 `flash`와 `indicator`여야 합니다. 모든 LED child의 `led-max-microamp`는 `Documentation/devicetree/bindings/leds/common.txt`를 따릅니다.
Flash child에는 추가로 같은 common binding의 `flash-max-microamp`와 `flash-timeout-us`가 필수입니다. 즉 flash node는 연속 LED current, flash current, flash timeout 세 제한을 모두 갖고 indicator는 연속 current 제한만 갖습니다.
Flash와 indicator child에 필요한 current·timeout 속성을 구분합니다.
Flash current와 timeout 예제
23-38예제 controller는 I2C 주소 `0x30`과 active-high enable GPIO를 사용합니다. Flash는 timeout 500000us, 최대 flash current 320000uA, 최대 연속 current 50000uA이고 indicator 최대 current는 17500uA입니다.
adp1653: led-controller@30 {
compatible = "adi,adp1653";
reg = <0x30>;
enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */
flash {
flash-timeout-us = <500000>;
flash-max-microamp = <320000>;
led-max-microamp = <50000>;
};
indicator {
led-max-microamp = <17500>;
};
};
요약과 해설
adi,adp1653.txt:1-38두 child 출력의 필수 current 제한을 구분해 설명합니다.