arm64: dts: imx8mp: remove arm,primecell-periphid at etm nodes
authorFrank Li <Frank.Li@nxp.com>
Wed, 5 Jul 2023 20:59:53 +0000 (16:59 -0400)
committerShawn Guo <shawnguo@kernel.org>
Tue, 18 Jul 2023 06:43:20 +0000 (14:43 +0800)
The reg size of etm nodes is incorrectly set to 64k instead of 4k. This
leads to a crash when calling amba_read_periphid().  After corrected reg
size, amba_read_periphid() retrieve the correct periphid.
arm,primecell-periphid were removed from the etm nodes.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp.dtsi

index de59013..6f2f50e 100644 (file)
 
                etm0: etm@28440000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
-                       reg = <0x28440000 0x10000>;
-                       arm,primecell-periphid = <0xbb95d>;
+                       reg = <0x28440000 0x1000>;
                        cpu = <&A53_0>;
                        clocks = <&clk IMX8MP_CLK_MAIN_AXI>;
                        clock-names = "apb_pclk";
 
                etm1: etm@28540000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
-                       reg = <0x28540000 0x10000>;
-                       arm,primecell-periphid = <0xbb95d>;
+                       reg = <0x28540000 0x1000>;
                        cpu = <&A53_1>;
                        clocks = <&clk IMX8MP_CLK_MAIN_AXI>;
                        clock-names = "apb_pclk";
 
                etm2: etm@28640000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
-                       reg = <0x28640000 0x10000>;
-                       arm,primecell-periphid = <0xbb95d>;
+                       reg = <0x28640000 0x1000>;
                        cpu = <&A53_2>;
                        clocks = <&clk IMX8MP_CLK_MAIN_AXI>;
                        clock-names = "apb_pclk";
 
                etm3: etm@28740000 {
                        compatible = "arm,coresight-etm4x", "arm,primecell";
-                       reg = <0x28740000 0x10000>;
-                       arm,primecell-periphid = <0xbb95d>;
+                       reg = <0x28740000 0x1000>;
                        cpu = <&A53_3>;
                        clocks = <&clk IMX8MP_CLK_MAIN_AXI>;
                        clock-names = "apb_pclk";