1 From ac42c46f983e4a9003a7bb91ad44a23ab7b8f534 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Fri, 12 Mar 2021 07:28:21 +0100
4 Subject: [PATCH] dt-bindings: mtd: Document use of nvmem-cells compatible
6 Document nvmem-cells compatible used to treat mtd partitions as a
9 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
10 Reviewed-by: Rob Herring <robh@kernel.org>
11 Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
12 Link: https://lore.kernel.org/linux-mtd/20210312062830.20548-3-ansuelsmth@gmail.com
14 .../bindings/mtd/partitions/nvmem-cells.yaml | 99 +++++++++++++++++++
15 1 file changed, 99 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml
19 +++ b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml
21 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
24 +$id: http://devicetree.org/schemas/mtd/partitions/nvmem-cells.yaml#
25 +$schema: http://devicetree.org/meta-schemas/core.yaml#
30 + Any partition containing the compatible "nvmem-cells" will register as a
32 + Each direct subnodes represents a nvmem cell following the nvmem binding.
33 + Nvmem binding to declare nvmem-cells can be found in:
34 + Documentation/devicetree/bindings/nvmem/nvmem.yaml
37 + - Ansuel Smith <ansuelsmth@gmail.com>
40 + - $ref: /schemas/nvmem/nvmem.yaml#
49 +additionalProperties: true
54 + compatible = "fixed-partitions";
55 + #address-cells = <1>;
62 + compatible = "nvmem-cells";
63 + reg = <0x1200000 0x0140000>;
66 + #address-cells = <1>;
69 + macaddr_gmac1: macaddr_gmac1@0 {
73 + macaddr_gmac2: macaddr_gmac2@6 {
77 + pre_cal_24g: pre_cal_24g@1000 {
78 + reg = <0x1000 0x2f20>;
81 + pre_cal_5g: pre_cal_5g@5000{
82 + reg = <0x5000 0x2f20>;
87 + compatible = "fixed-partitions";
88 + #address-cells = <1>;
92 + label = "bootloader";
93 + reg = <0x000000 0x100000>;
98 + compatible = "brcm,trx";
100 + reg = <0x100000 0xe00000>;
103 + calibration@f00000 {
104 + compatible = "nvmem-cells";
105 + label = "calibration";
106 + reg = <0xf00000 0x100000>;
107 + ranges = <0 0xf00000 0x100000>;
108 + #address-cells = <1>;
112 + reg = <0x000000 0x080000>;
116 + reg = <0x080000 0x080000>;