Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp45753pxu; Tue, 1 Dec 2020 05:53:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2ha/xi0WM3Cn6W+PfS3RQt72SQm20UeQpqY4FuN8bBUDjXhs4ah9zaHMcwY6/jdmRdNK5 X-Received: by 2002:a17:906:edca:: with SMTP id sb10mr3114475ejb.284.1606830819401; Tue, 01 Dec 2020 05:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606830819; cv=none; d=google.com; s=arc-20160816; b=yPDD7ynE7KjV4FCJdUpkXm+3kC3x/7qS7ckGpLAhvllL78+J7ntC2nUAFYSGmhBic2 VjMlbWlr+aszRJew/cQ+K03jhXAeUCsIXjsHk3V0TB3TGX5xQJW3THNDy2LDXKx7tbgN 4YW4DqF92fGjrtOr3D6/m9PCJA2KkV+IK6FSJjJSfa43fAFNJjPp9PxnGh2nWDlShPtY l8W+PbRTxff6uPb+WwFCsY+JFY9QxbiNEqy+XTLKEtEgYyf3++K4s/qd/h1ruH3zVtR3 dGPO0WFBUNXTR+L+2Gfh22ZsEkbFBnaC2ZprZ64N+sjhXsg1MegyyptzMqZWSkGZk3s3 +aHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=6615kzoe5jKV8EYHaChLE8OAf7+pns9kTW6Yur3HXZU=; b=DjbUl+BUSrsZ+afW+2pQtvp9Aevo6A41OGE6rFyIpW8n4HYzySnt/JSrkRp4/ZIpPP nUKBKL7Sz+LnZOHf1sSwVZWjkp5mQI9rTqsq5B99L2I90OONT/laZ6x0iSMFFZdcSJDY DJF/2EVo8PEC4FZLKAH8z2EkaSMDmWc1ERXDJ9dBTKe4SxynyKkONJba2hzyUeph9guz TvHHpEZ1h4fDyaWfiwBH1vAMWT2muH1rpzbc59ARJc2dOwkljJht1N1a+nGDsnSi8xOP mKOj+x8wh5z68uPWhfF24GAItq+VSb+QyM6KNdXUv5rWGh+CyocHjYUiAcIgsFHdOSAV UmKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NGcJTYvm; 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 j11si727290eja.691.2020.12.01.05.53.08; Tue, 01 Dec 2020 05:53:39 -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=NGcJTYvm; 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 S2391304AbgLANvd (ORCPT + 99 others); Tue, 1 Dec 2020 08:51:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387587AbgLANvd (ORCPT ); Tue, 1 Dec 2020 08:51:33 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F236BC0613CF; Tue, 1 Dec 2020 05:51:07 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id bj5so1181086plb.4; Tue, 01 Dec 2020 05:51:07 -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:in-reply-to:references; bh=6615kzoe5jKV8EYHaChLE8OAf7+pns9kTW6Yur3HXZU=; b=NGcJTYvmtwIBCDio8bmQzhsWhY5QzOoVkDoSA00zZIgB8xoEEs5EyuTOm7wmgXokek b/fs+Jx9TLbnuiyfLTVQSjpt9jJPFE48CRkcPIk0dPBOWnX9HLA7KCx15cECdhhRPEa1 LQzUVdyVIWuxlbhxooLw4FJGXgoMPechVoBkIlEOsKjdfJCX80if/b639M6iPHux+G3R dXTvgW4rBbc/KKtbYRJBYYlYCdQDC9ZYZNDm1p5Ney8Aru1ItsTk4cL0tN4iB3jUM+5l EygBIiKaT3lcqsqPQf9SgjC/K7wXsql2S4QxmI1jNGxm95UYPK35lVmteQgN9zEJXCTS p14Q== 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:in-reply-to :references; bh=6615kzoe5jKV8EYHaChLE8OAf7+pns9kTW6Yur3HXZU=; b=EwzracRM3uGu/iRx66qOJWKAKntLiYIdPES8sHiNIkvgZF6Nf5dCR9dfeCspwvd+Vh xIyhgRAC9FRPUFIkPyMqosaWB2kVKsMqdzjRuh1GnpfLkTOPKQaraAmPF17Z4RsoHF59 ZAeeAH7nGqopV9MQ536hu8Pu642EqtumWH0P10HiuUNFpnBSieYVQhiwig0e2m1AEbP+ ZVLqwy2eEY3UWNLMw/HlsAa6M2ELbnwI8ee0PUIfYF/cUKb07MycJzDtH4xCLKuGb/Od ICdeWDl76tiw2E4yOAJd6rtcM7zUkfIOhphwBNT5a93IciCSxCAhCMgupLXdZ9YkdL/Z m1cg== X-Gm-Message-State: AOAM530G9Ku5p61fc9BMbZxW/URlqObR2KfKjcBH5L1gWcycmlsTMdpd ZWFvwTePNA3nWn/gspUOYeDH7seYIF0= X-Received: by 2002:a17:90a:488f:: with SMTP id b15mr2710634pjh.99.1606830667604; Tue, 01 Dec 2020 05:51:07 -0800 (PST) Received: from localhost.localdomain ([182.226.226.37]) by smtp.googlemail.com with ESMTPSA id z22sm3134111pfn.153.2020.12.01.05.51.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2020 05:51:06 -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 1/4] dt-bindings: net: nfc: s3fwrn5: Support a UART interface Date: Tue, 1 Dec 2020 22:50:25 +0900 Message-Id: <1606830628-10236-2-git-send-email-bongsu.jeon@samsung.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1606830628-10236-1-git-send-email-bongsu.jeon@samsung.com> References: <1606830628-10236-1-git-send-email-bongsu.jeon@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bongsu Jeon Since S3FWRN82 NFC Chip, The UART interface can be used. S3FWRN82 supports I2C and UART interface. Signed-off-by: Bongsu Jeon --- .../bindings/net/nfc/samsung,s3fwrn5.yaml | 32 ++++++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml index cb0b8a5..cc5f9a1 100644 --- a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml +++ b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml @@ -12,7 +12,10 @@ maintainers: properties: compatible: - const: samsung,s3fwrn5-i2c + items: + - enum: + - samsung,s3fwrn5-i2c + - samsung,s3fwrn82 en-gpios: maxItems: 1 @@ -47,10 +50,19 @@ additionalProperties: false required: - compatible - en-gpios - - interrupts - - reg - wake-gpios +allOf: + - if: + properties: + compatible: + contains: + const: samsung,s3fwrn5-i2c + then: + required: + - interrupts + - reg + examples: - | #include @@ -71,3 +83,17 @@ examples: wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>; }; }; + # UART example on Raspberry Pi + - | + uart0 { + status = "okay"; + + nfc { + compatible = "samsung,s3fwrn82"; + + en-gpios = <&gpio 20 0>; + wake-gpios = <&gpio 16 0>; + + status = "okay"; + }; + }; -- 1.9.1