| 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 <[email protected]> |
| 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#/$defs/partition-node |
| 34 |
|
| 35 |
required: |
| 36 |
- "#address-cells" |
| 37 |
- "#size-cells" |
| 38 |
|
| 39 |
additionalProperties: false |
| 40 |
|
| 41 |
examples: |
| 42 |
- | |
| 43 |
partitions { |
| 44 |
compatible = "linksys,ns-partitions"; |
| 45 |
#address-cells = <1>; |
| 46 |
#size-cells = <1>; |
| 47 |
|
| 48 |
partition@0 { |
| 49 |
label = "boot"; |
| 50 |
reg = <0x0 0x100000>; |
| 51 |
read-only; |
| 52 |
}; |
| 53 |
|
| 54 |
partition@100000 { |
| 55 |
label = "nvram"; |
| 56 |
reg = <0x100000 0x100000>; |
| 57 |
}; |
| 58 |
|
| 59 |
partition@200000 { |
| 60 |
compatible = "linksys,ns-firmware", "brcm,trx"; |
| 61 |
reg = <0x200000 0xf00000>; |
| 62 |
}; |
| 63 |
|
| 64 |
partition@1100000 { |
| 65 |
compatible = "linksys,ns-firmware", "brcm,trx"; |
| 66 |
reg = <0x1100000 0xf00000>; |
| 67 |
}; |
| 68 |
}; |