diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-03-03 13:14:48 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-06 07:42:21 +0100 |
commit | 6779d91fdf6aefe4eab3f8e56b1ec4aceff436c0 (patch) | |
tree | 07a44ddc345017880c7baa67be5a75bf0c9af499 /arch/sandbox | |
parent | 09d343e941e039afa19b5ead777780e1f799cab4 (diff) | |
download | barebox-6779d91fdf6aefe4eab3f8e56b1ec4aceff436c0.tar.gz barebox-6779d91fdf6aefe4eab3f8e56b1ec4aceff436c0.tar.xz |
sandbox: add sample dts
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/Makefile | 2 | ||||
-rw-r--r-- | arch/sandbox/dts/.gitignore | 1 | ||||
-rw-r--r-- | arch/sandbox/dts/Makefile | 11 | ||||
-rw-r--r-- | arch/sandbox/dts/sandbox.dts | 7 | ||||
-rw-r--r-- | arch/sandbox/dts/skeleton.dtsi | 13 |
5 files changed, 34 insertions, 0 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index e3fb039554..a539a901fc 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -50,4 +50,6 @@ cmd_barebox__ = $(CC) -o $@ -Wl,-T,$(barebox-lds) \ common-y += $(BOARD) arch/sandbox/os/ +common-$(CONFIG_OFTREE) += arch/sandbox/dts/ + CLEAN_FILES += $(BOARD)/barebox.lds diff --git a/arch/sandbox/dts/.gitignore b/arch/sandbox/dts/.gitignore new file mode 100644 index 0000000000..077903c50a --- /dev/null +++ b/arch/sandbox/dts/.gitignore @@ -0,0 +1 @@ +*dtb* diff --git a/arch/sandbox/dts/Makefile b/arch/sandbox/dts/Makefile new file mode 100644 index 0000000000..6f68388578 --- /dev/null +++ b/arch/sandbox/dts/Makefile @@ -0,0 +1,11 @@ +ifeq ($(CONFIG_OFTREE),y) +dtb-y += \ + sandbox.dtb +endif + +# just to build a built-in.o. Otherwise compilation fails when no devicetree is +# created. +obj- += dummy.o + +always := $(dtb-y) +clean-files := *.dtb *.dtb.S .*.dtc .*.pre .*.dts diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts new file mode 100644 index 0000000000..2595aa13fa --- /dev/null +++ b/arch/sandbox/dts/sandbox.dts @@ -0,0 +1,7 @@ +/dts-v1/; + +#include "skeleton.dtsi" + +/ { + +}; diff --git a/arch/sandbox/dts/skeleton.dtsi b/arch/sandbox/dts/skeleton.dtsi new file mode 100644 index 0000000000..38ead821bb --- /dev/null +++ b/arch/sandbox/dts/skeleton.dtsi @@ -0,0 +1,13 @@ +/* + * Skeleton device tree; the bare minimum needed to boot; just include and + * add a compatible value. The bootloader will typically populate the memory + * node. + */ + +/ { + #address-cells = <2>; + #size-cells = <1>; + chosen { }; + aliases { }; + memory { device_type = "memory"; reg = <0 0 0>; }; +}; |