Linux Input/HID development
 help / color / mirror / Atom feed
From: Henri Ommer <henri@ommer.net>
To: dmitry.torokhov@gmail.com, job@noorman.info
Cc: Frank.Li@nxp.com, linux-input@vger.kernel.org,
	phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
	Henri Ommer <henri@ommer.net>
Subject: [PATCH v3 1/3] input: himax_hx83112b: Make reset optional
Date: Tue,  1 Dec 2026 20:54:54 +0100	[thread overview]
Message-ID: <20261201195456.12571-2-henri@ommer.net> (raw)
In-Reply-To: <20261201195456.12571-1-henri@ommer.net>

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


  reply	other threads:[~2026-12-01 19:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 19:54 [PATCH v3 0/3] Add himax hx83102d touchscreen support Henri Ommer
2026-12-01 19:54 ` Henri Ommer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201195456.12571-2-henri@ommer.net \
    --to=henri@ommer.net \
    --cc=Frank.Li@nxp.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=job@noorman.info \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phone-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox