Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4810370ybg; Tue, 29 Oct 2019 12:44:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC2PaC5dsZJYgOApymCYkS7uVK59waNwCHIfM06xAIVV/fqMkI8EwepnMP3mmGrvprtBnq X-Received: by 2002:aa7:cd5b:: with SMTP id v27mr8482116edw.174.1572378265678; Tue, 29 Oct 2019 12:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572378265; cv=none; d=google.com; s=arc-20160816; b=JU9IAjN8Y/1x+PXYcNPhz8cYdYZ8cdgtM9/ToFqHZiBZzipDZ3vaMGkSIHLdtV6emL 0VrxHxqHEIY5I+65I4W+LmAHhvxCc0cvEsE87tsAxvsuE6PBRT46SF6M6S0geY994EIp neCEuqYMHx34nnlfG2YIPni2Iifnn0VKO8RcVl/HJZJvbRIYsUYqlvDkBEi3Ikpud2+v xNmKS8f32VF1BcxdK/S6UZd30damdKlCLolQhBl3nwOv/FuDr0sPxaF/buhYMwtylLMZ x7aQAUti4cADeHCSmbEv1wc4mxDVUrxKDWPDdIBPSL7YkkrupdxBW4VWWeZlGHGKtngF zGtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=SSbH4L3g7rcUUlrA0RRP9RGRAAGX4eBheRIbnvVPOYY=; b=g/BSSO2mBiZgLU+4E//lCYMjWoE3Khn9feRF7RtdRIOxl3HX7o5dAV6rzzIta0s3tN rFTNzjnSaC9y/7UDQDbPNwSB6QQKxeh+ENwhS2VGIJ/GjIWyby0GkeCkXC7DvqoNc2Mk nJsZp/LhMktaOwO7rJ+ffFA00SirndR8NUDuhvnFJQpppSBH/Zvf8iBTiQUyxY78BDjf o+y6W6nptrk3H+2Ttv2qFOz+PtpgST5BTmqObKglRmFuP6WIc0e18qH/zmzGdEq2F5jc mQj2j1TIHqus1Qh4NuEb+K2jg5krzccIxiwIMy2i93y2uUIE3pkDmzV2v5uQ2pYLUmE3 b+Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ce3si4185862edb.441.2019.10.29.12.44.02; Tue, 29 Oct 2019 12:44:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389481AbfJ2Ont (ORCPT + 99 others); Tue, 29 Oct 2019 10:43:49 -0400 Received: from smtp1.goneo.de ([85.220.129.30]:57756 "EHLO smtp1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388712AbfJ2Ont (ORCPT ); Tue, 29 Oct 2019 10:43:49 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp1.goneo.de (Postfix) with ESMTP id 4D68A23F057; Tue, 29 Oct 2019 15:43:45 +0100 (CET) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.067 X-Spam-Level: X-Spam-Status: No, score=-3.067 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.167, BAYES_00=-1.9] autolearn=ham Received: from smtp1.goneo.de ([127.0.0.1]) by localhost (smtp1.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I0AFw6_a2NNy; Tue, 29 Oct 2019 15:43:44 +0100 (CET) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp1.goneo.de (Postfix) with ESMTPA id CDF9923F8AA; Tue, 29 Oct 2019 15:43:42 +0100 (CET) From: Lars Poeschel Cc: Lars Poeschel , Kate Stewart , Thomas Gleixner , Jilayne Lovejoy , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Steve Winslow , "Gustavo A. R. Silva" , Kees Cook , Allison Randal , Johan Hovold , Simon Horman Subject: [PATCH v11 0/7] nfc: pn533: add uart phy driver Date: Tue, 29 Oct 2019 15:43:13 +0100 Message-Id: <20191029144320.17718-1-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Kate Stewart Cc: Thomas Gleixner Cc: Jilayne Lovejoy Cc: Greg Kroah-Hartman Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: "David S. Miller" Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Cc: Steve Winslow Cc: "Gustavo A. R. Silva" Cc: Kees Cook Cc: Allison Randal Cc: Johan Hovold Cc: Simon Horman 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