요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* Texas Instruments - lm3601x Single-LED Flash Driver
The LM3601X are ultra-small LED flash drivers that
provide a high level of adjustability.
Required properties:
- compatible : Can be one of the following
"ti,lm36010"
"ti,lm36011"
- reg : I2C slave address
- #address-cells : 1
- #size-cells : 0
Required child properties:
- reg : 0 - Indicates a IR mode
1 - Indicates a Torch (white LED) mode
Required properties for flash LED child nodes:
See Documentation/devicetree/bindings/leds/common.txt
- flash-max-microamp : Range from 11mA - 1.5A
- flash-max-timeout-us : Range from 40ms - 1600ms
- led-max-microamp : Range from 2.4mA - 376mA
Optional child properties:
- function : see Documentation/devicetree/bindings/leds/common.txt
- color : see Documentation/devicetree/bindings/leds/common.txt
- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
Example:
#include <dt-bindings/leds/common.h>
led-controller@64 {
compatible = "ti,lm36010";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x64>;
led@0 {
reg = <1>;
function = LED_FUNCTION_TORCH;
color = <LED_COLOR_ID_WHITE>;
led-max-microamp = <376000>;
flash-max-microamp = <1500000>;
flash-max-timeout-us = <1600000>;
};
}
For more product information please see the links below:
https://www.ti.com/product/LM36010
https://www.ti.com/product/LM36011
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
LM3601x flash LED 속성
1-28TI LM3601x는 조절 범위가 넓은 초소형 single-LED flash driver입니다. `compatible`은 `ti,lm36010` 또는 `ti,lm36011`, `reg`는 I2C slave 주소이며 `#address-cells`는 1, `#size-cells`는 0입니다.
필수 child `reg` 값 0은 IR mode, 1은 torch white LED mode를 뜻합니다. Flash LED child는 공통 LED 바인딩에 더해 `flash-max-microamp` 11mA~1.5A, `flash-max-timeout-us` 40~1600ms, `led-max-microamp` 2.4~376mA 범위를 지정합니다.
선택 child `function`과 `color`는 공통 바인딩을 따릅니다. `label`도 공통 바인딩을 따르지만 deprecated입니다.
IR/torch mode와 flash 전기 한계를 정리합니다.
LM36010 white torch 예제
29-51예제는 주소 `0x64`의 LM36010에서 child `reg = <1>`로 torch mode를 선택하고 white `LED_FUNCTION_TORCH`를 구성합니다. 연속 LED 전류는 376000uA, flash 전류는 1500000uA, timeout은 1600000us로 각 허용 범위의 상한을 사용합니다.
#include <dt-bindings/leds/common.h>
led-controller@64 {
compatible = "ti,lm36010";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x64>;
led@0 {
reg = <1>;
function = LED_FUNCTION_TORCH;
color = <LED_COLOR_ID_WHITE>;
led-max-microamp = <376000>;
flash-max-microamp = <1500000>;
flash-max-timeout-us = <1600000>;
};
}
요약과 해설
leds-lm3601x.txt:1-51Mode reg와 최대 flash 설정 예제를 설명합니다.