blob: 3779dbd0bbfb36d03bc857ff766506dcc4e3ecd1 [file] [log] [blame]
Vladimir Razgulin20df89c2012-12-19 15:16:47 -07001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Pu Chen1335e872012-08-01 08:45:25 -06002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12/ {
Jordan Crousec13e9e92013-01-29 10:13:36 -070013 msm_gpu: qcom,kgsl-3d0@fdb00000 {
Pu Chen1335e872012-08-01 08:45:25 -060014 label = "kgsl-3d0";
15 compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d";
Harsh Vardhan Dwivedi623b9a22012-10-28 20:54:17 -060016 reg = <0xfdb00000 0x10000
17 0xfdb20000 0x10000>;
18 reg-names = "kgsl_3d0_reg_memory" , "kgsl_3d0_shader_memory";
Pu Chen1335e872012-08-01 08:45:25 -060019 interrupts = <0 33 0>;
20 interrupt-names = "kgsl_3d0_irq";
21 qcom,id = <0>;
22
23 qcom,chipid = <0x03030000>;
24
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070025 qcom,initial-pwrlevel = <2>;
26 qcom,step-pwrlevel = <2>;
Pu Chen1335e872012-08-01 08:45:25 -060027
Vladimir Razgulin20df89c2012-12-19 15:16:47 -070028 qcom,idle-timeout = <8>; //<HZ/12>
Pu Chen1335e872012-08-01 08:45:25 -060029 qcom,nap-allowed = <1>;
Harsh Vardhan Dwivedi41588242012-08-29 18:49:57 -060030 qcom,strtstp-sleepwake;
Harsh Vardhan Dwivedicb067ec2012-10-08 16:41:10 -060031 qcom,clk-map = <0x0000006>; //KGSL_CLK_CORE | KGSL_CLK_IFACE
Pu Chen1335e872012-08-01 08:45:25 -060032
33 /* Bus Scale Settings */
Gagan Macb2372ae2012-08-20 19:24:32 -060034 qcom,msm-bus,name = "grp3d";
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070035 qcom,msm-bus,num-cases = <6>;
Gagan Macb2372ae2012-08-20 19:24:32 -060036 qcom,msm-bus,num-paths = <2>;
37 qcom,msm-bus,vectors-KBps =
38 <26 512 0 0>, <89 604 0 0>,
Lucille Sylvesterd3938cd2013-01-23 17:08:11 -070039 <26 512 0 2200000>, <89 604 0 3000000>,
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070040 <26 512 0 4000000>, <89 604 0 3000000>,
Lucille Sylvesterfa9bbae2012-12-05 16:04:59 -070041 <26 512 0 4000000>, <89 604 0 4500000>,
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070042 <26 512 0 6400000>, <89 604 0 4500000>,
Gagan Macb2372ae2012-08-20 19:24:32 -060043 <26 512 0 6400000>, <89 604 0 7600000>;
Pu Chen1335e872012-08-01 08:45:25 -060044
45 /* GDSC oxili regulators */
46 vddcx-supply = <&gdsc_oxili_cx>;
47 vdd-supply = <&gdsc_oxili_gx>;
48
49 /* Power levels */
50
51 /* IOMMU Data */
52 iommu = <&kgsl_iommu>;
53
54 qcom,gpu-pwrlevels {
55 #address-cells = <1>;
56 #size-cells = <0>;
57
58 compatible = "qcom,gpu-pwrlevels";
59
60 qcom,gpu-pwrlevel@0 {
61 reg = <0>;
Alex Wongcadb9e42012-09-07 21:50:07 -070062 qcom,gpu-freq = <450000000>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070063 qcom,bus-freq = <5>;
Lucille Sylvester0186d352013-03-11 11:31:17 -060064 qcom,io-fraction = <33>;
Pu Chen1335e872012-08-01 08:45:25 -060065 };
66
67 qcom,gpu-pwrlevel@1 {
68 reg = <1>;
Suman Tatiraju392822d2013-03-27 11:26:24 -070069 qcom,gpu-freq = <320000000>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070070 qcom,bus-freq = <4>;
Lucille Sylvester0186d352013-03-11 11:31:17 -060071 qcom,io-fraction = <66>;
Pu Chen1335e872012-08-01 08:45:25 -060072 };
73
74 qcom,gpu-pwrlevel@2 {
75 reg = <2>;
Suman Tatiraju392822d2013-03-27 11:26:24 -070076 qcom,gpu-freq = <320000000>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070077 qcom,bus-freq = <3>;
Lucille Sylvester0186d352013-03-11 11:31:17 -060078 qcom,io-fraction = <66>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070079 };
80
81 qcom,gpu-pwrlevel@3 {
82 reg = <3>;
83 qcom,gpu-freq = <200000000>;
84 qcom,bus-freq = <2>;
85 qcom,io-fraction = <100>;
86 };
87
88 qcom,gpu-pwrlevel@4 {
89 reg = <4>;
Pu Chen1335e872012-08-01 08:45:25 -060090 qcom,gpu-freq = <200000000>;
91 qcom,bus-freq = <1>;
92 qcom,io-fraction = <100>;
93 };
94
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070095 qcom,gpu-pwrlevel@5 {
96 reg = <5>;
Pu Chen1335e872012-08-01 08:45:25 -060097 qcom,gpu-freq = <27000000>;
98 qcom,bus-freq = <0>;
99 qcom,io-fraction = <0>;
100 };
101 };
102
103 qcom,dcvs-core-info {
104 #address-cells = <1>;
105 #size-cells = <0>;
106
107 compatible = "qcom,dcvs-core-info";
108
Abhijeet Dharmapurikarfc7dca42012-08-26 18:27:53 -0700109 qcom,num-cores = <1>;
110 qcom,sensors = <0>;
111
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700112 qcom,core-core-type = <1>;
113
114 qcom,algo-disable-pc-threshold = <0>;
115 qcom,algo-em-win-size-min-us = <100000>;
116 qcom,algo-em-win-size-max-us = <300000>;
Pu Chen1335e872012-08-01 08:45:25 -0600117 qcom,algo-em-max-util-pct = <97>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700118 qcom,algo-group-id = <95>;
119 qcom,algo-max-freq-chg-time-us = <100000>;
120 qcom,algo-slack-mode-dynamic = <100000>;
121 qcom,algo-slack-weight-thresh-pct = <0>;
122 qcom,algo-slack-time-min-us = <39000>;
123 qcom,algo-slack-time-max-us = <39000>;
124 qcom,algo-ss-win-size-min-us = <1000000>;
125 qcom,algo-ss-win-size-max-us = <1000000>;
126 qcom,algo-ss-util-pct = <95>;
Steve Mucklee8c6d612012-12-06 14:31:00 -0800127 qcom,algo-ss-no-corr-below-freq = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600128
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700129 qcom,energy-active-coeff-a = <2492>;
130 qcom,energy-active-coeff-b = <0>;
131 qcom,energy-active-coeff-c = <0>;
132 qcom,energy-leakage-coeff-a = <11>;
133 qcom,energy-leakage-coeff-b = <157150>;
134 qcom,energy-leakage-coeff-c = <0>;
135 qcom,energy-leakage-coeff-d = <0>;
136
137 qcom,power-current-temp = <25>;
138 qcom,power-num-freq = <4>;
139
Pu Chen1335e872012-08-01 08:45:25 -0600140 qcom,dcvs-freq@0 {
141 reg = <0>;
142 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700143 qcom,voltage = <0>;
144 qcom,is_trans_level = <0>;
145 qcom,active-energy-offset = <100>;
146 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600147 };
148
149 qcom,dcvs-freq@1 {
150 reg = <1>;
151 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700152 qcom,voltage = <0>;
153 qcom,is_trans_level = <0>;
154 qcom,active-energy-offset = <100>;
155 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600156 };
157
158 qcom,dcvs-freq@2 {
159 reg = <2>;
160 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700161 qcom,voltage = <0>;
162 qcom,is_trans_level = <0>;
163 qcom,active-energy-offset = <100>;
164 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600165 };
166
167 qcom,dcvs-freq@3 {
168 reg = <3>;
169 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700170 qcom,voltage = <0>;
171 qcom,is_trans_level = <0>;
172 qcom,active-energy-offset = <844545>;
173 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600174 };
175 };
176
177 };
178};