1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/input/touchscreen/sitronix,st1232.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Sitronix st1232 or st1633 touchscreen controller 8 9maintainers: 10 - Bastian Hecht <hechtb@gmail.com> 11 12allOf: 13 - $ref: touchscreen.yaml# 14 15properties: 16 compatible: 17 oneOf: 18 - enum: 19 - sitronix,st1232 20 - sitronix,st1633 21 - items: 22 - const: sitronix,st1624 23 - const: sitronix,st1633 24 25 reg: 26 maxItems: 1 27 28 interrupts: 29 maxItems: 1 30 31 gpios: 32 description: A phandle to the reset GPIO 33 maxItems: 1 34 35 wakeup-source: 36 type: boolean 37 38required: 39 - compatible 40 - reg 41 - interrupts 42 43unevaluatedProperties: false 44 45examples: 46 - | 47 #include <dt-bindings/input/linux-event-codes.h> 48 i2c { 49 #address-cells = <1>; 50 #size-cells = <0>; 51 52 touchscreen@55 { 53 compatible = "sitronix,st1232"; 54 reg = <0x55>; 55 interrupts = <2 0>; 56 gpios = <&gpio1 166 0>; 57 wakeup-source; 58 59 touch-overlay { 60 segment-0 { 61 label = "Touchscreen"; 62 x-origin = <0>; 63 x-size = <240>; 64 y-origin = <40>; 65 y-size = <280>; 66 }; 67 68 segment-1a { 69 label = "Camera light"; 70 linux,code = <KEY_LIGHTS_TOGGLE>; 71 x-origin = <40>; 72 x-size = <40>; 73 y-origin = <0>; 74 y-size = <40>; 75 }; 76 77 segment-2a { 78 label = "Power"; 79 linux,code = <KEY_POWER>; 80 x-origin = <160>; 81 x-size = <40>; 82 y-origin = <0>; 83 y-size = <40>; 84 }; 85 }; 86 }; 87 }; 88