blob: adea2c4edf1feffc8f38fcc3123b9e0ccda9d332 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/touchscreen/rohm,bu21013.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Rohm BU21013 touchscreen
description:
Rohm BU21013 I2C driven touchscreen controller.
maintainers:
- Dario Binacchi <dario.binacchi@amarulasolutions.com>
allOf:
- $ref: touchscreen.yaml#
properties:
compatible:
enum:
- rohm,bu21013_tp
reg:
maxItems: 1
interrupts:
maxItems: 1
reset-gpios:
maxItems: 1
touch-gpios:
maxItems: 1
description: GPIO registering a touch event.
avdd-supply:
description: Analogic power supply
rohm,touch-max-x:
deprecated: true
description: Maximum value on the X axis.
$ref: /schemas/types.yaml#/definitions/uint32
rohm,touch-max-y:
deprecated: true
description: Maximum value on the Y axis.
$ref: /schemas/types.yaml#/definitions/uint32
rohm,flip-x:
deprecated: true
description: Flip touch coordinates on the X axis
type: boolean
rohm,flip-y:
deprecated: true
description: Flip touch coordinates on the Y axis
type: boolean
touchscreen-inverted-x: true
touchscreen-inverted-y: true
touchscreen-size-x: true
touchscreen-size-y: true
touchscreen-swapped-x-y: true
additionalProperties: false
required:
- compatible
- reg
- reset-gpios
- interrupts
examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@5c {
compatible = "rohm,bu21013_tp";
reg = <0x5c>;
interrupt-parent = <&gpio2>;
interrupts = <0x20 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
avdd-supply = <&ab8500_ldo_aux1_reg>;
touchscreen-size-x = <384>;
touchscreen-size-y = <704>;
touchscreen-inverted-y;
};
};
|