Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp431298iol; Thu, 9 Jun 2022 06:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3UBDAOM5AqiTZ/x3FXfHc3xCE6jpz0SKDW+psIk6DqIZEh83fvla97rZI0Gi72TggMHfh X-Received: by 2002:a05:6a00:1513:b0:51c:3ca8:47a4 with SMTP id q19-20020a056a00151300b0051c3ca847a4mr13991283pfu.48.1654782327166; Thu, 09 Jun 2022 06:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654782327; cv=none; d=google.com; s=arc-20160816; b=WdUAhaVtx2u7A5txTg3/e1ljaPA08Y/OrA6PJn4QSgdzlV5RKUxmdQuUtdQ5HYa27b pPqSAv9fLjv12LUVDy12QkJd9RWCOAwKdRQl5SRAffSzICvwXe9X42WJ5jolSFeUAEBV 4p2zzFBAFlcHWk6P9iDuQO1mrZYVQOS86VDi+iwcbJ0qWIsJnBiWPsqJU2PihoHPUOhS Kv4x8au+QRC8ZeFdm36Cxl8J9Yy3zXyqPAYmt9hom362CVjJPu214IlqhMPfz3X9ecZK Gq077uCC5ywGh268zJLFBJ6lgXXkbe4L1KgTi64UQhGecaSQF88xKg39GU4O86FxDu8o a5Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6jeqtgRl8bKHnXZ4AwxPt+xAQ0F0PxiC5aWs7JdMOrY=; b=KeH8Kk4oQ9fqaPlsl1DFY4qJ/+cklBXsuX1CU4MRKuosWTmA++ya9c9mR8ggmVcrB2 3fQdC06iwsHEiRXGpOFL8cpVA9n6CXZoGqrc67PNWQ6Mw6kRiQQsOL2pU0LiiG2hvL3n zjBiZcFsiqf8h45XlDge+gwlv4hfowieqYMT6Ux0cdPMIUNL70YeG4nnC/eDJdM6QwE+ 30GaqP/sCyWLQoc20+frXfLWfuE+v9kA2PkEJNrRXDg15h3wRHTSvPxIRQUY0nprM7Ko qFcxgMMAVK9Jk7vdbFNUln66ErSq9572GVTe6ADpHyuua9f2Ml69zksCfKHIhtVAC1cb jZLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cJVhmrHY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id co18-20020a17090afe9200b001e312672c02si28997380pjb.30.2022.06.09.06.45.12; Thu, 09 Jun 2022 06:45:27 -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=@gmail.com header.s=20210112 header.b=cJVhmrHY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343865AbiFINYf (ORCPT + 99 others); Thu, 9 Jun 2022 09:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343786AbiFINYV (ORCPT ); Thu, 9 Jun 2022 09:24:21 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4DD036B69; Thu, 9 Jun 2022 06:24:19 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id h19so31227910edj.0; Thu, 09 Jun 2022 06:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6jeqtgRl8bKHnXZ4AwxPt+xAQ0F0PxiC5aWs7JdMOrY=; b=cJVhmrHYyT63kIWknwWNHq8H3Fm9koj9Te576ocCrSOqv18WrgBUMotLdhsN3HIdgM /aoYBLe/1EthBKwzLMOnDMzMig7pgkcWUDz16SM9QlGmsvii3FqSwftw9IOpua1hqHWt 25Lmz9S4wLtucB+FC0jlpNDPXt28Iw7T+JqGvOtDSU9eNPMNLImvrJ4EyIofVj3wjzF/ NmsQbdligcS3Jl35T6bp6lduzJbYTPUS2LCFpZA5Koky7S9y1t5KWRyGqqGgjh0huMkj 4YDSGmibIrJm/1RE4XIvWQzFiHPn6y7ILU3OChbYMf6D77+KLKMiE9opqoyC8nXEIaNw Emdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6jeqtgRl8bKHnXZ4AwxPt+xAQ0F0PxiC5aWs7JdMOrY=; b=HBP1A7FG+fFH5bAACeWi5dsPQ/70i89IIsn+knSkWTKeF8cxYwcD1XY7rbHId2/78v aoJpy5ZF9LkaiiQ6eY2jfUekQRqqtgBeZfKpv7G2Q301dH0kx1Eo06zEjjMrJyffiqJe MoWuJ4sT11MMDqX63BZ53MQeigQhzcBPdnkbVFUSPC1VpN300LbYBn7huhb/agMABfTt lGvudZ4RJ6zdWYmIlVyR3DHxbv/13IKfS8xYsQ+1XYK/AFkHlNGvwGtlSG8dYpFDWk5w 9NtgY3TqmKM6g5OHul2s7HTyHH+v91xzEMyWSbXwRXvsS6Xq40A4CTTqbw3gHqC8tIA0 M7NA== X-Gm-Message-State: AOAM5315kcf3rOi2Wcc2udJKQcBAjeOPyx3cZAWRV4uWWRZ55sIaxeiV MsNHDCSP5J49gjRRK+MhhAs= X-Received: by 2002:a05:6402:31fa:b0:42d:cd6d:c8fd with SMTP id dy26-20020a05640231fa00b0042dcd6dc8fdmr44609520edb.347.1654781058277; Thu, 09 Jun 2022 06:24:18 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id i2-20020a056402054200b004315050d7dfsm8360263edx.81.2022.06.09.06.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 06:24:17 -0700 (PDT) From: Ansuel Smith To: Manivannan Sadhasivam , 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 Cc: Ansuel Smith Subject: [PATCH v6 3/3] dt-bindings: mtd: qcom_nandc: document qcom,boot-partitions binding Date: Thu, 9 Jun 2022 15:23:44 +0200 Message-Id: <20220609132344.17548-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220609132344.17548-1-ansuelsmth@gmail.com> References: <20220609132344.17548-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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 Reviewed-by: Manivannan Sadhasivam --- .../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