Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp199299iol; Thu, 9 Jun 2022 01:55:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywNlXFD6hYtLmnZwcl3FabC4M1Re3ZBmBqTs8aKjoucgExzOLIzBrJJ+YlN2pCl9pOs1iG X-Received: by 2002:a17:90a:d148:b0:1ea:4e16:545b with SMTP id t8-20020a17090ad14800b001ea4e16545bmr2458402pjw.132.1654764954280; Thu, 09 Jun 2022 01:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654764954; cv=none; d=google.com; s=arc-20160816; b=Lt2VeOrLOPs7KgBZfDokjN5gj0pRjuYQ7KyLT5+Q7ybrvUiLWu1JxPs+vNlDGRnOj8 H8e+XcNUNLPWy1JyUT9sbRA/RaO8XFr3JW2ekWouJaqW9zANU6AQV/iptByMdFxjoqMW ydCRvCRkfM6SjyCYG+DKP3E4ZkNeWzzbu0ED9e8P0Y6cBTqkOhAgTqhWG4xA7joHx56O KRHhIgVmjEatYSaGkiYMp1F+qL13vRe+KvWhv2sRRq2+ptZcz3ajTCghv7yoklz3waPY 1RzCLnBUkCkuKPV+t854cyJf0yOHJp+zANyvHnAUrx4yI6m5lly0ZA0vdY0r8jHiJG7j Kjzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O1ih+LM16bLfImTmbZn3HZ+lO7FY2P/pML/ymw7z7Ic=; b=lGy3VQHT0JJcGmzhTQy6HgpY+QMQcynFpuu4yUFjIgkmh9CEaWLCHQN2/WyOCC4SND 8QnsbzbBDGiAZpg1EeM+EK+O3kiMPQww39XFGfU9T3AFrC1GLpXYJxwnXT7K6mbO71wf +caIV6McVkNC7j4fmDDV2uv6zuJL520f7g6M0GOhye/OHWIwhzhH/uQujKZd/5wSolVR vsCHklbVY1ddCU9CSRRdehgstde+apRa/KQXEtEZW2h/Uzvu+lWama0pLr3pMInDOVL9 G74Zg8wsxfp1wWkSOIzaCfM2nN3e3x6g3cfz9rlGjlJSdqo8X80QeU4EL/LhEi315cHG QFhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QIu5f75c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a63bd11000000b003fc242727efsi28325628pgf.85.2022.06.09.01.55.42; Thu, 09 Jun 2022 01:55:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QIu5f75c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239862AbiFIHUt (ORCPT + 99 others); Thu, 9 Jun 2022 03:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239859AbiFIHUp (ORCPT ); Thu, 9 Jun 2022 03:20:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2DF4243BBD; Thu, 9 Jun 2022 00:20:44 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8CB78B82C44; Thu, 9 Jun 2022 07:20:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE514C34114; Thu, 9 Jun 2022 07:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654759242; bh=GkGBXoZ0lI7pgry3fH1/hlxhfCuW2nQ9dPWKJZmlobA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QIu5f75c01gsq7A3FlZhFl61flEc+x3EMTgwC3K9Z5wVWV94lT1v9XT19H3pE4XmY zkJHzPb7PIiuOttMo612C0vDIMMjAAbc6Q3Jg2bUt0SsxfX7IBMmknuc5Tc1Bk/Y7c G6goJu3RbUBQTTnbMsPvEpmDQDtd8+7i9Zqk12nf4TQqUzi0EMjCY2orDkBzO6lDET y5yUWSI4potzwd+KzBBvaG5KvVPnaHO8t0hi1PiDnJ95BPnanexYgWuoUkF/l+Vijy vW7j8YWSvCN8HByxNRwN9RnSVX94VJYvpiKKyIg9aNvK5qayjrVykTAEMJhmzs017W EhbY9yKtGZaBQ== Date: Thu, 9 Jun 2022 12:50:29 +0530 From: Manivannan Sadhasivam To: Ansuel Smith Cc: Andy Gross , Bjorn Andersson , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/3] dt-bindings: mtd: qcom_nandc: document qcom,boot-partitions binding Message-ID: <20220609072029.GA2758@thinkpad> References: <20220608001030.18813-1-ansuelsmth@gmail.com> <20220608001030.18813-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220608001030.18813-3-ansuelsmth@gmail.com> X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2022 at 02:10:29AM +0200, Ansuel Smith 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: Ansuel Smith > --- > .../devicetree/bindings/mtd/qcom,nandc.yaml | 26 +++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml > index 84ad7ff30121..a0914ccb95b0 100644 > --- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml > +++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml > @@ -102,6 +102,30 @@ 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 Wondering if u32 is enough for covering all ranges? Other than this, Reviewed-by: Manivannan Sadhasivam Thanks, Mani > + 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 > + > + Refer to the ipq8064 example on how to use this special binding. > + > required: > - compatible > - reg > @@ -135,6 +159,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 > -- மணிவண்ணன் சதாசிவம்