arm64: dts: freescale: Add pmu support on imx8mp
Subsystems (2)
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
@@ -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
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
@@ -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
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.
Signed-off-by Jacky Bai <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm64/boot/dts/freescale/imx8mn.dtsi +0
-0
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
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 imx8mnQuoted 16 lines · Jacky Bai
Add PMU node to enable pmu support on imx8mn.
Signed-off-by Jacky Bai <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm64/boot/dts/freescale/imx8mn.dtsi +0
-0@@ -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
Quoted 12 lines · Jacky Bai
Add PMU node to enable pmu support on imx8mp.
Signed-off-by Jacky Bai <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm64/boot/dts/freescale/imx8mp.dtsi +0
-0
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