요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
Texas Instruments TPS65217 and TPS65218 power button
This module is part of the TPS65217/TPS65218. For more details about the whole
TPS65217 chip see Documentation/devicetree/bindings/regulator/tps65217.txt.
This driver provides a simple power button event via an Interrupt.
Required properties:
- compatible: should be "ti,tps65217-pwrbutton" or "ti,tps65218-pwrbutton"
Required properties:
- interrupts: should be one of the following
- <2>: For controllers compatible with tps65217
- <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218
Examples:
&tps {
tps65217-pwrbutton {
compatible = "ti,tps65217-pwrbutton";
interrupts = <2>;
};
};
&tps {
power-button {
compatible = "ti,tps65218-pwrbutton";
interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
};
};
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>`를 사용해야 합니다.
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>;
};
};
요약과 해설
tps65218-pwrbutton.txt:1-30변형별 interrupt 번호와 edge 형식을 비교합니다.