From 965cd2e08a72d3cbb725309664f9721b7db363a3 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 27 Jun 2024 19:32:20 +0800 Subject: [PATCH] sunxi: tweak overclock patches Signed-off-by: Tianling Shen --- ...er-h5-add-more-cpu-operating-points-.patch | 27 +++++++++++++++++++ ...-h616-add-more-cpu-operating-points-.patch | 16 ++++------- 2 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 target/linux/sunxi/patches-6.6/910-arm64-dts-allwinner-h5-add-more-cpu-operating-points-.patch diff --git a/target/linux/sunxi/patches-6.6/910-arm64-dts-allwinner-h5-add-more-cpu-operating-points-.patch b/target/linux/sunxi/patches-6.6/910-arm64-dts-allwinner-h5-add-more-cpu-operating-points-.patch new file mode 100644 index 0000000000..148825dd52 --- /dev/null +++ b/target/linux/sunxi/patches-6.6/910-arm64-dts-allwinner-h5-add-more-cpu-operating-points-.patch @@ -0,0 +1,27 @@ +--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-cpu-opp.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-cpu-opp.dtsi +@@ -59,6 +59,24 @@ + opp-microvolt = <1300000 1300000 1310000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; ++ ++ opp-1200000000 { ++ opp-hz = /bits/ 64 <1200000000>; ++ opp-microvolt = <1300000 1300000 1310000>; ++ clock-latency-ns = <244144>; /* 8 32k periods */ ++ }; ++ ++ opp-1248000000 { ++ opp-hz = /bits/ 64 <1248000000>; ++ opp-microvolt = <1300000 1300000 1310000>; ++ clock-latency-ns = <244144>; /* 8 32k periods */ ++ }; ++ ++ opp-1296000000 { ++ opp-hz = /bits/ 64 <1296000000>; ++ opp-microvolt = <1300000 1300000 1310000>; ++ clock-latency-ns = <244144>; /* 8 32k periods */ ++ }; + }; + }; + diff --git a/target/linux/sunxi/patches-6.6/911-arm64-dts-allwinner-h616-add-more-cpu-operating-points-.patch b/target/linux/sunxi/patches-6.6/911-arm64-dts-allwinner-h616-add-more-cpu-operating-points-.patch index 2d86db88e4..a0618e6809 100644 --- a/target/linux/sunxi/patches-6.6/911-arm64-dts-allwinner-h616-add-more-cpu-operating-points-.patch +++ b/target/linux/sunxi/patches-6.6/911-arm64-dts-allwinner-h616-add-more-cpu-operating-points-.patch @@ -53,7 +53,7 @@ }; opp-1200000000 { -@@ -71,21 +64,18 @@ +@@ -71,29 +64,24 @@ opp-microvolt-speed3 = <1050000>; opp-microvolt-speed4 = <1100000>; clock-latency-ns = <244144>; /* 8 32k periods */ @@ -75,18 +75,12 @@ }; opp-1512000000 { -@@ -93,7 +83,13 @@ - opp-microvolt-speed1 = <1100000>; - opp-microvolt-speed3 = <1100000>; + opp-hz = /bits/ 64 <1512000000>; +- opp-microvolt-speed1 = <1100000>; +- opp-microvolt-speed3 = <1100000>; ++ opp-microvolt = <1100000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x0a>; -+ }; -+ -+ opp-1608000000 { -+ opp-hz = /bits/ 64 <1608000000>; -+ opp-microvolt-speed1 = <1100000>; -+ opp-microvolt-speed4 = <1120000>; -+ clock-latency-ns = <244144>; /* 8 32k periods */ }; }; };