From patchwork Fri Mar 21 13:26:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kukjin Kim X-Patchwork-Id: 26839 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3659D20143 for ; Fri, 21 Mar 2014 13:26:37 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id p10sf5458118pdj.7 for ; Fri, 21 Mar 2014 06:26:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:thread-index:dlp-filter:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding:content-language; bh=pxpRaYA29jvcx3E8ZnN+0VDONFAsH5Sohr9Yh1oNhhE=; b=M9Q35SfbODsADf/QUX6wfmjxseOOMh/ZEHkYtmjnOMrw//1Yp4vym/7VP+hCRPOgOa EVsz3ZdEBJfh+7GT7iN1EPn9KzZfE9ZyNGZumrDVI39+M4SztpEh8hDPwBbtjv6xNZ5z 0MWA0ZrQwO7HjyLaa2I2vvNobC/dYZmx6tQsLnBwSvCG7ijN0lRb3+AloT8WdoaBGrKy ACc9x+KtsxvbQNlsNO0UnnLipnDHZsLQmwyp1Fy8S0ZYZYQkpqI7BemzQhSgSPR04Moj Ygrjs1QwVwM+YiZ4p3+9MLs/ZiHvTeI1SoP7VUMs8FtWYrxVt52rIHdhpmIgJoDzBqG2 nO6A== X-Gm-Message-State: ALoCoQlhtQoVqj+qS3MaHYC0yKP9gmOCOUn2QhbpfbeNsGdMwElZE+jcQHM3zsCTat/3TlAQIpGs X-Received: by 10.66.65.109 with SMTP id w13mr19754531pas.21.1395408396154; Fri, 21 Mar 2014 06:26:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.209 with SMTP id f75ls700345qgd.48.gmail; Fri, 21 Mar 2014 06:26:36 -0700 (PDT) X-Received: by 10.58.54.35 with SMTP id g3mr797204vep.46.1395408396021; Fri, 21 Mar 2014 06:26:36 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id j20si1119512vcx.19.2014.03.21.06.26.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 06:26:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id db12so2532998veb.38 for ; Fri, 21 Mar 2014 06:26:35 -0700 (PDT) X-Received: by 10.58.110.74 with SMTP id hy10mr302403veb.52.1395408395918; Fri, 21 Mar 2014 06:26:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp30718vck; Fri, 21 Mar 2014 06:26:35 -0700 (PDT) X-Received: by 10.66.149.231 with SMTP id ud7mr54291931pab.8.1395408394915; Fri, 21 Mar 2014 06:26:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ub8si3750682pac.256.2014.03.21.06.26.34; Fri, 21 Mar 2014 06:26:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752094AbaCUN0d (ORCPT + 9 others); Fri, 21 Mar 2014 09:26:33 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:42950 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbaCUN0c (ORCPT ); Fri, 21 Mar 2014 09:26:32 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2S004PFG060640@mailout1.samsung.com>; Fri, 21 Mar 2014 22:26:30 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 59.30.09028.60E3C235; Fri, 21 Mar 2014 22:26:30 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-31-532c3e060c00 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F4.60.29263.60E3C235; Fri, 21 Mar 2014 22:26:30 +0900 (KST) Received: from DOKGENEKIM03 ([12.36.166.133]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2S00DC8G063J70@mmp2.samsung.com>; Fri, 21 Mar 2014 22:26:30 +0900 (KST) From: Kukjin Kim To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: 'Thomas Abraham' , mark.rutland@arm.com, 'Catalin Marinas' , ilho215.lee@samsung.com Subject: [PATCH v4 1/3] arm64: dts: add initial dts for Samsung GH7 SoC and SSDK-GH7 board Date: Fri, 21 Mar 2014 22:26:25 +0900 Message-id: <000301cf4509$2b6400b0$822c0210$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9FCSiJVc+K4w5eTJ6d5vio5Bg8oA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsVy+t8zfV02O51gg6blshbvl/UwWsw/co7V 4ui/hYwWvQuusll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yZFcL5yyhx8/oBVpAqNgENicPvn7GD 2CICmRKb7m5jBCliFuhilOg/fAqsSFggRmLqtqNgNouAqsTz89uYQWxeAUuJk027WCFsQYkf k++xgNjMAloS63ceZ4Kw5SU2r3nLDHGSgsSOs68ZIZbpSVzduZ8VokZEYt+Ld4wTGAVmIRk1 C8moWUhGzULSsoCRZRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcLQ/k9rBuLLB4hCjAAej Eg9vBad2sBBrYllxZe4hRgkOZiURXjYLnWAh3pTEyqrUovz4otKc1OJDjMlAn05klhJNzgcm orySeENjEzMjSyMzCyMTc3PShJXEeQ+0WgcKCaQnlqRmp6YWpBbBbGHi4JRqYFwhwpuSaZH4 4+6GfH6fVzceHdYL+ThDyHr5wwnRrS6ZR7St+9s9lh23O/mE+9KSL7PsbkoUxQuaeWx6c4Hz S+fWR7XdJlbhF9YEipdkLzr9bmHFpapEl6kOr6cpvZiwtWY36/wj6Q9v3BPRf9Ww3LL9XONl r+NxT4rc+yz3KPUuVCy/rPTc00KJpTgj0VCLuag4EQC6dQHEOgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kgene.kim@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-language: ko Signed-off-by: Kukjin Kim Reviewed-by: Thomas Abraham Cc: Mark Rutland Cc: Catalin Marinas --- Changes since v3: - addressed comments from Mark : updated reserved memory : fixed interrupt trigger for pmu and serial - removing 'gh7-pmu' from PMU compatible string Since the patch 2nd and 3rd are same with previous version I'm not re-posting. arch/arm64/boot/dts/samsung-gh7.dtsi | 134 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/samsung-ssdk-gh7.dts | 26 ++++++ 2 files changed, 160 insertions(+) create mode 100644 arch/arm64/boot/dts/samsung-gh7.dtsi create mode 100644 arch/arm64/boot/dts/samsung-ssdk-gh7.dts diff --git a/arch/arm64/boot/dts/samsung-gh7.dtsi b/arch/arm64/boot/dts/samsung-gh7.dtsi new file mode 100644 index 0000000..d3ab914 --- /dev/null +++ b/arch/arm64/boot/dts/samsung-gh7.dtsi @@ -0,0 +1,134 @@ +/* + * SAMSUNG GH7 SoC device tree source + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * 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. +*/ + +/memreserve/ 0x80000000 0x00010000; + +/ { + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = "/amba/uart@12c00000"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu@000 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x000>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + cpu@001 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x001>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + cpu@002 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x002>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + cpu@003 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x003>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + cpu@100 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x100>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + cpu@101 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x101>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + cpu@102 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x102>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + cpu@103 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x103>; + enable-method = "spin-table"; + cpu-release-addr = <0x0 0x8000fff8>; + }; + }; + + gic: interrupt-controller@1C000000 { + compatible = "arm,cortex-a15-gic"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x0 0x1C001000 0 0x1000>, /* GIC Dist */ + <0x0 0x1C002000 0 0x1000>, /* GIC CPU */ + <0x0 0x1C004000 0 0x2000>, /* GIC VCPU Control */ + <0x0 0x1C006000 0 0x2000>; /* GIC VCPU */ + interrupts = <1 9 0xf04>; /* GIC Maintenence IRQ */ + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <1 13 0xff01>, /* Secure Phys IRQ */ + <1 14 0xff01>, /* Non-secure Phys IRQ */ + <1 11 0xff01>, /* Virt IRQ */ + <1 10 0xff01>; /* Hyp IRQ */ + }; + + pmu { + compatible = "armv8-pmuv3"; + interrupts = <0 294 8>, + <0 295 8>, + <0 296 8>, + <0 297 8>, + <0 298 8>, + <0 299 8>, + <0 300 8>, + <0 301 8>; + }; + + amba { + compatible = "arm,amba-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + serial@12c00000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0 0x12c00000 0 0x10000>; + interrupts = <0 418 4>; + }; + + serial@12c20000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0 0x12c20000 0 0x10000>; + interrupts = <0 420 4>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/samsung-ssdk-gh7.dts b/arch/arm64/boot/dts/samsung-ssdk-gh7.dts new file mode 100644 index 0000000..80bd93c --- /dev/null +++ b/arch/arm64/boot/dts/samsung-ssdk-gh7.dts @@ -0,0 +1,26 @@ +/* + * SAMSUNG SSDK-GH7 board device tree source + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * 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 "samsung-gh7.dtsi" + +/ { + model = "samsung,SSDK-GH7"; + compatible = "samsung,ssdk-gh7", "samsung,gh7"; + + chosen { + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x00000000 0x80000000 0 0x80000000>; + }; +};