Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1759725iof; Tue, 7 Jun 2022 10:56:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcn8WdBv2mX9Uk2zGW9jnuXcB4auOw5DKa2U7SruUH2Bp5u7T7lUulmDqE/UK0BtZmU4ev X-Received: by 2002:aa7:c7c4:0:b0:431:75d6:6b3 with SMTP id o4-20020aa7c7c4000000b0043175d606b3mr8534438eds.280.1654624608303; Tue, 07 Jun 2022 10:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654624608; cv=none; d=google.com; s=arc-20160816; b=Olm3Eo7kvyZVXskTjKf/dLmWlz0nzE1rF2tGLxz4HpXkwkLJ+aSHfTAh/da3DOjfDv mNpTOkEEhO9DLACXHQWVkpkBJXCO+KEQv08GTwnCt1LWCt7iUKElw9QifbeRkn4+VdW8 reF7JPgSE0n/Is0igr6ITXfOaFmCUJUvwm4/PVuSnw72VNi70llqUhrifbFNBuP2j+pt x6VcXFBoXxMHP/M79u06hysO9XmmlfwBVR5xOQXX7UeCtCRiUlB4davRUXr1eiWCSbDc a7tnaVmDOsbQNTme06aNq9FGSM+ptmB1oTnh4E7N+tQ6jjawq76SwghMjvGgDVOdGrHr /Bnw== 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=cuj1BDpcEsc9bvi3hjaQmYleMLyi7S38dJqqqEwxuPM=; b=c3NGWLeW/OOBz0/GDN/zu55UN4H0NkB9s51wXW9bJWgmxWA3S8UiiniVM/Yon3ajy8 YJYq+lvTu18WINQsqdlRGS9Z1UdoNuamwqTkC61DXIfYW/Sz1an9SsoUHhjb4+JcgFxS i3SqL66UV7Ld3uwRPFKI7iRyEeFUOMpNG7cemJQXyLuOtSfvJgEwfK3AFLwGo7zEGMlu nv73gydKSdq90JAcMTY8LGnXG41uaqhDZmteXgt8VJu+if5RHwnNLqn5VPwhXxhMKbTV djFd2oxrh5TQWM57UyXWdPTzh6aobdjHAEK31BNRuGCfiagh5Q+kSh9ZWCwH7QbtZEPF 8hLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KH4AWZwn; 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 s18-20020a056402521200b0042dd38b01f1si3541028edd.504.2022.06.07.10.56.20; Tue, 07 Jun 2022 10:56:48 -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=KH4AWZwn; 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 S242648AbiFGOM7 (ORCPT + 99 others); Tue, 7 Jun 2022 10:12:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233115AbiFGOM6 (ORCPT ); Tue, 7 Jun 2022 10:12:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1F8F19E; Tue, 7 Jun 2022 07:12:56 -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 DF81461578; Tue, 7 Jun 2022 14:12:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15294C385A5; Tue, 7 Jun 2022 14:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654611175; bh=tOlTuXrCdHXR6tngcOYuj9xb6Z7sf9Xjv7iA3sFggYc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KH4AWZwnRnDjxQDeZmq+Cmgtn6CDh5+jO2Zb7+EQMAhBVKoINQHyhMuThDfmevcBt ZTDUUyjmeiOD4Tibu/IbzEYR2NAYUYA59os4W+XauvN7beQS/xos5AiLJDnwVrndUB rM5amS1fGMBjy59vEfHyiqOmGRTu9UYaqMyg/YOisI7Va9vKbs3Qac9qJhRxKkexml aU8UhPgCJH+avMFetQh4PoMZ0XdyT5aMEOm1EY4vsbeKaZ9Hwl8hfcWkqD8AjYVwK9 ukNPlmqK55f0NoRDtDaBQC0MTDoeqZPUvqzfB4UPasrcLeVxKToaglkKnnAk9WRCro RPY6qgXxQqaTw== Date: Tue, 7 Jun 2022 19:42:42 +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 v4 2/2] dt-bindings: mtd: qcom_nandc: document qcom,boot-pages binding Message-ID: <20220607141242.GA1882@thinkpad> References: <20220519190112.6344-1-ansuelsmth@gmail.com> <20220519190112.6344-3-ansuelsmth@gmail.com> <20220607091522.GB5410@thinkpad> <629f3127.1c69fb81.2590d.39ac@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <629f3127.1c69fb81.2590d.39ac@mx.google.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 Tue, Jun 07, 2022 at 09:05:16AM +0200, Ansuel Smith wrote: > On Tue, Jun 07, 2022 at 02:45:22PM +0530, Manivannan Sadhasivam wrote: > > On Thu, May 19, 2022 at 09:01:12PM +0200, Ansuel Smith wrote: > > > Document new qcom,boot-pages binding used to apply special > > > read/write configuration to boot pages. > > > > > > QCOM apply a special configuration 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..a59ae9525f4e 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-pages: > > > > Eventhough the page layout is what making the difference, here the boot > > partition offset and size are getting specified. So how about, changing it > > to "qcom,boot-partitions"? > > > > Thanks, > > Mani > > > > Yep, you are correct and the naming is confusing. Will do the change. > Did you check the code if you notice something to improve / an idea of a > better implementation or better naming? > Just to skip sending multiple revision with small changes. > Yep, I do have some comments. Will share them. Thanks, Mani > > > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > > > + items: > > > + items: > > > + - description: offset > > > + - description: size > > > + description: > > > + Some special page used by boot partition have spare data > > > + not protected by ECC. Use this to declare these special page > > > + 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-pages = <0x0 0x58a0000>; > > > + > > > partitions { > > > compatible = "fixed-partitions"; > > > #address-cells = <1>; > > > -- > > > 2.34.1 > > > > > > > -- > > மணிவண்ணன் சதாசிவம் > > -- > Ansuel -- மணிவண்ணன் சதாசிவம்