Skip to content
Permalink
Browse files

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>
  • Loading branch information...
kapi-no authored and galak committed Apr 26, 2019
1 parent e560999 commit 968d3a9ef486feacb788945e193028a54034bf34
@@ -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
@@ -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 */
@@ -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 {
@@ -11,7 +11,7 @@ properties:
type: string
category: required
description: compatible strings
constraint: "sim-flash"
constraint: "zephyr,sim-flash"

label:
type: string

This file was deleted.

0 comments on commit 968d3a9

Please sign in to comment.
You can’t perform that action at this time.