From patchwork Tue Mar 29 12:06:26 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: 820 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:46:09 -0000 Delivered-To: patches@linaro.org Received: by 10.42.161.68 with SMTP id s4cs181966icx; Tue, 29 Mar 2011 05:05:55 -0700 (PDT) Received: by 10.151.61.12 with SMTP id o12mr22531ybk.130.1301400354336; Tue, 29 Mar 2011 05:05:54 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mx.google.com with ESMTP id u1si10181228ybi.101.2011.03.29.05.05.53; Tue, 29 Mar 2011 05:05:54 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epmmp2 (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LIT003T0IXRVK00@mailout1.samsung.com>; Tue, 29 Mar 2011 21:05:51 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LIT00GPCIXOFF@mmp2.samsung.com>; Tue, 29 Mar 2011 21:05:52 +0900 (KST) Date: Tue, 29 Mar 2011 17:36:26 +0530 From: Thomas Abraham Subject: [PATCH] arm/dt: Add basic device tree support for smdkv310 board To: grant.likely@linaro.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org Message-id: <1301400386-17763-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 Content-transfer-encoding: 7BIT Enable basic device tree support for Exynos4 smdkv310 board. Signed-off-by: Thomas Abraham --- .../devicetree/bindings/arm/samsung/smdkv310.txt | 14 +++++++++ arch/arm/boot/dts/exynos4-smdkv310.dts | 31 ++++++++++++++++++++ arch/arm/mach-exynos4/mach-smdkv310.c | 6 ++++ 3 files changed, 51 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/samsung/smdkv310.txt create mode 100644 arch/arm/boot/dts/exynos4-smdkv310.dts diff --git a/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt b/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt new file mode 100644 index 0000000..ee9a220 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/samsung/smdkv310.txt @@ -0,0 +1,14 @@ +* Samsung's Exynos4 S5PV310 SoC based SMDKV310 eval board * + +SMDKV310 eval board is based on S5PV310 SoC which belongs to Samsung's Exynos4 +family of application processors. + +* Root node + + The root node describes the smdkv310 eval board. + + Required Properties: + + - compatible : It should be one or more of the following. + (a) "samsung,smdkv310" - for Samsung's SMDKV310 eval board. + (b) "samsung,s5pv310" - for boards based on S5PV310 SoC. diff --git a/arch/arm/boot/dts/exynos4-smdkv310.dts b/arch/arm/boot/dts/exynos4-smdkv310.dts new file mode 100644 index 0000000..9f27664 --- /dev/null +++ b/arch/arm/boot/dts/exynos4-smdkv310.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/ { + model = "Samsung Exynos4 SMDKV310 eval board"; + compatible = "samsung,smdkv310","samsung,s5pv310"; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0{ + compatible = "arm,cortex-a9"; + reg = <0x0>; + }; + + cpu@1 { + compatible = "arm,cortex-a9"; + reg = <0x1>; + }; + }; + + memory { + device_type = "memory"; + reg = <0x40000000 0x08000000>; + }; + + chosen { + }; +}; diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c b/arch/arm/mach-exynos4/mach-smdkv310.c index 1526764..08bcc55 100644 --- a/arch/arm/mach-exynos4/mach-smdkv310.c +++ b/arch/arm/mach-exynos4/mach-smdkv310.c @@ -237,6 +237,11 @@ static void __init smdkv310_machine_init(void) platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); } +static char const *smdkv310_dt_compat[] __initdata = { + "samsung,smdkv310", + NULL +}; + MACHINE_START(SMDKV310, "SMDKV310") /* Maintainer: Kukjin Kim */ /* Maintainer: Changhwan Youn */ @@ -245,4 +250,5 @@ MACHINE_START(SMDKV310, "SMDKV310") .map_io = smdkv310_map_io, .init_machine = smdkv310_machine_init, .timer = &exynos4_timer, + .dt_compat = smdkv310_dt_compat, MACHINE_END