blob: 5172a5a8f9abc8e9299b8f17849e078a3f407c39 [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 */
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070012&soc {
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
Alex Wongd451d872013-03-21 13:26:35 -070054 /* Trace bus */
55 coresight-id = <67>;
56 coresight-name = "coresight-gfx";
57 coresight-nr-inports = <0>;
58 coresight-outports = <0>;
59 coresight-child-list = <&funnel_mmss>;
60 coresight-child-ports = <7>;
61
Pu Chen1335e872012-08-01 08:45:25 -060062 qcom,gpu-pwrlevels {
63 #address-cells = <1>;
64 #size-cells = <0>;
65
66 compatible = "qcom,gpu-pwrlevels";
67
68 qcom,gpu-pwrlevel@0 {
69 reg = <0>;
Alex Wongcadb9e42012-09-07 21:50:07 -070070 qcom,gpu-freq = <450000000>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070071 qcom,bus-freq = <5>;
Lucille Sylvester0186d352013-03-11 11:31:17 -060072 qcom,io-fraction = <33>;
Pu Chen1335e872012-08-01 08:45:25 -060073 };
74
75 qcom,gpu-pwrlevel@1 {
76 reg = <1>;
Suman Tatiraju392822d2013-03-27 11:26:24 -070077 qcom,gpu-freq = <320000000>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070078 qcom,bus-freq = <4>;
Lucille Sylvester0186d352013-03-11 11:31:17 -060079 qcom,io-fraction = <66>;
Pu Chen1335e872012-08-01 08:45:25 -060080 };
81
82 qcom,gpu-pwrlevel@2 {
83 reg = <2>;
Suman Tatiraju392822d2013-03-27 11:26:24 -070084 qcom,gpu-freq = <320000000>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070085 qcom,bus-freq = <3>;
Lucille Sylvester0186d352013-03-11 11:31:17 -060086 qcom,io-fraction = <66>;
Lucille Sylvester395e6ce2013-01-18 17:09:02 -070087 };
88
89 qcom,gpu-pwrlevel@3 {
90 reg = <3>;
91 qcom,gpu-freq = <200000000>;
92 qcom,bus-freq = <2>;
93 qcom,io-fraction = <100>;
94 };
95
96 qcom,gpu-pwrlevel@4 {
97 reg = <4>;
Pu Chen1335e872012-08-01 08:45:25 -060098 qcom,gpu-freq = <200000000>;
99 qcom,bus-freq = <1>;
100 qcom,io-fraction = <100>;
101 };
102
Lucille Sylvester395e6ce2013-01-18 17:09:02 -0700103 qcom,gpu-pwrlevel@5 {
104 reg = <5>;
Pu Chen1335e872012-08-01 08:45:25 -0600105 qcom,gpu-freq = <27000000>;
106 qcom,bus-freq = <0>;
107 qcom,io-fraction = <0>;
108 };
109 };
110
111 qcom,dcvs-core-info {
112 #address-cells = <1>;
113 #size-cells = <0>;
114
115 compatible = "qcom,dcvs-core-info";
116
Abhijeet Dharmapurikarfc7dca42012-08-26 18:27:53 -0700117 qcom,num-cores = <1>;
118 qcom,sensors = <0>;
119
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700120 qcom,core-core-type = <1>;
121
122 qcom,algo-disable-pc-threshold = <0>;
123 qcom,algo-em-win-size-min-us = <100000>;
124 qcom,algo-em-win-size-max-us = <300000>;
Pu Chen1335e872012-08-01 08:45:25 -0600125 qcom,algo-em-max-util-pct = <97>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700126 qcom,algo-group-id = <95>;
127 qcom,algo-max-freq-chg-time-us = <100000>;
128 qcom,algo-slack-mode-dynamic = <100000>;
129 qcom,algo-slack-weight-thresh-pct = <0>;
130 qcom,algo-slack-time-min-us = <39000>;
131 qcom,algo-slack-time-max-us = <39000>;
132 qcom,algo-ss-win-size-min-us = <1000000>;
133 qcom,algo-ss-win-size-max-us = <1000000>;
134 qcom,algo-ss-util-pct = <95>;
Steve Mucklee8c6d612012-12-06 14:31:00 -0800135 qcom,algo-ss-no-corr-below-freq = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600136
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700137 qcom,energy-active-coeff-a = <2492>;
138 qcom,energy-active-coeff-b = <0>;
139 qcom,energy-active-coeff-c = <0>;
140 qcom,energy-leakage-coeff-a = <11>;
141 qcom,energy-leakage-coeff-b = <157150>;
142 qcom,energy-leakage-coeff-c = <0>;
143 qcom,energy-leakage-coeff-d = <0>;
144
145 qcom,power-current-temp = <25>;
146 qcom,power-num-freq = <4>;
147
Pu Chen1335e872012-08-01 08:45:25 -0600148 qcom,dcvs-freq@0 {
149 reg = <0>;
150 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700151 qcom,voltage = <0>;
152 qcom,is_trans_level = <0>;
153 qcom,active-energy-offset = <100>;
154 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600155 };
156
157 qcom,dcvs-freq@1 {
158 reg = <1>;
159 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700160 qcom,voltage = <0>;
161 qcom,is_trans_level = <0>;
162 qcom,active-energy-offset = <100>;
163 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600164 };
165
166 qcom,dcvs-freq@2 {
167 reg = <2>;
168 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700169 qcom,voltage = <0>;
170 qcom,is_trans_level = <0>;
171 qcom,active-energy-offset = <100>;
172 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600173 };
174
175 qcom,dcvs-freq@3 {
176 reg = <3>;
177 qcom,freq = <0>;
Abhijeet Dharmapurikar44451662012-08-23 18:58:44 -0700178 qcom,voltage = <0>;
179 qcom,is_trans_level = <0>;
180 qcom,active-energy-offset = <844545>;
181 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600182 };
183 };
184
185 };
186};