Skip to content

Commit 7fdff6c

Browse files
linuswdtor
authored andcommitted
dt-bindings: touchscreen: Add CY8CTMA140 bindings
This adds device tree bindings for the Cypress CY8CTMA140 touchscreen. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 0f58daa commit 7fdff6c

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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/cypress,cy8ctma140.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cypress CY8CTMA140 series touchscreen controller bindings
8+
9+
maintainers:
10+
- Linus Walleij <[email protected]>
11+
12+
allOf:
13+
- $ref: touchscreen.yaml#
14+
15+
properties:
16+
compatible:
17+
const: cypress,cy8ctma140
18+
19+
reg:
20+
const: 0x20
21+
22+
clock-frequency:
23+
description: I2C client clock frequency, defined for host
24+
minimum: 100000
25+
maximum: 400000
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
vcpin-supply:
31+
description: Analog power supply regulator on VCPIN pin
32+
33+
vdd-supply:
34+
description: Digital power supply regulator on VDD pin
35+
36+
touchscreen-inverted-x: true
37+
touchscreen-inverted-y: true
38+
touchscreen-size-x: true
39+
touchscreen-size-y: true
40+
touchscreen-swapped-x-y: true
41+
touchscreen-max-pressure: true
42+
43+
additionalProperties: false
44+
45+
required:
46+
- compatible
47+
- reg
48+
- interrupts
49+
- touchscreen-size-x
50+
- touchscreen-size-y
51+
- touchscreen-max-pressure
52+
53+
examples:
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+
...

0 commit comments

Comments
 (0)