Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp45615pxu; Tue, 1 Dec 2020 05:53:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsbZ1s69ZswXOqdG/hSqzFwNMHyYjjtwtiSaPY0PmfcW7C0VNUoPwgDHrGL4otA/ez6seg X-Received: by 2002:aa7:db56:: with SMTP id n22mr3249181edt.4.1606830806047; Tue, 01 Dec 2020 05:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606830806; cv=none; d=google.com; s=arc-20160816; b=MTa7E+1a50y5ypmdpBjyZ7VXBJB5zRlEvqYbPS8/sCiDf/MbEouyfSzGU6BbyFCnKb /J5y1WeDxya3j5lFabM5Ycb02HAD9j5wbw5dJ4TAOBjIhCl9EDjS6H91h6RUcSb7iRcE ceIANEpCL0xUpLTOKg/OoqwABYb+570GyMYjEYAqLR2HUV5pQggN4w7td8GdRLqmaCn+ t2HNQHP5YIvJLDlhuLX59x9Zprde5rggFewEybk95S6eGW0QLEleZ+xQmranu/q4IKSX RmEpWoUccbHw0WZldQSFcDMuHbtN+2IUOKoKVnxUP6szja9LCB5XQ7cZ3DQsTojxQVYV lmVA== 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=tgdnxgocJilBY0LIhoWcqqg7xNfqmOppZMkE2HBCVKI=; b=qGNpTjDL1sKTlrqwNOo96rCN0ZnYb3edg3GhMFdJ+f4fqYq1AyxL4GAD09SHyIYxpp yn8odT9cvLg9n3JOOiDf4tGIS8L5KUtZLuVEVKZ+zf920U4nMX1/zZZ1vU0h8SdupaTr Yc+w5noFws/kElqLqREPKZSPhxNFa6ZXTSmXEkQrNipeDvobmXtHSuOOxWCpKl+u49mv 8oKVvPjeH4OakR3qX5dbi8O6vr137oIpYl/R5Y9fy8/9o44FZPxhRic7bE+WFnN9WeOQ PQd6TaOkOcCoyWjP9ZbaO44E4VPHXcou7bURzNlSePC9Q98YkjjBsy6hL+4cEphI9Q3D U9yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q9rPszau; 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 h25si951672ejt.198.2020.12.01.05.52.53; Tue, 01 Dec 2020 05:53:26 -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=q9rPszau; 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 S2391114AbgLANv2 (ORCPT + 99 others); Tue, 1 Dec 2020 08:51:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387587AbgLANv1 (ORCPT ); Tue, 1 Dec 2020 08:51:27 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA272C0613D4; Tue, 1 Dec 2020 05:51:02 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id f17so1231349pge.6; Tue, 01 Dec 2020 05:51:02 -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=tgdnxgocJilBY0LIhoWcqqg7xNfqmOppZMkE2HBCVKI=; b=q9rPszauSvPYTj6Zxwu//UCEY08rpQ1WLsFJNjxu4NKuq/MiWShM3gzeAK45G/a+Ic xoqBuXphnuCqDkaDv6kvN0pUeiL5tPgW7Dw0SOjxm9/QJA6I40ggJUrtXoJrYCIVNHhG +Uq2m1v23/LwOZOtsds825+rvIAOQP5tU5WDkBZf4e2BdG3hvg/p3Wbmk6jH61ehLnXA jgEMNZH36v2AoadPXROAVCxQe/AAJ5E5DVArkSthPvqLXpHJ1kUduDAw7/VgQDFsIlwX Lvb4snAyPm3wMLZ3xSKZQwfSIqwDaAZQ+Vuk9R/oDYtwKayvMr7KtK0gdnH/J35EYwEQ qe7g== 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=tgdnxgocJilBY0LIhoWcqqg7xNfqmOppZMkE2HBCVKI=; b=FL384n1FRbey++YNkr0AkUTmhpYeAj4Uukk7XJkBCinABx4pkTwscJsoW83es2W5DO Pls+HNRmfXk9NDmCLxfpTGawdrdQnzFFZtxVFuW4xINnGkxdM7B+MLpJ+/XZwBFF7x0Z y9GQXCN2c5n43dfgZrbtYcqzyO4hYoD/EmeaVv8PZcS8WWVh4uPhAP5d0oIjWGTGFo20 nbDviSQyQJ8PTkyBwJ84booe91VtzKraS3t9ljGGVE1eAm7a2EA3OqTYDHi6NWZFL+Sg k01q+sc4ELTEg99TBEdKBoauiMD+tsglEXNopfgVllYogj4/i3EmKa0u9QFHDQXsNXc1 DS0w== X-Gm-Message-State: AOAM533tTTam7KiS4zKu2rW+Dx6i1sSSW2VKkG3Xc9ml6qLg7jyu4H6r sNUdv3LxsbTbSv9UfXBLofE= X-Received: by 2002:a63:2351:: with SMTP id u17mr2349405pgm.72.1606830662385; Tue, 01 Dec 2020 05:51:02 -0800 (PST) Received: from localhost.localdomain ([182.226.226.37]) by smtp.googlemail.com with ESMTPSA id z22sm3134111pfn.153.2020.12.01.05.50.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2020 05:51:01 -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 v4 net-next 0/4] nfc: s3fwrn5: Support a UART interface Date: Tue, 1 Dec 2020 22:50:24 +0900 Message-Id: <1606830628-10236-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: 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 | 32 +++- 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, 391 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