Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2015773lqb; Mon, 27 May 2024 05:23:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5BPOzwWkCXscSvYfTGjJNGrbUYDUqAr7bCBy3oP8+2R/XI53y+WEr4w4lQ8b+Ut8JLaLNH6U0Ia9gGcxHb/nLXUdLkktUuaj2WvMHdA== X-Google-Smtp-Source: AGHT+IFvH81H8FXEGq4viw8AJsxtZXy25kme586t1erF11IhXbppkDt9Z8dPgLKGzacmHfaNCppL X-Received: by 2002:a17:90a:be14:b0:2a3:be59:e969 with SMTP id 98e67ed59e1d1-2bf5f716e7bmr6978443a91.47.1716812595114; Mon, 27 May 2024 05:23:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716812595; cv=pass; d=google.com; s=arc-20160816; b=acYuJequ7s1Wpzr5cI6cNC+5e/xzqN/a3vo+aWk8ZHSS2mI2ZuSY0vdT0zpxMj1Jq4 e5jl7BtairA5hnymeUxYROa91nnnxj5dwrY37pNtMf/pBf0cxDxaDyqbM9ZOh3sf5uhm WdcejbOFgWdARwHyNAomjHJZAYX9Hb63brOcoCExKJwFTznPc7krGqRGmXysKc7RAqsL EoJrXOE8UpVO8PvZMvkfvlKmHj3Qhem4bFkeWGnojCuqyUuEnPeBCScFjSZOYy3yB29l ydgGEHPT6lT9GIk4JRaiNzUr67Q8VbPPjCSzuyXNhx/BAs1HF4CTX0sXkZjhs3z0vXeC B85A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BHNpEdPAzLabYPq0SKzj1VaD6s28qVaQXn92xL+zHtk=; fh=BvhfaGvymk1KIx6MIsNpDnRXPcmlys2jeHPEeElfQBk=; b=UkWyzgTlFfEvZjnXZ/HzCftgUn4wHuMxXErMci74VCccvjOf4I9vet/XNFJ+fI4Vj8 9EeTYyeTC1atBZJy1P5CsC5e5prBNfawOITFZ2hSVgGQGTbjanwTJj6EMw30fvzbAoO5 WJF9cDtMpVIqDlB/w1OjdagB0iIDGR8Cs4OnNOn7wtqMLsQL7HyWGXBDL8mJ1vJbXRl+ 6IbCK1l+P2zKL5wlg+ehMC6xPzDhmx/hKyUpkLYPb+oxB45feT0+hPfR3v/j5y5ufs/p VudIjkAKGF28t1M2qRdV+B8Gav1w2/ZbTkJ887RHwx7c6PmVOlkBhAHec9N6j6sOIgXO MqIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=chXcKfC1; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-190569-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bf5fccec3csi5843416a91.50.2024.05.27.05.23.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 05:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190569-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=chXcKfC1; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-190569-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 852C02841A4 for ; Mon, 27 May 2024 12:21:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 181B215E5C0; Mon, 27 May 2024 12:19:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="chXcKfC1" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8880A15DBDD; Mon, 27 May 2024 12:19:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716812350; cv=none; b=Kg5ZekjI9QAT35i+2dAnJuhzfw65h0+UD0UGv1BqAcbbZ04/Y5YSgeaShoq9huLmZGrWh7J60yJO4s9MmBJDUFwxd9kF1Pq6vJB/DEP5q5HVX5Ig7Owq5wB7Uuy/m2SeR5A0GvtVXZUkrZT7CLGeNAhO6CZlSbeHv8t96dlITkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716812350; c=relaxed/simple; bh=5G2XQeKlbaBhjT2RsAL0QgWuhM7y5OA4zXW32p+VlFM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WoA75zrBh0oyc1iTMyo7bDjsc51qzw1jvK+VidnJh+jryL5vJ1rRE7ZTqYLC/bis8fez4PjS/5pb1hA4xK5in0fQK2IZxPOtjoD4UOWWTPoR0VaxqHO+4mZLGOnwYjlKzbvOecAx78SG8VljMebooPUX2FC/Isblnc/BSQVB1H0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=chXcKfC1; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 18FB8C0008; Mon, 27 May 2024 12:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716812347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BHNpEdPAzLabYPq0SKzj1VaD6s28qVaQXn92xL+zHtk=; b=chXcKfC1F14nrThICBClXHAqo6TG3TKiMQu4Vp82sTG/R/e4KEhWbct2POcDlWTucShJdO XovJzQzhSTsGTSEKM+O6EI+9fPO0+VuYKcB3DA43S493y2Ld1bg9j6Z6utpafbIci0XAcf tfa2c9qewL2WHxqnCL+m+wmwKncTLjVBqIQxy9+6qvr/EQEuxbKOjdmJTF+3EbzON7wM+I YZ52a2NBYviI2lFZo8w7ACY4RbslMXqG6nSu0ND7p9lv8b+b5zTTg1b8Hf4ow4DHhzMPgd 6/LFhFf9kR0C3HHBnLvZNZoef1tQOho4HWMoHIumRh1VoinHtbX+DYhJ5gSEpQ== From: Miquel Raynal To: Arseniy Krasnov , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, oxffffaa@gmail.com, kernel@sberdevices.ru Subject: Re: [PATCH v6 1/3] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code Date: Mon, 27 May 2024 14:19:05 +0200 Message-Id: <20240527121905.178683-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240507230903.3399594-2-avkrasnov@salutedevices.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'4e976b1521ca5e19fc2c0ba2bae0b97877ad0ef4' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com On Tue, 2024-05-07 at 23:09:01 UTC, Arseniy Krasnov wrote: > Boot ROM code on Meson requires that some pages on NAND must be written > in special mode: "short" ECC mode where each block is 384 bytes and > scrambling mode is on. Such pages are located on the chip in the > following way (for example): > > [ p0 ][ p1 ][ p2 ][ p3 ][ p4 ][ p5 ][ p6 ][ p7 ] ... [ pN ] > ^ ^ ^ ^ > > pX is page number "X". "^" means "special" page used by boot ROM - e.g. > every 2nd page in the range of [0, 7]. Step (2 in example is set by > 'amlogic,boot-page-step' field. Last page in range (7 in example) is > set by 'amlogic,boot-pages' field. > > Signed-off-by: Arseniy Krasnov > Reviewed-by: Rob Herring (Arm) Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel