[PATCH v3 1/3] input: himax_hx83112b: Make reset optional

From: Henri Ommer

Date: Tue Dec 01 2026 - 14:56:28 EST


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@xxxxxxxxx>
---
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