arm64: dts: mediatek: Add cpufreq nodes for MT8192
Subsystems (2)
PATCH v2 1/1 arm64: dts: mediatek: Add cpufreq nodes for MT8192
Add the cpufreq nodes for MT8192 SoC.
---
Change in v1:
Fix : this should be <&performance 0> [Allen-KH Cheng <[email protected]>]
---
--- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/mediatek/mt8192.dtsi +14 -0
@@ -70,6 +70,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };
@@ -87,6 +88,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };
@@ -104,6 +106,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };
@@ -121,6 +124,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };
@@ -138,6 +142,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; };
@@ -155,6 +160,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; };
@@ -172,6 +178,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; };
@@ -189,6 +196,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <1024>; };
@@ -318,6 +326,12 @@ compatible = "simple-bus"; ranges; + performance: performance-controller@11bc10 { + compatible = "mediatek,cpufreq-hw"; + reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>; + #performance-domain-cells = <1>; + }; + gic: interrupt-controller@c000000 { compatible = "arm,gic-v3"; #interrupt-cells = <4>;
Signature · 1 line
2.18.0
AngeloGioacchino Del Regno
maintainerIl 03/03/23 03:00, Allen-KH Cheng ha scritto:
Quoted 6 lines
Add the cpufreq nodes for MT8192 SoC.
Signed-off-by Allen-KH Cheng <[email protected]>---
Change in v1:
Fix : this should be <&performance 0>
I didn't say that *all of them should be <&performance 0>.
It's 0 for the cortex-a55 CPUs and it's 1 for the A76 CPUs.
Please fix it.
Quoted 35 lines
[Allen-KH Cheng <[email protected]>]
------ arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm64/boot/dts/mediatek/mt8192.dtsi +3
-0@@ -70,6 +70,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };@@ -87,6 +88,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };@@ -104,6 +106,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };
arch/arm64/boot/dts/mediatek/mt8192.dtsi line 129
Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8192.dtsi +1
-0@@ -121,6 +124,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };
It's 0 until there.
arch/arm64/boot/dts/mediatek/mt8192.dtsi line 145
Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8192.dtsi +1
-0@@ -138,6 +142,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>;
Here, and later (for cortex-a76), it's <&performance 1>.
Regards,
Angelo
Hi Angelo,
Quoted 8 lines · AngeloGioacchino Del Regno
Il 03/03/23 03:00, Allen-KH Cheng ha scritto:
Quoted 6 lines
Add the cpufreq nodes for MT8192 SoC.
Signed-off-by Allen-KH Cheng <[email protected]>---
Change in v1:
Fix : this should be <&performance 0>
Quoted 7 lines
I didn't say that *all of them should be <&performance 0>.
It's 0 for the cortex-a55 CPUs and it's 1 for the A76 CPUs.
Please fix it.
Oh, sorry for my misunderstanding
I will fix it in next version.
BRs,
Allen
Quoted 59 lines
Quoted 37 lines
[Allen-KH Cheng <[email protected]>]
------ arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm64/boot/dts/mediatek/mt8192.dtsi +3
-0@@ -70,6 +70,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };@@ -87,6 +88,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };@@ -104,6 +106,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };arch/arm64/boot/dts/mediatek/mt8192.dtsi line 129
Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8192.dtsi +1
-0@@ -121,6 +124,7 @@ d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; capacity-dmips-mhz = <530>; };It's 0 until there.
arch/arm64/boot/dts/mediatek/mt8192.dtsi line 145
Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8192.dtsi +1
-0@@ -138,6 +142,7 @@ d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 0>;Here, and later (for cortex-a76), it's <&performance 1>.
Regards,
Angelo