← Documents Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

TI TPS65217/TPS65218 Power Button

두 PMIC 변형의 전원 버튼 인터럽트 바인딩입니다.

Source pathDocumentation/devicetree/bindings/input/tps65218-pwrbutton.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

tps65218-pwrbutton.txt:1-30

변형별 interrupt 번호와 edge 형식을 비교합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 Texas Instruments TPS65217 and TPS65218 power button
2
3 This module is part of the TPS65217/TPS65218. For more details about the whole
4 TPS65217 chip see Documentation/devicetree/bindings/regulator/tps65217.txt.
5
6 This driver provides a simple power button event via an Interrupt.
7
8 Required properties:
9 - compatible: should be "ti,tps65217-pwrbutton" or "ti,tps65218-pwrbutton"
10
11 Required properties:
12 - interrupts: should be one of the following
13 - <2>: For controllers compatible with tps65217
14 - <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218
15
16 Examples:
17
18 &tps {
19 tps65217-pwrbutton {
20 compatible = "ti,tps65217-pwrbutton";
21 interrupts = <2>;
22 };
23 };
24
25 &tps {
26 power-button {
27 compatible = "ti,tps65218-pwrbutton";
28 interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
29 };
30 };
31

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

TPS65217/TPS65218 전원 버튼 속성

1-15

이 모듈은 TPS65217/TPS65218의 일부입니다. TPS65217 칩 전체에 관한 내용은 `Documentation/devicetree/bindings/regulator/tps65217.txt`를 참조하십시오. 드라이버는 인터럽트를 통해 단순한 전원 버튼 이벤트를 제공합니다.

`compatible`은 `ti,tps65217-pwrbutton` 또는 `ti,tps65218-pwrbutton`이어야 합니다. TPS65217 호환 컨트롤러의 `interrupts`는 `<2>`, TPS65218 호환 컨트롤러는 양쪽 edge를 감지하는 `<3 IRQ_TYPE_EDGE_BOTH>`를 사용해야 합니다.

TPS 전원 버튼 인터럽트
호환 컨트롤러compatibleinterrupts
TPS65217ti,tps65217-pwrbutton<2>
TPS65218ti,tps65218-pwrbutton<3 IRQ_TYPE_EDGE_BOTH>

PMIC 변형에 따라 인터럽트 지정 형식이 달라집니다.

두 PMIC 전원 버튼 예제

16-30

첫 번째 예제는 TPS65217 하위 노드에 인터럽트 2를 지정합니다. 두 번째 예제는 TPS65218 전원 버튼에 인터럽트 3과 `IRQ_TYPE_EDGE_BOTH`를 지정하여 누름과 놓임 양쪽 edge를 감지합니다.

&tps {
        tps65217-pwrbutton {
                compatible = "ti,tps65217-pwrbutton";
                interrupts = <2>;
        };
};

&tps {
        power-button {
                compatible = "ti,tps65218-pwrbutton";
                interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
        };
};