On Thu 02 Jul 13:46 PDT 2020, Sibi Sankar wrote:
> Add OPP tables required to scale DDR/L3 per freq-domain on SDM845 SoCs.
>
> Signed-off-by: Sibi Sankar
Tested-by: Bjorn Andersson
and applied.
Thanks,
Bjorn
> ---
>
> v2:
> * Drop interconnect tags
> * Add all possible cpu opps from supported frequency list
>
> v1: https://patchwork.kernel.org/patch/11527589/
>
> arch/arm64/boot/dts/qcom/sdm845.dtsi | 285 +++
> 1 file changed, 285 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi
> b/arch/arm64/boot/dts/qcom/sdm845.dtsi
> index 8eb5a31346d28..9a7e27ede7186 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
> @@ -12,6 +12,7 @@
> #include
> #include
> #include
> +#include
> #include
> #include
> #include
> @@ -198,6 +199,9 @@ _CPU_SLEEP_1
> capacity-dmips-mhz = <607>;
> dynamic-power-coefficient = <100>;
> qcom,freq-domain = <_hw 0>;
> + operating-points-v2 = <_opp_table>;
> + interconnects = <_noc MASTER_APPSS_PROC
> _noc SLAVE_EBI1>,
> + <_l3 MASTER_OSM_L3_APPS _l3
> SLAVE_OSM_L3>;
> #cooling-cells = <2>;
> next-level-cache = <_0>;
> L2_0: l2-cache {
> @@ -220,6 +224,9 @@ _CPU_SLEEP_1
> capacity-dmips-mhz = <607>;
> dynamic-power-coefficient = <100>;
> qcom,freq-domain = <_hw 0>;
> + operating-points-v2 = <_opp_table>;
> + interconnects = <_noc MASTER_APPSS_PROC
> _noc SLAVE_EBI1>,
> + <_l3 MASTER_OSM_L3_APPS _l3
> SLAVE_OSM_L3>;
> #cooling-cells = <2>;
> next-level-cache = <_100>;
> L2_100: l2-cache {
> @@ -239,6 +246,9 @@ _CPU_SLEEP_1
> capacity-dmips-mhz = <607>;
> dynamic-power-coefficient = <100>;
> qcom,freq-domain = <_hw 0>;
> + operating-points-v2 = <_opp_table>;
> + interconnects = <_noc MASTER_APPSS_PROC
> _noc SLAVE_EBI1>,
> + <_l3 MASTER_OSM_L3_APPS _l3
> SLAVE_OSM_L3>;
> #cooling-cells = <2>;
> next-level-cache = <_200>;
> L2_200: l2-cache {
> @@ -258,6 +268,9 @@ _CPU_SLEEP_1
> capacity-dmips-mhz = <607>;
> dynamic-power-coefficient = <100>;
> qcom,freq-domain = <_hw 0>;
> + operating-points-v2 = <_opp_table>;
> + interconnects = <_noc MASTER_APPSS_PROC
> _noc SLAVE_EBI1>,
> + <_l3 MASTER_OSM_L3_APPS _l3
> SLAVE_OSM_L3>;
> #cooling-cells = <2>;
> next-level-cache = <_300>;
> L2_300: l2-cache {
> @@ -277,6 +290,9 @@ _CPU_SLEEP_1
> _SLEEP_0>;
> dynamic-power-coefficient = <396>;
> qcom,freq-domain = <_hw 1>;
> + operating-points-v2 = <_opp_table>;
> + interconnects = <_noc MASTER_APPSS_PROC
> _noc SLAVE_EBI1>,
> + <_l3 MASTER_OSM_L3_APPS _l3
> SLAVE_OSM_L3>;
> #cooling-cells = <2>;
> next-level-cache = <_400>;
> L2_400: l2-cache {
> @@ -296,6 +312,9 @@ _CPU_SLEEP_1
> _SLEEP_0>;
> dynamic-power-coefficient = <396>;
> qcom,freq-domain = <_hw 1>;
> + operating-points-v2 = <_opp_table>;
> + interconnects = <_noc MASTER_APPSS_PROC
> _noc SLAVE_EBI1>,
> + <_l3 MASTER_OSM_L3_APPS _l3
> SLAVE_OSM_L3>;
> #cooling-cells = <2>;
> next-level-cache = <_500>;
> L2_500: l2-cache {
> @@ -315,6 +334,9 @@ _CPU_SLEEP_1
> _SLEEP_0>;
> dynamic-power-coefficient = <396>;
> qcom,freq-domain = <_hw 1>;
> + operating-points-v2 = <_opp_table>;
> + interconnects = <_noc MASTER_APPSS_PROC
> _noc SLAVE_EBI1>,
> + <_l3 MASTER_OSM_L3_APPS _l3
> SLAVE_OSM_L3>;
> #cooling-cells = <2>;
> next-level-cache = <_600>;
> L2_600: l2-cache {
> @@ -334,6 +356,9 @@ _CPU_SLEEP_1
> _SLEEP_0>;
> dynamic-power-coefficient = <396>;
>