arm64: dts: mt8183: support coresight-cpu-debug for mt8183
authorSeiya Wang <seiya.wang@mediatek.com>
Tue, 2 Nov 2021 09:02:30 +0000 (17:02 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 19 Nov 2021 10:35:52 +0000 (11:35 +0100)
Add coresight-cpu-debug nodes to mt8183 for dumping
EDPRSR, EDPCSR, EDCIDSR, EDVIDSR
while kernel panic happens

Signed-off-by: Seiya Wang <seiya.wang@mediatek.com>
Link: https://lore.kernel.org/r/20211102090230.25013-1-seiya.wang@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183.dtsi

index ba4584faca5aead67a7ad232500a3e4e8b40178b..00f2ddd245e1090b2541c91c89bc9ed2d5ca49f9 100644 (file)
                        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>;