From bdf6aea9db6525169c6efd764806ac67cd3f465a Mon Sep 17 00:00:00 2001 From: Biao Long Date: Tue, 6 Apr 2021 10:10:58 +0800 Subject: [PATCH] dt-bindings: Add opp table for ahb device Support opp table for ahb devices. Change-Id: If9dc6cb6cc62641c6e2ca2bd75395a688667ae58 --- qcom/sdxnightjar.dtsi | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/qcom/sdxnightjar.dtsi b/qcom/sdxnightjar.dtsi index 1238ce10e2af..fe54dae83f99 100644 --- a/qcom/sdxnightjar.dtsi +++ b/qcom/sdxnightjar.dtsi @@ -300,16 +300,21 @@ < 1286400 >; }; + ahb_bw_opp_table: ahb-bw-opp-table { + compatible = "operating-points-v2"; + BW_OPP_ENTRY( 19, 8); /* 144 MB/s */ + BW_OPP_ENTRY( 50, 8); /* 381 MB/s */ + BW_OPP_ENTRY( 100, 8); /* 762 MB/s */ + BW_OPP_ENTRY( 133, 8); /* 1014 MB/s */ + }; + ahb_clk: qcom,ahb-clk-src { compatible = "devfreq-simple-dev"; clocks = <&gcc APSS_AHB_CLK_SRC>; clock-names = "devfreq_clk"; governor = "powersave"; - freq-tbl-khz = - < 19200 >, - < 50000 >, - < 100000 >, - < 133330 >; + qcom,bus-width = <8>; + operating-points-v2 = <&ahb_bw_opp_table>; }; cpubw: qcom,cpubw { @@ -339,10 +344,10 @@ cpuahb-cpufreq { target-dev = <&ahb_clk>; cpu-to-dev-map = - < 200000 19200 >, - < 384000 50000 >, - < 787200 100000 >, - < 1286400 133330 >; + < 200000 144 >, + < 384000 381 >, + < 787200 762 >, + < 1286400 1014 >; }; };