blob: 8570b4f5e819a0f981b942e104e78f6759ddbe8c [file] [log] [blame]
liu zhong190bb212013-04-19 19:29:51 -07001/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
2 *
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&soc {
14 msm_gpu: qcom,kgsl-3d0@fdb00000 {
15 label = "kgsl-3d0";
16 compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d";
17 reg = <0xfdb00000 0x10000
18 0xfdb20000 0x20000>;
19 reg-names = "kgsl_3d0_reg_memory" , "kgsl_3d0_shader_memory";
20 interrupts = <0 33 0>;
21 interrupt-names = "kgsl_3d0_irq";
22 qcom,id = <0>;
23
24 qcom,chipid = <0x04020000>;
25
26 qcom,initial-pwrlevel = <2>;
27
28 qcom,idle-timeout = <8>; //<HZ/12>
29 qcom,strtstp-sleepwake;
30 qcom,clk-map = <0x00000016>; //KGSL_CLK_CORE | KGSL_CLK_IFACE | KGSL_CLK_MEM_IFACE
31
32 /* Bus Scale Settings */
33 qcom,msm-bus,name = "grp3d";
34 qcom,msm-bus,num-cases = <5>;
35 qcom,msm-bus,num-paths = <2>;
36 qcom,msm-bus,vectors-KBps =
37 <26 512 0 0>, <89 604 0 0>,
38 <26 512 0 3144000>, <89 604 0 3200000>,
39 <26 512 0 4800000>, <89 604 0 4800000>,
40 <26 512 0 6400000>, <89 604 0 6400000>,
41 <26 512 0 8528000>, <89 604 0 9600000>;
42
43 /* GDSC oxili regulators */
44 vddcx-supply = <&gdsc_oxili_cx>;
45 vdd-supply = <&gdsc_oxili_gx>;
46
47 /* IOMMU Data */
48 iommu = <&kgsl_iommu>;
49
50 /* Power levels */
51 qcom,gpu-pwrlevels {
52 #address-cells = <1>;
53 #size-cells = <0>;
54
55 compatible = "qcom,gpu-pwrlevels";
56
57 qcom,gpu-pwrlevel@0 {
58 reg = <0>;
59 qcom,gpu-freq = <600000000>;
60 qcom,bus-freq = <4>;
61 qcom,io-fraction = <33>;
62 };
63
64 qcom,gpu-pwrlevel@1 {
65 reg = <1>;
66 qcom,gpu-freq = <400000000>;
67 qcom,bus-freq = <3>;
68 qcom,io-fraction = <66>;
69 };
70
71 qcom,gpu-pwrlevel@2 {
72 reg = <2>;
73 qcom,gpu-freq = <300000000>;
74 qcom,bus-freq = <2>;
75 qcom,io-fraction = <100>;
76 };
77
78 qcom,gpu-pwrlevel@3 {
79 reg = <3>;
80 qcom,gpu-freq = <200000000>;
81 qcom,bus-freq = <1>;
82 qcom,io-fraction = <100>;
83 };
84
85 qcom,gpu-pwrlevel@4 {
86 reg = <4>;
87 qcom,gpu-freq = <27000000>;
88 qcom,bus-freq = <0>;
89 qcom,io-fraction = <0>;
90 };
91 };
92
93 };
94};
95