Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3992950pxb; Tue, 2 Nov 2021 02:05:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeZgPMj8WrWsoKBu24GTNo9rqVEc/bzoJjeqBQArB8FaNObzLX7bFKsxCi6clRVhbczXnM X-Received: by 2002:a17:907:3f19:: with SMTP id hq25mr9778829ejc.225.1635843906770; Tue, 02 Nov 2021 02:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635843906; cv=none; d=google.com; s=arc-20160816; b=ns2dl2B9f2msVKBzd79Nxqkr+iiZEH9qio/S8mKe64oAJ6KIqkGLfRC8YqgHkiv9YY JIN+h7qEkhoxHVooiEaTM6xUTIaD1ckGq+3r0xt+EfDuMVM41auEnXPHNEkoR/2mbpmw WZF6juJkDbmYrL5RvWGfCTChNm12NySZ6jw5RQqdgWUKrAwlaCWNTA/57lzhE44nfpLU xU8QX9/zo18UQWPlK1a/6fZR7Dp6tDsn4q4yrOaQWpvrrlnk8ZGf0WJ263gp5lMGxhf/ YZYS2UikX9ZYTAfsi3DTE9cEDZS4ln9y+Sn4azt+PVL8FipYmNuXCpoUdyrm4Nxff67k naPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=hBsy+HH0DkvGHvcjZLM5zgYKyMYckZ2ZyX9HqW5SvTw=; b=h3QEbGxiXEdTPNSFd37YOQX9ebjQ6MZXuyr3aSByorRomhZ5tWaHvrDGAICskBz3CP aWtAMHB9Q253x1OS1wLlnz3gl/gL2XlcAmMoJ1WqmF41HyYgWQP+5kRrzBpZFfNqV29X MDyzq/Jk05EePh0Xd/D4Iyv5g0k4+MMeX+maZx3v2xX3qSaopBHbQo8Rweqs0iIPr3mA LJNZahyEpM1snKXCGOzcwR1Quuq7yLxEOjNj/i3Zbe7zRQL9zGQAgx+hdDurRY1rumlN jBAexmXzjsNl0lv1HGvr1DSAei/iPCOPuUzWVy5ibmeMLzfmThK76b/pP9QS6JvPP3do sDRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si10766772eju.454.2021.11.02.02.04.42; Tue, 02 Nov 2021 02:05:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbhKBJFM (ORCPT + 99 others); Tue, 2 Nov 2021 05:05:12 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:55682 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229881AbhKBJFK (ORCPT ); Tue, 2 Nov 2021 05:05:10 -0400 X-UUID: ba0947763eba4ab8b4368587899f201f-20211102 X-UUID: ba0947763eba4ab8b4368587899f201f-20211102 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1219803053; Tue, 02 Nov 2021 17:02:33 +0800 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 2 Nov 2021 17:02:32 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs10n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Tue, 2 Nov 2021 17:02:32 +0800 From: Seiya Wang To: Rob Herring , Matthias Brugger CC: , , , , , Seiya Wang Subject: [RESEND v2] arm64: dts: mt8183: support coresight-cpu-debug for mt8183 Date: Tue, 2 Nov 2021 17:02:30 +0800 Message-ID: <20211102090230.25013-1-seiya.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add coresight-cpu-debug nodes to mt8183 for dumping EDPRSR, EDPCSR, EDCIDSR, EDVIDSR while kernel panic happens Signed-off-by: Seiya Wang --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 64 ++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 409cf827970c..2d36575e7dbe 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -367,6 +367,70 @@ reg = <0 0x0c530a80 0 0x50>; }; + cpu_debug0: cpu-debug@d410000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xd410000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu0>; + }; + + cpu_debug1: cpu-debug@d510000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xd510000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu1>; + }; + + cpu_debug2: cpu-debug@d610000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xd610000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu2>; + }; + + cpu_debug3: cpu-debug@d710000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xd710000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu3>; + }; + + cpu_debug4: cpu-debug@d810000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xd810000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu4>; + }; + + cpu_debug5: cpu-debug@d910000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xd910000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu5>; + }; + + cpu_debug6: cpu-debug@da10000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xda10000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu6>; + }; + + cpu_debug7: cpu-debug@db10000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0x0 0xdb10000 0x0 0x1000>; + clocks = <&infracfg CLK_INFRA_DEBUGSYS>; + clock-names = "apb_pclk"; + cpu = <&cpu7>; + }; + topckgen: syscon@10000000 { compatible = "mediatek,mt8183-topckgen", "syscon"; reg = <0 0x10000000 0 0x1000>; -- 2.14.1