Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3471014pxu; Mon, 30 Nov 2020 04:04:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDyC0Gz8wzgSuy1yBcI7s/w4GD5n13KNdiIqfZpYXpTBCVny4KZtj9PcRMoU/gr+g4plRz X-Received: by 2002:a19:794:: with SMTP id 142mr8620724lfh.232.1606737841198; Mon, 30 Nov 2020 04:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606737841; cv=none; d=google.com; s=arc-20160816; b=TbRKb8JnkIWh4mhsa6EGuH+ZoPvNe93WPF2AKd8sMlC2viHUi4mf3xbPllfCo1L0tI fNpChj65LAufXA8mUcSJkRj3b32YhW7c7/znPrAweHco5m0SnZM0fm3f6ZWRVAJZ26L3 D4zlrLf2ljdKTk478QP70IMykYBsKSIqA1iokD8Yb6WTlzxDNphtQ8C4dNaIK7xWYWp0 wUfYjzSbkFuYOihZ0HQrsoVFKT3xmVnYK9Gv114nbYdyOq3M1x9kiF2R8ryyD8W5F0XE MTZRqMETtQpmPpl7VFkHewyZvcCk5UL5ynGp8hAH+mYVvY0opqyJnOpz2AQv0f5axffa GCTA== 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=lj9ZT1pXkce5/+KagnCXuquk6qct2qT6C8O4RgX4/Xg=; b=ZWNecH1mNTVD0cAYC0VWRUC/O+N3vpcVDxZYSuCoW9Zzign7iZB755D/IDqgAK2ZZm oHhcF7TawNPBXQJl2FYFELjcOqOmG6d/Bx8/eBgXHssbDhIvvPKRVbFCfH4Jf+Q66ugc nPvYy09cUrIlElJlVtSGI+y2uWghSQk13OJohICz6NIKYzO5M5uGLHwcVMFQZf7MeW0s UKzJr/GuraodxWjylQT8l8h+bGfDMs9e5T6XufuB39aw1ZzywQGVyhSxr9R5vCv++3TS Cvk9cQHGvZFsHn51J9G9kQmIwH0i0ECLiYq0hvIHteMT4zPGtD9v7Y5lO3qnWXtDSPTF 6ZKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IZ+kgCy7; 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 m7si12722583edq.549.2020.11.30.04.03.38; Mon, 30 Nov 2020 04:04:01 -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=IZ+kgCy7; 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 S1729043AbgK3MBP (ORCPT + 99 others); Mon, 30 Nov 2020 07:01:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbgK3MBP (ORCPT ); Mon, 30 Nov 2020 07:01:15 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 076EDC0613CF; Mon, 30 Nov 2020 04:00:50 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id 131so10237352pfb.9; Mon, 30 Nov 2020 04:00:50 -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=lj9ZT1pXkce5/+KagnCXuquk6qct2qT6C8O4RgX4/Xg=; b=IZ+kgCy7F2PIHzD82xdfzWESDTLBKVDit3oepMt6or94hwmauw9zsHoPuL0ec3B4AE BiAfnxcDTQAzGXrHoFwTkx8xGQu1c25Lq48PslFQj1v6BzpjV6NdMjtsYggpLKEn2f7Q HC78lhJ+6KD9CZ+39ufaMy8VTUP5Z9awImFifRP4Pcf+Hz3G9YFkGpG1iK1aIY1YP16L 9+dPpBP0wPwazWDrZ7+ZBHVwYxJzUi6UdGU22Eb3mfGbu3xtD1WwLp7tPfBd5NvLMIZG s045nSacOV5F3DJ3oo1cBlD8UUjHAPlfjpH0wv9plcdeEXcpk76/jhcyoNA8jICUlo/w eyAg== 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=lj9ZT1pXkce5/+KagnCXuquk6qct2qT6C8O4RgX4/Xg=; b=RBzvJDiVMgNxhrjq6e1zeTRpxwMMP5EHRHwCYcffDMMgLt8ft3SzeTcmjizkBhISVQ QxNB0y+6Lbl94aq9jCqiCuIs/9WmyFwD4u23svBnr7CscFxu3yE8lg16SGDV3iRo9YQX 9oYx7zpYigbLdWuukDCzqu3hRT8jBV6Dx/YstbuVgPwk6Qh7NM9t6EVnVM+X49H+r/xX VW2JWqCwWfnWGjR3a5X/h4ojSW2+Uem10jroMqCXLNWx/cH0tGqsYZygwGRoIu9VJqMZ qpPr0dCNd8pnYxjKYLTpE2ZqxyVTOW0Ipjw7hAftQ8r9oL5PZxmAdIXiUJ0Y1u0xqwc9 quSw== X-Gm-Message-State: AOAM533CuoUpjiTmxxcoOu6zTdfj8k/GkkTewTIDUavUAH6i7WbagDpU /8S8XvZAcO/bPw3O2q6Fw99PZwJR1tY= X-Received: by 2002:a05:6a00:13a3:b029:18b:d5d2:196 with SMTP id t35-20020a056a0013a3b029018bd5d20196mr18635748pfg.62.1606737649541; Mon, 30 Nov 2020 04:00:49 -0800 (PST) Received: from localhost.localdomain ([182.226.226.37]) by smtp.googlemail.com with ESMTPSA id s17sm1802737pge.37.2020.11.30.04.00.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Nov 2020 04:00:48 -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 v2 net-next 1/4] dt-bindings: net: nfc: s3fwrn5: Support a UART interface Date: Mon, 30 Nov 2020 21:00:27 +0900 Message-Id: <1606737627-29485-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 Since S3FWRN82 NFC Chip, The UART interface can be used. S3FWRN82 supports I2C and UART interface. Signed-off-by: Bongsu Jeon --- Changes in v2: -change the compatible name. -change the const to enum for compatible. -change the node name to nfc. .../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..481bbcc 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 + oneOf: + - 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