Skip to content

Commit 9d6e8cd

Browse files
laudominikChromeos LUCI
authored andcommitted
bindings: input: add generic touch controller bindings
Adds common properties for touchscreen controllers. (cherry picked from commit 6318487) Original-Signed-off-by: Dominik Lau <[email protected]> Original-Signed-off-by: Filip Kokosinski <[email protected]> GitOrigin-RevId: 6318487 Cr-Build-Id: 8738238973287044049 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8738238973287044049 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I7f9801f2b4e40bc5f3774b8ac11cca6dc30f3cef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5827582 Tested-by: Ting Shen <[email protected]> Tested-by: ChromeOS Prod (Robot) <[email protected]> Reviewed-by: Ting Shen <[email protected]> Commit-Queue: Ting Shen <[email protected]>
1 parent 6b04279 commit 9d6e8cd

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright (c) 2024 Antmicro <www.antmicro.com>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Common fields for touch controllers
5+
6+
include: base.yaml
7+
8+
properties:
9+
screen-width:
10+
type: int
11+
default: 0
12+
description: |
13+
Horizontal resolution of touchscreen (maximum x coordinate reported + 1). The default
14+
corresponds to a valid value for non-inverted axis, required for a display with an inverted x
15+
axis.
16+
17+
screen-height:
18+
type: int
19+
default: 0
20+
description: |
21+
Vertical resolution of touchscreen (maximum y coordinate reported + 1). The default
22+
corresponds to a valid value for non-inverted axis, required for a display with an inverted y
23+
axis.
24+
25+
inverted-x:
26+
type: boolean
27+
description: X axis is inverted.
28+
29+
inverted-y:
30+
type: boolean
31+
description: Y axis is inverted.
32+
33+
swapped-x-y:
34+
type: boolean
35+
description: X and Y axis are swapped. Swapping is done after inverting the axis.

0 commit comments

Comments
 (0)