요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* Rohm BU21029 Touch Screen Controller
Required properties:
- compatible : must be "rohm,bu21029"
- reg : i2c device address of the chip (0x40 or 0x41)
- interrupt-parent : the phandle for the gpio controller
- interrupts : (gpio) interrupt to which the chip is connected
- rohm,x-plate-ohms : x-plate resistance in Ohm
Optional properties:
- reset-gpios : gpio pin to reset the chip (active low)
- touchscreen-size-x : horizontal resolution of touchscreen (in pixels)
- touchscreen-size-y : vertical resolution of touchscreen (in pixels)
- touchscreen-max-pressure: maximum pressure value
- vdd-supply : power supply for the controller
Example:
&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>;
};
/* ... */
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
ROHM BU21029 속성
1-16ROHM 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`는 컨트롤러 전원입니다.
플레이트 저항과 좌표·압력 범위가 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>;
};
/* ... */
};
요약과 해설
bu21029.txt:1-35GPIO 인터럽트와 800x480 예제를 설명합니다.