]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: mtd: Add a property to declare secure regions in NAND chips
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 2 Apr 2021 15:01:26 +0000 (20:31 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 7 Apr 2021 08:06:22 +0000 (10:06 +0200)
commite65fad41d687383e2093de5fccfaae7c004af39e
tree64b03a0daa000b3fd5f728caad4b8f92d98e3a3d
parent04db12d3e94ead10e0bb5078babb74348c1a5f64
dt-bindings: mtd: Add a property to declare secure regions in NAND chips

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
drivers can skip touching them.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210402150128.29128-3-manivannan.sadhasivam@linaro.org
Documentation/devicetree/bindings/mtd/nand-controller.yaml