Skip to contentSkip to conversation

ARM: mmp: add device tree support on ttc dkb board

PATCH New Haojian Zhuang 1 participant 1 message May 23, 2011 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 2011052302

#1 lore raw

PATCH 1/1 ARM: mmp: add device tree support on ttc dkb board

From: Haojian Zhuang <[email protected]>

The board support of ttc dkb is minimal to system boot.

---
 arch/arm/boot/dts/ttc-dkb.dts   |   12 ++++++++++++
 arch/arm/mach-mmp/Makefile.boot |    2 ++
 arch/arm/mach-mmp/ttc_dkb.c     |    6 ++++++
 3 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/ttc-dkb.dts
arch/arm/boot/dts/ttc-dkb.dts new file +12 -0
new file mode 100644
index 0000000..f41d666
@@ -0,0 +1,12 @@
+/dts-v1/;
+
+/include/ "skeleton.dtsi"
+
+/ {
+	model = "Marvell TTC DKB";
+	compatible = "mrvl,ttc-dkb", "mrvl,pxa910-dkb";
+
+	memory {
+		reg = <0x00000000 0x10000000>;
+	};
+};
arch/arm/mach-mmp/Makefile.boot +2 -0
index 574a4aa..d6fe1fc 100644
@@ -1 +1,3 @@
    zreladdr-y	:= 0x00008000
+
+dtb-$(CONFIG_MACH_TTC_DKB)	+= mmp-dkb.dtb
arch/arm/mach-mmp/ttc_dkb.c +6 -0
index e411039..7f7e7fe 100644
@@ -124,10 +124,16 @@ static void __init ttc_dkb_init(void)
 	platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices));
 }
 
+static const char *ttc_dkb_dt_match[] __initdata = {
+	"mrvl,ttc-dkb",
+	NULL,
+};
+
 MACHINE_START(TTC_DKB, "PXA910-based TTC_DKB Development Platform")
 	.map_io		= mmp_map_io,
 	.nr_irqs	= TTCDKB_NR_IRQS,
 	.init_irq       = pxa910_init_irq,
 	.timer          = &pxa910_timer,
 	.init_machine   = ttc_dkb_init,
+	.dt_compat	= ttc_dkb_dt_match,
 MACHINE_END
Signature · 1 line
1.7.4.1