From: Tylor Yang <tylor_yang@himax.corp-partner.google.com>
To: dmitry.torokhov@gmail.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
jikos@kernel.org, benjamin.tissoires@redhat.com,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: poyuan_chang@himax.corp-partner.google.com,
jingliang@chromium.org, hbarnor@chromium.org,
Tylor Yang <tylor_yang@himax.corp-partner.google.com>
Subject: [PATCH V2 0/2] HID: touchscreen: add himax hid-over-spi driver
Date: Tue, 19 Sep 2023 10:49:41 +0800 [thread overview]
Message-ID: <20230919024943.3088916-1-tylor_yang@himax.corp-partner.google.com> (raw)
Hello,
This patch series adds the driver for Himax HID-over-SPI touchscreen ICs.
This driver takes a position in [1], it intends to take advantage of SPI
transfer speed and HID interface. The userspace program [2] can use ioctl
through general hidraw interface provided by kernel HID sub-system to
control touch IC without creating special file nodes.
Patch 1 adds the Maintainer and devicetree bindings document for driver.
Patch 2 adds the driver itself, Kconfig and Makefiles.
[1] Overview:
+--------------------------------+
| himax hid-over-spi TPIC driver |
+--------------------------------+
| +-----------+ +-----------+ | +-----------+ +-----------+
| | Device #1 | | Device #i | | | Device #j | | Device #k |
| +-----------+ +-----------+ | +-----------+ +-----------+
| \\ // | \\ //
| +------------+ | +------------+
| | I/O Driver | | | I/O Driver |
| +------------+ | +------------+
| || | ||
| +------------------+ | +------------------+
| | Transport Driver | | | Transport Driver |
| +------------------+ | +------------------+
| \___ | ___/
+--------------------------------+ /
\ /
+----------------+
| HID Core |
+----------------+
/ | | \
/ | | \
____________/ | | \_________________
/ | | \
/ | | \
+----------------+ +-----------+ +------------------+ +------------------+
| Generic Driver | | MT Driver | | Custom Driver #1 | | Custom Driver #2 |
+----------------+ +-----------+ +------------------+ +------------------+
[2] https://github.com/HimaxSoftware/hx_hid_util/tree/hid_func
version 2 changes
-rename bindings name from himax,hid-over-hx-spi to himax,hid-over-spi
-remove "himax,fw_size", "himax,heatmap_16bits", "himax,fw_in_flash", "himax,pid"
and "himax,boot_time_fw_upgrade" items from dt-bindings and related code
-add "himax,id-gpios" for user to specify hardware id pins
-rename "himax,ic_det_delay" to "himax,ic-det-delay-ms" and
"himax,ic_resume_delay" to "himax,ic-resume-delay-ms"
-MAINTAINER position adjust: move info to the position by letter order
-Kconfig add HX_HID_HAS_FLASH option to replace "himax,fw_in_flash"
-HIMAX_DRIVER_VER upadte from 0.0.10 to 0.0.11
-remove unused includes and description in hx_hid.c
-add code to map id-gpios value to PID
-correct variable naming style and misspellings in hx_ic_core.c/h
-remove unnecessary global varaible debug_flag
Tylor Yang (2):
dt-bindings: input: Introduce Himax HID-over-SPI device
HID: touchscreen: Add initial support for Himax HID-over-SPI
.../bindings/input/himax,hid-over-spi.yaml | 109 +
MAINTAINERS | 7 +
drivers/hid/Kconfig | 2 +
drivers/hid/Makefile | 2 +
drivers/hid/hx-hid/Kconfig | 55 +
drivers/hid/hx-hid/Makefile | 35 +
drivers/hid/hx-hid/hx_acpi.c | 96 +
drivers/hid/hx-hid/hx_core.c | 1626 ++++++++
drivers/hid/hx-hid/hx_core.h | 487 +++
drivers/hid/hx-hid/hx_hid.c | 757 ++++
drivers/hid/hx-hid/hx_hid.h | 96 +
drivers/hid/hx-hid/hx_ic_83102j.c | 345 ++
drivers/hid/hx-hid/hx_ic_83102j.h | 42 +
drivers/hid/hx-hid/hx_ic_core.c | 3260 +++++++++++++++++
drivers/hid/hx-hid/hx_ic_core.h | 792 ++++
drivers/hid/hx-hid/hx_inspect.c | 652 ++++
drivers/hid/hx-hid/hx_inspect.h | 104 +
drivers/hid/hx-hid/hx_of.c | 171 +
drivers/hid/hx-hid/hx_plat.c | 480 +++
drivers/hid/hx-hid/hx_plat.h | 30 +
20 files changed, 9148 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/himax,hid-over-spi.yaml
create mode 100644 drivers/hid/hx-hid/Kconfig
create mode 100644 drivers/hid/hx-hid/Makefile
create mode 100644 drivers/hid/hx-hid/hx_acpi.c
create mode 100644 drivers/hid/hx-hid/hx_core.c
create mode 100644 drivers/hid/hx-hid/hx_core.h
create mode 100644 drivers/hid/hx-hid/hx_hid.c
create mode 100644 drivers/hid/hx-hid/hx_hid.h
create mode 100644 drivers/hid/hx-hid/hx_ic_83102j.c
create mode 100644 drivers/hid/hx-hid/hx_ic_83102j.h
create mode 100644 drivers/hid/hx-hid/hx_ic_core.c
create mode 100644 drivers/hid/hx-hid/hx_ic_core.h
create mode 100644 drivers/hid/hx-hid/hx_inspect.c
create mode 100644 drivers/hid/hx-hid/hx_inspect.h
create mode 100644 drivers/hid/hx-hid/hx_of.c
create mode 100644 drivers/hid/hx-hid/hx_plat.c
create mode 100644 drivers/hid/hx-hid/hx_plat.h
--
2.25.1
next reply other threads:[~2023-09-19 2:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-19 2:49 Tylor Yang [this message]
2023-09-19 2:49 ` [PATCH V2 1/2] dt-bindings: input: Introduce Himax HID-over-SPI device Tylor Yang
2023-09-19 8:41 ` Conor Dooley
[not found] ` <CAGD2q_anfBP78jck6AbMNtgAggjOgaB3P6dkmq9tONHP45adFA@mail.gmail.com>
2023-09-19 11:09 ` Conor Dooley
2023-09-22 7:56 ` yang tylor
2023-09-22 9:22 ` Conor Dooley
2023-09-22 9:43 ` yang tylor
2023-09-22 15:31 ` Conor Dooley
2023-09-25 1:44 ` yang tylor
2023-09-25 8:41 ` Conor Dooley
2023-09-25 10:16 ` yang tylor
2023-09-26 9:02 ` Conor Dooley
2023-09-26 9:52 ` yang tylor
2023-09-26 12:53 ` Conor Dooley
2023-09-28 2:12 ` yang tylor
2023-09-28 16:56 ` Conor Dooley
2023-10-02 10:44 ` yang tylor
2023-10-09 17:52 ` Conor Dooley
2023-10-12 2:30 ` yang tylor
2023-10-12 15:24 ` Conor Dooley
2023-10-13 2:15 ` yang tylor
2023-09-19 18:17 ` Rob Herring
2023-09-19 2:49 ` [PATCH V2 2/2] HID: touchscreen: Add initial support for Himax HID-over-SPI Tylor Yang
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=20230919024943.3088916-1-tylor_yang@himax.corp-partner.google.com \
--to=tylor_yang@himax.corp-partner.google.com \
--cc=benjamin.tissoires@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=hbarnor@chromium.org \
--cc=jikos@kernel.org \
--cc=jingliang@chromium.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=poyuan_chang@himax.corp-partner.google.com \
--cc=robh+dt@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
all inboxes | Powered by JetHome®