17fdff6ccSLinus Walleij# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 27fdff6ccSLinus Walleij%YAML 1.2 37fdff6ccSLinus Walleij--- 47fdff6ccSLinus Walleij$id: http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma140.yaml# 57fdff6ccSLinus Walleij$schema: http://devicetree.org/meta-schemas/core.yaml# 67fdff6ccSLinus Walleij 7*84e85359SKrzysztof Kozlowskititle: Cypress CY8CTMA140 series touchscreen controller 87fdff6ccSLinus Walleij 97fdff6ccSLinus Walleijmaintainers: 107fdff6ccSLinus Walleij - Linus Walleij <linus.walleij@linaro.org> 117fdff6ccSLinus Walleij 127fdff6ccSLinus WalleijallOf: 137fdff6ccSLinus Walleij - $ref: touchscreen.yaml# 147fdff6ccSLinus Walleij 157fdff6ccSLinus Walleijproperties: 167fdff6ccSLinus Walleij compatible: 177fdff6ccSLinus Walleij const: cypress,cy8ctma140 187fdff6ccSLinus Walleij 197fdff6ccSLinus Walleij reg: 207fdff6ccSLinus Walleij const: 0x20 217fdff6ccSLinus Walleij 227fdff6ccSLinus Walleij clock-frequency: 237fdff6ccSLinus Walleij description: I2C client clock frequency, defined for host 247fdff6ccSLinus Walleij minimum: 100000 257fdff6ccSLinus Walleij maximum: 400000 267fdff6ccSLinus Walleij 277fdff6ccSLinus Walleij interrupts: 287fdff6ccSLinus Walleij maxItems: 1 297fdff6ccSLinus Walleij 307fdff6ccSLinus Walleij vcpin-supply: 317fdff6ccSLinus Walleij description: Analog power supply regulator on VCPIN pin 327fdff6ccSLinus Walleij 337fdff6ccSLinus Walleij vdd-supply: 347fdff6ccSLinus Walleij description: Digital power supply regulator on VDD pin 357fdff6ccSLinus Walleij 367fdff6ccSLinus Walleij touchscreen-inverted-x: true 377fdff6ccSLinus Walleij touchscreen-inverted-y: true 387fdff6ccSLinus Walleij touchscreen-size-x: true 397fdff6ccSLinus Walleij touchscreen-size-y: true 407fdff6ccSLinus Walleij touchscreen-swapped-x-y: true 417fdff6ccSLinus Walleij touchscreen-max-pressure: true 427fdff6ccSLinus Walleij 437fdff6ccSLinus WalleijadditionalProperties: false 447fdff6ccSLinus Walleij 457fdff6ccSLinus Walleijrequired: 467fdff6ccSLinus Walleij - compatible 477fdff6ccSLinus Walleij - reg 487fdff6ccSLinus Walleij - interrupts 497fdff6ccSLinus Walleij - touchscreen-size-x 507fdff6ccSLinus Walleij - touchscreen-size-y 517fdff6ccSLinus Walleij - touchscreen-max-pressure 527fdff6ccSLinus Walleij 537fdff6ccSLinus Walleijexamples: 547fdff6ccSLinus Walleij - | 557fdff6ccSLinus Walleij #include <dt-bindings/interrupt-controller/irq.h> 567fdff6ccSLinus Walleij i2c { 577fdff6ccSLinus Walleij #address-cells = <1>; 587fdff6ccSLinus Walleij #size-cells = <0>; 597fdff6ccSLinus Walleij touchscreen@20 { 607fdff6ccSLinus Walleij compatible = "cypress,cy8ctma140"; 617fdff6ccSLinus Walleij reg = <0x20>; 627fdff6ccSLinus Walleij touchscreen-size-x = <480>; 637fdff6ccSLinus Walleij touchscreen-size-y = <800>; 647fdff6ccSLinus Walleij touchscreen-max-pressure = <255>; 657fdff6ccSLinus Walleij interrupt-parent = <&gpio6>; 667fdff6ccSLinus Walleij interrupts = <26 IRQ_TYPE_EDGE_FALLING>; 677fdff6ccSLinus Walleij vdd-supply = <&ab8500_ldo_aux2_reg>; 687fdff6ccSLinus Walleij vcpin-supply = <&ab8500_ldo_aux2_reg>; 697fdff6ccSLinus Walleij }; 707fdff6ccSLinus Walleij }; 717fdff6ccSLinus Walleij 727fdff6ccSLinus Walleij... 73