From patchwork Tue Aug 2 23:08:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 3232 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E7D1E23F46 for ; Tue, 2 Aug 2011 23:08:54 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id AFF90A1815B for ; Tue, 2 Aug 2011 23:08:54 +0000 (UTC) Received: by mail-qw0-f52.google.com with SMTP id 8so301180qwb.11 for ; Tue, 02 Aug 2011 16:08:54 -0700 (PDT) Received: by 10.229.231.66 with SMTP id jp2mr1093196qcb.83.1312326534451; Tue, 02 Aug 2011 16:08:54 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.6.73 with SMTP id 9cs141330qcy; Tue, 2 Aug 2011 16:08:54 -0700 (PDT) Received: by 10.216.197.86 with SMTP id s64mr26410wen.102.1312326533547; Tue, 02 Aug 2011 16:08:53 -0700 (PDT) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx.google.com with ESMTPS id x69si426699weq.33.2011.08.02.16.08.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Aug 2011 16:08:53 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=74.125.82.42; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: by wwg11 with SMTP id 11so2957229wwg.1 for ; Tue, 02 Aug 2011 16:08:53 -0700 (PDT) Received: by 10.216.229.165 with SMTP id h37mr32648weq.69.1312326533049; Tue, 02 Aug 2011 16:08:53 -0700 (PDT) Received: from localhost.localdomain ([109.234.204.184]) by mx.google.com with ESMTPS id b13sm192251wbh.24.2011.08.02.16.08.51 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Aug 2011 16:08:52 -0700 (PDT) From: Thomas Abraham To: devicetree-discuss@lists.ozlabs.org Cc: grant.likely@secretlab.ca, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH 4/4] arm: dts: Add device tree source file for Exynos4 platforms Date: Wed, 3 Aug 2011 00:08:29 +0100 Message-Id: <1312326509-2723-5-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312326509-2723-1-git-send-email-thomas.abraham@linaro.org> References: <1312326509-2723-1-git-send-email-thomas.abraham@linaro.org> Create a new device tree source file for Samsung's Exynos4 architecture and let Exynos4 based boards include it. We start with a uart device nodes in the device tree source file and incrementally add nodes as we improve the device tree coverage for Exynos4 architecture and related boards. Signed-off-by: Thomas Abraham --- arch/arm/boot/dts/exynos4-smdkv310.dts | 31 ++++++++++++++ arch/arm/boot/dts/exynos4.dtsi | 72 ++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/exynos4-smdkv310.dts create mode 100644 arch/arm/boot/dts/exynos4.dtsi diff --git a/arch/arm/boot/dts/exynos4-smdkv310.dts b/arch/arm/boot/dts/exynos4-smdkv310.dts new file mode 100644 index 0000000..34a00b5 --- /dev/null +++ b/arch/arm/boot/dts/exynos4-smdkv310.dts @@ -0,0 +1,31 @@ +/* + * Samsung's Exynos4 based SMDKV310 board device tree source. + * + * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * Copyright (c) 2010-2011 Linaro Ltd. + * www.linaro.org + * + * Device tree source file for Samsung's SMDKV310 board which is based on + * Samsung's Exynos4 architecture. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/dts-v1/; +/include/ "exynos4.dtsi" + +/ { + model = "Samsung Exynos4 smdkv310 eval board"; + compatible = "samsung,smdkv310", "samsung,exynos4"; + + memory { + reg = <0x40000000 0x80000000>; + }; + + chosen { + bootargs ="root=/dev/ram0 rw ramdisk=8192 console=ttySAC1,115200 init=/linuxrc"; + }; +}; diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi new file mode 100644 index 0000000..babb24d --- /dev/null +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -0,0 +1,72 @@ +/* + * Samsung's Exynos4 Architecture device tree source. + * + * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * Copyright (c) 2010-2011 Linaro Ltd. + * www.linaro.org + * + * This file acts as the core device tree for Samsung's Exynos4 based board + * device tree files. The Exynos4 architecture related device tree nodes + * will be listed in this file and Exynos4 based board device tree files + * should include this file. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/include/ "skeleton.dtsi" + +/ { + compatible = "samsung,exynos4"; + + soc { + #address-cells = <1>; + #size-cells = <1>; + compatible = "simple-bus"; + interrupt-parent = <&intc>; + ranges; + + intc:interrupt-controller@10490000 { + compatible = "samsung,exynos4-gic","arm,cortex-a9-gic"; + #interrupt-cells = <1>; + interrupt-controller; + reg = <0x10490000 0x1000>, <0x10480000 0x100>; + }; + + watchdog@10060000 { + compatible = "samsung,s3c2410-wdt"; + reg = <0x10060000 0x100>; + interrupts = <107>; + }; + + serial@13800000 { + compatible = "samsung,s5pv310-uart"; + reg = <0x13800000 0x100>; + interrupts = <16 18 17>; + samsung,uart-fifosize = <256>; + }; + + serial@13810000 { + compatible = "samsung,s5pv310-uart"; + reg = <0x13810000 0x100>; + interrupts = <20 22 21>; + samsung,uart-fifosize = <64>; + }; + + serial@13820000 { + compatible = "samsung,s5pv310-uart"; + reg = <0x13820000 0x100>; + interrupts = <24 26 25>; + samsung,uart-fifosize = <16>; + }; + + serial@13830000 { + compatible = "samsung,s5pv310-uart"; + reg = <0x13830000 0x100>; + interrupts = <28 30 29>; + samsung,uart-fifosize = <16>; + }; + }; +};