Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6629278ybn; Mon, 30 Sep 2019 00:51:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDzMZWCmA2KBHu4uY25gNk6d0xQ1z1P/+ysJgx+IeP3+9eBS/QvB4vvZ1yFNxFXk2UEZkk X-Received: by 2002:a50:f009:: with SMTP id r9mr18527583edl.195.1569829866140; Mon, 30 Sep 2019 00:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569829866; cv=none; d=google.com; s=arc-20160816; b=jOJDMQm03HogyiieY0xZmRwwyB0SOnV+vRoLOEBRyicDDXJ8XiXbKQBsJ19PpFxHp2 tLJ2Y53OmHNafbc9L1OLckjtAcSzk+vJI/055KEdi9H8IlBnxPILmvsC/JGpaIChC9LN tPdLYM8Yn+3kOHPHzSq/D3c6gtWOUyTJiJ2XMawf9lkbzH7/iZ/jYGk1gpBqgpzfFbEs V+zp1be4L7fniy9ttBVoVU8/pHoepPVGF0oE8+WX1oIz7C6FuNtJkqs0y07QXTRkVVr5 LqybroHuCgdFbU9VFndlcz9DFCUMHqKSqsmt9eGKUFrtcu8izm7WY2dRLt1xojx5rFJs R6zQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zwVNBdaWth7EkRokVmG0PU0jXL6Y6Bd1f2vdhQZBogA=; b=mP2xaT+LREa+IWZ6efJF7dwvCxcUioeBx84JVbQ5CrN+q7KX3HAxhBkVmwaFxTVjkK juam3C2Y4qi0JfQt684xeAfV8ojow3BC/9Sm1ChToXGeNqFytVrwP0DYcJRTJPPvyvKH deJ8vXw1/r3bG3UI1XSChDdeq3DsTWSN5KyvBhabvUkxTWXWlpra8B9WltTk1HtuMir7 KFBTHpAyTvgIYhbkmJMKIsXv3qSvVW+tjte6i0/6Wj548qv6UI2w6P09d1ctNIECfTWS 08XbbBXrE4lxv1yPFKTTQ7DEwH1jE155Y60RdsVGzQ0a2HwUK7LNhvJwy1GsWnZ9wmV0 37bA== 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 y6si6521513ejj.113.2019.09.30.00.50.40; Mon, 30 Sep 2019 00:51:06 -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 S1729512AbfI3Hru (ORCPT + 99 others); Mon, 30 Sep 2019 03:47:50 -0400 Received: from smtp3.goneo.de ([85.220.129.37]:57964 "EHLO smtp3.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbfI3Hrt (ORCPT ); Mon, 30 Sep 2019 03:47:49 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 9395A23F739; Mon, 30 Sep 2019 09:47:45 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.018 X-Spam-Level: X-Spam-Status: No, score=-3.018 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.118, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MD998ao4vd6d; Mon, 30 Sep 2019 09:47:44 +0200 (CEST) Received: from lem-wkst-02.lemonage (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPSA id 2041D23F63A; Mon, 30 Sep 2019 09:47:43 +0200 (CEST) Date: Mon, 30 Sep 2019 09:47:37 +0200 From: Lars Poeschel To: Rob Herring Cc: "David S. Miller" , Mark Rutland , "open list:NFC SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , Johan Hovold , Simon Horman Subject: Re: [PATCH v8 2/7] nfc: pn532: Add uart phy docs and rename it Message-ID: <20190930074737.GA24353@lem-wkst-02.lemonage> References: <20190919091645.16439-1-poeschel@lemonage.de> <20190919091645.16439-2-poeschel@lemonage.de> <20190927155209.GA6261@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190927155209.GA6261@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 Fri, Sep 27, 2019 at 10:52:09AM -0500, Rob Herring wrote: > On Thu, Sep 19, 2019 at 11:16:39AM +0200, Lars Poeschel wrote: > > This adds documentation about the uart phy to the pn532 binding doc. As > > the filename "pn533-i2c.txt" is not appropriate any more, rename it to > > the more general "pn532.txt". > > This also documents the deprecation of the compatible strings ending > > with "...-i2c". > > > > Cc: Johan Hovold > > Cc: Simon Horman > > Signed-off-by: Lars Poeschel > > --- > > Changes in v8: > > - Update existing binding doc instead of adding a new one: > > - Add uart phy example > > - Add general "pn532" compatible string > > - Deprecate "...-i2c" compatible strings > > - Rename file to a more general filename > > - Intentionally drop Rob's Reviewed-By as I guess this rather big change > > requires a new review > > > > Changes in v7: > > - Accidentally lost Rob's Reviewed-By > > > > Changes in v6: > > - Rebased the patch series on v5.3-rc5 > > - Picked up Rob's Reviewed-By > > > > Changes in v4: > > - Add documentation about reg property in case of i2c > > > > Changes in v3: > > - seperate binding doc instead of entry in trivial-devices.txt > > > > .../devicetree/bindings/net/nfc/pn532.txt | 46 +++++++++++++++++++ > > .../devicetree/bindings/net/nfc/pn533-i2c.txt | 29 ------------ > > 2 files changed, 46 insertions(+), 29 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/net/nfc/pn532.txt > > delete mode 100644 Documentation/devicetree/bindings/net/nfc/pn533-i2c.txt > > In the future, use '-M' option (I recommend making this the default). As David already requested a next version of the patchset, I will do it in v9. > > > > diff --git a/Documentation/devicetree/bindings/net/nfc/pn532.txt b/Documentation/devicetree/bindings/net/nfc/pn532.txt > > new file mode 100644 > > index 000000000000..f0591f160bee > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/nfc/pn532.txt > > @@ -0,0 +1,46 @@ > > +* NXP Semiconductors PN532 NFC Controller > > + > > +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. > > No more pm533 support? If you ask me, no. NXP sells more or less two versions of this chip: pn532 and pn533. The pn532 is the version with i2c and uart interface, the pn533 only has an usb interface. So I would say "nxp,pn533-i2c" was wrong and I dropped it. > > + > > +Required properties if connected on i2c: > > +- clock-frequency: I?C work frequency. > > +- reg: for the I?C bus address. This is fixed at 0x24 for the PN532. > > +- interrupts: GPIO interrupt to which the chip is connected > > UART attached case has no irq? I guess it could just start sending > data... Well, the chip has it (as said above, it is the same as the i2c chip) but it is not an use case for me. At the moment I have no hardware to test this with. So I did not implement it in the uart phy driver. Solution is: If the chip is in sleep mode, send it some special "wake-up" paket over uard and wait until it actually wakes up. > > + > > +Optional SoC Specific Properties: > > +- pinctrl-names: Contains only one value - "default". > > +- pintctrl-0: Specifies the pin control groups used for this controller. > > + > > +Example (for ARM-based BeagleBone with PN532 on I2C2): > > + > > +&i2c2 { > > + > > + > > + pn532: pn532@24 { > > nfc@24 Ok. > > + > > + compatible = "nxp,pn532"; > > + > > + reg = <0x24>; > > + clock-frequency = <400000>; > > + > > + interrupt-parent = <&gpio1>; > > + interrupts = <17 IRQ_TYPE_EDGE_FALLING>; > > + > > + }; > > +}; > > + > > +Example (for PN532 connected via uart): > > + > > +uart4: serial@49042000 { > > + compatible = "ti,omap3-uart"; > > + > > + pn532: nfc { > > + compatible = "nxp,pn532"; > > + }; > > +};