From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1984EC43334 for ; Thu, 16 Jun 2022 20:30:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378652AbiFPUan (ORCPT ); Thu, 16 Jun 2022 16:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbiFPUai (ORCPT ); Thu, 16 Jun 2022 16:30:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFDA05DA16; Thu, 16 Jun 2022 13:30:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6A09261DF0; Thu, 16 Jun 2022 20:30:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22396C3411B; Thu, 16 Jun 2022 20:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655411436; bh=stQjKK5hULXhgTZqMOZMxI+VoTvhtjbBez+S+FBZsCg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AZ4taM7oD2t6T/xFHt/VoFygBcFsniVKbkMkrfaaYMsNCCxWfR5PxbjAdaCDJXywN Py8FZ20KJd+rCsN4btXh4HfcUP1sYkIFRQAqmKtDcJGxZWm24fYoSnJFIhJA+T27YG TVkq5YYEHa8uIDKvzctvf3sOCu8V4P38aBlC2dPFSFXOre2LYYVt/jJ2qqCgguDDeT /cgUjrCIPWGanGM8KLwuue8bdCFCv9yPAG26EIhXUVsaPmKJOO52Ekkz9NcN1k5qMQ L4Yk3IEkwnu3zrRgjgwqNXxiEqQgevO3eDvaQ+6tO45lRbf21Pb3SiRrG2X6v4sMHK kn2f51c7b5ANQ== Date: Fri, 17 Jun 2022 02:00:35 +0530 From: Manivannan Sadhasivam To: Christian Marangi Cc: Andy Gross , Bjorn Andersson , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 3/3] dt-bindings: mtd: qcom_nandc: document qcom,boot-partitions binding Message-ID: <20220616203035.GE2889@thinkpad> References: <20220616001835.24393-1-ansuelsmth@gmail.com> <20220616001835.24393-4-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220616001835.24393-4-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, Jun 16, 2022 at 02:18:35AM +0200, Christian Marangi wrote: > Document new qcom,boot-partition binding used to apply special > read/write layout to boot partitions. > > QCOM apply a special layout where spare data is not protected > by ECC for some special pages (used for boot partition). Add > Documentation on how to declare these special pages. > > Signed-off-by: Christian Marangi > --- Reviewed-by: Manivannan Sadhasivam Thanks, Mani > .../devicetree/bindings/mtd/qcom,nandc.yaml | 27 +++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml > index 84ad7ff30121..482a2c068740 100644 > --- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml > +++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml > @@ -102,6 +102,31 @@ allOf: > - const: rx > - const: cmd > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,ipq806x-nand > + > + then: > + properties: > + qcom,boot-partitions: > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + items: > + items: > + - description: offset > + - description: size > + description: > + Boot partition use a different layout where the 4 bytes of spare > + data are not protected by ECC. Use this to declare these special > + partitions by defining first the offset and then the size. > + > + It's in the form of > + and should be declared in ascending order. > + > + Refer to the ipq8064 example on how to use this special binding. > + > required: > - compatible > - reg > @@ -135,6 +160,8 @@ examples: > nand-ecc-strength = <4>; > nand-bus-width = <8>; > > + qcom,boot-partitions = <0x0 0x58a0000>; > + > partitions { > compatible = "fixed-partitions"; > #address-cells = <1>; > -- > 2.36.1 > -- மணிவண்ணன் சதாசிவம்