blob: 2a69c812c1c81655ef2969f669d14c1490e93b61 [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 Dharmapurikarb6c05772012-08-26 18:27:53 -070088 qcom,num-cores = <1>;
89 qcom,sensors = <0>;
90
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -070091 qcom,core-core-type = <1>;
92
93 qcom,algo-disable-pc-threshold = <0>;
94 qcom,algo-em-win-size-min-us = <100000>;
95 qcom,algo-em-win-size-max-us = <300000>;
Pu Chen1335e872012-08-01 08:45:25 -060096 qcom,algo-em-max-util-pct = <97>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -070097 qcom,algo-group-id = <95>;
98 qcom,algo-max-freq-chg-time-us = <100000>;
99 qcom,algo-slack-mode-dynamic = <100000>;
100 qcom,algo-slack-weight-thresh-pct = <0>;
101 qcom,algo-slack-time-min-us = <39000>;
102 qcom,algo-slack-time-max-us = <39000>;
103 qcom,algo-ss-win-size-min-us = <1000000>;
104 qcom,algo-ss-win-size-max-us = <1000000>;
105 qcom,algo-ss-util-pct = <95>;
Pu Chen1335e872012-08-01 08:45:25 -0600106 qcom,algo-ss-iobusy-conv = <100>;
107
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700108 qcom,energy-active-coeff-a = <2492>;
109 qcom,energy-active-coeff-b = <0>;
110 qcom,energy-active-coeff-c = <0>;
111 qcom,energy-leakage-coeff-a = <11>;
112 qcom,energy-leakage-coeff-b = <157150>;
113 qcom,energy-leakage-coeff-c = <0>;
114 qcom,energy-leakage-coeff-d = <0>;
115
116 qcom,power-current-temp = <25>;
117 qcom,power-num-freq = <4>;
118
Pu Chen1335e872012-08-01 08:45:25 -0600119 qcom,dcvs-freq@0 {
120 reg = <0>;
121 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700122 qcom,voltage = <0>;
123 qcom,is_trans_level = <0>;
124 qcom,active-energy-offset = <100>;
125 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600126 };
127
128 qcom,dcvs-freq@1 {
129 reg = <1>;
130 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700131 qcom,voltage = <0>;
132 qcom,is_trans_level = <0>;
133 qcom,active-energy-offset = <100>;
134 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600135 };
136
137 qcom,dcvs-freq@2 {
138 reg = <2>;
139 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700140 qcom,voltage = <0>;
141 qcom,is_trans_level = <0>;
142 qcom,active-energy-offset = <100>;
143 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600144 };
145
146 qcom,dcvs-freq@3 {
147 reg = <3>;
148 qcom,freq = <0>;
Abhijeet Dharmapurikar7e37e6e2012-08-23 18:58:44 -0700149 qcom,voltage = <0>;
150 qcom,is_trans_level = <0>;
151 qcom,active-energy-offset = <844545>;
152 qcom,leakage-energy-offset = <0>;
Pu Chen1335e872012-08-01 08:45:25 -0600153 };
154 };
155
156 };
157};