build/patch/kernel/archive/rockchip64-5.10/rk3328-dtsi-z-mali-opp-table.patch

44 lines
1.0 KiB
Diff

diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index ec3a52f66..fe97e9c16 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
@@ -142,6 +142,30 @@ opp-1296000000 {
};
};
+ gpu_opp_table: gpu-opp-table {
+ compatible = "operating-points-v2";
+
+ opp-200000000 {
+ opp-hz = /bits/ 64 <200000000>;
+ opp-microvolt = <950000>;
+ };
+
+ opp-300000000 {
+ opp-hz = /bits/ 64 <300000000>;
+ opp-microvolt = <975000>;
+ };
+
+ opp-400000000 {
+ opp-hz = /bits/ 64 <400000000>;
+ opp-microvolt = <1050000>;
+ };
+
+ opp-500000000 {
+ opp-hz = /bits/ 64 <500000000>;
+ opp-microvolt = <1150000>;
+ };
+ };
+
amba: bus {
compatible = "simple-bus";
#address-cells = <2>;
@@ -650,6 +674,7 @@ gpu: gpu@ff300000 {
clock-names = "bus", "core";
power-domains = <&power RK3328_PD_GPU>;
resets = <&cru SRST_GPU_A>;
+ operating-points-v2 = <&gpu_opp_table>;
};
h265e_mmu: iommu@ff330200 {