Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4119109ybg; Fri, 25 Oct 2019 13:37:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO4kI75FmvKqSIhCWMSBQsxDzJEg0LrmyY0GPay/EGM7MmSA44uHEK+21KL4N+E9k2lnZp X-Received: by 2002:a05:6402:105a:: with SMTP id e26mr6027306edu.229.1572035869140; Fri, 25 Oct 2019 13:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572035869; cv=none; d=google.com; s=arc-20160816; b=rqi72s3f1geJVrpnvrAUWcXCFXYLau20xfHYpro+Bqt8bIA905O91diyqtrtyPFA/4 pbXS+k36YgRq0LZ//sWrbuGIHg2dCAouC1gKduQabZCwyeDBQ+xoPpAhKe/Hk8aIvulS sRA9sSeUxGm6it6r92PeUuQZKCAt88hA13Mm/X1AAl9M2MgGTEe4B9+DVIoTGfY37K/d yhLK+8yCRjKBVYlzsHD4EuXVYaaRAhMG/KO/zi82W81NGdI08jOYPxDVNwWJWx6eJZIx pJCd5RufB7B0YHJQkRQOKyBvkA9sb52Z+q0+nw6GqFpnKkRW/a+uUo1zTRZz6TVsYSKs 1axQ== 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=vqb5HYI/T9ykevTEgvNVFc0BA4fqDPh44UTPvLLQ+20=; b=u4UpVobRd9h1w10sngxwKBe7ohiPUeAHReDsNB7bJtckCbxckx6Oz0TriiZEL88H3K n3rMIex5nWeuGGm7zlO6VJsFrmC85HVbI20pD53zBiw1SBJQ1yPJRwgk+40WZqIgAhD2 XCjvceOsS0ij6xu9maQ1BkerJD0WzJdljVCip0Zx4lgkzbMmVNWCloKo/pteUCx/omzf muKoy5yXYKXsRV6B6TBOfRuapedRK+GwcN/btMEDrF+CASzbiXWgbtdcAmisYHrzwvKi 13DX3UxyEjOY9eiGf/DgSjLpj2Rzldhv7e8DE0Rlk7Oxi1Kh5OuY+SctvbekElLJnvVv lqxQ== 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 u10si1853598ejt.282.2019.10.25.13.37.26; Fri, 25 Oct 2019 13:37:49 -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 S2394890AbfJYOZi (ORCPT + 99 others); Fri, 25 Oct 2019 10:25:38 -0400 Received: from smtp3-1.goneo.de ([85.220.129.38]:52047 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393877AbfJYOZi (ORCPT ); Fri, 25 Oct 2019 10:25:38 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 7296923FF75; Fri, 25 Oct 2019 16:25:34 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.012 X-Spam-Level: X-Spam-Status: No, score=-3.012 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.112, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eyTABLuGukdQ; Fri, 25 Oct 2019 16:25:33 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 0C88123F192; Fri, 25 Oct 2019 16:25:31 +0200 (CEST) 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 v10 0/7] nfc: pn533: add uart phy driver Date: Fri, 25 Oct 2019 16:25:14 +0200 Message-Id: <20191025142521.22695-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. 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