LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Yassine Oudjana <y.oudjana@protonmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh+dt@kernel.org>
Cc: Yassine Oudjana <y.oudjana@protonmail.com>,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht
Subject: [PATCH v4 0/2] Input: cypress-sf - Add support for Cypress Streetfighter touchkeys
Date: Tue, 07 Sep 2021 17:43:57 +0000 [thread overview]
Message-ID: <20210907174341.422013-1-y.oudjana@protonmail.com> (raw)
This patchset adds support for Cypress StreetFighter touchkeys.
Due to lack of documentation, this driver is entirely based on information
gathered from a driver written for an old Android kernel fork[1][2].
[1] https://github.com/LineageOS/android_kernel_xiaomi_msm8996/blob/lineage-18.1/drivers/input/touchscreen/cyttsp_button.c
[2] https://github.com/LineageOS/android_kernel_xiaomi_msm8996/blob/lineage-18.1/arch/arm/boot/dts/qcom/a4-msm8996-mtp.dtsi#L291-L314
Changes since v3:
- Use device_property_read_u32_array to read keycodes.
- Read status register into integer first to check for errors.
- Use bitmap_xor and for_each_set_bit to check for key state changes.
- More code style fixes.
- Add MAINTAINERS entry.
- Dual-license DT binding.
Changes since v2:
- Code style fixes.
- Added copyright statement.
Changes since v1:
- Changed version variables in probe to int to allow storing error codes.
- Fixed some issues in dt binding.
Yassine Oudjana (2):
Input: cypress-sf - Add Cypress StreetFighter touchkey driver
dt-bindings: input: Add binding for cypress-sf
.../devicetree/bindings/input/cypress-sf.yaml | 61 +++++
MAINTAINERS | 7 +
drivers/input/keyboard/Kconfig | 10 +
drivers/input/keyboard/Makefile | 1 +
drivers/input/keyboard/cypress-sf.c | 219 ++++++++++++++++++
5 files changed, 298 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/cypress-sf.yaml
create mode 100644 drivers/input/keyboard/cypress-sf.c
--
2.33.0
next reply other threads:[~2021-09-07 17:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-07 17:43 Yassine Oudjana [this message]
2021-09-07 17:44 ` [PATCH v4 1/2] Input: cypress-sf - Add Cypress StreetFighter touchkey driver Yassine Oudjana
2021-09-10 5:25 ` Dmitry Torokhov
2021-09-07 17:44 ` [PATCH v4 2/2] dt-bindings: input: Add binding for cypress-sf Yassine Oudjana
2021-09-10 5:25 ` Dmitry Torokhov
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=20210907174341.422013-1-y.oudjana@protonmail.com \
--to=y.oudjana@protonmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
--subject='Re: [PATCH v4 0/2] Input: cypress-sf - Add support for Cypress Streetfighter touchkeys' \
/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
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).