From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46CB633F598 for ; Wed, 22 Apr 2026 07:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776841413; cv=none; b=S68f2h2REKWo2zyBjeVdutKZVmKpQPNq5sKjRNZ2dDZ5yintAIwhCwiYGOdu24Rq5iox1r+InO12akGguryHOoj92T9QfO+L/JEbcmFRkA6ya9xNPjvl8TfyA+Ei1NujGBFaERS7MHfoA7j470W5sfIzRRU4WKbPTkDO2oQ3MtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776841413; c=relaxed/simple; bh=IwG2wo6BkstFh+qMX/W8nOYuTZdNYDK51l8RlSVJlIk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TtKfLDkmZvuEpyteSbMW3ONMH5hG/u69GEPp9e86EqCEr5tuOeGFYWRx4QW+kyIMf7iSqVBIvZ2CnzBIgtFvr1OCiONO1DT77QNviRbF7k8zJoypRNZbb3DkXXhQ2Vr6MI8B91YTvsFpC/Acv8XOaRtM4l3LkSiyfIJP+hz4O7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GKcCdnsJ; arc=none smtp.client-ip=209.85.216.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GKcCdnsJ" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-3591cc98871so2329761a91.3 for ; Wed, 22 Apr 2026 00:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776841412; x=1777446212; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z84dwc2PsPdYxwH32qOj6+DQ+b4iRKtcB2f35wW4+cg=; b=GKcCdnsJA4jAwK4go5WScOVmsFspv1XX2o9elbuNLp0eo1695GAGZ0OjHx9IxD/STT 6qG6lfzjDYP5KyPVG8S3T4qPru0A8tkB9W/23G7/abp6svgDtH5lW50vNdJSGSh9sFg+ xFSuX0CUZvVh2HJAuqWwyKZ9HcSvj7bW6HfSSPuybDiL0vDmUpXRnNdMd/ahRQ2EVyiW B0AZKdMtvXHIuTjJn6/6r5nQQtOLZxzp0OBGOw/peNVRnwOiEcSWUOi0eq8b320UFuZ4 eXcCwCMR6YkD2sU0t3pqGpQN+sn3b0WzqOi7mg4OGX8kXQo+HfuPopdf7h6vEluCXQ1H YPxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776841412; x=1777446212; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Z84dwc2PsPdYxwH32qOj6+DQ+b4iRKtcB2f35wW4+cg=; b=PBD/mqiKRM4J4QsnIEboITimT3QeCbDBWU9WNAc9MYGrd4tssuYt6o9GI+YCAQ7HxK fZn7TkNMdp3q6ebaAJdkcBdlP6YNuOfKAi0O2b0+R/IQes2mxC6XmXm0uDRhYgynUECB eUkpsxhXuZKUqxj8BXJDcDMGvMGDBl+gGtDElh7HQebOTUz0Ib8I1RJ9PwXQZHn3vSEI m6mDkQJ8t1u0W0Eado0b0BnMS3x9G/4ycbsv7Uf0pGZ8mEyi5HN78Seqt3RoP6uIVYxe HGIC/VrXOTUKrbhPkptYOuP9dJX8R61DcUYm9/KOpOiaDwLJo4Td5x0iVUkarm/NSi26 nFVQ== X-Forwarded-Encrypted: i=1; AFNElJ+vUZRQv1+Jr+bhAXI8PaozQUOIeAGvex9tp23E5fEDqR8D3DgPIcbDoIxEIK60uzgKI0SYx1VfUFu8Z7E=@vger.kernel.org X-Gm-Message-State: AOJu0YyKQoNBFafuwzuiq2AX45O1BAIQWQ9IpJPDvSHdaeXV1zoJvDFf aGxOZIbhMinHqRYPQo2e6c/TCBJTqc8oz56+7Pyzy1UMqKSh8CXayzE7 X-Gm-Gg: AeBDieuR/HxC99r4iT4EkPQNx2kaTJLxgF9Va2KGYrCAXiqjdSthVS1G1my+FP9IWx1 /t43J0S+wUg1SIDswTzY4BFgE7FC+oPAjO8HbxFI6ki3qkvgdyKcU2S+SCEWiPQjScvsjZkDKPS K46UoDiVRbfirui15NsZ6NK5pkqoELyG3rSd/V0VuRtPi3QzYACCwmF1L5RIgG/szfhAqrvo3L6 04pNzZWnuX9hLZRfzoFrpeSieogRBHMiLTG2asoEKN9OppQAth4CKTWU4Qh43bUhcBiWs0+7dXv bVRHbFZ9UZgj1x0sFapSE2exRewTD0duzmdmRvrCOfH/PA9kLsPA0LKO5kpax2dhJP+y1jxindI htTNRTFXhOwHXe/sN/oVaRRSiEvcwq/AeHcWNcrtFiORmp9i5LjoaBacZ9mJl5RfvIMkshCokhp ydhDtixg3A6rtwn1N0sJiHXwl2qO6IfQgyDaofnunMuPzsFn5Yfi5lSTlUpsQL2QrFzF8= X-Received: by 2002:a17:903:1b03:b0:2b2:5637:1480 with SMTP id d9443c01a7336-2b5f9ff44d3mr218370865ad.40.1776841411469; Wed, 22 Apr 2026 00:03:31 -0700 (PDT) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fab0cdd1sm155088635ad.38.2026.04.22.00.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2026 00:03:30 -0700 (PDT) Received: from hqs-appsw-a2o.mp600.macronix.com (unknown [172.17.236.67]) by twhmp6px (Postfix) with ESMTPS id 21DED416A043; Wed, 22 Apr 2026 15:03:28 +0800 (CST) From: Cheng Ming Lin To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alvinzhou@mxic.com.tw, Cheng Ming Lin Subject: [PATCH v9 1/3] dt-bindings: mtd: nand: Add nand-randomizer property Date: Wed, 22 Apr 2026 15:02:01 +0800 Message-Id: <20260422070203.698716-2-linchengming884@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260422070203.698716-1-linchengming884@gmail.com> References: <20260422070203.698716-1-linchengming884@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Cheng Ming Lin Add the 'nand-randomizer' property to control the data randomizer feature. This is used to improve data reliability by reducing cell-to-cell interference. Depending on the hardware architecture, this property is designed to be generic and can apply to either the NAND chip's internal randomizer or the hardware randomizer engine embedded in the NAND host controller. This property is defined as a uint32 enum (0 or 1) instead of a simple boolean. This design choice explicitly supports the "not present" case. If the property is omitted, the driver will not interfere and will leave the randomizer in its current state (e.g., as already configured by the bootloader or hardware default). Signed-off-by: Cheng Ming Lin --- Documentation/devicetree/bindings/mtd/nand-chip.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/nand-chip.yaml b/Documentation/devicetree/bindings/mtd/nand-chip.yaml index 8800d1d07..effdc4f99 100644 --- a/Documentation/devicetree/bindings/mtd/nand-chip.yaml +++ b/Documentation/devicetree/bindings/mtd/nand-chip.yaml @@ -23,6 +23,15 @@ properties: description: Contains the chip-select IDs. + nand-randomizer: + description: | + Control the data randomizer feature. + 0: Disable randomizer. + 1: Enable randomizer. + If absent, the current hardware state is left unchanged. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + required: - reg -- 2.25.1