66 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/input/touchscreen/hynitron,cstxxx.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Hynitron cstxxx series touchscreen controller8 9description: |10 Bindings for Hynitron cstxxx series multi-touch touchscreen11 controllers.12 13maintainers:14 - Chris Morgan <macromorgan@hotmail.com>15 16allOf:17 - $ref: touchscreen.yaml#18 19properties:20 compatible:21 enum:22 - hynitron,cst34023 24 reg:25 maxItems: 126 27 interrupts:28 maxItems: 129 30 reset-gpios:31 maxItems: 132 33 touchscreen-size-x: true34 touchscreen-size-y: true35 touchscreen-inverted-x: true36 touchscreen-inverted-y: true37 touchscreen-swapped-x-y: true38 39additionalProperties: false40 41required:42 - compatible43 - reg44 - interrupts45 - reset-gpios46 47examples:48 - |49 #include <dt-bindings/gpio/gpio.h>50 #include <dt-bindings/interrupt-controller/arm-gic.h>51 i2c {52 #address-cells = <1>;53 #size-cells = <0>;54 touchscreen@1a {55 compatible = "hynitron,cst340";56 reg = <0x1a>;57 interrupt-parent = <&gpio4>;58 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;59 reset-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;60 touchscreen-size-x = <640>;61 touchscreen-size-y = <480>;62 };63 };64 65...66