From patchwork Mon Feb 22 12:02:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 385771 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1209868jap; Mon, 22 Feb 2021 04:03:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdBdNKvdaOsrHydTS2ww/JaXbeapyJmF4nzQZ+5g1d3Vc/kTqnyJ8kVL0qQTyilmTybg7i X-Received: by 2002:a37:9e8e:: with SMTP id h136mr19453536qke.50.1613995419913; Mon, 22 Feb 2021 04:03:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613995419; cv=none; d=google.com; s=arc-20160816; b=JzkFLTKhbcyzhVnrNmepJOemLORNVDKl1RIcXcQ2hmbHkLlR/i96K9Y9UFW89+qyN6 zaHCkve5EdLSjH4tbgObP3MKQ2ELq6xfMu+YKX05I4Jp+pY1/K7zlRwaJS0DBxtXUjaT 8c131hU5k1LiKOdHoRW4mIfI5pEAra/x01ZdtNYLtT1o3z8v4VxbKrWGMvv3w8EWaJvC GfO/Ymhogi16px7dS/GOudHPTSfk/BhBlWA8yQRRMJh+vo9LwhIcKigiIDFV9qn6z3oQ vWEi6HnOxrp5iFGFGatiL3xJFiWBmWzR4E9fM2Gz/wepnPyG8/pOJevle2ArJuRbJaj5 D8Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=awExAj0i1QMfiXX22wRnLbO/GtKv41x5KKUSEU2Y/k8=; b=tkDget1RESeeWKjJu1ZkFggE7C0oigC10CbJ+VHoS7/jpRVPXzSGExAa9ycDVuCOWr 1jw+AKkQ7prb9yk/1KLjQYxiW8jAKv57QvMTT00Lu8D5v/5Byq/bztMDvt61VdCzKMsQ Um5+TrAv4MpBO6ZVzPXnlzNtZDToGrz+gogIjwiyWttj/MOGd+utG9JyPSPpg/J1DF1s aSNHvpgtoIkR/fhclSrjoa3/8Kc67kJ5Nhbji3H49iXbIxa+NcMQ0dQG2UNkgFBjJCPs kWgmj53XD0dwOWEulVvC7TeyvXvG7I4FxMOARwj4X1t7FaO2LXXaopdKdkYE7ymiOeVa d0QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="uj/c7TVB"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vFxVbXKU; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id h20si3384006qvb.219.2021.02.22.04.03.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 04:03:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="uj/c7TVB"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vFxVbXKU; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=awExAj0i1QMfiXX22wRnLbO/GtKv41x5KKUSEU2Y/k8=; b=uj/c7TVBZViX4+LGU3R+BuLyr J7wclTlzT7frflcvxfenurYLJ4PvAOtzCbDhvMeDbzdwTr1F6bzBzt1g787I9BB95LJMQFUAlaL+1 /88gjgitWmgz7FBbLR8n5YuOX+h96hs2Abveu4dKgdumdU1PpxkvMshN1l9wdNhPYUminSzYALBXu bMsD5XHAzHRISPeuKma7PXWmBTt8NUrrfMB5sYdZJh2DN5VWlGs42vMpbwZ/kZ4rSD/yLC/IwOp2R g/eWqpVMwas/LVBS+nlrils2SvMJ0QyN1mYaJX4e29elSmZ/JYbrpjKKl75QrYHepaVYXVNNCG7pt NtQ9+aBZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lE9w1-0000ju-FM; Mon, 22 Feb 2021 12:03:29 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lE9vw-0000io-Lb for linux-mtd@lists.infradead.org; Mon, 22 Feb 2021 12:03:27 +0000 Received: by mail-pj1-x1032.google.com with SMTP id e9so8901734pjj.0 for ; Mon, 22 Feb 2021 04:03:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iOqS3cmQFNPFE5oe5VQB+Nk7w3LubjtRbocEu7F5iiI=; b=vFxVbXKUqZ/PhEhh0tcVrVjqFnWAQDNVgcn43MpfUe4vuLQ1G8UaFfLvQIHe5/qGQw MQz/G0mcLEqEa33/kZXqP2CyYxjWxPjqwHOhf3fQrN/OvnTT83e1tdLUPXZbLjvKN1nt vNHbKLAnUXCdqyMeg72hnk/pS5kpbs949/bNJbXzDcB9U8P67S45nFj0r3dip4n5q8J4 ExibsB4a1fiXD0F5IecD2lHsQFre4zikn3FD592AottfLygfpk5frggIz8yMgfK2TKYE 5/t1caj+HICVv17ZEJlMYg03wpmWYNyd4oL8mR0CBr54PWV8GnvPlEp+cy0MCR5bZl72 AQ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iOqS3cmQFNPFE5oe5VQB+Nk7w3LubjtRbocEu7F5iiI=; b=sRlHXcmEjdWGoP0XYSVSj3SINS665oro7cz7RxuUxy7/42mRylyRoEZ1pUDdfZWNa4 K803EgvoCJQn4u7hjBt9CMkR3FeaNIASxx8vFv0xRmPPUjtB6jPRPh0BnBpUa9wbl1+v H2vKddXpFTRktsvG0bolwn5Qq9P/tPOKnBZCLVmEUiEF2VNAO/aVuY1TIWYJ9PdDS9ew Vis4aumVmDmcOPTPPUYPDYH8VElFR22lqJL03JWjEAZUhJOQA4fqLNK2YzeLfZEobi9c JisPJv2SK6zsLtmKEQO+tMhg2whA7EajCzVuZce1VOkv6GJ+BhSmmMWb0t0W0SekvJUB jj3Q== X-Gm-Message-State: AOAM533iwim2rV9Bo7+jAsepvygQiPdEKxffxYcSXGcc9kedMg7CU2yR dROkXSCTfJm8U/bpf1rWmHhsS76qbOi0 X-Received: by 2002:a17:90a:3d0d:: with SMTP id h13mr23313246pjc.224.1613995401804; Mon, 22 Feb 2021 04:03:21 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6215:cc7b:cb8f:abf4:d1c9:3864]) by smtp.gmail.com with ESMTPSA id g17sm17017221pfh.14.2021.02.22.04.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 04:03:21 -0800 (PST) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Subject: [PATCH 2/3] dt-bindings: mtd: Add a property to declare secure regions in Qcom NANDc Date: Mon, 22 Feb 2021 17:32:58 +0530 Message-Id: <20210222120259.94465-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210222120259.94465-1-manivannan.sadhasivam@linaro.org> References: <20210222120259.94465-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210222_070324_730760_B41BE069 X-CRM114-Status: GOOD ( 11.78 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1032 listed in] [list.dnswl.org] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, Manivannan Sadhasivam Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org On a typical end product, a vendor may choose to secure some regions in the NAND memory which are supposed to stay intact between FW upgrades. The access to those regions will be blocked by a secure element like Trustzone. So the normal world software like Linux kernel should not touch these regions (including reading). So let's add a property for declaring such secure regions so that the driver can skip touching them. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/mtd/qcom,nandc.yaml | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.25.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml index 84ad7ff30121..7500e20da9c1 100644 --- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml +++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml @@ -48,6 +48,13 @@ patternProperties: enum: - 512 + qcom,secure-regions: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Regions in the NAND memory which are protected using a secure element + like Trustzone. This property contains the start address and size of + the secure regions present (optional). + allOf: - $ref: "nand-controller.yaml#"