Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp677663imu; Fri, 11 Jan 2019 07:14:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN6+QUKGH0nGV38/x12jMfRvMDlFSMv9vP7zsMvGUm872s2BwEuASMkJR1FyyGQ3o7CGTy+A X-Received: by 2002:a63:fe0a:: with SMTP id p10mr11445056pgh.265.1547219642740; Fri, 11 Jan 2019 07:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547219642; cv=none; d=google.com; s=arc-20160816; b=M0c7mnOE2gAqvltHg79CqgWYj1CtDX8metL7bOIeonzWzEHCF8ffoFjr80OkIrvYQy fd6Sp0ol2EJSWkLtXo+dUXr4JKxIK8SY2+DccZWTxNsIV5bJ3XCXmcHZgi1RgZ8+gFKP D0mX6Yy6u/AxyaibhNJ+4dORmXbxjeaYTtMq8/FJsXsqnWmtmHa9lcbkx8M3ww71pmXm oRb1T9ey6Ae0a/kNPdA2Q6jxGbg9ey3tyfKYVF3kmzW5rxUS36jp2YMJA+nrxLmMvYVI pJFRILY9hrcJiD6P/A59ZCQduoaOT3GkOdB6qNiAwgpEXQQdRzTsStOnw78FLVi/vR/M loUA== 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=SoFU/+u8VaygRCHXflqTdzUhsvwSzHhqPAX2vVmAxdw=; b=Umqjupm4SzaDIrMjavvMKX9mKEaeNF2lgFgpif/FlmwlkmXPiv8Bu/7pIul01WGC3+ bB9JQtlWF0TyM7IiAOKDw56OzByxsGs1FD2f81olawUWstDzDCy8ENedn1G3RzOfvszJ BdoDO2mdocbCpBblb1juIoNmD2FfhXTV5Q3vVAB0DUKSa6buO+eyP4mBn6PkX+vIhyL8 c9zy1JwDnIjATUPvgNCM8b/QQbbCv7RIEiJn9gtvy2dn5GbD595wPzLoD0O80I3UDwGm WpgOubOI2ZxJ23ykXRmP/3UnjdkXHenG41bWW4Xjf2kHckICCmE/3Z8VZjO+57mvwFqQ YgJQ== 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 k16si1874324pls.124.2019.01.11.07.13.47; Fri, 11 Jan 2019 07:14:02 -0800 (PST) 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 S2391324AbfAKPMF (ORCPT + 99 others); Fri, 11 Jan 2019 10:12:05 -0500 Received: from smtp3.goneo.de ([85.220.129.37]:49172 "EHLO smtp3.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387430AbfAKPME (ORCPT ); Fri, 11 Jan 2019 10:12:04 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id BA92F23FE76; Fri, 11 Jan 2019 16:12:01 +0100 (CET) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.08 X-Spam-Level: X-Spam-Status: No, score=-3.08 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.180, 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 pVaM4tgZwh9b; Fri, 11 Jan 2019 16:12:01 +0100 (CET) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 8E40D23FB7C; Fri, 11 Jan 2019 16:12:00 +0100 (CET) From: Lars Poeschel To: devicetree@vger.kernel.org, Rob Herring , Mark Rutland , "GitAuthor: Lars Poeschel" , linux-kernel@vger.kernel.org (open list) Cc: Johan Hovold Subject: [PATCH v5 2/7] nfc: pn532_uart: Add NXP PN532 to devicetree docs Date: Fri, 11 Jan 2019 17:18:05 +0100 Message-Id: <20190111161812.26325-2-poeschel@lemonage.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111161812.26325-1-poeschel@lemonage.de> References: <20190111161812.26325-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. Cc: Johan Hovold 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.20.1