From: Bongsu Jeon <bongsu.jeon2@gmail.com>
To: krzk@kernel.org
Cc: linux-nfc@lists.01.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Bongsu Jeon <bongsu.jeon@samsung.com>
Subject: [PATCH v5 net-next 0/4] nfc: s3fwrn5: Support a UART interface
Date: Wed, 2 Dec 2020 20:47:37 +0900 [thread overview]
Message-ID: <1606909661-3814-1-git-send-email-bongsu.jeon@samsung.com> (raw)
From: Bongsu Jeon <bongsu.jeon@samsung.com>
S3FWRN82 is the Samsung's NFC chip that supports the UART communication.
Before adding the UART driver module, I did refactoring the s3fwrn5_i2c module
to reuse the common blocks.
1/4 is the dt bindings for the RN82 UART interface.
2/4..3/4 are refactoring the s3fwrn5_i2c module.
4/4 is the UART driver module implementation.
ChangeLog:
v5:
1/4
- remove the 'items' of the compatible property.
- change the GPIO flags.
v4:
1/4
- change 'oneOf' to 'items'.
- fix the indentation.
2/4
- add the ACK tag.
4/4
- remove the of_match_ptr macro.
v3:
3/4
- move the phy_common object to s3fwrn.ko to avoid duplication.
- include the header files to include everything which is used inside.
- wrap the lines.
4/4
- remove the kfree(phy) because of duplicated free.
- use the phy_common blocks.
- wrap lines properly.
v2:
1/4
- change the compatible name.
- change the const to enum for compatible.
- change the node name to nfc.
3/4
- remove the common function's definition in common header file.
- make the common phy_common.c file to define the common function.
- wrap the lines.
- change the Header guard.
- remove the unused common function.
Bongsu Jeon (4):
dt-bindings: net: nfc: s3fwrn5: Support a UART interface
nfc: s3fwrn5: reduce the EN_WAIT_TIME
nfc: s3fwrn5: extract the common phy blocks
nfc: s3fwrn5: Support a UART interface
.../bindings/net/nfc/samsung,s3fwrn5.yaml | 31 +++-
drivers/nfc/s3fwrn5/Kconfig | 12 ++
drivers/nfc/s3fwrn5/Makefile | 4 +-
drivers/nfc/s3fwrn5/i2c.c | 117 ++++--------
drivers/nfc/s3fwrn5/phy_common.c | 75 ++++++++
drivers/nfc/s3fwrn5/phy_common.h | 37 ++++
drivers/nfc/s3fwrn5/uart.c | 196 +++++++++++++++++++++
7 files changed, 390 insertions(+), 82 deletions(-)
create mode 100644 drivers/nfc/s3fwrn5/phy_common.c
create mode 100644 drivers/nfc/s3fwrn5/phy_common.h
create mode 100644 drivers/nfc/s3fwrn5/uart.c
--
1.9.1
next reply other threads:[~2020-12-02 11:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-02 11:47 Bongsu Jeon [this message]
2020-12-02 11:47 ` [PATCH v5 net-next 1/4] dt-bindings: net: nfc: s3fwrn5: Support a UART interface Bongsu Jeon
2020-12-02 17:16 ` Krzysztof Kozlowski
2020-12-02 22:16 ` Bongsu Jeon
2020-12-02 11:47 ` [PATCH v5 net-next 2/4] nfc: s3fwrn5: reduce the EN_WAIT_TIME Bongsu Jeon
2020-12-02 11:47 ` [PATCH v5 net-next 3/4] nfc: s3fwrn5: extract the common phy blocks Bongsu Jeon
2020-12-02 11:47 ` [PATCH v5 net-next 4/4] nfc: s3fwrn5: Support a UART interface Bongsu Jeon
2020-12-03 1:58 ` [PATCH v5 net-next 0/4] " Jakub Kicinski
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=1606909661-3814-1-git-send-email-bongsu.jeon@samsung.com \
--to=bongsu.jeon2@gmail.com \
--cc=bongsu.jeon@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfc@lists.01.org \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).