From a22e2bd37db28b084f01a567ef8706fefa0be667 Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Mon, 30 Oct 2017 01:19:32 +0200 Subject: [PATCH] ipq806x: ipq4019: dts: fix maximum cpu speed Supported frequencies of all ipq40xx chips are 48, 200, 500 and 716.8 MHz. Previous 666MHz setting was most likely related to instability of early chips/boards made before mass production. Signed-off-by: Roman Yeryomin --- .../arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts | 9 --------- .../864-06-dts-ipq4019-fix-max-cpu-speed.patch | 13 +++++++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 target/linux/ipq806x/patches-4.9/864-06-dts-ipq4019-fix-max-cpu-speed.patch diff --git a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts index 9b14280695..f7b9e2c161 100644 --- a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts +++ b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts @@ -215,12 +215,3 @@ }; }; }; - -&cpu0_opp_table { - /delete-node/ opp@666000000; - - opp@710000000 { - opp-hz = /bits/ 64 <710000000>; - clock-latency-ns = <256000>; - }; -}; diff --git a/target/linux/ipq806x/patches-4.9/864-06-dts-ipq4019-fix-max-cpu-speed.patch b/target/linux/ipq806x/patches-4.9/864-06-dts-ipq4019-fix-max-cpu-speed.patch new file mode 100644 index 0000000000..33f7f04f3c --- /dev/null +++ b/target/linux/ipq806x/patches-4.9/864-06-dts-ipq4019-fix-max-cpu-speed.patch @@ -0,0 +1,13 @@ +--- a/arch/arm/boot/dts/qcom-ipq4019.dtsi ++++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi +@@ -108,8 +108,8 @@ + opp-hz = /bits/ 64 <500000000>; + clock-latency-ns = <256000>; + }; +- opp@666000000 { +- opp-hz = /bits/ 64 <666000000>; ++ opp@716800000 { ++ opp-hz = /bits/ 64 <716800000>; + clock-latency-ns = <256000>; + }; + }; -- 2.30.2