Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5995495ybe; Tue, 10 Sep 2019 11:54:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWhjULoXcS8FYOzofdFRmt2It2oEapQKsN+FboK2boJj9aM+siPKTK4k0oUkZL7X3YtQ1t X-Received: by 2002:a17:906:5393:: with SMTP id g19mr15915706ejo.256.1568141669255; Tue, 10 Sep 2019 11:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141669; cv=none; d=google.com; s=arc-20160816; b=muSTK/TY7ttzVPjecemnme7kr1dz0hmNUWEIYkP32/gdwESIHy4DzfKU9Sbw6ewX5W pCiEO2a93iefyMsewZBkmGplxU6P/GQER14RGWua2hEuxJ87LbxvpLIcK68US+SGmEqf ubjX/yb9/zBVWpr0zdFT9T9xgOW1D9PrjgvSf5McSWTRwEnzlmUsQoGsWWa9odzXIgBr pKAFVwr0hhgsLCXD/wAxrO/8k47bcEvJY5oK7pYldcvtH7zel0qalNE4piBimWRf80aC PCJzu/cimDMcnx/akzB0ErTPQzgQ/5a74twAp8HISFvxvJJN3fERXtvtesGNO+LrFo5L 1xew== 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 :message-id:date:subject:cc:to:from; bh=Fxo1MBbO5pQnuc4iwnV2wvHHzqqsdElnPaHYiqjpeqA=; b=G+AMq/clKwjjvbiEqs0PcFUJV91MWYfhQvxCeLJ5oLyFy4T/evwkU44c2e7FTaRFcW o5IhlMiKh+TuWmcoXwqhY8RZE0DULnDrqfyDKhwAYHHULC8N0tVT7u53qmLthfbDWNaf LZaPvBcTla0zlnviRZCAxZSmDg2XfXa11s9gUSljQBcv0dGRSykHu/7Yh+i+6ysztowz C3bmbiQac+eCYq8zwhBxLNaj7h/hwCpmsBUE69L5XYc6ARbYfy7eE64z4FmHtuFdeA/r 9Rwjd/joGeeXtynI6u6pLKLd1MDQPOVpIJXSG6AGEYctSi3J+XAWA8FA9ZGCqrGJvxyt /NRQ== 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 z20si5538796edq.250.2019.09.10.11.54.05; Tue, 10 Sep 2019 11:54:29 -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 S2389303AbfIJJTg (ORCPT + 99 others); Tue, 10 Sep 2019 05:19:36 -0400 Received: from smtp3.goneo.de ([85.220.129.37]:33404 "EHLO smtp3.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729439AbfIJJTf (ORCPT ); Tue, 10 Sep 2019 05:19:35 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 0247F23FDF8; Tue, 10 Sep 2019 11:19:32 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.035 X-Spam-Level: X-Spam-Status: No, score=-3.035 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.135, 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 dffO01LN1ocM; Tue, 10 Sep 2019 11:19:31 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 671F923FA02; Tue, 10 Sep 2019 11:19:31 +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: Johan Hovold Subject: [PATCH v7 2/7] nfc: pn532_uart: Add NXP PN532 to devicetree docs Date: Tue, 10 Sep 2019 11:32:53 +0200 Message-Id: <20190910093256.1920-1-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0 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 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