From patchwork Fri Oct 2 15:19:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yingjoe Chen X-Patchwork-Id: 54450 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id DF274218EF for ; Fri, 2 Oct 2015 15:21:07 +0000 (UTC) Received: by lbbmp1 with SMTP id mp1sf17564469lbb.2 for ; Fri, 02 Oct 2015 08:21:06 -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 :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=ARyCP2KjNetkPFhyYmQyCJWi1yma9iz0c1Ke+kcfVXY=; b=R3WI/lo0vZdke6a27xBkgAXVY29TRwUoEFFUDOXmuLjf8HLfwPjqhyt+kInomovnWi IgVvrlD5jt6RhAO2BOol30eEfEFGkmptd+s3mFQOSY3fXYkMEHkW9JzA5E4h7sAPLb7q HnLpq0Zzi0x7KzOsLMlaTqmRL0doXXcrz1gVwvV+4D+zcuhkrzcXWYh514NFed8pyH0V m6cmEghmoYKQRT1+MJtTJWOQh2/pEIq29aTjTY4L25BRDIx2TTLBdq0Sf1OLnsqdCcra UxJA7OCKynrlPeYgRj43H+/1i1l5EUnS/E8LsTvDz1WqEe11B/26p7cDu1VMkgipNCUj kEFw== X-Gm-Message-State: ALoCoQnYXq9veJdAaYfBingkpStcr22I03XaDhy6Aa2r2antCf5BA/jGRG056xotQXYQMcFuodOC X-Received: by 10.180.149.210 with SMTP id uc18mr1078686wib.4.1443799266791; Fri, 02 Oct 2015 08:21:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.20.65 with SMTP id k62ls223408lfi.16.gmail; Fri, 02 Oct 2015 08:21:06 -0700 (PDT) X-Received: by 10.112.126.195 with SMTP id na3mr5880407lbb.50.1443799266612; Fri, 02 Oct 2015 08:21:06 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id qq7si6526204lbb.141.2015.10.02.08.21.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Oct 2015 08:21:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labzv5 with SMTP id zv5so94834357lab.1 for ; Fri, 02 Oct 2015 08:21:06 -0700 (PDT) X-Received: by 10.25.205.198 with SMTP id d189mr3733052lfg.72.1443799266492; Fri, 02 Oct 2015 08:21:06 -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.59.35 with SMTP id w3csp1309683lbq; Fri, 2 Oct 2015 08:21:05 -0700 (PDT) X-Received: by 10.107.10.203 with SMTP id 72mr16137478iok.117.1443799265418; Fri, 02 Oct 2015 08:21:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s98si9031520ioe.169.2015.10.02.08.21.05; Fri, 02 Oct 2015 08:21:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1753389AbbJBPU4 (ORCPT + 30 others); Fri, 2 Oct 2015 11:20:56 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:37837 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752930AbbJBPUy (ORCPT ); Fri, 2 Oct 2015 11:20:54 -0400 X-Listener-Flag: 11101 Received: from mtkhts07.mediatek.inc [(172.21.101.69)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1572046214; Fri, 02 Oct 2015 23:20:50 +0800 Received: from mtksdtcf02.mediatek.inc (10.21.12.142) by mtkhts07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Fri, 2 Oct 2015 23:20:48 +0800 From: Yingjoe Chen To: Russell King - ARM Linux , Matthias Brugger CC: , , Arnd Bergmann , Stephen Boyd , , Rob Herring , , Sascha Hauer , Olof Johansson , , Yingjoe Chen Subject: [PATCH v5 5/5] ARM: dts: mt8127: enable basic SMP bringup for mt8127 Date: Fri, 2 Oct 2015 23:19:41 +0800 Message-ID: <1443799181-50409-6-git-send-email-yingjoe.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443799181-50409-1-git-send-email-yingjoe.chen@mediatek.com> References: <1443799181-50409-1-git-send-email-yingjoe.chen@mediatek.com> MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: yingjoe.chen@mediatek.com 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.47 as permitted sender) smtp.mailfrom=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: , Add arch timer node to enable arch-timer support. MT8127 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen --- arch/arm/boot/dts/mt8127.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/mt8127.dtsi b/arch/arm/boot/dts/mt8127.dtsi index ca3402e..52086c8 100644 --- a/arch/arm/boot/dts/mt8127.dtsi +++ b/arch/arm/boot/dts/mt8127.dtsi @@ -23,6 +23,7 @@ cpus { #address-cells = <1>; #size-cells = <0>; + enable-method = "mediatek,mt81xx-tz-smp"; cpu@0 { device_type = "cpu"; @@ -47,6 +48,17 @@ }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + trustzone-bootinfo@80002000 { + compatible = "mediatek,trustzone-bootinfo"; + reg = <0 0x80002000 0 0x1000>; + }; + }; + clocks { #address-cells = <2>; #size-cells = <2>; @@ -72,6 +84,21 @@ }; }; + timer { + compatible = "arm,armv7-timer"; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + clock-frequency = <13000000>; + arm,cpu-registers-not-fw-configured; + }; + soc { #address-cells = <2>; #size-cells = <2>;