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