Documentation / devicetree / bindings / input / touchscreen / himax,hx852es.yaml


Based on kernel version 6.18. Page generated on 2025-12-02 09:03 EST.

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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/touchscreen/himax,hx852es.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Himax HX852x(ES) touch panel controller

maintainers:
  - Stephan Gerhold <stephan@gerhold.net>

allOf:
  - $ref: touchscreen.yaml#

properties:
  compatible:
    items:
      - enum:
          - himax,hx8525e
          - himax,hx8526e
          - himax,hx8527e
      - const: himax,hx852es

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1
    description: Touch Screen Interrupt (TSIX), active low

  reset-gpios:
    maxItems: 1
    description: External Reset (XRES), active low

  vcca-supply:
    description: Analog power supply (VCCA)

  vccd-supply:
    description: Digital power supply (VCCD)

  touchscreen-inverted-x: true
  touchscreen-inverted-y: true
  touchscreen-size-x: true
  touchscreen-size-y: true
  touchscreen-swapped-x-y: true

  linux,keycodes:
    minItems: 1
    maxItems: 4

required:
  - compatible
  - reg
  - interrupts
  - reset-gpios

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/input/input.h>
    #include <dt-bindings/interrupt-controller/irq.h>
 
    i2c {
      #address-cells = <1>;
      #size-cells = <0>;
 
      touchscreen@48 {
        compatible = "himax,hx8527e", "himax,hx852es";
        reg = <0x48>;
        interrupt-parent = <&tlmm>;
        interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
        reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
        vcca-supply = <&reg_ts_vcca>;
        vccd-supply = <&pm8916_l6>;
        linux,keycodes = <KEY_BACK KEY_HOMEPAGE KEY_APPSELECT>;
      };
    };

...