Skip to contentSkip to conversation

arm/dt: Add ST-Ericsson u8500 device tree support

PATCH New Grant Likely 1 participant 1 message May 19, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/dt: Add ST-Ericsson u8500 device tree support

Adds support for passing a device tree for booting the u8500 board.

---

Completely untested. Not even compiled. Per, this should be all you need to change in the kernel to get DT support working on the u8500.

g.

 arch/arm/boot/dts/u8500-hrefv60.dts |    7 +++++++
 arch/arm/mach-ux500/Makefile.boot   |    1 +
 arch/arm/mach-ux500/board-mop500.c  |    6 ++++++
 3 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/u8500-hrefv60.dts
arch/arm/boot/dts/u8500-hrefv60.dts new file +7 -0
new file mode 100644
index 0000000..3e12e8b
@@ -0,0 +1,7 @@
+/dts-v1/;
+/include/ "skeleton.dtsi"
+
+/ {
+	model = "ST-Ericsson U8500 HREFv60+ Reference Platform";
+	compatible = "stericsson,hrefv60plus";
+};
arch/arm/mach-ux500/Makefile.boot +1 -0
index c7e75ac..9c83bfb 100644
@@ -2,3 +2,4 @@
 params_phys-y	:= 0x00000100
 initrd_phys-y	:= 0x00800000
 
+dtb-$(CONFIG_MACH_U8500) += u8500-hrefv60.dtb
arch/arm/mach-ux500/board-mop500.c +6 -0
index cc64bf4..59b7ddb 100644
@@ -468,10 +468,16 @@ MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
 	.init_machine	= mop500_init_machine,
 MACHINE_END
 
+static const char *u8500_dt_match[] __initdata = {
+	"stericsson,hrefv60plus",
+	NULL
+};
+
 MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+")
 	.boot_params	= 0x100,
 	.map_io		= u8500_map_io,
 	.init_irq	= ux500_init_irq,
 	.timer		= &ux500_timer,
 	.init_machine	= mop500_init_machine,
+	.dt_match	= u8500_dt_match,
 MACHINE_END