dts: update gpu freq tbl for 32bit kernel [1/1]
authorbinqi.zhang <binqi.zhang@amlogic.com>
Mon, 22 Apr 2019 06:07:22 +0000 (02:07 -0400)
committerbinqi.zhang <binqi.zhang@amlogic.com>
Mon, 22 Apr 2019 06:14:58 +0000 (02:14 -0400)
PD#SWPL-4253

Problem:
Compared with P212, GPU on g12a can not work with high
frequency
when running some cases like particle;

Solution:
update gpu freq tbl for buildroot

Verify:
build pass
GPU on g12a can work with high
freq when running particle

Change-Id: Ifcb286cd37faa9f618b48ab515ca360aba563a34
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
arch/arm/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_u200_buildroot_vccktest.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u211_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212_buildroot.dts
arch/arm/boot/dts/amlogic/mesong12a_drm.dtsi

index 7842c26..e5202d8 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "mesong12a.dtsi"
 #include "mesong12a_skt-panel.dtsi"
+#include "mesong12a_drm.dtsi"
 
 / {
        model = "Amlogic";
index a823f7f..7204b6f 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "mesong12a.dtsi"
 #include "mesong12a_skt-panel.dtsi"
+#include "mesong12a_drm.dtsi"
 
 / {
        model = "Amlogic";
index 09ba761..d2909ab 100644 (file)
@@ -18,6 +18,7 @@
 /dts-v1/;
 
 #include "mesong12a.dtsi"
+#include "mesong12a_drm.dtsi"
 
 / {
        model = "Amlogic";
index e03f7db..0baccdd 100644 (file)
@@ -18,6 +18,7 @@
 /dts-v1/;
 
 #include "mesong12a.dtsi"
+#include "mesong12a_drm.dtsi"
 
 / {
        model = "Amlogic";
index b6597c6..00beafa 100644 (file)
        };
 };
 
+&gpu{
+       /*gpu max freq is 850M*/
+       def_clk = <1>;
+       tbl = <&dvfs285_cfg &dvfs666_cfg &dvfs850_cfg &dvfs850_cfg>;
+
+       dvfs285_cfg:dvfs285_cfg {
+                keep_count = <2>;
+                threshold = <100 200>;
+       };
+
+       dvfs666_cfg:dvfs666_cfg {
+                keep_count = <1>;
+                threshold = <85 200>;
+       };
+
+       dvfs850_cfg:dvfs850_cfg {
+                keep_count = <1>;
+                threshold = <179 255>;
+       };
+
+};