1 From 377aa0135dc8489312edd3184d143ce3a89ff7ee 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>
12 .../bindings/mtd/partitions/nvmem-cells.yaml | 99 +++++++++++++++++++
13 1 file changed, 99 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml
17 +++ b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml
19 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
22 +$id: http://devicetree.org/schemas/mtd/partitions/nvmem-cells.yaml#
23 +$schema: http://devicetree.org/meta-schemas/core.yaml#
28 + Any partition containing the compatible "nvmem-cells" will register as a
30 + Each direct subnodes represents a nvmem cell following the nvmem binding.
31 + Nvmem binding to declare nvmem-cells can be found in:
32 + Documentation/devicetree/bindings/nvmem/nvmem.yaml
35 + - Ansuel Smith <ansuelsmth@gmail.com>
38 + - $ref: /schemas/nvmem/nvmem.yaml#
47 +additionalProperties: true
52 + compatible = "fixed-partitions";
53 + #address-cells = <1>;
60 + compatible = "nvmem-cells";
61 + reg = <0x1200000 0x0140000>;
64 + #address-cells = <1>;
67 + macaddr_gmac1: macaddr_gmac1@0 {
71 + macaddr_gmac2: macaddr_gmac2@6 {
75 + pre_cal_24g: pre_cal_24g@1000 {
76 + reg = <0x1000 0x2f20>;
79 + pre_cal_5g: pre_cal_5g@5000{
80 + reg = <0x5000 0x2f20>;
85 + compatible = "fixed-partitions";
86 + #address-cells = <1>;
90 + label = "bootloader";
91 + reg = <0x000000 0x100000>;
96 + compatible = "brcm,trx";
98 + reg = <0x100000 0xe00000>;
101 + calibration@f00000 {
102 + compatible = "nvmem-cells";
103 + label = "calibration";
104 + reg = <0xf00000 0x100000>;
105 + ranges = <0 0xf00000 0x100000>;
106 + #address-cells = <1>;
110 + reg = <0x000000 0x080000>;
114 + reg = <0x080000 0x080000>;