ARM64: dts: rk3399-box-rev2: enable hdmi uboot logo display
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-opp.dtsi
1 /*
2  * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This library is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This library is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 #include "rk3399-sched-energy.dtsi"
44
45 / {
46         cluster0_opp: opp-table0 {
47                 compatible = "operating-points-v2";
48                 opp-shared;
49
50                 opp@408000000 {
51                         opp-hz = /bits/ 64 <408000000>;
52                         opp-microvolt = <800000>;
53                         clock-latency-ns = <40000>;
54                 };
55                 opp@600000000 {
56                         opp-hz = /bits/ 64 <600000000>;
57                         opp-microvolt = <800000>;
58                         clock-latency-ns = <40000>;
59                 };
60                 opp@816000000 {
61                         opp-hz = /bits/ 64 <816000000>;
62                         opp-microvolt = <850000>;
63                         clock-latency-ns = <40000>;
64                         opp-suspend;
65                 };
66                 opp@1008000000 {
67                         opp-hz = /bits/ 64 <1008000000>;
68                         opp-microvolt = <925000>;
69                         clock-latency-ns = <40000>;
70                 };
71                 opp@1200000000 {
72                         opp-hz = /bits/ 64 <1200000000>;
73                         opp-microvolt = <1000000>;
74                         clock-latency-ns = <40000>;
75                 };
76                 opp@1416000000 {
77                         opp-hz = /bits/ 64 <1416000000>;
78                         opp-microvolt = <1125000>;
79                         clock-latency-ns = <40000>;
80                 };
81         };
82
83         cluster1_opp: opp-table1 {
84                 compatible = "operating-points-v2";
85                 opp-shared;
86
87                 opp@408000000 {
88                         opp-hz = /bits/ 64 <408000000>;
89                         opp-microvolt = <800000>;
90                         clock-latency-ns = <40000>;
91                 };
92                 opp@600000000 {
93                         opp-hz = /bits/ 64 <600000000>;
94                         opp-microvolt = <800000>;
95                         clock-latency-ns = <40000>;
96                 };
97                 opp@816000000 {
98                         opp-hz = /bits/ 64 <816000000>;
99                         opp-microvolt = <825000>;
100                         clock-latency-ns = <40000>;
101                         opp-suspend;
102                 };
103                 opp@1008000000 {
104                         opp-hz = /bits/ 64 <1008000000>;
105                         opp-microvolt = <875000>;
106                         clock-latency-ns = <40000>;
107                 };
108                 opp@1200000000 {
109                         opp-hz = /bits/ 64 <1200000000>;
110                         opp-microvolt = <950000>;
111                         clock-latency-ns = <40000>;
112                 };
113                 opp@1416000000 {
114                         opp-hz = /bits/ 64 <1416000000>;
115                         opp-microvolt = <1025000>;
116                         clock-latency-ns = <40000>;
117                 };
118                 opp@1608000000 {
119                         opp-hz = /bits/ 64 <1608000000>;
120                         opp-microvolt = <1100000>;
121                         clock-latency-ns = <40000>;
122                 };
123                 opp@1800000000 {
124                         opp-hz = /bits/ 64 <1800000000>;
125                         opp-microvolt = <1200000>;
126                         clock-latency-ns = <40000>;
127                 };
128         };
129
130         gpu_opp_table: opp-table2 {
131                 compatible = "operating-points-v2";
132
133                 opp@200000000 {
134                         opp-hz = /bits/ 64 <200000000>;
135                         opp-microvolt = <800000>;
136                 };
137                 opp@297000000 {
138                         opp-hz = /bits/ 64 <297000000>;
139                         opp-microvolt = <800000>;
140                 };
141                 opp@400000000 {
142                         opp-hz = /bits/ 64 <400000000>;
143                         opp-microvolt = <825000>;
144                 };
145                 opp@500000000 {
146                         opp-hz = /bits/ 64 <500000000>;
147                         opp-microvolt = <875000>;
148                 };
149                 opp@594000000 {
150                         opp-hz = /bits/ 64 <594000000>;
151                         opp-microvolt = <925000>;
152                 };
153                 opp@800000000 {
154                         opp-hz = /bits/ 64 <800000000>;
155                         opp-microvolt = <1100000>;
156                 };
157         };
158
159         dmc_opp_table: opp-table3 {
160                 compatible = "operating-points-v2";
161
162                 opp@200000000 {
163                         opp-hz = /bits/ 64 <200000000>;
164                         opp-microvolt = <825000>;
165                 };
166                 opp@297000000 {
167                         opp-hz = /bits/ 64 <297000000>;
168                         opp-microvolt = <850000>;
169                 };
170                 opp@400000000 {
171                         opp-hz = /bits/ 64 <400000000>;
172                         opp-microvolt = <850000>;
173                 };
174                 opp@594000000 {
175                         opp-hz = /bits/ 64 <594000000>;
176                         opp-microvolt = <900000>;
177                 };
178                 opp@800000000 {
179                         opp-hz = /bits/ 64 <800000000>;
180                         opp-microvolt = <900000>;
181                 };
182         };
183 };
184
185 &cpu_l0 {
186         operating-points-v2 = <&cluster0_opp>;
187         sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>;
188 };
189
190 &cpu_l1 {
191         operating-points-v2 = <&cluster0_opp>;
192         sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>;
193 };
194
195 &cpu_l2 {
196         operating-points-v2 = <&cluster0_opp>;
197         sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>;
198 };
199
200 &cpu_l3 {
201         operating-points-v2 = <&cluster0_opp>;
202         sched-energy-costs = <&RK3399_CPU_COST_0 &RK3399_CLUSTER_COST_0>;
203 };
204
205 &cpu_b0 {
206         operating-points-v2 = <&cluster1_opp>;
207         sched-energy-costs = <&RK3399_CPU_COST_1 &RK3399_CLUSTER_COST_1>;
208 };
209
210 &cpu_b1 {
211         operating-points-v2 = <&cluster1_opp>;
212         sched-energy-costs = <&RK3399_CPU_COST_1 &RK3399_CLUSTER_COST_1>;
213 };
214
215 &gpu {
216         operating-points-v2 = <&gpu_opp_table>;
217 };
218
219 &dmc {
220         operating-points-v2 = <&dmc_opp_table>;
221 };