dts: update gpu freq tbl for buildroot [1/1]
authorbinqi.zhang <binqi.zhang@amlogic.com>
Wed, 17 Apr 2019 07:24:30 +0000 (03:24 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 22 Apr 2019 05:46:52 +0000 (22:46 -0700)
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: Ie10335d1f3a043d4418245d31efa8b42077031a9
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot_vccktest.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u211_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_buildroot.dts
arch/arm64/boot/dts/amlogic/mesong12a_drm.dtsi

index 9eb88d8..08970fe 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "mesong12a.dtsi"
 #include "mesong12a_skt-panel.dtsi"
+#include "mesong12a_drm.dtsi"
 
 / {
        model = "Amlogic";
index c94598e..e92bf36 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "mesong12a.dtsi"
 #include "mesong12a_skt-panel.dtsi"
-
+#include "mesong12a_drm.dtsi"
 / {
        model = "Amlogic";
        compatible = "amlogic, g12a";
index 4f09552..981f395 100644 (file)
@@ -18,6 +18,7 @@
 /dts-v1/;
 
 #include "mesong12a.dtsi"
+#include "mesong12a_drm.dtsi"
 
 / {
        model = "Amlogic";
index 4b5d755..fa91c38 100644 (file)
@@ -18,6 +18,7 @@
 /dts-v1/;
 
 #include "mesong12a.dtsi"
+#include "mesong12a_drm.dtsi"
 
 / {
        model = "Amlogic";
index 9708a62..60c3cff 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>;
+       };
+
+};