Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1970225yba; Mon, 15 Apr 2019 02:08:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1qwecBQdIS7OMPA4TOF8Kva9kZypGxPnaBw+AQX/1gknUazs4S8s6HXQeEInknXLPmNn0 X-Received: by 2002:a65:5286:: with SMTP id y6mr68118990pgp.79.1555319305593; Mon, 15 Apr 2019 02:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555319305; cv=none; d=google.com; s=arc-20160816; b=LWb0Wla43s6RO+FM6thpSODEgIEhK4HSLHrvaeM53i0MVOvIuhJsAzOfL+9ww2I4I3 mIEVOZf400ob+d9MQ2wVn90XGVdcTcRN3y1kWSua0t3IAQTN9A+xO3RxQUhIX6vDTNx6 +rFaSj4Pq3eLL4G/pp6pcgHnghl9PJVCUrOCSObOsdg1XahAmW1Od3Z1NNjfyLSPzuqW N1ZowlYD30o5AFHK4q6WOCEzng1iOiz8TNu1NNlio/eC0tgP0ewWcLDl+0enBv+mChXm z4dZyp1VavRMnRP0TYDP8m9MzSRh4qMSB+XHlbIMGBSVjlAKQi8MM/ibMjk1u2qsFsUm 14mw== 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=bHASaCTUtfbzInE6X3VSfz6vhBYKy7cDBdqKFGYUTA3DToz+QdaC+LJlfT9tamalA8 YrMonfZG1m2Ic4Oe4GX6rLIfRbu1BLnYUpbaWRBPy1urohYeFJu9RXRGtDB7Ul2M7Q/F bfefLsI87ZEF0Ikwq9OXJLlirtgXbVDgtYJ3Us5DNM+c+KF52elSHUujypR8H+xr0HIT CYin7hVfVa9MSbylVIlVu66KwXzvx4yxhFqiu3hSD+oZSyYvAbl8Cywn0x4kEl8TO7Cj 0dzoVu+6ZUclFpWtJxtLXtcelQF36cDBk7NnZImCa2IX1eGh1HeVDiPluSnx4pMZFZl0 BKoQ== 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 v4si44719824pgj.138.2019.04.15.02.08.09; Mon, 15 Apr 2019 02:08:25 -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 S1727123AbfDOJHd (ORCPT + 99 others); Mon, 15 Apr 2019 05:07:33 -0400 Received: from twhmllg4.macronix.com ([122.147.135.202]:39848 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbfDOJHa (ORCPT ); Mon, 15 Apr 2019 05:07:30 -0400 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG4.macronix.com with ESMTP id x3F93pKt042176; Mon, 15 Apr 2019 17:03:54 +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 v3 4/4] dt-bindings: mfd: Document Macronix MX25F0A controller bindings Date: Mon, 15 Apr 2019 17:23:54 +0800 Message-Id: <1555320234-15802-5-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1555320234-15802-1-git-send-email-masonccyang@mxic.com.tw> References: <1555320234-15802-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG4.macronix.com x3F93pKt042176 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