From patchwork Wed Sep 17 14:24:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Joe.C" X-Patchwork-Id: 37521 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7C502054D for ; Wed, 17 Sep 2014 14:27:46 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id c11sf348857lbj.9 for ; Wed, 17 Sep 2014 07:27:45 -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:subject:date:message-id :in-reply-to:references:mime-version:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=IcfC7Wb26y0ew/LI32i5qBBLoIuAzNL5p+bqLJdw5ng=; b=KAZH9i6nhBMkOUakp8uwYtawE1Qm7fgbpP7ibN6CowTQri1EgKgZKVWeRnDHfgCI35 xOb6xTDgHYkASRqzMr/+kE4aXAl0BQoBityIAMtnkciUqwUnz68SR0LVupvXaE2p+VLw /441fHz+dqm4g8LendhgTPN8lPwvgCKcuKlEmTsqLhAc3tlkOwWt6v+BXzKSz2wxbweM TDK0xVqdSv/+wZx52RgNOGohHCoAAhdZ9L2KBXyA1aczCMwXd/Cp2jri70Bci6Xx9kl/ i981PqbYQ0+F8tiX2IEw0aQ47xgd/Dy5DUDSuy8W2Zb6EJmuV7ytsP5ZWcugUZPRhVs9 Emew== X-Gm-Message-State: ALoCoQmxmBHOHlY7olT0LFokyVfquiK4q29sfd1V700B4YpykcJYaztG+EuExbweEJMQZ8v48Vzf X-Received: by 10.194.205.138 with SMTP id lg10mr578146wjc.5.1410964065559; Wed, 17 Sep 2014 07:27:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.4.43 with SMTP id cb11ls119686lad.23.gmail; Wed, 17 Sep 2014 07:27:45 -0700 (PDT) X-Received: by 10.112.150.106 with SMTP id uh10mr41548452lbb.11.1410964065343; Wed, 17 Sep 2014 07:27:45 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by mx.google.com with ESMTPS id t1si28818763lbv.79.2014.09.17.07.27.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 07:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id gq15so1989360lab.11 for ; Wed, 17 Sep 2014 07:27:44 -0700 (PDT) X-Received: by 10.152.204.231 with SMTP id lb7mr42424336lac.44.1410964064545; Wed, 17 Sep 2014 07:27:44 -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.112.130.169 with SMTP id of9csp586761lbb; Wed, 17 Sep 2014 07:27:43 -0700 (PDT) X-Received: by 10.66.234.233 with SMTP id uh9mr2781446pac.138.1410964061149; Wed, 17 Sep 2014 07:27:41 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id yt3si35099464pbc.100.2014.09.17.07.27.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Sep 2014 07:27:41 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XUGB4-0004mz-7N; Wed, 17 Sep 2014 14:25:50 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XUGAu-0004hO-Gv for linux-arm-kernel@lists.infradead.org; Wed, 17 Sep 2014 14:25:41 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2015782661; Wed, 17 Sep 2014 22:25:09 +0800 Received: from mtksdtcf02.mediatek.inc (10.21.12.142) by mtkhts09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Wed, 17 Sep 2014 22:25:07 +0800 From: Joe.C To: Rob Herring , Matthias Brugger , Subject: [PATCH v2 1/7] arm: MTK: Add basic support for mt8127 Date: Wed, 17 Sep 2014 22:24:08 +0800 Message-ID: <1410963854-17154-2-git-send-email-srv_yingjoe.chen@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1410963854-17154-1-git-send-email-srv_yingjoe.chen@mediatek.com> References: <1410963854-17154-1-git-send-email-srv_yingjoe.chen@mediatek.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140917_072540_769678_25F73456 X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines Cc: Mark Rutland , Anders Berg , Russell King , srv_heupstream@mediatek.com, yingjoe.chen@gmail.com, Ian Campbell , hc.yen@mediatek.com, Linus Walleij , yh.chen@mediatek.com, linux-kernel@vger.kernel.org, Arnd Bergmann , devicetree@vger.kernel.org, Pawel Moll , nathan.chung@mediatek.com, Kumar Gala , yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) 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 From: "Joe.C" This adds a basic dtsi for MT8127 SoC. Signed-off-by: Joe.C --- arch/arm/boot/dts/mt8127.dtsi | 93 +++++++++++++++++++++++++++++++++++++++ arch/arm/mach-mediatek/mediatek.c | 1 + 2 files changed, 94 insertions(+) create mode 100644 arch/arm/boot/dts/mt8127.dtsi diff --git a/arch/arm/boot/dts/mt8127.dtsi b/arch/arm/boot/dts/mt8127.dtsi new file mode 100644 index 0000000..25c9f69 --- /dev/null +++ b/arch/arm/boot/dts/mt8127.dtsi @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2014 MediaTek Inc. + * Author: Joe.C + * + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include "skeleton64.dtsi" + +/ { + compatible = "mediatek,mt8127"; + interrupt-parent = <&gic>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x0>; + }; + cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x1>; + }; + cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x2>; + }; + cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x3>; + }; + + }; + + clocks { + #address-cells = <2>; + #size-cells = <2>; + compatible = "simple-bus"; + ranges; + + system_clk: dummy13m { + compatible = "fixed-clock"; + clock-frequency = <13000000>; + #clock-cells = <0>; + }; + + rtc_clk: dummy32k { + compatible = "fixed-clock"; + clock-frequency = <32000>; + #clock-cells = <0>; + }; + }; + + soc { + #address-cells = <2>; + #size-cells = <2>; + compatible = "simple-bus"; + ranges; + + timer: timer@10008000 { + compatible = "mediatek,mt8127-timer", "mediatek,mt6577-timer"; + reg = <0 0x10008000 0 0x80>; + interrupts = ; + clocks = <&system_clk>, <&rtc_clk>; + clock-names = "system-clk", "rtc-clk"; + }; + + gic: interrupt-controller@10211000 { + compatible = "arm,cortex-a7-gic"; + interrupt-controller; + #interrupt-cells = <3>; + reg = <0 0x10211000 0 0x1000>, + <0 0x10212000 0 0x1000>, + <0 0x10214000 0 0x2000>, + <0 0x10216000 0 0x2000>; + }; + }; +}; diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index f2acf07..7f478ce 100644 --- a/arch/arm/mach-mediatek/mediatek.c +++ b/arch/arm/mach-mediatek/mediatek.c @@ -19,6 +19,7 @@ static const char * const mediatek_board_dt_compat[] = { "mediatek,mt6589", + "mediatek,mt8127", NULL, };