요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
* HiDeep Finger and Stylus touchscreen controller
Required properties:
- compatible : must be "hideep,hideep-ts"
- reg : I2C slave address, (e.g. 0x6C).
- interrupts : Interrupt to which the chip is connected.
Optional properties:
- vdd-supply : It is the controller supply for controlling
main voltage(3.3V) through the regulator.
- vid-supply : It is the controller supply for controlling
IO voltage(1.8V) through the regulator.
- reset-gpios : Define for reset gpio pin.
It is to use for reset IC.
- touchscreen-size-x : X axis size of touchscreen
- touchscreen-size-y : Y axis size of touchscreen
- linux,keycodes : Specifies an array of numeric keycode values to
be used for reporting button presses. The array can
contain up to 3 entries.
Example:
#include "dt-bindings/input/input.h"
i2c@00000000 {
/* ... */
touchscreen@6c {
compatible = "hideep,hideep-ts";
reg = <0x6c>;
interrupt-parent = <&gpx1>;
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <&ldo15_reg>;
vid-supply = <&ldo18_reg>;
reset-gpios = <&gpx1 5 0>;
touchscreen-size-x = <1080>;
touchscreen-size-y = <1920>;
linux,keycodes = <KEY_HOME>, <KEY_MENU>, <KEY_BACK>;
};
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
HiDeep 손가락·스타일러스 속성
1-20HiDeep 손가락 및 스타일러스 터치스크린 컨트롤러의 필수 `compatible`은 `hideep,hideep-ts`이고 `reg`는 예를 들어 `0x6c`인 I2C slave 주소입니다. `interrupts`는 칩이 연결된 인터럽트입니다.
선택 `vdd-supply`는 레귤레이터를 통해 주 전압 3.3V를 제어하는 전원이고 `vid-supply`는 I/O 전압 1.8V를 제어하는 전원입니다. `reset-gpios`는 IC 리셋에 쓰는 GPIO 핀입니다. `touchscreen-size-x`와 `touchscreen-size-y`는 X·Y축 크기입니다. `linux,keycodes`는 버튼 누름 보고에 사용할 숫자 keycode 배열이며 최대 3개 항목을 담을 수 있습니다.
두 전원 도메인과 리셋·인터럽트가 손가락 및 스타일러스 입력을 지원합니다.
1080x1920 HiDeep 예제
21-41예제는 입력 keycode 정의를 포함하고 I2C 주소 `0x6c`의 컨트롤러에 GPX1 핀 2 level-low 인터럽트, 3.3V와 1.8V 레귤레이터, GPX1 핀 5 리셋을 연결합니다. 터치 영역은 1080x1920이며 `KEY_HOME`, `KEY_MENU`, `KEY_BACK` 세 버튼을 보고합니다.
#include "dt-bindings/input/input.h"
i2c@00000000 {
/* ... */
touchscreen@6c {
compatible = "hideep,hideep-ts";
reg = <0x6c>;
interrupt-parent = <&gpx1>;
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <&ldo15_reg>;
vid-supply = <&ldo18_reg>;
reset-gpios = <&gpx1 5 0>;
touchscreen-size-x = <1080>;
touchscreen-size-y = <1920>;
linux,keycodes = <KEY_HOME>, <KEY_MENU>, <KEY_BACK>;
};
};
요약과 해설
hideep.txt:1-41두 전원 도메인과 1080x1920 입력 예제를 설명합니다.