Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3762377pxu; Mon, 30 Nov 2020 09:43:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDbCyy8oZBVcQrKNOgN4u63ffs2wN88XcLlbAb9eNnbryNnstGe1OB33581uhdnUdak2TZ X-Received: by 2002:a17:906:94ca:: with SMTP id d10mr19699237ejy.62.1606758215498; Mon, 30 Nov 2020 09:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606758215; cv=none; d=google.com; s=arc-20160816; b=se0GCrzqi0S8kUjPAsAvoCHoDSSifVieplJol1kLWOLQLdjxgVz+7Ddr7teaM1W0Jd QkHk9wHY13gTlYQuKZG9WdEjhW96bxr2OKHT+k6+QjS5mAqq75KFC68TSp6Ay3enaeSM hK44clQKEAbJ8lKrsgZl5bbKLrL0hP01vt97h0yCkp4f4oy02kbdARNf367S7/J9AQnv //iCze5Ttd+tPovc22gLPrrFZECFykgQ805LJtCPeWUVXhePH3C8Xi+cDN5KWQxjnkzJ I1HDbnRY08Ni2rx1DKWkWDkm7R7WiVBbpJvwe6AOQkVRIYQppCQdhUi/ZKpC/d7yt9Bd sx9Q== 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=B4A0okbUHqv5B5dj/XPLmtnTNoOEsXTfn/5l90uEFoM=; b=MALtC3Hd465usNMw60io189SVP0DzycT7ZxaZg0fEC1xtThBifXXxCHMzbsFCLGEdY zZ12Jgcqqa5HfjyfhZConfjZ61CMoMnoHvuYg8u/LEndi5U+z1qkM6b4TSodfnqJBqJe UMQN0o6cDkW/Qxeg/0fZCkkgv1JaR9opdTJRQQa5iuQ8YB/spIJtTUkHn8hR8rR2lGib OATwfcPVLNdq7twA8pzuaJCZyXJrCluxq2aQgt5lYZa9/+ZsDTac1tJ+TavmztrmOqGj NuCCMJ8N95OYErB08JRd4iyl5hBbczHdzDK6GkZ4Esak6OEGW4SzulqZ9pF8LJclzLgK AmaQ== 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 cx12si12802385edb.194.2020.11.30.09.43.13; Mon, 30 Nov 2020 09:43:35 -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 S1729473AbgK3Rjv (ORCPT + 99 others); Mon, 30 Nov 2020 12:39:51 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:40687 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728451AbgK3Rju (ORCPT ); Mon, 30 Nov 2020 12:39:50 -0500 Received: by mail-il1-f195.google.com with SMTP id g1so12100063ilk.7; Mon, 30 Nov 2020 09:39:35 -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=B4A0okbUHqv5B5dj/XPLmtnTNoOEsXTfn/5l90uEFoM=; b=IWCMS3ZMZ90s757ED+4XguK+HL0TsWbt8n/WxBfOLIiV9/lCbDf3sPrIUDJEbb8RWx fTkUKuGrwWnHQYZ0iEQVtTdspwFCXYDRMAtXAu+GNra4H3yZUpzAO2Nzh6GJ/axWpuV8 AUT7XX4r0rUVO+sc7AJkaTVcojE5yeiMMAaQUbt9eMOufwn8kCuSLxRVqgmDBf325we+ pGb/Cp6tZAa3TDWj4LGdNV4etv+VntS5FgNJPJxZVWdCPbInLnVVSzpS/3ZXIbLsim0W Fu+SfCLwEHCACVkuxpD4dgikkyQIv0j7qCtProWFZQ3FAfsUGC3ypQvfB8Jd9Bn6HjCd KLhA== X-Gm-Message-State: AOAM531GI6YivhkYWQNKDY3ZykCJEdOQRBew/47c9MEoX8Hg+DNBk9ps WEKCjOnuI0rxN/2n9ZqoJg== X-Received: by 2002:a92:dd87:: with SMTP id g7mr21491077iln.102.1606757950052; Mon, 30 Nov 2020 09:39:10 -0800 (PST) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id a7sm3382492ioq.38.2020.11.30.09.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 09:39:09 -0800 (PST) Received: (nullmailer pid 2687938 invoked by uid 1000); Mon, 30 Nov 2020 17:39:08 -0000 Date: Mon, 30 Nov 2020 10:39:08 -0700 From: Rob Herring To: Bongsu jeon Cc: krzk@kernel.org, linux-nfc@lists.01.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bongsu Jeon Subject: Re: [PATCH v2 net-next 1/4] dt-bindings: net: nfc: s3fwrn5: Support a UART interface Message-ID: <20201130173908.GC2684526@robh.at.kernel.org> References: <1606737627-29485-1-git-send-email-bongsu.jeon@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606737627-29485-1-git-send-email-bongsu.jeon@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 09:00:27PM +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 > --- > > 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: Don't need 'oneOf' here. > + - 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 >