2bef1daefb598dca2c8a460ad6b8e81dafb917b8
[openwrt/staging/zorun.git] / target / linux / ipq806x / patches-5.10 / 099-2-Documentation-devicetree-mtd-qcom_nandc-document-qco.patch
1 From 6fb003a7a117f97a35b078ba726c84adeae29c4c Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Wed, 10 Feb 2021 10:54:19 +0100
4 Subject: [PATCH 2/2] Documentation: devicetree: mtd: qcom_nandc: document
5 qcom,boot_layout_size binding
6
7 Document new qcom,boot_layout_size binding used to apply special
8 read/write confituation to boots partitions.
9
10 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
11 ---
12 Documentation/devicetree/bindings/mtd/qcom_nandc.txt | 11 +++++++++++
13 1 file changed, 11 insertions(+)
14
15 diff --git a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
16 index 5647913d8837..3cf1dd5ebad2 100644
17 --- a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
18 +++ b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
19 @@ -56,6 +56,15 @@ Optional properties:
20 be used according to chip requirement and available
21 OOB size.
22
23 +EBI2 specific properties:
24 +- nand-is-boot-medium: nand contains boot partitions and different ecc configuration
25 + should be used for these partitions.
26 +- qcom,boot_pages_size: should contain the size of the total boot partitions
27 + where the boot layout read/write specific configuration
28 + should be used. The boot layout is considered from the
29 + start of the nand to the value set in this binding.
30 + Only used in combination with 'nand-is-boot-medium'.
31 +
32 Each nandcs device node may optionally contain a 'partitions' sub-node, which
33 further contains sub-nodes describing the flash partition mapping. See
34 partition.txt for more detail.
35 @@ -84,6 +93,9 @@ nand-controller@1ac00000 {
36 nand-ecc-strength = <4>;
37 nand-bus-width = <8>;
38
39 + nand-is-boot-medium;
40 + qcom,boot_pages_size: <0x58a0000>;
41 +
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 --
46 2.29.2
47