xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/touchscreen/hideep.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* HiDeep Finger and Stylus touchscreen controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible		: must be "hideep,hideep-ts"
5*4882a593Smuzhiyun- reg			: I2C slave address, (e.g. 0x6C).
6*4882a593Smuzhiyun- interrupts : Interrupt to which the chip is connected.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunOptional properties:
9*4882a593Smuzhiyun- vdd-supply	: It is the controller supply for controlling
10*4882a593Smuzhiyun					 main voltage(3.3V) through the regulator.
11*4882a593Smuzhiyun- vid-supply	: It is the controller supply for controlling
12*4882a593Smuzhiyun					IO voltage(1.8V) through the regulator.
13*4882a593Smuzhiyun- reset-gpios	: Define for reset gpio pin.
14*4882a593Smuzhiyun						It is to use for reset IC.
15*4882a593Smuzhiyun- touchscreen-size-x	: X axis size of touchscreen
16*4882a593Smuzhiyun- touchscreen-size-y	: Y axis size of touchscreen
17*4882a593Smuzhiyun- linux,keycodes	: Specifies an array of numeric keycode values to
18*4882a593Smuzhiyun			be used for reporting button presses. The array can
19*4882a593Smuzhiyun			contain up to 3 entries.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunExample:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun#include "dt-bindings/input/input.h"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyuni2c@00000000 {
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	/* ... */
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun	touchscreen@6c {
30*4882a593Smuzhiyun		compatible = "hideep,hideep-ts";
31*4882a593Smuzhiyun		reg = <0x6c>;
32*4882a593Smuzhiyun		interrupt-parent = <&gpx1>;
33*4882a593Smuzhiyun		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
34*4882a593Smuzhiyun		vdd-supply = <&ldo15_reg>;
35*4882a593Smuzhiyun		vid-supply = <&ldo18_reg>;
36*4882a593Smuzhiyun		reset-gpios = <&gpx1 5 0>;
37*4882a593Smuzhiyun		touchscreen-size-x = <1080>;
38*4882a593Smuzhiyun		touchscreen-size-y = <1920>;
39*4882a593Smuzhiyun		linux,keycodes = <KEY_HOME>, <KEY_MENU>, <KEY_BACK>;
40*4882a593Smuzhiyun	};
41*4882a593Smuzhiyun};
42