Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1175380yba; Fri, 26 Apr 2019 15:42:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbGNqE2s4NcHe1F+MCvhOET0e385VFEhwUh6ZBcByW58pq6Wunu5cKQ5LowtPh/OehHu36 X-Received: by 2002:a17:902:b617:: with SMTP id b23mr46085051pls.73.1556318563240; Fri, 26 Apr 2019 15:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556318563; cv=none; d=google.com; s=arc-20160816; b=cn0r2ISiF974qVCZ+G16AEuIXaiskkQ728c5FMZ540mW1rN/Xw15RfgQANXjHKRKMt +Qw7nogBZR1UKHA/GDnUCoEnM5couCigRboi5rLgp3lcFEAE0R6OwYMo6EQirDC353nC NCMLdr9OKw7dX76Xwzq1WtnxPLKr+IvIuxCQR4Sc847d3zX8QBSNtA5H5b4vk5hK0z3Y TfPykjvbIKPhpmVz5WhwJyGC7hqToO15NRZKg21UF5wFpiMWE8NPQHXoYBBoSvxQ+AXY 1zjl5xNBSPaJm7hPEERvbrpI/pn/INZ3mnHez0RK/asK10GQ1qTUdLE3i4zs0S9/q3on hziQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PsdEdDTbsz+N7C5OSHpzo5ojKTZZOZ+w3y29AXWU3a0=; b=kWZT7LG1BSs4/3LFKg2bXCqP+GGscZRMW9fisgjMJf7QuT+t2DDtA0JhunAS0Ia+1A C4ruLNejQCfQjisMiW9Sm4JNdY0JasOC0jOIbvuqENyYd2sZFFZb5llbOxY90fi0xuqG d6Rr/3gKUgytMXKcSN2LjalIU/mlED2s65kRvhjElaGBdhU4PFDAp3nuIogCaktVT7A4 u8ZLSWKPVa2hivTJiIwYdKE5641BFDHL6gr+qR+KfM0UNbmHtYnZRprBNw4v87JwOtfJ t9T2hLEVdaa8Z34k0ee5fw225vDxTqadzsVi0AdaiE/sMBuAYhL1Y8/f77SuVHCU+Bgn jAqA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si15858685pgi.288.2019.04.26.15.42.27; Fri, 26 Apr 2019 15:42:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727086AbfDZWlj (ORCPT + 99 others); Fri, 26 Apr 2019 18:41:39 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:36482 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbfDZWlj (ORCPT ); Fri, 26 Apr 2019 18:41:39 -0400 Received: by mail-oi1-f193.google.com with SMTP id l203so4213854oia.3; Fri, 26 Apr 2019 15:41:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PsdEdDTbsz+N7C5OSHpzo5ojKTZZOZ+w3y29AXWU3a0=; b=USj0sm7W3Oj2QGmVQHsqAVsPc701QX+koKUEer5eMGldKvz6fgqxWQGWnFzNcMB5fc woVAKmWXsZP6TZckUSzNhg83yFY/5K8iH0Q3S/ImIvchEA2ot9loM4DyCp/q8RnZoNht ngf4+tvn+ELlnSHXOWgjdd+FSYKemvBMnW7uezke75Tn8goKo6A9KV8m/eyn556YW0g+ QBPERH1aebhBLsb3dUo529WmvUHR3TX3Ac3OuTpa2LqKpp/x122VDba2L0lT8raPh1iv g3oaMZw7sgNeMcXLeYUI0ZOfn4YqX9LoijjsV9Vzh4vBrsPKdqW9+JremfjnUO+FYJzz HZLQ== X-Gm-Message-State: APjAAAVAT5QcKRaG0ey1tzqTCZH6miFlQHkeI7ZPBJYWaS3UPDtE+maS saZ1VXSVjLrboCeBGK225A== X-Received: by 2002:aca:f1d4:: with SMTP id p203mr9098222oih.154.1556318497952; Fri, 26 Apr 2019 15:41:37 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id f16sm3915279otq.15.2019.04.26.15.41.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2019 15:41:36 -0700 (PDT) Date: Fri, 26 Apr 2019 17:41:36 -0500 From: Rob Herring To: Mason Yang Cc: 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, 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, juliensu@mxic.com.tw, zhengxunli@mxic.com.tw Subject: Re: [PATCH v3 4/4] dt-bindings: mfd: Document Macronix MX25F0A controller bindings Message-ID: <20190426224136.GA636@bogus> References: <1555320234-15802-1-git-send-email-masonccyang@mxic.com.tw> <1555320234-15802-5-git-send-email-masonccyang@mxic.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1555320234-15802-5-git-send-email-masonccyang@mxic.com.tw> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 15, 2019 at 05:23:54PM +0800, Mason Yang wrote: > 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 */ Don't you need a nand child node? I'm not sure how that's going to work as you are already using the number space (i.e. reg) for SPI CS number and you can't really mix number spaces within a node level. > + nand-ecc-mode = "soft"; > + nand-ecc-algo = "bch"; > + nand-ecc-step-size = <512>; > + nand-ecc-strength = <8>; > + }; > -- > 1.9.1 >