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

Linux 6.18.37 · Devicetree Bindings

Linear Technology LT3593 LED Controller

CTRL GPIO로 구동하는 LT3593 단일 LED 바인딩입니다.

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

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

1. 요약·해설

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

요약과 해설

leds-lt3593.txt:1-37

Chip당 단일 child와 white backlight 예제를 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Bindings for Linear Technologies LT3593 LED controller
2
3 Required properties:
4 - compatible: Should be "lltc,lt3593".
5 - lltc,ctrl-gpios: A handle to the GPIO that is connected to the 'CTRL'
6 pin of the chip.
7
8 The hardware supports only one LED. The properties of this LED are
9 configured in a sub-node in the device node.
10
11 Optional sub-node properties:
12 - function: See Documentation/devicetree/bindings/leds/common.txt
13 - color: See Documentation/devicetree/bindings/leds/common.txt
14 - label: A label for the LED. If none is given, the LED will be
15 named "lt3595::" (deprecated)
16 - linux,default-trigger: The default trigger for the LED.
17 See Documentation/devicetree/bindings/leds/common.txt
18 - default-state: The initial state of the LED.
19 See Documentation/devicetree/bindings/leds/common.txt
20
21 If multiple chips of this type are found in a design, each one needs to
22 be handled by its own device node.
23
24 Example:
25
26 #include <dt-bindings/leds/common.h>
27
28 led-controller {
29 compatible = "lltc,lt3593";
30 lltc,ctrl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
31
32 led {
33 function = LED_FUNCTION_BACKLIGHT;
34 color = <LED_COLOR_ID_WHITE>;
35 default-state = "on";
36 };
37 };
38

3. 한국어 전문 번역

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

LT3593 single LED 속성

1-23

Linear Technologies LT3593 LED controller의 필수 `compatible`은 `lltc,lt3593`이고 `lltc,ctrl-gpios`는 chip의 `CTRL` pin에 연결된 GPIO handle입니다. Hardware는 LED 하나만 지원하며 이 LED의 속성은 장치 node 아래 단일 하위 node에 둡니다.

선택 child `function`, `color`, `linux,default-trigger`, `default-state`는 공통 LED 바인딩을 따릅니다. `label`을 생략하면 LED 이름은 원문에 적힌 그대로 `lt3595::`가 되며 이 속성은 deprecated입니다. 설계에 같은 chip이 여러 개 있으면 각 chip을 별도 device node로 처리해야 합니다.

LT3593 단일 출력
GPIO controllerlltc,ctrl-gpios
LT3593 chip단일 LED hardware
LED childfunction/color/state
추가 chip별도 device node 필요

각 chip node는 CTRL GPIO 하나와 LED child 하나만 담당합니다.

LT3593 white backlight 예제

24-37

예제는 GPIO 0 active-high를 CTRL 신호로 연결하고 단일 LED를 white `LED_FUNCTION_BACKLIGHT`로 지정하며 초기 상태를 `on`으로 설정합니다.

#include <dt-bindings/leds/common.h>

led-controller {
        compatible = "lltc,lt3593";
        lltc,ctrl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;

        led {
                function = LED_FUNCTION_BACKLIGHT;
                color = <LED_COLOR_ID_WHITE>;
                default-state = "on";
        };
};