drivers: flash: NXP KL2X/KW4xZ: Add device tree support

Add device tree support for the "nxp,kinetis-ftfa" flash controller used
on the NXP KL2X and KW4xZ SoCs.

Fixes: #5788

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-01-29 13:24:08 -06:00 committed by Maureen Helm
commit b8173d960e
6 changed files with 74 additions and 15 deletions

View file

@ -21,11 +21,21 @@
};
soc {
flash0: flash@0 {
compatible = "soc-nv-flash";
label = "MCUX_FLASH";
reg = <0 0x20000>;
write-block-size = <4>;
flash-controller@40020000 {
compatible = "nxp,kinetis-ftfa";
label = "FLASH_CTRL";
reg = <0x40020000 0x14>;
interrupts = <5 0>;
#address-cells = <1>;
#size-cells = <1>;
flash0: flash@0 {
compatible = "soc-nv-flash";
label = "MCUX_FLASH";
reg = <0 0x20000>;
write-block-size = <4>;
};
};
i2c0: i2c@40066000 {