* [PATCH] ARM: device-tree: Add basic device tree support for Beagleboad
[not found] ` <1301381447-2829-1-git-send-email-tixy-V7l+QrSAdiO1Qrn1Bg8BZw@public.gmane.org>
@ 2011-03-29 6:50 ` Tixy
0 siblings, 0 replies; 2+ messages in thread
From: Tixy @ 2011-03-29 6:50 UTC (permalink / raw)
To: Grant Likely, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
linaro-dev-cunTk1MwBs8s++Sfvej+rw
From: Jon Medhurst <tixy-V7l+QrSAdiO1Qrn1Bg8BZw@public.gmane.org>
Signed-off-by: Jon Medhurst <tixy-V7l+QrSAdiO1Qrn1Bg8BZw@public.gmane.org>
---
arch/arm/boot/dts/omap3-beagle.dts | 19 +++++++++++++++++++
arch/arm/mach-omap2/board-omap3beagle.c | 6 ++++++
2 files changed, 25 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/boot/dts/omap3-beagle.dts
diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/omap3-beagle.dts
new file mode 100644
index 0000000..2bf5967
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-beagle.dts
@@ -0,0 +1,19 @@
+/dts-v1/;
+
+/ {
+ model = "TI OMAP3 BeagleBoard";
+ compatible = "ti,omap3-beagle";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ aliases {
+ };
+
+ memory {
+ device_type = "memory";
+ reg = <0x80000000 0x10000000>;
+ };
+
+ chosen {
+ };
+};
\ No newline at end of file
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index caf6c8a..09aa467 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -629,6 +629,11 @@ static void __init omap3_beagle_init(void)
beagle_display_init();
}
+static const char *omap3_beagle_dt_match[] __initdata = {
+ "ti,omap3-beagle",
+ NULL
+};
+
MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")
/* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */
.boot_params = 0x80000100,
@@ -637,4 +642,5 @@ MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")
.init_irq = omap3_beagle_init_irq,
.init_machine = omap3_beagle_init,
.timer = &omap_timer,
+ .dt_compat = omap3_beagle_dt_match,
MACHINE_END
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread