| 
     1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/mtd/partitions/linksys,ns-partitions.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Linksys Northstar partitioning
    8 
    9 description: |
   10   Linksys devices based on Broadcom Northstar architecture often use two
   11   firmware partitions. One is used for regular booting, the other is treated as
   12   fallback.
   13 
   14   This binding allows defining all fixed partitions and marking those containing
   15   firmware. System can use that information e.g. for booting or flashing
   16   purposes.
   17 
   18 maintainers:
   19   - Rafał Miłecki <rafal@milecki.pl>
   20 
   21 properties:
   22   compatible:
   23     const: linksys,ns-partitions
   24 
   25   "#address-cells":
   26     enum: [ 1, 2 ]
   27 
   28   "#size-cells":
   29     enum: [ 1, 2 ]
   30 
   31 patternProperties:
   32   "^partition@[0-9a-f]+$":
   33     $ref: "partition.yaml#"
   34     properties:
   35       compatible:
   36         items:
   37           - const: linksys,ns-firmware
   38           - const: brcm,trx
   39     unevaluatedProperties: false
   40 
   41 required:
   42   - "#address-cells"
   43   - "#size-cells"
   44 
   45 additionalProperties: false
   46 
   47 examples:
   48   - |
   49     partitions {
   50         compatible = "linksys,ns-partitions";
   51         #address-cells = <1>;
   52         #size-cells = <1>;
   53 
   54         partition@0 {
   55             label = "boot";
   56             reg = <0x0 0x100000>;
   57             read-only;
   58         };
   59 
   60         partition@100000 {
   61             label = "nvram";
   62             reg = <0x100000 0x100000>;
   63         };
   64 
   65         partition@200000 {
   66             compatible = "linksys,ns-firmware", "brcm,trx";
   67             reg = <0x200000 0xf00000>;
   68         };
   69 
   70         partition@1100000 {
   71             compatible = "linksys,ns-firmware", "brcm,trx";
   72             reg = <0x1100000 0xf00000>;
   73         };
   74     };
Cache object: 93d5f2e002a6a23fef779ca41698dce8 
 
 |