Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3949196ybl; Tue, 20 Aug 2019 04:54:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgv66fWEy3HduCUsEcAf4Qb/VPCE3Mu6elCilcHGmL33XQ+8HUj1xUFOYUaXcvDC08cITu X-Received: by 2002:a65:608e:: with SMTP id t14mr24435393pgu.373.1566302051350; Tue, 20 Aug 2019 04:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566302051; cv=none; d=google.com; s=arc-20160816; b=hpxs6pVxA/4/ZTEmjaWVcZtj7zlVmxIxxAVGPZBqkDmZsGfKOsb+tbhkeCMsJmR+Ep ZHj5Ncm8EQHaY2p3nknRDCebS8usQx0bDaqu/+US/KXm5yHyzW/lDA6dBMwBNtEjyRrE D9emceCvt6lGWyAyajg/6yIydBW/DkG5oD0f9hHyRbcHDOuRKu4SrEORUBsmOEFseTZR BlaYI0m8+puet2TnTtaiTCbPROPflgtD72fSGUPzL1pxEw1297XuSxInJ7Q/xNFTVqpd th57eDvFjTskQ1eMpvoq3Q8fbi5eQlhiGqm4CHCQLSgIKkNhBk3p1rrvUj7j4MjVwexk hGeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6SXI0b2A4mkiyN0W8jp+axxRuUDSMD6RVfCk3yxmOgg=; b=L5Jb9CunAjVozKDr9NNnY1pspTtn86YD5yGyn2TA/tVsjKwOZULh19jp1TrqWM8Ck8 pT9l/80OAT9AmIxNGN9t262NbpwsWbgzpyddtdyvlwjo5zENFXgVSLobS7/jttUsBm2d qUuTu2JF77xDD7x6/E6MNhfMSQ9gq/MT+R6b4u01fT1ObciseE9XHIDeZYdvjeQY3iEs YQ9BJjd8zxpZ0XJvcqIMSno8u2xRBVXhvFEpfF85eQ6mDr/0WcYxNojPDeYaN4pbgMCH LsqtUbcdj/RJUMaBiZ08tlOo9Lfwq1muI77F3Hy0p5m9FxwgHHF1QNLx0knFTRXAys1/ wfGw== 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 y8si12218471pgk.594.2019.08.20.04.53.56; Tue, 20 Aug 2019 04:54:11 -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 S1729881AbfHTLvp (ORCPT + 99 others); Tue, 20 Aug 2019 07:51:45 -0400 Received: from smtp2.goneo.de ([85.220.129.33]:51996 "EHLO smtp2.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729556AbfHTLvp (ORCPT ); Tue, 20 Aug 2019 07:51:45 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id 9E30123EF71; Tue, 20 Aug 2019 13:51:42 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.135 X-Spam-Level: X-Spam-Status: No, score=-3.135 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.235, BAYES_00=-1.9] autolearn=ham Received: from smtp2.goneo.de ([127.0.0.1]) by localhost (smtp2.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5wG0cnB6T3_e; Tue, 20 Aug 2019 13:51:39 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp2.goneo.de (Postfix) with ESMTPA id 7F18723F2CA; Tue, 20 Aug 2019 13:51:39 +0200 (CEST) From: Lars Poeschel To: Rob Herring , Mark Rutland , "GitAuthor: Lars Poeschel" , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: Rob Herring , Johan Hovold Subject: [PATCH v6 2/7] nfc: pn532_uart: Add NXP PN532 to devicetree docs Date: Tue, 20 Aug 2019 14:03:39 +0200 Message-Id: <20190820120345.22593-2-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190820120345.22593-1-poeschel@lemonage.de> References: <20190820120345.22593-1-poeschel@lemonage.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a simple binding doc for the pn532. Reviewed-by: Rob Herring Cc: Johan Hovold Signed-off-by: Lars Poeschel --- 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/nfc/pn532.txt | 33 +++++++++++++++++++ 1 file changed, 33 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..d5aaa588073d --- /dev/null +++ b/Documentation/devicetree/bindings/nfc/pn532.txt @@ -0,0 +1,33 @@ +NXP PN532 NFC Chip + +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. + +Required properties if connected on i2c: +- reg: for the i2c bus address. This is fixed at 0x48 for the PN532. + +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"; + reg = <0x48>; + }; +}; -- 2.23.0.rc1