Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2013928imm; Sat, 18 Aug 2018 09:04:50 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzGiROqbwMq6rMgu/KwnheirBc+IMHXL9yO1B9ROLudOhOyaLtjQwhPzrku51UmUyznpbpD X-Received: by 2002:a63:d74f:: with SMTP id w15-v6mr37238622pgi.306.1534608289964; Sat, 18 Aug 2018 09:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534608289; cv=none; d=google.com; s=arc-20160816; b=rsaewhWDA3pv0ke3WFsLXJ1p4qI/bKe9IRisfYuHBQPG+QQmtn8ZSUlJciuq7FJQB7 nOYIjexsTP78avAbuYUFUkxmqYyJD/NLQ+4Hm7lyGSMMgEihc4owzjpH5t4nvd1AcVeS eC1u+cKQl2mmVbXBuc6pjvdXtUfvJx/4WuhZmEUvmA/E7U0MQjYuVqsWe6XWeKLO1pq6 /SxeGYQ+P+grBLbIecTkXSIZ9dKUmKfsCD2G3q8z1onDVdSxH59Boc9QLptiL2Cj9m8R yJTI388eJfA83cdg3ZEqW1iCaeWWaWcHawQtjA6+B09BcHipF05ZKPaUM7PpanSZPwKQ JFqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=P47paR2bVIrL2BGW35udHLnqyuSlPlWPXKiQMp0nuRk=; b=e4Y7KbGLsadrqnIlyVfkawZSC/Xq70bACriJQcwn06YIDaPv/8UnQBkDtHz+opSlmL VBq/vvrGPJd8cKiD+ZfdC3t6TjVTkCN74HWiqdutNdqpvq0n2wPR/XqiB8+J2FdvuzB6 v53wjGo2q1y6awvwdO4L1pR9VfspeM7yqqNHNNEfbBAwmz/10doHPpVhvoJ41F7YV3ql 55lySdjkR/WxNm/vOd4DnwwF/hQGxsv6x/yBcmKBV/RcCDU+c3cx1XouxcGlunCDLIQR tjSuj15/BA+JmPebW9Eh4hfSLjWXBsa6nZ4sWVAiNsI+XBuiLg33lJySMbxI5ti3hMWt Lu+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9-v6si4881078plo.23.2018.08.18.09.04.34; Sat, 18 Aug 2018 09:04:49 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726495AbeHRTLc (ORCPT + 99 others); Sat, 18 Aug 2018 15:11:32 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:40935 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726299AbeHRTLb (ORCPT ); Sat, 18 Aug 2018 15:11:31 -0400 X-UUID: 9017cee270e448f29e244327378beea3-20180819 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1283721960; Sun, 19 Aug 2018 00:03:09 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 19 Aug 2018 00:03:07 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 19 Aug 2018 00:03:07 +0800 From: Ryder Lee To: Matthias Brugger , Rob Herring CC: Sean Wang , Roy Luo , Weijie Gao , , , , , Ryder Lee Subject: [PATCH v1 1/5] arm64: dts: mt7622: add timer, CCI-400 and PMU nodes Date: Sun, 19 Aug 2018 00:02:24 +0800 Message-ID: <7d3ce6a89ffeb221dc3197b763521582bf300577.1534607107.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree entries for timer, ARM CCI-400 and its PMU. Otherwise, we add a cortex-a53-pmu node to enable hw perfevents. Signed-off-by: Ryder Lee --- change since v1: - add a pmu node. --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index de2c47bd..d297100 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -79,6 +79,7 @@ #cooling-cells = <2>; enable-method = "psci"; clock-frequency = <1300000000>; + cci-control-port = <&cci_control2>; }; cpu1: cpu@1 { @@ -92,6 +93,7 @@ #cooling-cells = <2>; enable-method = "psci"; clock-frequency = <1300000000>; + cci-control-port = <&cci_control2>; }; }; @@ -113,6 +115,13 @@ method = "smc"; }; + pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = , + ; + interrupt-affinity = <&cpu0>, <&cpu1>; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>; @@ -218,6 +227,16 @@ #reset-cells = <1>; }; + timer: timer@10004000 { + compatible = "mediatek,mt7622-timer", + "mediatek,mt6577-timer"; + reg = <0 0x10004000 0 0x80>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_APXGPT_PD>, + <&topckgen CLK_TOP_RTC>; + clock-names = "system-clk", "rtc-clk"; + }; + scpsys: scpsys@10006000 { compatible = "mediatek,mt7622-scpsys", "syscon"; @@ -325,6 +344,42 @@ <0 0x10360000 0 0x2000>; }; + cci: cci@10390000 { + compatible = "arm,cci-400"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0 0x10390000 0 0x1000>; + ranges = <0 0 0x10390000 0x10000>; + + cci_control0: slave-if@1000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace-lite"; + reg = <0x1000 0x1000>; + }; + + cci_control1: slave-if@4000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace"; + reg = <0x4000 0x1000>; + }; + + cci_control2: slave-if@5000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace"; + reg = <0x5000 0x1000>; + }; + + pmu@9000 { + compatible = "arm,cci-400-pmu,r1"; + reg = <0x9000 0x5000>; + interrupts = , + , + , + , + ; + }; + }; + auxadc: adc@11001000 { compatible = "mediatek,mt7622-auxadc"; reg = <0 0x11001000 0 0x1000>; -- 1.9.1