zephyr/dts/bindings/input/touchscreen-common.yaml
Dominik Lau 6318487336 bindings: input: add generic touch controller bindings
Adds common properties for touchscreen controllers.

Signed-off-by: Dominik Lau <dlau@internships.antmicro.com>
Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-08-28 14:02:43 -04:00

36 lines
955 B
YAML

# Copyright (c) 2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
# Common fields for touch controllers
include: base.yaml
properties:
screen-width:
type: int
default: 0
description: |
Horizontal resolution of touchscreen (maximum x coordinate reported + 1). The default
corresponds to a valid value for non-inverted axis, required for a display with an inverted x
axis.
screen-height:
type: int
default: 0
description: |
Vertical resolution of touchscreen (maximum y coordinate reported + 1). The default
corresponds to a valid value for non-inverted axis, required for a display with an inverted y
axis.
inverted-x:
type: boolean
description: X axis is inverted.
inverted-y:
type: boolean
description: Y axis is inverted.
swapped-x-y:
type: boolean
description: X and Y axis are swapped. Swapping is done after inverting the axis.