79036cb057acce935385c4b2f1c294c195a363ea
[openwrt/staging/ldir.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 --- a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
16 +++ b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
17 @@ -52,6 +52,15 @@ Optional properties:
18 be used according to chip requirement and available
19 OOB size.
20
21 +EBI2 specific properties:
22 +- nand-is-boot-medium: nand contains boot partitions and different ecc configuration
23 + should be used for these partitions.
24 +- qcom,boot_pages_size: should contain the size of the total boot partitions
25 + where the boot layout read/write specific configuration
26 + should be used. The boot layout is considered from the
27 + start of the nand to the value set in this binding.
28 + Only used in combination with 'nand-is-boot-medium'.
29 +
30 Each nandcs device node may optionally contain a 'partitions' sub-node, which
31 further contains sub-nodes describing the flash partition mapping. See
32 partition.txt for more detail.
33 @@ -80,6 +89,9 @@ nand-controller@1ac00000 {
34 nand-ecc-strength = <4>;
35 nand-bus-width = <8>;
36
37 + nand-is-boot-medium;
38 + qcom,boot_pages_size: <0x58a0000>;
39 +
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;