Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mtd/partitions/linksys,ns-partitions.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Linksys Northstar partitioning
0008 
0009 description: |
0010   Linksys devices based on Broadcom Northstar architecture often use two
0011   firmware partitions. One is used for regular booting, the other is treated as
0012   fallback.
0013 
0014   This binding allows defining all fixed partitions and marking those containing
0015   firmware. System can use that information e.g. for booting or flashing
0016   purposes.
0017 
0018 maintainers:
0019   - Rafał Miłecki <rafal@milecki.pl>
0020 
0021 properties:
0022   compatible:
0023     const: linksys,ns-partitions
0024 
0025   "#address-cells":
0026     enum: [ 1, 2 ]
0027 
0028   "#size-cells":
0029     enum: [ 1, 2 ]
0030 
0031 patternProperties:
0032   "^partition@[0-9a-f]+$":
0033     $ref: "partition.yaml#"
0034     properties:
0035       compatible:
0036         items:
0037           - const: linksys,ns-firmware
0038           - const: brcm,trx
0039     unevaluatedProperties: false
0040 
0041 required:
0042   - "#address-cells"
0043   - "#size-cells"
0044 
0045 additionalProperties: false
0046 
0047 examples:
0048   - |
0049     partitions {
0050         compatible = "linksys,ns-partitions";
0051         #address-cells = <1>;
0052         #size-cells = <1>;
0053 
0054         partition@0 {
0055             label = "boot";
0056             reg = <0x0 0x100000>;
0057             read-only;
0058         };
0059 
0060         partition@100000 {
0061             label = "nvram";
0062             reg = <0x100000 0x100000>;
0063         };
0064 
0065         partition@200000 {
0066             compatible = "linksys,ns-firmware", "brcm,trx";
0067             reg = <0x200000 0xf00000>;
0068         };
0069 
0070         partition@1100000 {
0071             compatible = "linksys,ns-firmware", "brcm,trx";
0072             reg = <0x1100000 0xf00000>;
0073         };
0074     };