linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: George Chan via B4 Relay <devnull+gchan9527.gmail.com@kernel.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	 Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Del Regno <kholk11@gmail.com>,
	 Henrik Rydberg <rydberg@bitmath.org>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org, George Chan <gchan9527@gmail.com>
Subject: [PATCH RFC/RFT 0/3] Add support to Novatek's touch IC nt36xxx
Date: Tue, 15 Oct 2024 20:53:28 +0800	[thread overview]
Message-ID: <20241015-nt36xxx-v1-0-3919d0bffee6@gmail.com> (raw)

Initially support for nt36xxx series spi device. Below 
list all supported varients:

 - NT36675
 - NT36672A
 - NT36772(?)
 - NT36525
 - NT36676F

I had tested it with Redmi note 9 pro, aka NT36675 chip.

This series is based on my repo below:
https://github.com/99degree/linux/tree/nt36xxx

There is a boot-and-functional tree for miatoll device:
https://github.com/99degree/linux/tree/working-20241015

And the older dev history:
https://github.com/99degree/linux/tree/nt36xxx_old
https://github.com/99degree/linux/tree/working-20230528/drivers/input/touchscreen

This driver is based on 
AngeloGioacchino Del Regno for i2c based drive
https://patchwork.kernel.org/project/linux-input/cover/20201028221302.66583-1-kholk11@gmail.com/#24831734

_AND_
Neil Armstrong for the spi device codes
https://patchwork.kernel.org/project/linux-input/patch/20231213-topic-goodix-berlin-upstream-initial-v13-2-5d7a26a5eaa2@linaro.org/

Download fw function is adapted from original vendor driver
https://github.com/LineageOS/android_kernel_xiaomi_sm6250/tree/lineage-21/drivers/input/touchscreen/nt36xxx_spi/

Panel follower functionality is finally added.

Since the driver is split into core+spi so i2c function is relatively
easily to add.

Signed-off-by: George Chan <gchan9527@gmail.com>
---
George Chan (3):
      dt-bindings: touchscreen: Add binding for Novatek NT36xxx series driver
      [RFC/RFT]Input: Add Novatek NT36xxx touchscreen driver
      dts: sm7125-xiaomi-joyeuse: Sample device tree for reference

 .../bindings/input/touchscreen/nt36xxx.yaml        |   70 +
 arch/arm64/boot/dts/qcom/Makefile                  |    1 +
 .../boot/dts/qcom/sm7125-xiaomi-joyeuse-touch.dts  |  183 +++
 drivers/input/touchscreen/Kconfig                  |   13 +
 drivers/input/touchscreen/Makefile                 |    2 +
 drivers/input/touchscreen/nt36xxx.h                |  142 ++
 drivers/input/touchscreen/nt36xxx_core.c           | 1422 ++++++++++++++++++++
 drivers/input/touchscreen/nt36xxx_spi.c            |  256 ++++
 8 files changed, 2089 insertions(+)
---
base-commit: b852e1e7a0389ed6168ef1d38eb0bad71a6b11e8
change-id: 20241015-nt36xxx-07e458ba2877

Best regards,
-- 
George Chan <gchan9527@gmail.com>



             reply	other threads:[~2024-10-15 12:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 12:53 George Chan via B4 Relay [this message]
2024-10-15 12:53 ` [PATCH RFC/RFT 1/3] dt-bindings: touchscreen: Add binding for Novatek NT36xxx series driver George Chan via B4 Relay
2024-10-15 13:39   ` Krzysztof Kozlowski
2024-10-15 14:27   ` Rob Herring (Arm)
2024-10-15 12:53 ` [PATCH RFC/RFT 2/3] Input: Add Novatek NT36xxx touchscreen driver George Chan via B4 Relay
2024-10-15 12:53 ` [PATCH RFC/RFT 3/3] dts: sm7125-xiaomi-joyeuse: Sample device tree for reference George Chan via B4 Relay
2024-10-15 14:17 ` [PATCH RFC/RFT 0/3] Add support to Novatek's touch IC nt36xxx Rob Herring (Arm)

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=20241015-nt36xxx-v1-0-3919d0bffee6@gmail.com \
    --to=devnull+gchan9527.gmail.com@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gchan9527@gmail.com \
    --cc=kholk11@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=rydberg@bitmath.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;
as well as URLs for NNTP newsgroup(s).