/* * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Or, alternatively, * * b) Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include "rk3399-sched-energy.dtsi" / { cluster0_opp: opp-table0 { compatible = "operating-points-v2"; opp-shared; opp@408000000 { opp-hz = /bits/ 64 <408000000>; opp-microvolt = <800000>; clock-latency-ns = <40000>; }; opp@600000000 { opp-hz = /bits/ 64 <600000000>; opp-microvolt = <800000>; clock-latency-ns = <40000>; }; opp@816000000 { opp-hz = /bits/ 64 <816000000>; opp-microvolt = <850000>; clock-latency-ns = <40000>; opp-suspend; }; opp@1008000000 { opp-hz = /bits/ 64 <1008000000>; opp-microvolt = <925000>; clock-latency-ns = <40000>; }; opp@1200000000 { opp-hz = /bits/ 64 <1200000000>; opp-microvolt = <1000000>; clock-latency-ns = <40000>; }; opp@1416000000 { opp-hz = /bits/ 64 <1416000000>; opp-microvolt = <1125000>; clock-latency-ns = <40000>; }; }; cluster1_opp: opp-table1 { compatible = "operating-points-v2"; opp-shared; opp@408000000 { opp-hz = /bits/ 64 <408000000>; opp-microvolt = <800000>; clock-latency-ns = <40000>; }; opp@600000000 { opp-hz = /bits/ 64 <600000000>; opp-microvolt = <800000>; clock-latency-ns = <40000>; }; opp@816000000 { opp-hz = /bits/ 64 <816000000>; opp-microvolt = <825000>; clock-latency-ns = <40000>; opp-suspend; }; opp@1008000000 { opp-hz = /bits/ 64 <1008000000>; opp-microvolt = <875000>; clock-latency-ns = <40000>; }; opp@1200000000 { opp-hz = /bits/ 64 <1200000000>; opp-microvolt = <950000>; clock-latency-ns = <40000>; }; opp@1416000000 { opp-hz = /bits/ 64 <1416000000>; opp-microvolt = <1025000>; clock-latency-ns = <40000>; }; opp@1608000000 { opp-hz = /bits/ 64 <1608000000>; opp-microvolt = <1100000>; clock-latency-ns = <40000>; }; opp@1800000000 { opp-hz = /bits/ 64 <1800000000>; opp-microvolt = <1200000>; clock-latency-ns = <40000>; }; }; gpu_opp_table: opp-table2 { compatible = "operating-points-v2"; opp@200000000 { opp-hz = /bits/ 64 <200000000>; opp-microvolt = <800000>; }; opp@297000000 { opp-hz = /bits/ 64 <297000000>; opp-microvolt = <800000>; }; opp@400000000 { opp-hz = /bits/ 64 <400000000>; opp-microvolt = <825000>; }; opp@500000000 { opp-hz = /bits/ 64 <500000000>; opp-microvolt = <875000>; }; opp@594000000 { opp-hz = /bits/ 64 <594000000>; opp-microvolt = <925000>; }; opp@800000000 { opp-hz = /bits/ 64 <800000000>; opp-microvolt = <1100000>; }; }; dmc_opp_table: opp-table3 { compatible = "operating-points-v2"; opp@200000000 { opp-hz = /bits/ 64 <200000000>; opp-microvolt = <825000>; }; opp@297000000 { opp-hz = /bits/ 64 <297000000>; opp-microvolt = <850000>; }; opp@400000000 { opp-hz = /bits/ 64 <400000000>; opp-microvolt = <850000>; }; opp@594000000 { opp-hz = /bits/ 64 <594000000>; opp-microvolt = <900000>; }; opp@800000000 { opp-hz = /bits/ 64 <800000000>; opp-microvolt = <900000>; }; }; }; &cpu_l0 { operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>; }; &cpu_l1 { operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>; }; &cpu_l2 { operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>; }; &cpu_l3 { operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>; }; &cpu_b0 { operating-points-v2 = <&cluster1_opp>; sched-energy-costs = <&RK3399_CPU_COST_1 &RK3399_CLUSTER_COST_1>; }; &cpu_b1 { operating-points-v2 = <&cluster1_opp>; sched-energy-costs = <&RK3399_CPU_COST_1 &RK3399_CLUSTER_COST_1>; }; &gpu { operating-points-v2 = <&gpu_opp_table>; }; &dmc { operating-points-v2 = <&dmc_opp_table>; };