dts: flash simulator cleanup

Moved the DT node description for Flash simulator to the board dts file.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
Kamil Piszczek 2019-04-26 08:43:18 +02:00 committed by Kumar Gala
commit 968d3a9ef4
5 changed files with 18 additions and 31 deletions

View file

@ -160,7 +160,6 @@
/dts/bindings/*/st,stm32* @erwango
/dts/bindings/sensor/ams,ens210.yaml @alexanderwachter
/dts/bindings/sensor/ams,iaqcore.yaml @alexanderwachter
/dts/common/sim-flash.dtsi @nvlsianpu
/ext/fs/ @nashif @wentongwu
/ext/hal/cmsis/ @MaureenHelm @galak
/ext/hal/libmetal/ @galak

View file

@ -7,6 +7,6 @@
#define DT_ETH_E1000_IRQ_PRIORITY DT_INTEL_E1000_FEBC0000_IRQ_0_PRIORITY
#define DT_ETH_E1000_IRQ_FLAGS DT_INTEL_E1000_FEBC0000_IRQ_0_SENSE
#define DT_FLASH_DEV_NAME DT_SIM_FLASH_SIM_FLASH_LABEL
#define DT_FLASH_DEV_NAME DT_ZEPHYR_SIM_FLASH_SIM_FLASH_LABEL
/* End of Board Level DTS fixup file */

View file

@ -13,7 +13,6 @@
#endif
#include <ia32.dtsi>
#include "../../../dts/common/sim-flash.dtsi"
/ {
model = "QEMU X86";
@ -46,6 +45,22 @@
status = "ok";
};
};
sim_flash {
compatible = "zephyr,sim-flash";
label = "FLASH_SIMULATOR";
#address-cells = <1>;
#size-cells = <1>;
flash_sim0: flash_sim@0 {
compatible = "soc-nv-flash";
reg = <0x00000000 DT_FLASH_SIZE>;
erase-block-size = <1024>;
write-block-size = <4>;
};
};
};
&uart0 {

View file

@ -11,7 +11,7 @@ properties:
type: string
category: required
description: compatible strings
constraint: "sim-flash"
constraint: "zephyr,sim-flash"
label:
type: string

View file

@ -1,27 +0,0 @@
/*
* Copyright (c) 2018 Nordic Semiconductor ASA.
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Basic Device Tree file for simulated flash entry declaration.
*/
/ {
sim_flash {
compatible = "sim-flash";
label = "FLASH_SIMULATOR";
#address-cells = <1>;
#size-cells = <1>;
flash_sim0: flash_sim@0 {
compatible = "soc-nv-flash";
reg = <0x00000000 DT_FLASH_SIZE>;
erase-block-size = <1024>;
write-block-size = <4>;
};
};
};