blob: 88eeb33ffd23cda92bf625719d0bd33c75f90c04 [file] [log] [blame]
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -07001/* Copyright (c) 2012, 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/ {
13 qcom,kgsl-3d0@fdb00000 {
14 label = "kgsl-3d0";
15 compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d";
16 reg = <0xfdb00000 0x20000>;
17 reg-names = "kgsl_3d0_reg_memory";
18 interrupts = <0 33 0>;
19 interrupt-names = "kgsl_3d0_irq";
20 qcom,id = <0>;
21
22 qcom,chipid = <0x03030000>;
23
24 qcom,initial-pwrlevel = <1>;
25
26 qcom,idle-timeout = <83>; //<HZ/12>
27 qcom,nap-allowed = <1>;
28 qcom,clk-map = <0x00000016>; //KGSL_CLK_CORE | KGSL_CLK_IFACE | KGSL_CLK_MEM_IFACE
29
30 /* Bus Scale Settings */
31 qcom,grp3d-vectors = <0 0 0 0>, <2 1 0 0>,
32 <0 0 0 2000>, <2 1 0 3000>,
33 <0 0 0 4000>, <2 1 0 5000>,
34 <0 0 0 6400>, <2 1 0 7600>;
35 qcom,grp3d-num-vectors-per-usecase = <2>;
36 qcom,grp3d-num-bus-scale-usecases = <4>;
37
38 /* GDSC oxili regulators */
39 vddcx-supply = <&gdsc_oxili_cx>;
40 vdd-supply = <&gdsc_oxili_gx>;
41
42 /* Power levels */
43
44 /* IOMMU Data */
45 iommu = <&kgsl_iommu>;
46
47 qcom,gpu-pwrlevels {
48 #address-cells = <1>;
49 #size-cells = <0>;
50
51 compatible = "qcom,gpu-pwrlevels";
52
53 qcom,gpu-pwrlevel@0 {
54 reg = <0>;
55 qcom,gpu-freq = <500000000>;
56 qcom,bus-freq = <3>;
57 qcom,io-fraction = <0>;
58 };
59
60 qcom,gpu-pwrlevel@1 {
61 reg = <1>;
62 qcom,gpu-freq = <333000000>;
63 qcom,bus-freq = <2>;
64 qcom,io-fraction = <33>;
65 };
66
67 qcom,gpu-pwrlevel@2 {
68 reg = <2>;
69 qcom,gpu-freq = <200000000>;
70 qcom,bus-freq = <1>;
71 qcom,io-fraction = <100>;
72 };
73
74 qcom,gpu-pwrlevel@3 {
75 reg = <3>;
76 qcom,gpu-freq = <27000000>;
77 qcom,bus-freq = <0>;
78 qcom,io-fraction = <0>;
79 };
80 };
81
82 qcom,dcvs-core-info {
83 #address-cells = <1>;
84 #size-cells = <0>;
85
86 compatible = "qcom,dcvs-core-info";
87
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -070088 qcom,core-core-type = <1>;
89
90 qcom,algo-disable-pc-threshold = <0>;
91 qcom,algo-em-win-size-min-us = <100000>;
92 qcom,algo-em-win-size-max-us = <300000>;
Pu Chen1335e872012-08-01 08:45:25 -060093 qcom,algo-em-max-util-pct = <97>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -070094 qcom,algo-group-id = <95>;
95 qcom,algo-max-freq-chg-time-us = <100000>;
96 qcom,algo-slack-mode-dynamic = <100000>;
97 qcom,algo-slack-weight-thresh-pct = <0>;
98 qcom,algo-slack-time-min-us = <39000>;
99 qcom,algo-slack-time-max-us = <39000>;
100 qcom,algo-ss-win-size-min-us = <1000000>;
101 qcom,algo-ss-win-size-max-us = <1000000>;
102 qcom,algo-ss-util-pct = <95>;
Pu Chen1335e872012-08-01 08:45:25 -0600103 qcom,algo-ss-iobusy-conv = <100>;
104
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700105 qcom,energy-active-coeff-a = <2492>;
106 qcom,energy-active-coeff-b = <0>;
107 qcom,energy-active-coeff-c = <0>;
108 qcom,energy-leakage-coeff-a = <11>;
109 qcom,energy-leakage-coeff-b = <157150>;
110 qcom,energy-leakage-coeff-c = <0>;
111 qcom,energy-leakage-coeff-d = <0>;
112
113 qcom,power-current-temp = <25>;
114 qcom,power-num-freq = <4>;
115
Pu Chen1335e872012-08-01 08:45:25 -0600116 qcom,dcvs-freq@0 {
117 reg = <0>;
118 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700119 qcom,voltage = <0>;
120 qcom,is_trans_level = <0>;
121 qcom,active-energy-offset = <100>;
122 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600123 };
124
125 qcom,dcvs-freq@1 {
126 reg = <1>;
127 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700128 qcom,voltage = <0>;
129 qcom,is_trans_level = <0>;
130 qcom,active-energy-offset = <100>;
131 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600132 };
133
134 qcom,dcvs-freq@2 {
135 reg = <2>;
136 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700137 qcom,voltage = <0>;
138 qcom,is_trans_level = <0>;
139 qcom,active-energy-offset = <100>;
140 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600141 };
142
143 qcom,dcvs-freq@3 {
144 reg = <3>;
145 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700146 qcom,voltage = <0>;
147 qcom,is_trans_level = <0>;
148 qcom,active-energy-offset = <844545>;
149 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600150 };
151 };
152
153 };
154};