From patchwork Thu Feb 25 14:08:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 387212 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp342039jap; Thu, 25 Feb 2021 06:09:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtoQzsEV5FJ8a3rY3hhsfBh46zU38qHBbMlp/tVd4Nw+fgDMowp60yBS3RQsin9DuLpI4v X-Received: by 2002:a0c:8485:: with SMTP id m5mr2822760qva.14.1614262170650; Thu, 25 Feb 2021 06:09:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614262170; cv=none; d=google.com; s=arc-20160816; b=FNIWrb5yoerqS3x5cywaG4iAhECyBZ6tE4VNtLqEZPzqzbwMYZZwOlW44e+/QMemcC IKw+2DQoc5NmYfYKgH9rnjlo3ISuhGXsOVisyZI5fv2jx+m2A7YnOzxibyIY3svzxSiF Vw1ttANuGIp4KICRJAy8nCA+UFPpw3S0VcMnwhy0kEiPK+ZnbBWFP5ov+yVluJNUKmEM YlklkHLfowLgBsFf9ww9+ZQglm+N+/oM53ksqHoxib1Qly8p/mU1UIfWafAYMmufrxUH f3ccF3A1Oz+xKXFIMhO+4+Kki4dmdAc9xPxOmYE8Aa9QmuocpQYW0aGLSQFd3Gy8+Q0Z kOdg== 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:message-id:date:subject:to:from :dkim-signature:dkim-signature; bh=PoAS4PxpucO31OOgFI3em4N2YlfpNKnFbKKJ19Gc20U=; b=yUjnm3Xt+NQAEieFQ7j/F8LuqF8GLJuZ+WsDtUQkJxIBVkB9Z0dPuwowji+NQZ4uhr xT1/79VZHhyMkgnOKse93LsXFWbpufJSfxIpY2M03VtWrsWT/LqycV2w3elA/8nCvC+n a0rOlFa7w1FY72oXt2LXQTI8p1+Wk2Vi3IGnjSfnPSLgU0v0f3WSgrZ9Hqb9ONx/2Wu/ dVFMn6S4GoMxdpPUerShfawwVT2tizhtoffBlru/SSkih1SYXXPhdgXM2HmnVuTEHQKH 0ETnmgTTgmdG09227J1neYhqReBGqLls/G4KjSRjLn1JaGn2BMeAsBo2I0Gq/W3Z0xOz WJiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=g5OLyAPw; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="TX/HcySK"; 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 c22si2715391qtc.212.2021.02.25.06.09.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 06:09:30 -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=g5OLyAPw; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="TX/HcySK"; 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: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:In-Reply-To:References:List-Owner; bh=PoAS4PxpucO31OOgFI3em4N2YlfpNKnFbKKJ19Gc20U=; b=g5OLyAPwrSprPydVGL6NN8/QgR Ey0xtG8VBaOVdCkzbZTw9SaSKAxdnZWar/DasUFo7iz/F9NjgMUwPPWWiuZ5haorb8t5tvhCpHeIU fp04XebVoaV5+wfAVCGhRtYouJvcngzvCz4uN5F+CHieHuwLGmwAf6PiaveNHzrD3juqz89OdaY+0 hUJIilOeHTbuDBiFyy3HuWDCUzfZZQEVkeXDb61G45UAjrBIbMIEgvY0A4e/+KIAcgwPT8g1pq0CV /ZyDpLtlRMqOeyY0hgQM5xRSgvagUN/eu02yF/NkIjHz+Da7tb0XmXy3mO+6VBRHEHmlaGZ61Zq0S xiZZBsEQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFHKM-0006x5-95; Thu, 25 Feb 2021 14:09:14 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFHKK-0006wL-4v for linux-mtd@lists.infradead.org; Thu, 25 Feb 2021 14:09:13 +0000 Received: by mail-pj1-x102a.google.com with SMTP id e9so902322pjs.2 for ; Thu, 25 Feb 2021 06:09:11 -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:mime-version :content-transfer-encoding; bh=tKcivPFN2h0/UnBHfn2oaLkXaEoyZMnjPH5QcCiUS+0=; b=TX/HcySKKK8XnsD5gnNA9IaluRvYuYTE4k0lPmWFDtfTgaCCK4AG10jTRYIjsGHFQa Owf16ImiPkPRFHphQkwKE8Y9KSdBpBc24eKjAL1Cdu8YPaCjplmm5LkytDiRinEco0X9 1qQ3wLJ1fHRQ9Q5UlooG9LMWRxIpGSxJRlsVqaNurJQ7PwjUk3ny3vNEKvoQEkUG5Gj9 PTxVT+dKjNPOKBMwcg3nLO4HTlor3vuWcZrtdJJopym10kPSwuyXW7fAbVZiSSen5xux PxYW1GMHkqCnVozClhhbyF4p0awjdendxJveY0hCf5P2fyP8nPbJRYoNdJbX7JrUsF1n 7QZA== 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:mime-version :content-transfer-encoding; bh=tKcivPFN2h0/UnBHfn2oaLkXaEoyZMnjPH5QcCiUS+0=; b=N2IhwmropoZw+LRshzYOFkWL/AcjYVobUYMVcKDwXhV1xuOb+9fH4usJDfZlNdn6Is FmI4dKs8qhjQ+HrU4vlyXAr2E59Ek5OO2zGJcGjz77p1z5/1oo3MHC+3opDrsa22fr02 7RhWPMtcXoPqtKQLIGkX4XgkgMxQvByjD2TOaiMJ89qkcf8f9PnHnTQqZ+yFqLiZTXVJ koKCITOWkuyMIgz0K5iSGb6uW4t1G9cLLCmGSOXNf8c70ZGuYkdqqsC4GhdKCXp4GSBE 4QlKEc4SWusT7ygIuEdozRt1gSJ9kyCyAvgVLRLBC5Ukrj1xG8jnu/SvmZtOZcGQqC4H lp6A== X-Gm-Message-State: AOAM5322zH3e10woXGrc0Gk5hK4H5M6gxveui/LDAmldNehp0v5/DWKS pqiRMxsAnc+Xcw9adci01x2u X-Received: by 2002:a17:90b:92:: with SMTP id bb18mr3415429pjb.40.1614262149867; Thu, 25 Feb 2021 06:09:09 -0800 (PST) Received: from localhost.localdomain ([103.66.79.45]) by smtp.gmail.com with ESMTPSA id f3sm6228918pfe.25.2021.02.25.06.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 06:08:52 -0800 (PST) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Subject: [PATCH v3 0/3] Add support for secure regions in Qcom NANDc driver Date: Thu, 25 Feb 2021 19:38:39 +0530 Message-Id: <20210225140842.66927-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210225_090912_510985_D341843A X-CRM114-Status: GOOD ( 13.07 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [103.66.79.45 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102a listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, Daniele.Palmas@telit.com, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org 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 this series adds a property for declaring such secure regions in DT so that the driver can skip touching them. While at it, the Qcom NANDc DT binding is also converted to YAML format. Thanks, Mani Changes in v3: * Removed the nand prefix from DT property and moved the property parsing logic before nand_scan() in driver. Changes in v2: * Moved the secure-regions property to generic NAND binding as a NAND chip property and renamed it as "nand-secure-regions". Manivannan Sadhasivam (3): dt-bindings: mtd: Convert Qcom NANDc binding to YAML dt-bindings: mtd: Add a property to declare secure regions in NAND chips mtd: rawnand: qcom: Add support for secure regions in NAND memory .../bindings/mtd/nand-controller.yaml | 7 + .../devicetree/bindings/mtd/qcom,nandc.yaml | 196 ++++++++++++++++++ .../devicetree/bindings/mtd/qcom_nandc.txt | 142 ------------- drivers/mtd/nand/raw/qcom_nandc.c | 72 ++++++- 4 files changed, 266 insertions(+), 151 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/qcom,nandc.yaml delete mode 100644 Documentation/devicetree/bindings/mtd/qcom_nandc.txt -- 2.25.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/