Skip to contentSkip to conversation

arm64: dts: freescale: Add pmu support on imx8mp

PATCH Applied Jacky Bai 3 participants 5 messages Sep 29, 2020 – Oct 30, 2020

Subsystems (2)
lore
Share & tools
lore

Jacky Bai

author
#0 lore raw

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

Add PMU node to enable pmu support on imx8mp.

---
Change in V2:
- Update the compatible string to ca53 specific
- Correct the GIC_CPU_MASK num to 4 as only have 4xA53 cores

---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +7 -0
index 6038f66aefc1..2a7bbd4d68ac 100644
@@ -133,6 +133,13 @@ clk_ext4: clock-ext4 {
 		clock-output-names = "clk_ext4";
 	};
 
+	pmu {
+		compatible = "arm,cortex-a53-pmu";
+		interrupts = <GIC_PPI 7
+			     (GIC_CPU_MASK_SIMPLE(4) | 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 v2 2/2 arm64: dts: freescale: Add pmu support on imx8mn

Add PMU node to enable pmu support on imx8mn.

---
Change in V2:
- Update the compatible string to ca53 specific
- Correct the GIC_CPU_MASK num to 4 as only have 4xA53 cores

---
 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn.dtsi +7 -0
index 746faf1cf2fb..184fd3285383 100644
@@ -186,6 +186,13 @@ clk_ext4: clock-ext4 {
 		clock-output-names = "clk_ext4";
 	};
 
+	pmu {
+		compatible = "arm,cortex-a53-pmu";
+		interrupts = <GIC_PPI 7
+			     (GIC_CPU_MASK_SIMPLE(4) | 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
Reviewed-by on v2 2/2
#2 lore raw

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

Quoted 10 lines · Jacky Bai

Add PMU node to enable pmu support on imx8mn.

---
Change in V2:
- Update the compatible string to ca53 specific
- Correct the GIC_CPU_MASK num to 4 as only have 4xA53 cores

---
 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

Best regards,
Krzysztof

Reviewed-by on v2 1/2
#3 lore raw
In reply to Jacky Bai
Quoted 11 lines · Jacky Bai

Add PMU node to enable pmu support on imx8mp.

---
Change in V2:
- Update the compatible string to ca53 specific
- Correct the GIC_CPU_MASK num to 4 as only have 4xA53 cores

---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

Best regards,
Krzysztof