요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* Device tree bindings for TI TPS61050/61052 Boost Converters
The TP61050/TPS61052 is a high-power "white LED driver". The
device provides LED, GPIO and regulator functionalities.
Required properties:
- compatible: "ti,tps61050" or "ti,tps61052"
- reg: Specifies the I2C slave address
Optional sub-node:
This subnode selects the chip's operational mode.
There can be at most one single available subnode.
- regulator: presence of this sub-node puts the chip in regulator mode.
see ../regulator/regulator.yaml
- led: presence of this sub-node puts the chip in led mode.
Optional properties:
- function : see ../leds/common.txt
- color : see ../leds/common.txt
- label : see ../leds/common.txt
(deprecated)
Example (GPIO operation only):
i2c0 {
tps61052@33 {
compatible = "ti,tps61052";
reg = <0x33>;
};
};
Example (GPIO + regulator operation):
i2c0 {
tps61052@33 {
compatible = "ti,tps61052";
reg = <0x33>;
regulator {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
};
};
Example (GPIO + led operation):
#include <dt-bindings/leds/common.h>
i2c0 {
tps61052@33 {
compatible = "ti,tps61052";
reg = <0x33>;
led {
color = <LED_COLOR_ID_WHITE>;
};
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
TPS61050·TPS61052 boost converter
1-9TI TPS61050/TPS61052는 고전력 white LED driver이며 LED, GPIO, regulator 기능을 제공합니다. 원문 첫 설명에는 `TP61050`으로 적힌 표기가 한 번 나타납니다.
필수 `compatible`은 `ti,tps61050` 또는 `ti,tps61052`이고 `reg`는 I2C slave address입니다.
기본 GPIO 기능에 선택 자식 하나를 더해 regulator 또는 LED mode 중 하나를 고릅니다.
Regulator 또는 LED 자식
10-24선택 subnode는 chip의 operational mode를 고르며 사용 가능한 subnode는 최대 하나뿐입니다. `regulator` 자식이 있으면 regulator mode가 되고 `../regulator/regulator.yaml`을 따릅니다.
`led` 자식이 있으면 LED mode가 됩니다. 선택 속성 `function`, `color`, `label`은 `../leds/common.txt`를 따르며 `label`은 deprecated입니다.
GPIO 전용 예제
25-33GPIO 전용 구성은 별도 자식 없이 I2C 주소 `0x33`의 `ti,tps61052`만 선언합니다.
i2c0 {
tps61052@33 {
compatible = "ti,tps61052";
reg = <0x33>;
};
};
GPIO와 regulator 예제
34-48regulator mode 예제는 5V 고정 출력과 `regulator-always-on`을 지정합니다.
i2c0 {
tps61052@33 {
compatible = "ti,tps61052";
reg = <0x33>;
regulator {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
};
};
GPIO와 white LED 예제
49-62LED mode 예제는 `dt-bindings/leds/common.h`를 포함하고 LED 자식의 `color`를 `LED_COLOR_ID_WHITE`로 지정합니다.
#include <dt-bindings/leds/common.h>
i2c0 {
tps61052@33 {
compatible = "ti,tps61052";
reg = <0x33>;
led {
color = <LED_COLOR_ID_WHITE>;
};
};
};
요약과 해설
tps6105x.txt:1-62선택 자식 하나로 정하는 세 동작 구성과 5V regulator·white LED 예제를 설명합니다.