dts: bindings: Introduce flash erase-block-size property
Adds a new optional dts property to define the erase block size of a flash device. This will be used by the mcux flash driver to implement the flash page layout function. The value is set for all kinetis devices to match FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
d6b905910b
commit
f633c0f997
6 changed files with 12 additions and 1 deletions
|
@ -78,7 +78,7 @@
|
|||
compatible = "soc-nv-flash";
|
||||
label = "MCUX_FLASH";
|
||||
reg = <0 0x100000>;
|
||||
|
||||
erase-block-size = <4096>;
|
||||
write-block-size = <8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
compatible = "soc-nv-flash";
|
||||
label = "MCUX_FLASH";
|
||||
reg = <0 0x20000>;
|
||||
erase-block-size = <1024>;
|
||||
write-block-size = <4>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
compatible = "soc-nv-flash";
|
||||
label = "MCUX_FLASH";
|
||||
reg = <0 0x80000>;
|
||||
erase-block-size = <2048>;
|
||||
write-block-size = <4>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
compatible = "soc-nv-flash";
|
||||
label = "MCUX_FLASH";
|
||||
reg = <0 0x80000>;
|
||||
erase-block-size = <1024>;
|
||||
write-block-size = <4>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
compatible = "soc-nv-flash";
|
||||
label = "MCUX_FLASH";
|
||||
reg = <0 0x80000>;
|
||||
erase-block-size = <2048>;
|
||||
write-block-size = <4>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -13,6 +13,13 @@ properties:
|
|||
description: compatible strings
|
||||
constraint: "soc-nv-flash"
|
||||
|
||||
erase-block-size:
|
||||
type: int
|
||||
description: address alignment required by flash erase operations
|
||||
generation: define
|
||||
category: optional
|
||||
label: alignment
|
||||
|
||||
write-block-size:
|
||||
type: int
|
||||
description: address alignment required by flash write operations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue