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