Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp798977pxu; Wed, 2 Dec 2020 03:50:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5YauNMiRw/6DVMiuCyChSWdXtx4jYRmvJZumyC1Cs2FhnqQz25Zz6k9DSIXRFlMh/Vc7I X-Received: by 2002:a50:e786:: with SMTP id b6mr2074011edn.242.1606909816389; Wed, 02 Dec 2020 03:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606909816; cv=none; d=google.com; s=arc-20160816; b=ocfAojyXi7dDucC3OzDbuXam1tz/eT5+AkXGVL8V54j6AhoaAKe5S9ekEF16GzBJ2y 9kMNFGK1wy31PpA0yO8WAFBYKr7X8GWBz2Sd5+/QkJ7LNgyU9Mp3CXkcW8nF969GyuhK szL2N25LzmtiYnsXRBuy1kb7HIgcJsN3StK5yBeKCRC4wWkBwO4vR5wXERoyf57K9k65 T7mr0X8xdeV+WxCS24vJV5p3Az3jE2xUto/RtFDcm3VVttkN4tx5lb6t/zi78jEJ064b 9l6sbbxJMv83+ROLbGJWLLjqG+VLmdwUlcsYZk9gacBLGbKdY59bCLCEUbUr4vlAnrxr DqwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=91aj9edY77hTt39KhpEZSPjKyf9MNh9XT2J/er9ipzg=; b=mTBlkHSsny2OBx71DX4BFOD7XpIuhRDd3yjd072xfRIpRHOTYq8LR++K/C83BlEtEK O3dXCJ4t2cs/pvnzgEUoy9z1CKkwdBGCvZ7OIk2i2QSWWXHYs7+7fzyLSDMJmVIKDo34 uhYLpG0O6likLjHb+2mJtcKjgJy3aF3mcQhh1UoJtSpp8pV+0IbWsXzZPeZEe06xWgDE uyiA+HQ9U6iprh3ojiiU8pdU015uzvs1rzz1/WDXR22uMzrm125uVitI5h+GjqnFvMId yFvWyckNCx4fW+avaAptofFNV9mNidP9RFaYgS1ahIHTV6GnuoSBpJizuMDGOfLOkXVO neqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EZR9E0bg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si650434ejg.410.2020.12.02.03.49.52; Wed, 02 Dec 2020 03:50:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EZR9E0bg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729714AbgLBLsW (ORCPT + 99 others); Wed, 2 Dec 2020 06:48:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgLBLsW (ORCPT ); Wed, 2 Dec 2020 06:48:22 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE794C0613CF; Wed, 2 Dec 2020 03:47:56 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id w16so924082pga.9; Wed, 02 Dec 2020 03:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=91aj9edY77hTt39KhpEZSPjKyf9MNh9XT2J/er9ipzg=; b=EZR9E0bgDgWC0etCy8AykgZf4yg9d1q/QNSsUz52oU9csexLmcGiMLbnzBtG2pWJWF +Q7h2qXwkUU79wxOwtoB4oeYOLkbrNmhVc9+/UyQKDDD59vZJMMZs8VFxgWRYYB1yCXN j4iUS7fW+e3iCsSF3A1uBPY6QMSFhAS8nP8xJjWK1GJuYcusG8jIvKhSFyO0i+MP7LgG /866WU6Tr+CDSNNbAj/pEjS4qGB0SPNEgaNdQlwAEeUyaLGvgEJvUNzP11sGidLIJ4AB BKEmI5n0wgpBu939mN8jPHAea7ZqzEzyrsMRnOvGlwRjcAsPiNUh4/j1TU2DUdnf5SjO ZfIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=91aj9edY77hTt39KhpEZSPjKyf9MNh9XT2J/er9ipzg=; b=F7KX0m3vlGqAM/DBstqnOkwBk7MQguWafhVXwMzEWLn1VF3N7j+QsZzLnYa4oP2h7d lrL4zRSKnf8WkQstnSbREwmRE833SeNfihSlw4PbenYbCv/Q7ULf3LbvFCnlJE/ZZfIH GefYuOa7OabarGhDcc2+MftGoCi6+SYsHJvH3BCO1vnQqK+4/GRn+as2eQ31kAsIe60U 3mpQGIJkMrZtTWsPI6wjPdy/KtXQPdK2/I9PQjpWXL5kvBvhKWeKM7xZzmX2qopfaonn giyo+77JLDeKpIsz16qibKLoBrQmrCxkOo0qDELp5E7bP7x+d4QCpEH4EpkIpkU6Dq8A yWxA== X-Gm-Message-State: AOAM530vS7r9H/B/ycDvDw+c2Ayy9cKD1a+RPuIH2jvP3hwhLZhjli5V bTAx+KBqSprh73lLlpY5Ip1KCmuoKsM= X-Received: by 2002:a65:6891:: with SMTP id e17mr231710pgt.410.1606909676495; Wed, 02 Dec 2020 03:47:56 -0800 (PST) Received: from localhost.localdomain ([182.226.226.37]) by smtp.googlemail.com with ESMTPSA id q18sm2108806pfs.150.2020.12.02.03.47.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2020 03:47:55 -0800 (PST) From: Bongsu Jeon X-Google-Original-From: Bongsu Jeon 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 Subject: [PATCH v5 net-next 0/4] nfc: s3fwrn5: Support a UART interface Date: Wed, 2 Dec 2020 20:47:37 +0900 Message-Id: <1606909661-3814-1-git-send-email-bongsu.jeon@samsung.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bongsu Jeon 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