Skip to content

Commit f9d8037

Browse files
stephan-ghdtor
authored andcommitted
dt-bindings: input: touchscreen: document Himax HX852x(ES)
Himax HX852x(ES) is a touch panel controller with optional support for capacitive touch keys. Unfortunately, the model naming is quite unclear and confusing. There seems to be a distinction between models (e.g. HX8526) and the "series" suffix (e.g. -A, -B, -C, -D, -E, -ES). But this doesn't seem to be applied very consistently because e.g. HX8527-E(44) actually seems to belong to the -ES series. The compatible consists of the actual part number followed by the "series" as fallback compatible. Typically only the latter will be interesting for drivers as there is no relevant difference on the driver side. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20250915-hx852x-v5-1-b938182f1056@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 925e929 commit f9d8037

1 file changed

Lines changed: 81 additions & 0 deletions

File tree

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/touchscreen/himax,hx852es.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Himax HX852x(ES) touch panel controller
8+
9+
maintainers:
10+
- Stephan Gerhold <stephan@gerhold.net>
11+
12+
allOf:
13+
- $ref: touchscreen.yaml#
14+
15+
properties:
16+
compatible:
17+
items:
18+
- enum:
19+
- himax,hx8525e
20+
- himax,hx8526e
21+
- himax,hx8527e
22+
- const: himax,hx852es
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
description: Touch Screen Interrupt (TSIX), active low
30+
31+
reset-gpios:
32+
maxItems: 1
33+
description: External Reset (XRES), active low
34+
35+
vcca-supply:
36+
description: Analog power supply (VCCA)
37+
38+
vccd-supply:
39+
description: Digital power supply (VCCD)
40+
41+
touchscreen-inverted-x: true
42+
touchscreen-inverted-y: true
43+
touchscreen-size-x: true
44+
touchscreen-size-y: true
45+
touchscreen-swapped-x-y: true
46+
47+
linux,keycodes:
48+
minItems: 1
49+
maxItems: 4
50+
51+
required:
52+
- compatible
53+
- reg
54+
- interrupts
55+
- reset-gpios
56+
57+
additionalProperties: false
58+
59+
examples:
60+
- |
61+
#include <dt-bindings/gpio/gpio.h>
62+
#include <dt-bindings/input/input.h>
63+
#include <dt-bindings/interrupt-controller/irq.h>
64+
65+
i2c {
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
69+
touchscreen@48 {
70+
compatible = "himax,hx8527e", "himax,hx852es";
71+
reg = <0x48>;
72+
interrupt-parent = <&tlmm>;
73+
interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
74+
reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
75+
vcca-supply = <&reg_ts_vcca>;
76+
vccd-supply = <&pm8916_l6>;
77+
linux,keycodes = <KEY_BACK KEY_HOMEPAGE KEY_APPSELECT>;
78+
};
79+
};
80+
81+
...

0 commit comments

Comments
 (0)