Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp467256ima; Fri, 26 Oct 2018 01:00:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5c+ZwUOsK0NHtSezhyoGWkVDqkiRMVHEGXw92JOQU+D1G9z4SjXsbSsUSUylFLsGxd1UQh9 X-Received: by 2002:a63:9712:: with SMTP id n18-v6mr2539593pge.182.1540540825885; Fri, 26 Oct 2018 01:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540540825; cv=none; d=google.com; s=arc-20160816; b=ZdDLCK7iiSL98zbgrmUgMUbdRB8dVcZUelZHltsxfCdnCFI1tlAJCAATq8oyHHeY6R FcWuzXVUPJrrt2tD7Hf8yKJnjZBhIkhCIApklXUc86m7pL3cOuzCyLS0YS0wSLHM4xVz t9sI4pG4aM5rqVQGx1xSIIatKo1iZO9kTU1YOSbz8fcLB84JzMlL8Pr2Xbv8qJGu9g9v 94Hcfh7lHq3JwN7jXkATouV4yYlA/UiiR3k3M7J/N7xNIxt/WEz768Ktrn/puYyWBfA9 sk9Z2xWkE8MMawtMj0Ql0TpIHf9X3Ox7dq5qSI/hBvz/cAePjtX5T9ECrjSOtdfwSvMr +reg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hxWiJ8rlEBM+1EI8AMo4Octq91fyCvE8ZJtniHsGl0A=; b=ep7fk69306o3q0v7ToVhO7pGRymUDtkDK2NzYI70lbK9lmOZFUffNYJDMkg9Xz6UCt binaUKVjbuUrgJxW2dvEQd7FSZAXsSh4zCjZSK29FhLmmcURomhBdBAZmT06lVbrMNHk Ct/T7RBItzP0xWWza8Hm8By9b6oWBKuYOzxZ2h/C+0mi/U2qyFoCNzbwMIlW7YuTwlxR ijynoP9OQd1ycvjmolVTtpYiS39g/z4jqrMefVRGg3HUuqwJL2cbl1PFcstH3d2nrJVp cXSJaqipe9IFOYTZuXKtuZqpQOivxN3WKCsKAIhlyS/Btluj6WGGiIEL7TiEa87dJzF+ +f8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l91-v6si10632746plb.315.2018.10.26.01.00.09; Fri, 26 Oct 2018 01:00:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726442AbeJZQfP (ORCPT + 99 others); Fri, 26 Oct 2018 12:35:15 -0400 Received: from smtp1-3.goneo.de ([85.220.129.32]:54945 "EHLO smtp1-3.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbeJZQfP (ORCPT ); Fri, 26 Oct 2018 12:35:15 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp1.goneo.de (Postfix) with ESMTP id 5F33E2424BA; Fri, 26 Oct 2018 09:59:12 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.15 X-Spam-Level: X-Spam-Status: No, score=-3.15 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.250, BAYES_00=-1.9] autolearn=ham Received: from smtp1.goneo.de ([127.0.0.1]) by localhost (smtp1.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yOcVcVLkoBRa; Fri, 26 Oct 2018 09:59:11 +0200 (CEST) Received: from lem-wkst-02.lemonage (hq.lemonage.de [87.138.178.34]) by smtp1.goneo.de (Postfix) with ESMTPSA id 46C9F24253E; Fri, 26 Oct 2018 09:59:11 +0200 (CEST) Date: Fri, 26 Oct 2018 09:59:06 +0200 From: Lars Poeschel To: Rob Herring Cc: devicetree@vger.kernel.org, Mark Rutland , open list Subject: Re: [PATCH v3 2/5] nfc: pn532_uart: Add NXP PN532 to devicetree docs Message-ID: <20181026075906.GA28338@lem-wkst-02.lemonage> References: <20181025132937.24405-1-poeschel@lemonage.de> <20181025132937.24405-2-poeschel@lemonage.de> <20181025215445.GA16550@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181025215445.GA16550@bogus> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 25, 2018 at 04:54:45PM -0500, Rob Herring wrote: > On Thu, Oct 25, 2018 at 03:29:33PM +0200, Lars Poeschel wrote: > > Add a simple binding doc for the pn532. > > > > Signed-off-by: Lars Poeschel > > --- > > Changes in v3: > > - seperate binding doc instead of entry in trivial-devices.txt > > > > .../devicetree/bindings/nfc/pn532.txt | 31 +++++++++++++++++++ > > 1 file changed, 31 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/nfc/pn532.txt > > > > diff --git a/Documentation/devicetree/bindings/nfc/pn532.txt b/Documentation/devicetree/bindings/nfc/pn532.txt > > new file mode 100644 > > index 000000000000..a2df72a5f504 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/nfc/pn532.txt > > @@ -0,0 +1,31 @@ > > +NXP PN532 NFC Chip > > What about the PN533? I read the publicy available docs from NXP a bit and I think this is wrong. PN533 is the version of the chip with usb. It does not have a i2c client interface. It only has a i2c master interface, but this serves us no purpose here and is furthermore not supported by the driver. PN532 is the version of the chip for "simple" serial protocols. It's interfaces to the host are uart, i2c and spi. So I left PN533 out here. > > + > > +Required properties: > > +- compatible: Should be > > + - "nxp,pn532" Place a node with this inside the devicetree node of the bus > > + where the NFC chip is connected to. > > + Currently the kernel has phy bindings for uart and i2c. > > + - "nxp,pn532-i2c" (DEPRECATED) only works for the i2c binding. > > + - "nxp,pn533-i2c" (DEPRECATED) only works for the i2c binding. > > + > > +There are no additional properties provided by the driver at the moment. > > I2C requires reg. I was so deeply focused at my uart part. Sorry, I missed that. I will wait a bit if I get some more feedback and will address this in the next version of the patchset. > > + > > +Example uart: > > + > > +uart4: serial@49042000 { > > + compatible = "ti,omap3-uart"; > > + > > + pn532: nfc { > > + compatible = "nxp,pn532"; > > + }; > > +}; > > + > > +Example i2c: > > + > > +i2c1: i2c@0 { > > + compatible = "ti,omap3-i2c"; > > + > > + pn532: nfc { > > + compatible = "nxp,pn532"; > > + }; > > +}; > > -- > > 2.19.1 > > Thank you for your review, Lars