Skip to contentSkip to conversation

input: himax_hx83112b: Add hx83102d support

PATCH Dmitry Torokhov 1 participant 1 message Nov 11 1 message not in the archive HID

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 40 lines · Henri Ommer

The core functionality of the hx83102d is software-compatible with the hx83112b. As with the hx83112b, firmware flashing is unimplemented. This commit also adds support for touchscreen chips which do not have a reset GPIO, like the hx83102d in the Samsung Galaxy A20e.

Tested on: Samsung Galaxy A20e (SM-A202F)

---
 drivers/input/touchscreen/himax_hx83112b.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
drivers/input/touchscreen/himax_hx83112b.c +11 -0
index 345ece27fe74..04c9c6aba396 100644
@@ -7,6 +7,9 @@
  * HX83100A support
  * Copyright (C) 2024 Felix Kaechele <[email protected]>
  *
+ * HX83102D support
+ * Copyright (C) 2026 Henri Ommer <[email protected]>
+ *
  * This code is based on "Himax Android Driver Sample Code for QCT platform":
  *
  * Copyright (C) 2017 Himax Corporation.
@@ -132,6 +135,14 @@ static int himax_bus_read(struct himax_ts_data *ts, u32 address, void *dst,
 
 static void himax_reset(struct himax_ts_data *ts)
 {
+	/*
+	 * Some versions of himax touchscreen chips do not contain a reset
+	 * GPIO. The downstream driver only resets these chips for firmware
+	 * updates (which aren't implemented in this driver)
+	 */
+	if (!ts->gpiod_rst)
+		return;
+
 	gpiod_set_value_cansleep(ts->gpiod_rst, 1);
 
 	/* Delay copied from downstream driver */

drivers/input/touchscreen/himax_hx83112b.c static int himax_probe(struct i2c_client *client) · line 363

Quoted 5 lines
drivers/input/touchscreen/himax_hx83112b.c +1 -1
@@ -349,7 +360,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);

This should be a separate patch please.

Thanks.

Signature · 1 line
Dmitry