* [PATCH v3 0/3] Add himax hx83102d touchscreen support
@ 2026-12-01 19:54 Henri Ommer
2026-12-01 19:54 ` [PATCH v3 1/3] input: himax_hx83112b: Make reset optional Henri Ommer
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Henri Ommer @ 2026-12-01 19:54 UTC (permalink / raw)
To: dmitry.torokhov, job
Cc: Frank.Li, linux-input, phone-devel, linux-kernel, Henri Ommer
Hi everyone,
this patch series adds bindings and driver modifications to support the himax hx83102d
touchscreen used for example in the Samsung Galaxy A20e and Motorola moto
e7 plus. Also adds support for himax touchscreens without a reset GPIO.
Tested on: Samsung Galaxy A20e
Signed-off-by: Henri Ommer <henri@ommer.net>
Henri Ommer (3):
input: himax_hx83112b: Make reset optional
input: himax_hx83112b: Add hx83102d support
dt-bindings: touchscreen: trivial-touch: Add hx83102d
.../input/touchscreen/trivial-touch.yaml | 4 ++--
drivers/input/touchscreen/himax_hx83112b.c | 17 ++++++++++++++++-
2 files changed, 18 insertions(+), 3 deletions(-)
--
Best regards,
Henri
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 1/3] input: himax_hx83112b: Make reset optional
2026-12-01 19:54 [PATCH v3 0/3] Add himax hx83102d touchscreen support Henri Ommer
@ 2026-12-01 19:54 ` Henri Ommer
2026-12-01 19:54 ` [PATCH v3 2/3] input: himax_hx83112b: Add hx83102d support Henri Ommer
2026-12-01 19:54 ` [PATCH v3 3/3] dt-bindings: touchscreen: trivial-touch: Add hx83102d Henri Ommer
2 siblings, 0 replies; 4+ messages in thread
From: Henri Ommer @ 2026-12-01 19:54 UTC (permalink / raw)
To: dmitry.torokhov, job
Cc: Frank.Li, linux-input, phone-devel, linux-kernel, Henri Ommer
Some versions of Himax touchscreen chips do not have a reset GPIO. In the downstream driver these chips are only reset for firmware flashes.
Since firmware flashes aren't implemented in this driver, resets can be skipped.
Signed-off-by: Henri Ommer <henri@ommer.net>
---
drivers/input/touchscreen/himax_hx83112b.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/himax_hx83112b.c b/drivers/input/touchscreen/himax_hx83112b.c
index 345ece27fe74..d9d57ebf5123 100644
--- a/drivers/input/touchscreen/himax_hx83112b.c
+++ b/drivers/input/touchscreen/himax_hx83112b.c
@@ -132,6 +132,13 @@ static int himax_bus_read(struct himax_ts_data *ts, u32 address, void *dst,
static void himax_reset(struct himax_ts_data *ts)
{
+ /*
+ * TODO: Replace with software reset when firmware updates are
+ * implemented.
+ */
+ if (!ts->gpiod_rst)
+ return;
+
gpiod_set_value_cansleep(ts->gpiod_rst, 1);
/* Delay copied from downstream driver */
@@ -349,7 +356,7 @@ static int himax_probe(struct i2c_client *client)
return error;
}
- ts->gpiod_rst = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
+ ts->gpiod_rst = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
error = PTR_ERR_OR_ZERO(ts->gpiod_rst);
if (error) {
dev_err(dev, "Failed to get reset GPIO: %d\n", error);
--
Changes in v3: Shorter comment
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v3 2/3] input: himax_hx83112b: Add hx83102d support
2026-12-01 19:54 [PATCH v3 0/3] Add himax hx83102d touchscreen support Henri Ommer
2026-12-01 19:54 ` [PATCH v3 1/3] input: himax_hx83112b: Make reset optional Henri Ommer
@ 2026-12-01 19:54 ` Henri Ommer
2026-12-01 19:54 ` [PATCH v3 3/3] dt-bindings: touchscreen: trivial-touch: Add hx83102d Henri Ommer
2 siblings, 0 replies; 4+ messages in thread
From: Henri Ommer @ 2026-12-01 19:54 UTC (permalink / raw)
To: dmitry.torokhov, job
Cc: Frank.Li, linux-input, phone-devel, linux-kernel, Henri Ommer
The core functionality of the hx83102d is software-compatible with the hx83112b. As with the hx83112b, firmware flashing is unimplemented.
Tested on: Samsung Galaxy A20e (SM-A202F)
Signed-off-by: Henri Ommer <henri@ommer.net>
---
drivers/input/touchscreen/himax_hx83112b.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/input/touchscreen/himax_hx83112b.c b/drivers/input/touchscreen/himax_hx83112b.c
index d9d57ebf5123..e38e707011b8 100644
--- a/drivers/input/touchscreen/himax_hx83112b.c
+++ b/drivers/input/touchscreen/himax_hx83112b.c
@@ -406,6 +406,12 @@ static const struct himax_chip hx83100a_chip = {
.read_events = hx83100a_read_events,
};
+static const struct himax_chip hx83102d_chip = {
+ .id = 0x83102d,
+ .check_id = himax_check_product_id,
+ .read_events = himax_read_events,
+};
+
static const struct himax_chip hx83112b_chip = {
.id = 0x83112b,
.check_id = himax_check_product_id,
@@ -414,6 +420,7 @@ static const struct himax_chip hx83112b_chip = {
static const struct i2c_device_id himax_ts_id[] = {
{ .name = "hx83100a", .driver_data = (kernel_ulong_t)&hx83100a_chip },
+ { .name = "hx83102d", .driver_data = (kernel_ulong_t)&hx83102d_chip },
{ .name = "hx83112b", .driver_data = (kernel_ulong_t)&hx83112b_chip },
{ /* sentinel */ }
};
@@ -422,6 +429,7 @@ MODULE_DEVICE_TABLE(i2c, himax_ts_id);
#ifdef CONFIG_OF
static const struct of_device_id himax_of_match[] = {
{ .compatible = "himax,hx83100a", .data = &hx83100a_chip },
+ { .compatible = "himax,hx83102d", .data = &hx83102d_chip },
{ .compatible = "himax,hx83112b", .data = &hx83112b_chip },
{ /* sentinel */ }
};
--
Changes in v3: Remove copyright
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v3 3/3] dt-bindings: touchscreen: trivial-touch: Add hx83102d
2026-12-01 19:54 [PATCH v3 0/3] Add himax hx83102d touchscreen support Henri Ommer
2026-12-01 19:54 ` [PATCH v3 1/3] input: himax_hx83112b: Make reset optional Henri Ommer
2026-12-01 19:54 ` [PATCH v3 2/3] input: himax_hx83112b: Add hx83102d support Henri Ommer
@ 2026-12-01 19:54 ` Henri Ommer
2 siblings, 0 replies; 4+ messages in thread
From: Henri Ommer @ 2026-12-01 19:54 UTC (permalink / raw)
To: dmitry.torokhov, job
Cc: Frank.Li, linux-input, phone-devel, linux-kernel, Henri Ommer
Adds the Himax hx83102d touchscreen chip compatible string.
The hx83102d is mostly software-compatible with the hx83112b.
Signed-off-by: Henri Ommer <henri@ommer.net>
---
.../devicetree/bindings/input/touchscreen/trivial-touch.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/trivial-touch.yaml b/Documentation/devicetree/bindings/input/touchscreen/trivial-touch.yaml
index 6316a8d32f39..d0ee79ba096d 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/trivial-touch.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/trivial-touch.yaml
@@ -16,9 +16,9 @@ properties:
- azoteq,iqs550
- azoteq,iqs572
- azoteq,iqs525
- # Himax hx83100a touchscreen controller
+ # The Himax hx83100a, hx83102d and hx83112b touchscreen controllers
- himax,hx83100a
- # Himax hx83112b touchscreen controller
+ - himax,hx83102d
- himax,hx83112b
# Hynitron cstxxx series touchscreen controller
- hynitron,cst340
--
Changes in v3: Commit wording
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-01 19:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:54 [PATCH v3 0/3] Add himax hx83102d touchscreen support Henri Ommer
2026-12-01 19:54 ` [PATCH v3 1/3] input: himax_hx83112b: Make reset optional Henri Ommer
2026-12-01 19:54 ` [PATCH v3 2/3] input: himax_hx83112b: Add hx83102d support Henri Ommer
2026-12-01 19:54 ` [PATCH v3 3/3] dt-bindings: touchscreen: trivial-touch: Add hx83102d Henri Ommer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox