Skip to contentSkip to conversation

arm64: dts: freescale: Add pmu support on imx8mp

PATCH Superseded Jacky Bai 2 participants 5 messages Sep 27, 2020 – Sep 29, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jacky Bai

author
#0 lore raw

PATCH 1/2 arm64: dts: freescale: Add pmu support on imx8mp

Add PMU node to enable pmu support on imx8mp.

---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +7 -0
index 6038f66aefc1..8b07a70545f6 100644
@@ -133,6 +133,13 @@ clk_ext4: clock-ext4 {
 		clock-output-names = "clk_ext4";
 	};
 
+	pmu {
+		compatible = "arm,armv8-pmuv3";
+		interrupts = <GIC_PPI 7
+			     (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
+		interrupt-affinity = <&A53_0>, <&A53_1>, <&A53_2>, <&A53_3>;
+	};
+
 	psci {
 		compatible = "arm,psci-1.0";
 		method = "smc";
Signature · 1 line
2.26.2
author
#1 lore raw

PATCH 2/2 arm64: dts: freescale: Add pmu support on imx8mn

Add PMU node to enable pmu support on imx8mn.

---
 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn.dtsi +8 -0
index 746faf1cf2fb..589835d78727 100644
@@ -186,6 +186,14 @@ clk_ext4: clock-ext4 {
 		clock-output-names = "clk_ext4";
 	};
 
+	pmu {
+		compatible = "arm,armv8-pmuv3";
+		interrupts = <GIC_PPI 7
+			     (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
+		interrupt-affinity = <&A53_0>, <&A53_1>, <&A53_2>, <&A53_3>;
+	};
+
+
 	psci {
 		compatible = "arm,psci-1.0";
 		method = "smc";
Signature · 1 line
2.26.2
#2 lore raw

Re: [PATCH 2/2] arm64: dts: freescale: Add pmu support on imx8mn

Quoted 12 lines · Jacky Bai

Add PMU node to enable pmu support on imx8mn.

---
 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn.dtsi +0 -0
index 746faf1cf2fb..589835d78727 100644

arch/arm64/boot/dts/freescale/imx8mn.dtsi clk_ext4: clock-ext4 { · line 192

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mn.dtsi +4 -0
@@ -186,6 +186,14 @@ clk_ext4: clock-ext4 {
 		clock-output-names = "clk_ext4";
 	};
 
+	pmu {
+		compatible = "arm,armv8-pmuv3";
+		interrupts = <GIC_PPI 7
+			     (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;

The same as in 1/2 - unusual value for GIC_CPU_MASK_SIMPLE. There are four cores on Nano.

Best regards,
Krzysztof

author
#3 lore raw

RE: [PATCH 2/2] arm64: dts: freescale: Add pmu support on imx8mn

Quoted 26 lines

-----Original Message-----
From: Krzysztof Kozlowski [mailto:[email protected]]
Sent: Tuesday, September 29, 2020 4:02 PM
To: Jacky Bai <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; dl-linux-imx <[email protected]>; [email protected]
Subject: Re: [PATCH 2/2] arm64: dts: freescale: Add pmu support on imx8mn

Quoted 16 lines · Jacky Bai

Add PMU node to enable pmu support on imx8mn.

---
 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn.dtsi +0 -0
index 746faf1cf2fb..589835d78727 100644
@@ -186,6 +186,14 @@ clk_ext4: clock-ext4 {
 		clock-output-names = "clk_ext4";
 	};
 
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mn.dtsi clk_ext4: clock-ext4 { · line 192

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mn.dtsi +4 -0
+	pmu {
+		compatible = "arm,armv8-pmuv3";
+		interrupts = <GIC_PPI 7
+			     (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;

The same as in 1/2 - unusual value for GIC_CPU_MASK_SIMPLE. There are four cores on Nano.

Thanks for review, will fix in v2.

BR

Quoted 2 lines

Best regards,
Krzysztof

#4 lore raw
In reply to Jacky Bai
Quoted 12 lines · Jacky Bai

Add PMU node to enable pmu support on imx8mp.

---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +0 -0
index 6038f66aefc1..8b07a70545f6 100644

arch/arm64/boot/dts/freescale/imx8mp.dtsi clk_ext4: clock-ext4 { · line 139

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +4 -0
@@ -133,6 +133,13 @@ clk_ext4: clock-ext4 {
 		clock-output-names = "clk_ext4";
 	};
 
+	pmu {
+		compatible = "arm,armv8-pmuv3";
+		interrupts = <GIC_PPI 7
+			     (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;

How many cores do you have there? 4 or 6?

Best regards,
Krzysztof