mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-21 17:35:06 +00:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
description: >
|
|
XPT2046 resistive touch controller driven over bit-banged (software) SPI on plain GPIO
|
|
pins, for boards where no hardware SPI peripheral is available for touch (e.g. both
|
|
SPI2_HOST and SPI3_HOST are already claimed by the display and SD card).
|
|
|
|
compatible: "xptek,xpt2046-softspi"
|
|
|
|
properties:
|
|
pin-mosi:
|
|
type: phandles
|
|
required: true
|
|
description: MOSI (controller-out, peripheral-in) GPIO pin
|
|
pin-miso:
|
|
type: phandles
|
|
required: true
|
|
description: MISO (controller-in, peripheral-out) GPIO pin
|
|
pin-sck:
|
|
type: phandles
|
|
required: true
|
|
description: Clock GPIO pin
|
|
pin-cs:
|
|
type: phandles
|
|
required: true
|
|
description: Chip-select GPIO pin
|
|
x-max:
|
|
type: int
|
|
required: true
|
|
description: Maximum X coordinate reported by the controller (typically the panel's horizontal resolution)
|
|
y-max:
|
|
type: int
|
|
required: true
|
|
description: Maximum Y coordinate reported by the controller (typically the panel's vertical resolution)
|
|
swap-xy:
|
|
type: boolean
|
|
default: false
|
|
description: Swap the X and Y axes
|
|
mirror-x:
|
|
type: boolean
|
|
default: false
|
|
description: Mirror the X axis
|
|
mirror-y:
|
|
type: boolean
|
|
default: false
|
|
description: Mirror the Y axis
|