From patchwork Mon Aug 1 16:20:37 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: 3209 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 C26A023F51 for ; Mon, 1 Aug 2011 16:20:58 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7ABD1A186D5 for ; Mon, 1 Aug 2011 16:20:58 +0000 (UTC) Received: by qyk30 with SMTP id 30so4114723qyk.11 for ; Mon, 01 Aug 2011 09:20:58 -0700 (PDT) Received: by 10.229.44.195 with SMTP id b3mr997174qcf.7.1312215657719; Mon, 01 Aug 2011 09:20:57 -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 9cs97976qcy; Mon, 1 Aug 2011 09:20:51 -0700 (PDT) Received: by 10.216.164.200 with SMTP id c50mr838622wel.107.1312215650420; Mon, 01 Aug 2011 09:20:50 -0700 (PDT) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id x38si9590437weq.44.2011.08.01.09.20.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Aug 2011 09:20:50 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: by mail-ww0-f50.google.com with SMTP id 6so5659913wwe.31 for ; Mon, 01 Aug 2011 09:20:50 -0700 (PDT) Received: by 10.216.220.212 with SMTP id o62mr875540wep.75.1312215649933; Mon, 01 Aug 2011 09:20:49 -0700 (PDT) Received: from localhost.localdomain ([109.234.204.184]) by mx.google.com with ESMTPS id z83sm3439168weq.44.2011.08.01.09.20.48 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Aug 2011 09:20:49 -0700 (PDT) From: Thomas Abraham To: devicetree-discuss@lists.ozlabs.org Cc: grant.likely@secretlab.ca, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH 2/2] arm: dt: Add device tree source file for Exynos4 and let boards include it Date: Mon, 1 Aug 2011 17:20:37 +0100 Message-Id: <1312215637-716-3-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312215637-716-1-git-send-email-thomas.abraham@linaro.org> References: <1312215637-716-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 almost empty 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 --- Documentation/devicetree/bindings/arm/samsung.txt | 8 ++++ arch/arm/boot/dts/exynos4-smdkv310.dts | 31 ++++++++++++++ arch/arm/boot/dts/exynos4.dtsi | 44 +++++++++++++++++++++ 3 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/samsung.txt create mode 100644 arch/arm/boot/dts/exynos4-smdkv310.dts create mode 100644 arch/arm/boot/dts/exynos4.dtsi diff --git a/Documentation/devicetree/bindings/arm/samsung.txt b/Documentation/devicetree/bindings/arm/samsung.txt new file mode 100644 index 0000000..ce4a1aa --- /dev/null +++ b/Documentation/devicetree/bindings/arm/samsung.txt @@ -0,0 +1,8 @@ +Samsung Exynos4 based SMDKV310 eval board + + SMDKV310 eval board is based on Samsung's Exynos4 processor architecture. + +Required root node properties: + - compatible = "samsung,smdkv310","samsung,exynos4" + (a) "samsung,smdkv310" - for Samsung's SMDKV310 eval board. + (b) "samsung,exynos4" - for boards based on Exynos4 architecture. diff --git a/arch/arm/boot/dts/exynos4-smdkv310.dts b/arch/arm/boot/dts/exynos4-smdkv310.dts new file mode 100644 index 0000000..526f137 --- /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/mmcblk0p1 rootfstype=ext2 rootwait console=ttySAC1,115200"; + }; +}; diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi new file mode 100644 index 0000000..232b911 --- /dev/null +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -0,0 +1,44 @@ +/* + * 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>; + }; + }; +};