From patchwork Thu Sep 24 15:39:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yingjoe Chen X-Patchwork-Id: 54117 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 6046A22DC2 for ; Thu, 24 Sep 2015 15:41:14 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf43344076wic.3 for ; Thu, 24 Sep 2015 08:41:13 -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=Pu8ZAN6zjKEYpn6klAoMxNjln1k4HzAsTQBdVz//Ar4=; b=TuVxIOvq5aaI7v9h3gzvXpjKI8p/M7edcYEv77RFDYRKX9Z2I9wrii/3hMDsKWiJFM cBw5yNGos4ai2crlhIx4ayduJiozn+HDOVWXllMZhc9MuhSwrndDt/qnu0NoTD26AOuF YjpOcglP9RgsLJbhUUQXqsxDhe5YiG97bf4BQTXNNA/YSpGiJdF9ZWioo3jl9oSg/Mir iiayn1G+v6PElOAveFanHfENdrwOKUMzZO+tYTUPOTfgvD8D10B7PVyGrP4POE2kfO9z QWKNq5rgKQ1//K6QKJ8ToEj4G87Cjvhlrdm7RQ5xkCJhjxUyyMrrLah1MWeomhAu4YbB StSg== X-Gm-Message-State: ALoCoQmKY/qo5rHM6gv/5a/QXm51WgUhGzlvcQSc5rU10kOYqnGVqUve1xchY9Vqzq0732UCe4yR X-Received: by 10.152.197.34 with SMTP id ir2mr70374lac.10.1443109273551; Thu, 24 Sep 2015 08:41:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.161.231 with SMTP id xv7ls102687lab.25.gmail; Thu, 24 Sep 2015 08:41:13 -0700 (PDT) X-Received: by 10.152.204.39 with SMTP id kv7mr101801lac.31.1443109273390; Thu, 24 Sep 2015 08:41:13 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id p19si5931710lfe.43.2015.09.24.08.41.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Sep 2015 08:41:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lacwc7 with SMTP id wc7so11072779lac.2 for ; Thu, 24 Sep 2015 08:41:13 -0700 (PDT) X-Received: by 10.112.156.167 with SMTP id wf7mr106570lbb.88.1443109272914; Thu, 24 Sep 2015 08:41:12 -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 w3csp416741lbq; Thu, 24 Sep 2015 08:41:12 -0700 (PDT) X-Received: by 10.68.233.5 with SMTP id ts5mr467511pbc.58.1443109271882; Thu, 24 Sep 2015 08:41:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si19137915pbu.198.2015.09.24.08.41.11; Thu, 24 Sep 2015 08:41:11 -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 S1756995AbbIXPlE (ORCPT + 30 others); Thu, 24 Sep 2015 11:41:04 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38345 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1756937AbbIXPlA (ORCPT ); Thu, 24 Sep 2015 11:41:00 -0400 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 252067315; Thu, 24 Sep 2015 23:40:59 +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; Thu, 24 Sep 2015 23:40:57 +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 v4 5/5] ARM: dts: mt8127: enable basic SMP bringup for mt8127 Date: Thu, 24 Sep 2015 23:39:00 +0800 Message-ID: <1443109140-5406-6-git-send-email-yingjoe.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443109140-5406-1-git-send-email-yingjoe.chen@mediatek.com> References: <1443109140-5406-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.49 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..50652fd 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: 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>;