Documentation/devicetree/bindings/input/touchscreen/bu21029.txt GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings

ROHM BU21029 Touchscreen

BU21029 저항막 컨트롤러의 플레이트 저항과 좌표·압력 바인딩입니다.

Source pathDocumentation/devicetree/bindings/input/touchscreen/bu21029.txt
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

bu21029.txt:1-35

GPIO 인터럽트와 800x480 예제를 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 * Rohm BU21029 Touch Screen Controller
2
3 Required properties:
4 - compatible : must be "rohm,bu21029"
5 - reg : i2c device address of the chip (0x40 or 0x41)
6 - interrupt-parent : the phandle for the gpio controller
7 - interrupts : (gpio) interrupt to which the chip is connected
8 - rohm,x-plate-ohms : x-plate resistance in Ohm
9
10 Optional properties:
11 - reset-gpios : gpio pin to reset the chip (active low)
12 - touchscreen-size-x : horizontal resolution of touchscreen (in pixels)
13 - touchscreen-size-y : vertical resolution of touchscreen (in pixels)
14 - touchscreen-max-pressure: maximum pressure value
15 - vdd-supply : power supply for the controller
16
17 Example:
18
19 &i2c1 {
20 /* ... */
21
22 bu21029: bu21029@40 {
23 compatible = "rohm,bu21029";
24 reg = <0x40>;
25 interrupt-parent = <&gpio1>;
26 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
27 reset-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>;
28 rohm,x-plate-ohms = <600>;
29 touchscreen-size-x = <800>;
30 touchscreen-size-y = <480>;
31 touchscreen-max-pressure = <4095>;
32 };
33
34 /* ... */
35 };
36

3. 한국어 전문 번역

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

ROHM BU21029 속성

1-16

ROHM BU21029 터치스크린 컨트롤러의 필수 `compatible`은 `rohm,bu21029`이고 `reg`는 `0x40` 또는 `0x41`인 I2C 장치 주소입니다. `interrupt-parent`는 GPIO 컨트롤러 phandle이며 `interrupts`는 칩이 연결된 GPIO 인터럽트입니다. `rohm,x-plate-ohms`는 옴 단위 X 플레이트 저항입니다.

선택 속성 `reset-gpios`는 active-low 칩 리셋 핀입니다. `touchscreen-size-x`와 `touchscreen-size-y`는 픽셀 단위 해상도, `touchscreen-max-pressure`는 최대 압력 값, `vdd-supply`는 컨트롤러 전원입니다.

BU21029 저항막 터치 경로
X platerohm,x-plate-ohms
BU21029 at 0x40/0x41좌표와 압력 변환
Falling-edge GPIO터치 인터럽트
Input subsystem800x480 좌표 예시

플레이트 저항과 좌표·압력 범위가 GPIO 인터럽트 기반 터치 보고를 구성합니다.

800x480 BU21029 예제

17-35

예제는 I2C1의 주소 `0x40`에 BU21029를 두고 GPIO1의 4번 falling-edge 인터럽트와 GPIO6의 16번 active-low 리셋을 연결합니다. X 플레이트 저항은 600 Ohm, 해상도는 800x480, 최대 압력 값은 4095입니다.

&i2c1 {
        /* ... */

        bu21029: bu21029@40 {
                compatible = "rohm,bu21029";
                reg = <0x40>;
                interrupt-parent = <&gpio1>;
                interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
                reset-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>;
                rohm,x-plate-ohms = <600>;
                touchscreen-size-x = <800>;
                touchscreen-size-y = <480>;
                touchscreen-max-pressure = <4095>;
        };

        /* ... */
};