Document the ESWIN EPH8621 touchscreen controller, which can operate in SPI mode. Other touchscreen controllers from the EPH861X family (and potentially also EPH8621) can also operate in I2C mode, this was not added yet.
Signed-off-by: Luca Weiss <[email protected]> --- .../bindings/input/touchscreen/eswin,eph8621.yaml | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/eswin,eph8621.yaml b/Documentation/devicetree/bindings/input/touchscreen/eswin,eph8621.yaml new file mode 100644 index 000000000000..03f981ba19e4 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/eswin,eph8621.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/eswin,eph8621.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ESWIN EPH8621 touchscreen controller + +maintainers: + - Luca Weiss <[email protected]> + +allOf: + - $ref: touchscreen.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - eswin,eph8621 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + avdd-supply: + description: Power supply regulator on AVDD pin + + vddio-supply: + description: Power supply regulator on VDDIO pin + + spi-max-frequency: true + 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 + - interrupts + - avdd-supply + - vddio-supply + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + #include <dt-bindings/gpio/gpio.h> + spi { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@0 { + compatible = "eswin,eph8621"; + reg = <0>; + + avdd-supply = <&vreg_l22b>; + vddio-supply = <&vreg_l9b>; + + interrupts-extended = <&tlmm 19 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&tlmm 20 GPIO_ACTIVE_LOW>; + + spi-max-frequency = <2000000>; + + touchscreen-size-x = <1116>; + touchscreen-size-y = <2484>; + touchscreen-inverted-x; + }; + }; + +... -- 2.55.0

