Qiang Yu
unread,Mar 28, 2020, 5:16:58 AM3/28/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to devic...@vger.kernel.org, linux...@googlegroups.com, linux-ar...@lists.infradead.org, Chen-Yu Tsai, Maxime Ripard, Mark Rutland, Rob Herring, li...@lists.freedesktop.org, Vasily Khoruzhick, Icenowy Zheng, Qiang Yu
OPP table vaule is get from orangepi lichee linux-3.4
kernel driver.
Signed-off-by: Qiang Yu <
yuq...@gmail.com>
---
arch/arm/boot/dts/sun8i-h3.dtsi | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
index 20217e2ca4d3..53ef9a18e953 100644
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
@@ -128,6 +128,23 @@
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
};
+ gpu_opp_table: gpu-opp-table {
+ compatible = "operating-points-v2";
+
+ opp-120000000 {
+ opp-hz = /bits/ 64 <120000000>;
+ };
+ opp-312000000 {
+ opp-hz = /bits/ 64 <312000000>;
+ };
+ opp-432000000 {
+ opp-hz = /bits/ 64 <432000000>;
+ };
+ opp-576000000 {
+ opp-hz = /bits/ 64 <576000000>;
+ };
+ };
+
soc {
deinterlace: deinterlace@1400000 {
compatible = "allwinner,sun8i-h3-deinterlace";
@@ -205,8 +222,7 @@
clock-names = "bus", "core";
resets = <&ccu RST_BUS_GPU>;
- assigned-clocks = <&ccu CLK_GPU>;
- assigned-clock-rates = <384000000>;
+ operating-points-v2 = <&gpu_opp_table>;
};
ths: thermal-sensor@1c25000 {
--
2.17.1