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

DTS: flash alignment description #860

Merged
merged 1 commit into from
Sep 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions dts/arm/nordic/nrf52840.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@
};
};

flash0: flash@0 {
reg = <0x00000000 DT_FLASH_SIZE>;
flash-controller@4001E000 {
compatible = "nrf,nrf52-flash-controller";
reg = <0x4001E000 0x550>;

#address-cells = <1>;
#size-cells = <1>;

flash0: flash@0 {
compatible = "soc-nv-flash";
reg = <0x00000000 DT_FLASH_SIZE>;
write-block-size = <4>;
};
};

sram0: memory@20000000 {
Expand Down
26 changes: 26 additions & 0 deletions dts/common/yaml/soc-nv-flash.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Flash base node description
id: soc-nv-flash
version: 0.1

description: >
This binding gives a base FLASH description

properties:
- compatible:
type: string
category: optional
description: compatible strings
constraint: "soc-nv-flash"

- write-block-size:
type: int
description: address alignment required by flash write operations
generation: define
category: optional
label: alignment

base_label: FLASH
use-property-label: yes

...