1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*4882a593Smuzhiyun%YAML 1.2 3*4882a593Smuzhiyun--- 4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma140.yaml# 5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyuntitle: Cypress CY8CTMA140 series touchscreen controller bindings 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunmaintainers: 10*4882a593Smuzhiyun - Linus Walleij <linus.walleij@linaro.org> 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunallOf: 13*4882a593Smuzhiyun - $ref: touchscreen.yaml# 14*4882a593Smuzhiyun 15*4882a593Smuzhiyunproperties: 16*4882a593Smuzhiyun compatible: 17*4882a593Smuzhiyun const: cypress,cy8ctma140 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun reg: 20*4882a593Smuzhiyun const: 0x20 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun clock-frequency: 23*4882a593Smuzhiyun description: I2C client clock frequency, defined for host 24*4882a593Smuzhiyun minimum: 100000 25*4882a593Smuzhiyun maximum: 400000 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun interrupts: 28*4882a593Smuzhiyun maxItems: 1 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun vcpin-supply: 31*4882a593Smuzhiyun description: Analog power supply regulator on VCPIN pin 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun vdd-supply: 34*4882a593Smuzhiyun description: Digital power supply regulator on VDD pin 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun touchscreen-inverted-x: true 37*4882a593Smuzhiyun touchscreen-inverted-y: true 38*4882a593Smuzhiyun touchscreen-size-x: true 39*4882a593Smuzhiyun touchscreen-size-y: true 40*4882a593Smuzhiyun touchscreen-swapped-x-y: true 41*4882a593Smuzhiyun touchscreen-max-pressure: true 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunadditionalProperties: false 44*4882a593Smuzhiyun 45*4882a593Smuzhiyunrequired: 46*4882a593Smuzhiyun - compatible 47*4882a593Smuzhiyun - reg 48*4882a593Smuzhiyun - interrupts 49*4882a593Smuzhiyun - touchscreen-size-x 50*4882a593Smuzhiyun - touchscreen-size-y 51*4882a593Smuzhiyun - touchscreen-max-pressure 52*4882a593Smuzhiyun 53*4882a593Smuzhiyunexamples: 54*4882a593Smuzhiyun - | 55*4882a593Smuzhiyun #include <dt-bindings/interrupt-controller/irq.h> 56*4882a593Smuzhiyun i2c { 57*4882a593Smuzhiyun #address-cells = <1>; 58*4882a593Smuzhiyun #size-cells = <0>; 59*4882a593Smuzhiyun touchscreen@20 { 60*4882a593Smuzhiyun compatible = "cypress,cy8ctma140"; 61*4882a593Smuzhiyun reg = <0x20>; 62*4882a593Smuzhiyun touchscreen-size-x = <480>; 63*4882a593Smuzhiyun touchscreen-size-y = <800>; 64*4882a593Smuzhiyun touchscreen-max-pressure = <255>; 65*4882a593Smuzhiyun interrupt-parent = <&gpio6>; 66*4882a593Smuzhiyun interrupts = <26 IRQ_TYPE_EDGE_FALLING>; 67*4882a593Smuzhiyun vdd-supply = <&ab8500_ldo_aux2_reg>; 68*4882a593Smuzhiyun vcpin-supply = <&ab8500_ldo_aux2_reg>; 69*4882a593Smuzhiyun }; 70*4882a593Smuzhiyun }; 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun... 73