The purpose of this patch series is to add a uart phy driver to the
pn533 nfc driver.
It first changes the dt strings and docs. The dt compatible strings
need to change, because I would add "pn532-uart" to the already
existing "pn533-i2c" one. These two are now unified into just
"pn532". Then the neccessary changes to the pn533 core driver are
made. Then the uart phy is added.
As the pn532 chip supports a autopoll, I wanted to use this instead
of the software poll loop in the pn533 core driver. It is added and
activated by the last to patches.
The way to add the autopoll later in seperate patches is chosen, to
show, that the uart phy driver can also work with the software poll
loop, if someone needs that for some reason.
In v11 of this patchseries I address a byte ordering issue reported
by kbuild test robot in patch 5/7.
Cc: Lars Poeschel <[email protected]>
Cc: Kate Stewart <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jilayne Lovejoy <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: "David S. Miller" <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: [email protected]
Cc: Steve Winslow <[email protected]>
Cc: "Gustavo A. R. Silva" <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Allison Randal <[email protected]>
Cc: Johan Hovold <[email protected]>
Cc: Simon Horman <[email protected]>
Lars Poeschel (7):
nfc: pn533: i2c: "pn532" as dt compatible string
nfc: pn532: Add uart phy docs and rename it
nfc: pn533: Add dev_up/dev_down hooks to phy_ops
nfc: pn533: Split pn533 init & nfc_register
nfc: pn533: add UART phy driver
nfc: pn533: Add autopoll capability
nfc: pn532_uart: Make use of pn532 autopoll
.../net/nfc/{pn533-i2c.txt => pn532.txt} | 25 +-
drivers/nfc/pn533/Kconfig | 11 +
drivers/nfc/pn533/Makefile | 2 +
drivers/nfc/pn533/i2c.c | 32 +-
drivers/nfc/pn533/pn533.c | 281 +++++++++++++--
drivers/nfc/pn533/pn533.h | 40 ++-
drivers/nfc/pn533/uart.c | 323 ++++++++++++++++++
drivers/nfc/pn533/usb.c | 16 +-
8 files changed, 667 insertions(+), 63 deletions(-)
rename Documentation/devicetree/bindings/net/nfc/{pn533-i2c.txt => pn532.txt} (42%)
create mode 100644 drivers/nfc/pn533/uart.c
--
2.23.0
From: Lars Poeschel <[email protected]>
Date: Tue, 29 Oct 2019 15:43:13 +0100
> The purpose of this patch series is to add a uart phy driver to the
> pn533 nfc driver.
> It first changes the dt strings and docs. The dt compatible strings
> need to change, because I would add "pn532-uart" to the already
> existing "pn533-i2c" one. These two are now unified into just
> "pn532". Then the neccessary changes to the pn533 core driver are
> made. Then the uart phy is added.
> As the pn532 chip supports a autopoll, I wanted to use this instead
> of the software poll loop in the pn533 core driver. It is added and
> activated by the last to patches.
> The way to add the autopoll later in seperate patches is chosen, to
> show, that the uart phy driver can also work with the software poll
> loop, if someone needs that for some reason.
> In v11 of this patchseries I address a byte ordering issue reported
> by kbuild test robot in patch 5/7.
Series applied to net-next.