Documentation/devicetree/bindings/input/e3x0-button.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

USRP E3x0 Button

Press와 release를 별도 IRQ로 전달하는 E3x0 button 바인딩입니다.

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

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

1. 요약·해설

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

요약과 해설

e3x0-button.txt:1-23

FPGA configuration별 두 button interrupt를 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 National Instruments Ettus Research USRP E3x0 button driver
2
3 This module is part of the NI Ettus Research USRP E3x0 SDR.
4
5 This module provides a simple power button event via two interrupts.
6
7 Required properties:
8 - compatible: should be one of the following
9 - "ettus,e3x0-button": For devices such as the NI Ettus Research USRP E3x0
10 - interrupts: should be one of the following
11 - <0 30 1>, <0 31 1>: For devices such as the NI Ettus Research USRP E3x0
12 - interrupt-names: should be one of the following
13 - "press", "release": For devices such as the NI Ettus Research USRP E3x0
14
15 Note: Interrupt numbers might vary depending on the FPGA configuration.
16
17 Example:
18 button {
19 compatible = "ettus,e3x0-button";
20 interrupt-parent = <&intc>;
21 interrupts = <0 30 1>, <0 31 1>;
22 interrupt-names = "press", "release";
23 }
24

3. 한국어 전문 번역

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

USRP E3x0 press/release IRQ

1-17

이 button driver module은 NI Ettus Research USRP E3x0 SDR의 일부이며 두 interrupt를 통해 단순 power-button event를 제공합니다. 필수 `compatible`은 `ettus,e3x0-button`, `interrupts`는 E3x0에서 `<0 30 1>`과 `<0 31 1>`, `interrupt-names`는 각각 `press`와 `release`입니다. 실제 interrupt number는 FPGA configuration에 따라 달라질 수 있습니다.

E3x0 button edge events
Button pressIRQ 30
Button releaseIRQ 31
interrupt-namespress / release
Linux inputPower-button state

서로 다른 두 IRQ가 press와 release event를 구분합니다.

E3x0 button 예제

18-23

예제 node는 INTC를 parent로 두고 IRQ 30과 31을 `press`, `release` 순서로 선언합니다.

button {
        compatible = "ettus,e3x0-button";
        interrupt-parent = <&intc>;
        interrupts = <0 30 1>, <0 31 1>;
        interrupt-names = "press", "release";
}