Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1698840lqp; Mon, 15 Apr 2024 14:27:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuoIvUjdXp5ot7frXr9/YH5A6/fB7QJ5PiTw5R2s06BD/7BtfdzmnM3QqGbMVPHkFv4awTnOPNxazoENw+pKYDUyR2h7FA/B6+QacjrA== X-Google-Smtp-Source: AGHT+IGOZj+wlx0hRFiSnRTAlcHRbmahb9390eoEH2Qzo8+k2nFMcDHv4T288uIkqjZNBJYQVZkR X-Received: by 2002:a50:8e12:0:b0:56e:2433:a0ab with SMTP id 18-20020a508e12000000b0056e2433a0abmr9840523edw.34.1713216442105; Mon, 15 Apr 2024 14:27:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713216442; cv=pass; d=google.com; s=arc-20160816; b=Eo5OCRAnnmGqFNfbRomGuPGIc5FY3peN4bB6aGsx32L8nlOd4/nmfJ9bJ7TuYgaF4g N4BaaxwpEpzLAw1uysrXx+KEKZKr/R/aXz+JAFLg4WcOqnbdOKiBER6uBLuOi2VQ5nVH bxVrRlK532D//0+/F+Q+coqPi4ET5BCTT56KmIbXbi8JfUr3oFV9Nup4z31W7uG9TgD2 ELR3rhFtydEbFa9oOTB+2mZkbBxuKSaJnVkKvDjC5nCgT52aFLDTxCUJ5l7kQRULXrkJ lUMIH+3IT7THsywBRFOtvbSuggkuGw0AIH2xLv5teYZeD53Afr9jpBnhwH9sR+/0GTNa +3hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cT4vQkuZaEfxUpxyViXkdt9Ik4mXhVvRYyHGUu7U6rk=; fh=HhEgmEEZE3Z4MvEq2YhujKpxFjSBcSHtii8N4myy5Hk=; b=EhObltkYwymjrnlh7Qc0ccwkVsH9Gi5aOXd/zjHH4Jc4VAjOFuAtu+SBzIVcWBZRFe ICeGCuHQdmfIQ9DH2KMKf03FDHYB8P18YNxVWV5bPsutESGjKJO3N1YtF3fvjJBrCB7z SqxKQn3PwcMrKDpyw0+H2hNCow3uHoixZwcfFdur5I1r4PR3ZGaoNQccUIMVTOGF1M3t +kUcB2VEaPQsYfMWMbjJAKNkdSHBgb1PsiskPqoLhHV/a77+mxMNLXhCEsMZuLJryYU3 g1Dlv6+fymybelVmnhtMt8LKbxcF1RsRtDX5shVjn4OsXBDvB/hMDBWuknj8cu3Spm0B Vm6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hXy8eAQj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145932-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h28-20020a0564020e9c00b0056fde6d6b73si5121594eda.631.2024.04.15.14.27.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:27:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145932-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hXy8eAQj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145932-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BFBB01F22A47 for ; Mon, 15 Apr 2024 21:27:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA1CB15746A; Mon, 15 Apr 2024 21:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hXy8eAQj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CD1A5156236; Mon, 15 Apr 2024 21:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713216433; cv=none; b=DyZXAnDuC+T6qQOYg0tzCpytq1qMAHS03/3F+rm/EWMZUmEcB3wAbODV7fvPQYaG0GL70fOKJ2UEU1Kam+rFrCpW7jTL6R8QwugKvIZwQFMXqPwFGgxSwVBXiIN8scJVzuo078A0ttPd6JPBQwf0AD2YY8rONNd2HlA7TyxWPXw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713216433; c=relaxed/simple; bh=AokiBwLoenA+AuAq05ya7tY/KjTt6b5eb9h8P1KVQgY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Smrx3I99aSmmZcix2r+KUrPqJRRWUY4EBAZLMp6V/PccuguRo1VJw0iE/1FrTbYbuGkOG+GKnn7JJhgUqANr1txGKw9K97YBh847pt95wBBNBd0ReIQujQAeI3/7uZ3CvfQtEFbqeOt0pI8VrlFPNZD9I5bl/HVQ0wO7WlbwWrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hXy8eAQj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28C9AC113CC; Mon, 15 Apr 2024 21:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713216433; bh=AokiBwLoenA+AuAq05ya7tY/KjTt6b5eb9h8P1KVQgY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hXy8eAQj0AlY6mfR43iRJ6wS/B4Mn29gxVYqTjINDIeY7vknv4DS3h4gc4pDRJLUq uB1iJajd7UgRZ7Da4E2BzwyONCB1jPrkpDxaA01jy7sQbz4WuQreTY69KXFrZtxtU7 t1AwZARUlS1IyHp3/w+trYZ2JH5XrcDvDnKpvJlJKyKgMJTGyZV9ZxlQjEQ2pPgCGa FeY9zkIYRVhknFX9GyEYSvm3upQRX61YNLdl2jQz94icifluufllDDRCdHdT61HzE3 osRcwcH6S3/KK/Bei8f6d22RF+Qa1WXy+tnX1cni3hG61xlz534rwNjrKLvaAO4KzF kJqePPDycI82Q== Date: Mon, 15 Apr 2024 16:27:10 -0500 From: Rob Herring To: Arseniy Krasnov Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , 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 v4 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code Message-ID: <20240415212710.GA105671-robh@kernel.org> References: <20240410185409.2635622-1-avkrasnov@salutedevices.com> <20240410185409.2635622-2-avkrasnov@salutedevices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240410185409.2635622-2-avkrasnov@salutedevices.com> On Wed, Apr 10, 2024 at 09:54:08PM +0300, 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 located with the specified interval > within specified offset. Both interval and offset are located in the > device tree and used by driver if 'nand-is-boot-medium' is set for > NAND chip. > > Signed-off-by: Arseniy Krasnov > --- > .../bindings/mtd/amlogic,meson-nand.yaml | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml > index 57b6957c8415..838ae1847ef0 100644 > --- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml > +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml > @@ -64,11 +64,25 @@ patternProperties: > items: > maximum: 0 > > + amlogic,boot-pages: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + The NFC driver needs this information to select ECC > + algorithms supported by the boot ROM. 'the $driver drivers needs this information' is true for every property, so it's redundant. You fail to say *what* the property represents or defines. > + > + amlogic,boot-page-step: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + The NFC driver needs this information to select ECC > + algorithms supported by the boot ROM (in pages). Same issue here. > + > unevaluatedProperties: false > > dependencies: > nand-ecc-strength: [nand-ecc-step-size] > nand-ecc-step-size: [nand-ecc-strength] > + amlogic,boot-pages: [nand-is-boot-medium, "amlogic,boot-page-step"] > + amlogic,boot-page-step: [nand-is-boot-medium, "amlogic,boot-pages"] > > > required: > -- > 2.35.0 >