Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp629826imd; Thu, 1 Nov 2018 03:03:56 -0700 (PDT) X-Google-Smtp-Source: AJdET5fwI7kFH80+wJEiaAr8AdF0zWWBEx4I6qTFlvueMMOQ4TEs1g+xfn+0ma/G953j7n4UejuP X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr7038828pld.217.1541066636890; Thu, 01 Nov 2018 03:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541066636; cv=none; d=google.com; s=arc-20160816; b=CHQ+YJTnAB94d0kZqlnoCUgGMA03axfxOS7tJiZPx7bsgZhYlbS0ptH+GkJ+aT368Q J1n8zU78QVrUDfPqVcNcpGyqhKzrv63m94hMZaKbZIaoB7pvV5KH+fTvMM0od35XUDV1 oUBHclCZc8rRb5vuo2jJxb7vDYucEdQP8dUKF2rK/gYpOt6+neHUbrIRMM6LjlR0aNT4 x+y+GNk33nSwmpLBLrVm5mXBF4JyL62qcJuPQZLI0oU7JmGdkqz03Jh1Fhs+HnCTSXZm dv8KbQM32cQDDg9zcpiLAAERl1lD3SChrzGbPmEExaYkDeSQm2f25eZthmhq81CXAZkV 94sw== 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:to:from; bh=+NolEHYi6Nmq+OjZpnPt671wgHrV9fWwWtVZpsj6hRw=; b=YVD6NOWUA3CTe+uitJfit48QuFiwuXLDCR8rkFTLDDYuxTCqzpfvfzYiDRnl4uagkJ v88EdU22LZLkNU/fTGTxZ3ga6Gw954UfRXCfcQStCtfTJqIiGjsNG4xBIcW/Nx7I79Jv KcsDThjDPctcjAvFnwVeuyd+Q6OshV0wjLnDhox5Ah+3Kz4gnGkG/FmjBzgYUcHkx+nR 61Yrd2UjpJ9btzgiQ+QpZJTPip1t6JacEuLjVGu5IegVeeW7eD0Y1BsDayqbP4dDAlf9 7kRCmM+IokuXM6yIwmAFb+c2kCMBuuIpl0yz71KTOVACd4F2MlVeICeiD80kWEFo7w7Y 5wAQ== 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 s61-v6si17619839plb.107.2018.11.01.03.03.41; Thu, 01 Nov 2018 03:03:56 -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 S1728199AbeKATFi (ORCPT + 99 others); Thu, 1 Nov 2018 15:05:38 -0400 Received: from smtp3-1.goneo.de ([85.220.129.38]:36997 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726320AbeKATFi (ORCPT ); Thu, 1 Nov 2018 15:05:38 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 7236323F486; Thu, 1 Nov 2018 11:03:18 +0100 (CET) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.108 X-Spam-Level: X-Spam-Status: No, score=-3.108 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.208, 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 Uc2vBCJeWG9w; Thu, 1 Nov 2018 11:03:17 +0100 (CET) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 44DD523F61D; Thu, 1 Nov 2018 11:03:17 +0100 (CET) From: Lars Poeschel To: devicetree@vger.kernel.org, Rob Herring , Mark Rutland , "GitAuthor: Lars Poeschel" , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 2/6] nfc: pn532_uart: Add NXP PN532 to devicetree docs Date: Thu, 1 Nov 2018 11:02:10 +0100 Message-Id: <20181101100216.613-2-poeschel@lemonage.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181101100216.613-1-poeschel@lemonage.de> References: <20181101100216.613-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. Signed-off-by: Lars Poeschel --- 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.19.1