Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 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/brcm,bcm4908-partitions.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Broadcom BCM4908 partitioning |
| 8 | |
| 9 | description: | |
| 10 | Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used |
| 11 | for regular booting, the other is treated as fallback. |
| 12 | |
| 13 | This binding allows defining all fixed partitions and marking those containing |
| 14 | firmware. System can use that information e.g. for booting or flashing |
| 15 | purposes. |
| 16 | |
| 17 | maintainers: |
| 18 | - Rafał Miłecki <rafal@milecki.pl> |
| 19 | |
| 20 | select: false |
| 21 | |
| 22 | properties: |
| 23 | compatible: |
| 24 | const: brcm,bcm4908-partitions |
| 25 | |
| 26 | "#address-cells": |
| 27 | enum: [ 1, 2 ] |
| 28 | |
| 29 | "#size-cells": |
| 30 | enum: [ 1, 2 ] |
| 31 | |
| 32 | patternProperties: |
| 33 | "^partition@[0-9a-f]+$": |
| 34 | $ref: partition.yaml# |
| 35 | properties: |
| 36 | compatible: |
| 37 | const: brcm,bcm4908-firmware |
| 38 | unevaluatedProperties: false |
| 39 | |
| 40 | required: |
| 41 | - "#address-cells" |
| 42 | - "#size-cells" |
| 43 | |
| 44 | additionalProperties: false |
| 45 | |
| 46 | examples: |
| 47 | - | |
| 48 | partitions { |
| 49 | compatible = "brcm,bcm4908-partitions"; |
| 50 | #address-cells = <1>; |
| 51 | #size-cells = <1>; |
| 52 | |
| 53 | partition@0 { |
| 54 | label = "cferom"; |
| 55 | reg = <0x0 0x100000>; |
| 56 | }; |
| 57 | |
| 58 | partition@100000 { |
| 59 | compatible = "brcm,bcm4908-firmware"; |
| 60 | reg = <0x100000 0xf00000>; |
| 61 | }; |
| 62 | |
| 63 | partition@1000000 { |
| 64 | compatible = "brcm,bcm4908-firmware"; |
| 65 | reg = <0x1000000 0xf00000>; |
| 66 | }; |
| 67 | |
| 68 | partition@1f00000 { |
| 69 | label = "calibration"; |
| 70 | reg = <0x1f00000 0x100000>; |
| 71 | }; |
| 72 | }; |