73 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/cypress,cy8ctma140.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Cypress CY8CTMA140 series touchscreen controller8 9maintainers:10 - Linus Walleij <linus.walleij@linaro.org>11 12allOf:13 - $ref: touchscreen.yaml#14 15properties:16 compatible:17 const: cypress,cy8ctma14018 19 reg:20 const: 0x2021 22 clock-frequency:23 description: I2C client clock frequency, defined for host24 minimum: 10000025 maximum: 40000026 27 interrupts:28 maxItems: 129 30 vcpin-supply:31 description: Analog power supply regulator on VCPIN pin32 33 vdd-supply:34 description: Digital power supply regulator on VDD pin35 36 touchscreen-inverted-x: true37 touchscreen-inverted-y: true38 touchscreen-size-x: true39 touchscreen-size-y: true40 touchscreen-swapped-x-y: true41 touchscreen-max-pressure: true42 43additionalProperties: false44 45required:46 - compatible47 - reg48 - interrupts49 - touchscreen-size-x50 - touchscreen-size-y51 - touchscreen-max-pressure52 53examples:54 - |55 #include <dt-bindings/interrupt-controller/irq.h>56 i2c {57 #address-cells = <1>;58 #size-cells = <0>;59 touchscreen@20 {60 compatible = "cypress,cy8ctma140";61 reg = <0x20>;62 touchscreen-size-x = <480>;63 touchscreen-size-y = <800>;64 touchscreen-max-pressure = <255>;65 interrupt-parent = <&gpio6>;66 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;67 vdd-supply = <&ab8500_ldo_aux2_reg>;68 vcpin-supply = <&ab8500_ldo_aux2_reg>;69 };70 };71 72...73