Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2422777ybl; Thu, 9 Jan 2020 12:29:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwxlOElEgIgP9Ki9uOLWKkF/T8Fx9ibSfi1iyOGuv9usI/0RbQbaWQiUvFNyJtahvAOmNp/ X-Received: by 2002:aca:a883:: with SMTP id r125mr4963026oie.56.1578601739992; Thu, 09 Jan 2020 12:28:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578601739; cv=none; d=google.com; s=arc-20160816; b=FfaV3TQyDdou+58CIpcfKRjU87t8RLhOAACwHtL418891r9qG2IT2kEEQ+ylwC8c+3 ZIkd6/pMG8gJu6PRGdl64KERdQ8F8lzyQlR9cbL55WwQ3xfcv9lvmEAe6Z6ovMsQhsQF Zp17d/la/389frafHbu5R9mr70K/xD8X2c+NBtTDdCwxzrdiBS/m6JWwmDsSavYcbrWd bMU9HAOs9PsYCtJUOKDV0rK7++SR6gU8eoPT0SxK4igaPSe1e4gAsPw8Y7Hxpz/zCHrh R+ihoy4nvrq++JNj3pDbXjhPDZoIwFwDT6KiWpO7H4aBrCL4v0rieTh70xE3e88+v757 5Ccg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=7/SVqjiPi+4nU5OW6srPu6xAJcDyR/FvO8WC5bi3mis=; b=n3/a9WjEWBgkVBhOlSmqKdGLkxsVhUVMqYdezf4ZxZNFN7uSysfRyTXmNmymyiNhav r1flYBFGdF6QKTvXGfTHlVfIce5/bO03m0PU1xsOibmgEyY4T9IgjLRxbMij0wvet3A3 9aN6gS8JDczV9V2pmhrs45sqaPty6jy6vZDejPubDDLqjCMsXiGaNkn4CjuPbhisaB8e shZGEXfRAbVvKEgVMHdkXQTHSNYBXRIyODsc8HVbpHGGNocelE79dr1mX8D5HcHCawWq h1S2/TcUIbtOt12GKHkrrDFvDUmPMMMIcrcIox0Ive7Ch5B7vIltedQ7iDrUFMZGVqaU B5jQ== 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 f203si4423516oib.56.2020.01.09.12.28.47; Thu, 09 Jan 2020 12:28:59 -0800 (PST) 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 S2387670AbgAIQad convert rfc822-to-8bit (ORCPT + 99 others); Thu, 9 Jan 2020 11:30:33 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:37009 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387657AbgAIQad (ORCPT ); Thu, 9 Jan 2020 11:30:33 -0500 X-Originating-IP: 91.224.148.103 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id E41DA2000E; Thu, 9 Jan 2020 16:30:29 +0000 (UTC) Date: Thu, 9 Jan 2020 17:30:28 +0100 From: Miquel Raynal To: Mason Yang Cc: richard@nod.at, marek.vasut@gmail.com, dwmw2@infradead.org, bbrezillon@kernel.org, computersforpeace@gmail.com, vigneshr@ti.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH v4 2/2] dt-bindings: mtd: Document Macronix NAND device bindings Message-ID: <20200109173028.09de5f08@xps13> In-Reply-To: <1571902807-10388-3-git-send-email-masonccyang@mxic.com.tw> References: <1571902807-10388-1-git-send-email-masonccyang@mxic.com.tw> <1571902807-10388-3-git-send-email-masonccyang@mxic.com.tw> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mason, Mason Yang wrote on Thu, 24 Oct 2019 15:40:07 +0800: > Document the bindings used by the Macronix NAND device. > > Signed-off-by: Mason Yang > --- > .../devicetree/bindings/mtd/nand-macronix.txt | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/nand-macronix.txt > > diff --git a/Documentation/devicetree/bindings/mtd/nand-macronix.txt b/Documentation/devicetree/bindings/mtd/nand-macronix.txt > new file mode 100644 > index 0000000..cb60358 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/nand-macronix.txt > @@ -0,0 +1,20 @@ > +Macronix NANDs Device Tree Bindings > +----------------------------------- > + > +Macronix NANDs support randomizer operation for user data scrambled, > +which can be enabled with a SET_FEATURE. The penalty of randomizer > +is subpage accesses prohibited. By adding a new specific property > +in children nodes to enable randomizer function. You don't mention the performance penalty nor the benefits of such operation. Please also insist on the fact that this is a one time persistent, non reversible operation and the use should use this property only if they know what they are doing! > + > +Required NAND chip properties in children mode: > +- randomizer enable: should be "mxic,enable-randomizer-otp" > + > +Example: > + > + nand: nand-controller@unit-address { > + > + nand@0 { > + reg = <0>; > + mxic,enable-randomizer-otp; > + }; > + }; Thanks, Miquèl