Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423962yba; Mon, 8 Apr 2019 19:12:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQv3Z2QPy1liRvQPiEUMl0XGQjLz+tp+2UEh3ZsVM49oQLosAWNy9z/j0VvhF99o76/mXw X-Received: by 2002:a62:3849:: with SMTP id f70mr34042194pfa.46.1554775965284; Mon, 08 Apr 2019 19:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554775965; cv=none; d=google.com; s=arc-20160816; b=Q9egV0hsRdQTsV/4WaCh83UYo0//LvMfT/yhQMzVpHdL0efSLpaNbr8O4RkzZsgNWj IwkKjp0rF61HRktHogT+gsEFSXwEsCk7ZahfpS7B+JSihyZYk572br3t1E1ZXkLKsRrZ GEmCCFVtBW6rv7mS2q8B3N5GjYC9peC5jCkYHYReGCcq9WY7O+ws4vxVjoBDy8uJyczk NUpsDqF6nCZZKmwxU6Q4ce9ujXVIZeKjSPR6ahT2OnMPZpoEhnoG5tPXViJAMIwWj2eh eGAFNrARBbtWJTbQxIYoSvVwgFzsPcTtqDNNlpJ5PrSflOFrGsMrl4FSJw7F9ApnNkqm GtVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=bv2fwto9hOr4Frnev387HqY6MourFvW6kcTJZkvtN2M=; b=PEmz4ZTe3f1V2faGTeEFCCZgYGRjL9iQZDxIMA63sG6e++ot2TGsfuZmzAA8KkOQzt emitqHWmOd9N6op6nxIclGYOhWBORlYmj3cHvk3KhppJGjbv3aoS84ypf4woQ9frVqw7 xGXf6tmwDL4jaJ+uNJ5kcO8Dvi+kN0Yq16hCyH7UDqnecKJ4qU7BtmBkiS+nglYA/sEe rNIhOrATqZSjz76QuE314cueuwSaIf/M23cButWko9GdlSPAuQNJUOIZtl4Cxvcl2rvT cI7tV7xKs2Sk+0nCeXA7GhPCWavV0VnePgtHV6IaoLnJ2GPGt5qw/yT44wEgCVCKgrUd Y2gg== 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 z73si27473252pgd.345.2019.04.08.19.12.30; Mon, 08 Apr 2019 19:12:45 -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 S1727216AbfDICLk (ORCPT + 99 others); Mon, 8 Apr 2019 22:11:40 -0400 Received: from twhmllg3.macronix.com ([211.75.127.131]:26739 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbfDICLj (ORCPT ); Mon, 8 Apr 2019 22:11:39 -0400 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id x3929vUm032141; Tue, 9 Apr 2019 10:10:00 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: broonie@kernel.org, marek.vasut@gmail.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, bbrezillon@kernel.org, dwmw2@infradead.org, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, computersforpeace@gmal.com, paul.burton@mips.com, stefan@agner.ch, christophe.kerello@st.com, liang.yang@amlogic.com, geert@linux-m68k.org, devicetree@vger.kernel.org, marcel.ziswiler@toradex.com, linux-mtd@lists.infradead.org, richard@nod.at, miquel.raynal@bootlin.com Cc: juliensu@mxic.com.tw, zhengxunli@mxic.com.tw, Mason Yang Subject: [PATCH v2 4/4] dt-bindings: mfd: Document Macronix MX25F0A controller bindings Date: Tue, 9 Apr 2019 10:30:00 +0800 Message-Id: <1554777000-10542-5-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554777000-10542-1-git-send-email-masonccyang@mxic.com.tw> References: <1554777000-10542-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG3.macronix.com x3929vUm032141 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the bindings used by the Macronix MX25F0A MFD controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/mfd/mxic-mx25f0a.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mxic-mx25f0a.txt diff --git a/Documentation/devicetree/bindings/mfd/mxic-mx25f0a.txt b/Documentation/devicetree/bindings/mfd/mxic-mx25f0a.txt new file mode 100644 index 0000000..7f3e0f8 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mxic-mx25f0a.txt @@ -0,0 +1,51 @@ +Macronix MX25F0A MultiFunction Device Tree Bindings +---------------------------------------------------- + +MX25F0A is a MultiFunction Device with SPI and raw NAND, which +supports either spi host controller or raw nand controller. + +Required properties: +- compatible: should be "mxic,mx25f0a" +- #address-cells: should be 1 +- #size-cells: should be 0 +- reg: should contain 2 entries, one for the registers and one for the direct + mapping area in SPI mode. +- reg-names: should contain "regs" and "dirmap" +- interrupts: interrupt line connected to this MFD controller +- SPI controller driver: + - clock-names: should contain "ps_clk", "send_clk" and + "send_dly_clk" + - clocks: should contain 3 entries for the "ps_clk", "send_clk" + and "send_dly_clk" clocks + +- Raw nand controller driver. + - nand-ecc-mode = "soft"; + - nand-ecc-algo = "bch"; + +Example: + + mxic: mx25f0a@43c30000 { + compatible = "mxic,mx25f0a"; + reg = <0x43c30000 0x10000>, <0xa0000000 0x4000000>; + reg-names = "regs", "dirmap"; + + /* spi */ + clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>; + clock-names = "send_clk", "send_dly_clk", "ps_clk"; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + }; + + /* nand */ + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-ecc-step-size = <512>; + nand-ecc-strength = <8>; + }; -- 1.9.1