Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp323803pxu; Tue, 1 Dec 2020 12:10:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAFkkiUYPai2YyQ8AygspaiJ9uAh4Kx7bGofnk0H4uL9jOGsLrT0iT7Z91zICb+RMzJ2Ya X-Received: by 2002:a50:ed8d:: with SMTP id h13mr4780816edr.180.1606853416038; Tue, 01 Dec 2020 12:10:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606853416; cv=none; d=google.com; s=arc-20160816; b=orIK+wkMYeruPfSH0hv8ozIcu8PwjtJ+hG/MGMWM+LZ7tpyQFZsCBhSFjhG63qLji7 i9MJ5W+Y2uOIcWKd7mgMbhhpsia3eXHhOUzIIZnj/cWriFP4BfelLLr+XRL4xe120bO+ QT6LsMWd53hovSZZLWaZRac18BMjeKbwcxezIEwG9f7B0tGI50aKqm4pf3MOlb7bBgkA moixzTpPhHY3D4AVP2BQBb7FHKC/MXNG1lBYQhjpOfNgeXAlqQWXO0pBoW6uNx7j/CHV 4vPb0iqWBUm4XB3cK9ojA2X5TC8wo4eNSYxYtMXuXkUPYFYtlBE7V2c8u96IR9Yog2EV cWnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=o8OpMIpKsvTP+ao76T3f62qpT21Ac6Cs3TQoq3094Zc=; b=gZsM5njSUWmxn4yoLQjCSfgSvqdXmp8JBWkoQXUjfRpCC7IuMvxaLyfYdKP5/HPVTy VsBW4e5/hBkfkcFvN8yKpPgpIWGxk7VCJet20aHlrgSYmdZi86dnSUiieAni0YjFsqn9 8JtxvCH+PizKk1keyaWO3/oK1gBrljXKphRA4AqqzggIYPB/pfYNJ8AS6aIgodcRF1Da lajZ4Z17f1f0vb0B/cxsuB47BzRJCTbL0oT7aWWLuYO2MUS/uL692D84STx2jSgtpltn DQw2EiFq94RgAQ2406da1XMqXC4WMVAjPI2lxh2NeOhAVfRCAkzM8Khv9LGAJiXvBluq 6E5Q== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si566859ejo.423.2020.12.01.12.09.51; Tue, 01 Dec 2020 12:10: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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404336AbgLAUIL (ORCPT + 99 others); Tue, 1 Dec 2020 15:08:11 -0500 Received: from mail-ej1-f67.google.com ([209.85.218.67]:38054 "EHLO mail-ej1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727450AbgLAUIK (ORCPT ); Tue, 1 Dec 2020 15:08:10 -0500 Received: by mail-ej1-f67.google.com with SMTP id a16so6882133ejj.5; Tue, 01 Dec 2020 12:07:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=o8OpMIpKsvTP+ao76T3f62qpT21Ac6Cs3TQoq3094Zc=; b=P8mANsRRp6HF4fvCFXGvFUPxx9YpzxAqR7WouCMGIY7a94OPI1O2pJujIhfByHnm27 evu/tRmylhgi1HOghsJWiDfk4eUjpAph2N3SrfkP/nvW4KBq/AdAnugJ+Hsk4C/toxew 1qT8RTR7N5+7rPbvDtIyyvFe3VCcU64TL71yiCyjdrrhOx0myczCv0VtquBr1J2YWIFC GczZLKR5pq/BBV3MESFdGx61J5P4yC1B/knGQUtS32UTSvPfl1ChjBacy+cb4lmnZIbU Scy0M+mRpBRxMRFjmR1Y0kBZeW0PZ9bs5zt9Z3mz0dMrb7bOPz1BVhPdfVeRpMlrSyWB AgZg== X-Gm-Message-State: AOAM533ffen631trtoL2j3NhljyQcs3ax9dVr3DB/tAQim15rmoD2jN/ Swp3qPYr0Lv70KF+oz0Nj2dFhkB0r0c= X-Received: by 2002:a17:906:c0d1:: with SMTP id bn17mr5003733ejb.114.1606853248214; Tue, 01 Dec 2020 12:07:28 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id s15sm391164edj.75.2020.12.01.12.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 12:07:27 -0800 (PST) Date: Tue, 1 Dec 2020 22:07:25 +0200 From: Krzysztof Kozlowski To: Bongsu Jeon Cc: linux-nfc@lists.01.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bongsu Jeon Subject: Re: [PATCH v4 net-next 1/4] dt-bindings: net: nfc: s3fwrn5: Support a UART interface Message-ID: <20201201200725.GB2435@kozik-lap> References: <1606830628-10236-1-git-send-email-bongsu.jeon@samsung.com> <1606830628-10236-2-git-send-email-bongsu.jeon@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1606830628-10236-2-git-send-email-bongsu.jeon@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 01, 2020 at 10:50:25PM +0900, Bongsu Jeon wrote: > 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: This still has items but it should be a simple enum. > + - 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>; Use GPIO flags like in example above. Best regards, Krzysztof