Skip to content

Commit ee59010

Browse files
Mani-Sadhasivammiquelraynal
authored andcommitted
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
1 parent da386f7 commit ee59010

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Documentation/devicetree/bindings/mtd/nand-controller.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ patternProperties:
143143
Ready/Busy pins. Active state refers to the NAND ready state and
144144
should be set to GPIOD_ACTIVE_HIGH unless the signal is inverted.
145145

146+
secure-regions:
147+
$ref: /schemas/types.yaml#/definitions/uint64-matrix
148+
description:
149+
Regions in the NAND chip which are protected using a secure element
150+
like Trustzone. This property contains the start address and size of
151+
the secure regions present.
152+
146153
required:
147154
- reg
148155

0 commit comments

Comments
 (0)