Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash area functions for listing active and specified type flash memory areas/partitions #33144

Closed
15 changes: 15 additions & 0 deletions dts/bindings/mtd/zephyr,application-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

description: |
Partition or other storage area for application binary image.

compatible: "zephyr,application-image"

include: base.yaml

properties:
label:
required: true
reg:
required: true
15 changes: 15 additions & 0 deletions dts/bindings/mtd/zephyr,mcuboot-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

description: |
Partition or other storage area for mcuboot bootloader image.

compatible: "zephyr,mcuboot-image"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason not to use generic identifiers, e.g. just bl-image/bl-scratch, for bootloader areas?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is zephyr/mcuboot specific. Probably other bootloader could be used, or be chained to/in front of the mcuboot, and that booloader would have different compatibility to recognize its partitions.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not explain why generic partition identifiers cannot be used. MCUboot is also only a Zephyr application.


include: base.yaml

properties:
label:
required: true
reg:
required: true
15 changes: 15 additions & 0 deletions dts/bindings/mtd/zephyr,mcuboot-scratch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

description: |
Partition or other storage area for mcuboot bootloader scratch.

compatible: "zephyr,mcuboot-scratch"

include: base.yaml

properties:
label:
required: true
reg:
required: true