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:
Maureen Helm 2018-01-31 13:55:35 -06:00 committed by Kumar Gala
commit f633c0f997
6 changed files with 12 additions and 1 deletions

View file

@ -78,7 +78,7 @@
compatible = "soc-nv-flash";
label = "MCUX_FLASH";
reg = <0 0x100000>;
erase-block-size = <4096>;
write-block-size = <8>;
};
};

View file

@ -34,6 +34,7 @@
compatible = "soc-nv-flash";
label = "MCUX_FLASH";
reg = <0 0x20000>;
erase-block-size = <1024>;
write-block-size = <4>;
};
};

View file

@ -70,6 +70,7 @@
compatible = "soc-nv-flash";
label = "MCUX_FLASH";
reg = <0 0x80000>;
erase-block-size = <2048>;
write-block-size = <4>;
};
};

View file

@ -62,6 +62,7 @@
compatible = "soc-nv-flash";
label = "MCUX_FLASH";
reg = <0 0x80000>;
erase-block-size = <1024>;
write-block-size = <4>;
};
};

View file

@ -62,6 +62,7 @@
compatible = "soc-nv-flash";
label = "MCUX_FLASH";
reg = <0 0x80000>;
erase-block-size = <2048>;
write-block-size = <4>;
};
};

View file

@ -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