From patchwork Wed Dec 27 12:10:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomer Maimon X-Patchwork-Id: 853134 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z6BY51DPcz9s9Y for ; Wed, 27 Dec 2017 23:11:53 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3z6BY46yl4zDqNM for ; Wed, 27 Dec 2017 23:11:52 +1100 (AEDT) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=nuvoton.com (client-ip=212.199.177.27; helo=herzl.nuvoton.co.il; envelope-from=tomer.maimon@nuvoton.com; receiver=) Received: from herzl.nuvoton.co.il (212.199.177.27.static.012.net.il [212.199.177.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3z6BX02l8dzDqMZ for ; Wed, 27 Dec 2017 23:10:53 +1100 (AEDT) Received: from talu34.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id vBRBqvWq025912; Wed, 27 Dec 2017 13:52:57 +0200 Received: by talu34.nuvoton.co.il (Postfix, from userid 10070) id D76755A644; Wed, 27 Dec 2017 14:10:39 +0200 (IST) From: Tomer Maimon To: openbmc@lists.ozlabs.org Subject: [PATCH linux dev-4.13 v1 1/2] dt-binding: mtd: document NPCM7xx SPI DT bindings Date: Wed, 27 Dec 2017 14:10:36 +0200 Message-Id: <1514376637-12328-2-git-send-email-tmaimon77@gmail.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1514376637-12328-1-git-send-email-tmaimon77@gmail.com> References: <1514376637-12328-1-git-send-email-tmaimon77@gmail.com> X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomer Maimon Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Added device tree binding documentation for Nuvoton NPCM7xx Serial Peripheral Interface (SPI) NOR Signed-off-by: Tomer Maimon --- Documentation/devicetree/bindings/mtd/npcm-spi.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 Documentation/devicetree/bindings/mtd/npcm-spi.txt diff --git a/Documentation/devicetree/bindings/mtd/npcm-spi.txt b/Documentation/devicetree/bindings/mtd/npcm-spi.txt new file mode 100755 index 000000000000..3c30271c3712 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/npcm-spi.txt @@ -0,0 +1,31 @@ +* Nuvoton Serial Peripheral Interface(SPI) + +Required properties: + - compatible : "nuvoton,npcm750-spi" for NPCM750 BMC + - #address-cells : should be 1. + - #size-cells : should be 0. + - reg : the first contains the register location and length, + the second contains the memory mapping address and length + - reg-names: Should contain the reg names "control" and "memory" + - clocks : phandle of SPI reference clock. + +Optional properties: + - chip-max-address-map: Chip maximum address mapping for direct use. + the maximum address map size: + NPCM7xx - 0x8000000 (128Mb) + +Example: + +spi0: spi@fb000000 { + compatible = "nuvoton,npcm750-spi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfb000000 0x1000>, <0x80000000 0x10000000>; + reg-names = "control", "memory"; + chip-max-address-map = <0x8000000>; + clocks = <&clk NPCM7XX_CLK_AHB>; + spi-nor@0 { + ... + }; +}; +