요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
1
Motorola CPCAP on key
3
This module is part of the CPCAP. For more details about the whole
4
chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt.
6
This module provides a simple power button event via an Interrupt.
8
Required properties:
9
- compatible: should be one of the following
10
- "motorola,cpcap-pwrbutton"
11
- interrupts: irq specifier for CPCAP's ON IRQ
13
Example:
15
&cpcap {
16
cpcap_pwrbutton: pwrbutton {
17
compatible = "motorola,cpcap-pwrbutton";
18
interrupts = <23 IRQ_TYPE_NONE>;
19
};
20
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
CPCAP ON key 속성
1-13이 module은 Motorola CPCAP chip의 일부이며 전체 chip은 `Documentation/devicetree/bindings/mfd/motorola-cpcap.txt`를 참조합니다. CPCAP ON interrupt를 통해 단순 power-button event를 제공합니다. 필수 `compatible`은 `motorola,cpcap-pwrbutton`, `interrupts`는 CPCAP ON IRQ specifier입니다.
Physical ON key→CPCAP ON IRQ
CPCAP child node→pwrbutton driver
Input subsystem→Power-button event
CPCAP ON signal이 Linux power-button event가 되는 흐름입니다.
CPCAP IRQ 23 예제
14-20예제는 CPCAP parent 아래에 power-button child를 두고 IRQ 23을 `IRQ_TYPE_NONE`으로 지정합니다.
&cpcap {
cpcap_pwrbutton: pwrbutton {
compatible = "motorola,cpcap-pwrbutton";
interrupts = <23 IRQ_TYPE_NONE>;
};
};
요약과 해설
cpcap-pwrbutton.txt:1-20CPCAP child node와 ON interrupt를 설명합니다.