Prakash Kamliya | 14f5fb3 | 2014-01-21 00:40:13 +0530 | [diff] [blame^] | 1 | /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 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 | */ |
Stepan Moskovchenko | 7d8cdcaa | 2013-04-25 17:10:55 -0700 | [diff] [blame] | 12 | &soc { |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 13 | msm_gpu: qcom,kgsl-3d0@fdb00000 { |
| 14 | label = "kgsl-3d0"; |
| 15 | compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d"; |
| 16 | reg = <0xfdb00000 0x10000 |
| 17 | 0xfdb20000 0x10000>; |
| 18 | reg-names = "kgsl_3d0_reg_memory" , "kgsl_3d0_shader_memory"; |
| 19 | interrupts = <0 33 0>; |
| 20 | interrupt-names = "kgsl_3d0_irq"; |
| 21 | qcom,id = <0>; |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 22 | |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 23 | qcom,chipid = <0x03000510>; |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 24 | |
Lucille Sylvester | ab700f1 | 2013-04-15 13:38:46 -0600 | [diff] [blame] | 25 | qcom,initial-pwrlevel = <1>; |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 26 | |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 27 | qcom,idle-timeout = <8>; //<HZ/12> |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 28 | qcom,strtstp-sleepwake; |
| 29 | qcom,clk-map = <0x00000016>; /* KGSL_CLK_CORE | KGSL_CLK_IFACE | KGSL_CLK_MEM_IFACE */ |
liu zhong | 90fa29f | 2013-02-21 12:07:06 -0800 | [diff] [blame] | 30 | |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 31 | /* Bus Scale Settings */ |
| 32 | qcom,msm-bus,name = "grp3d"; |
| 33 | qcom,msm-bus,num-cases = <4>; |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 34 | qcom,msm-bus,num-paths = <2>; |
| 35 | qcom,msm-bus,vectors-KBps = |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 36 | <26 512 0 0>, <89 604 0 0>, |
yuyang | 5eb69ae | 2013-03-22 13:02:23 -0700 | [diff] [blame] | 37 | <26 512 0 1600000>, <89 604 0 3200000>, |
| 38 | <26 512 0 3200000>, <89 604 0 5120000>, |
| 39 | <26 512 0 4256000>, <89 604 0 6400000>; |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 40 | |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 41 | |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 42 | /* GDSC oxili regulators */ |
| 43 | vddcx-supply = "\0"; |
| 44 | vdd-supply = <&gdsc_oxili_cx>; |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 45 | |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 46 | |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 47 | /* IOMMU Data */ |
| 48 | iommu = <&kgsl_iommu>; |
| 49 | |
Prakash Kamliya | 14f5fb3 | 2014-01-21 00:40:13 +0530 | [diff] [blame^] | 50 | /* CPU latency parameter */ |
| 51 | qcom,pm-qos-latency = <701>; |
| 52 | |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 53 | /* Power levels */ |
| 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>; |
| 62 | qcom,gpu-freq = <450000000>; |
| 63 | qcom,bus-freq = <3>; |
| 64 | qcom,io-fraction = <0>; |
| 65 | }; |
| 66 | |
| 67 | qcom,gpu-pwrlevel@1 { |
| 68 | reg = <1>; |
| 69 | qcom,gpu-freq = <320000000>; |
| 70 | qcom,bus-freq = <2>; |
| 71 | qcom,io-fraction = <33>; |
| 72 | }; |
| 73 | |
| 74 | qcom,gpu-pwrlevel@2 { |
| 75 | reg = <2>; |
| 76 | qcom,gpu-freq = <200000000>; |
| 77 | qcom,bus-freq = <1>; |
| 78 | qcom,io-fraction = <100>; |
| 79 | }; |
| 80 | |
| 81 | qcom,gpu-pwrlevel@3 { |
| 82 | reg = <3>; |
| 83 | qcom,gpu-freq = <19000000>; |
| 84 | qcom,bus-freq = <0>; |
| 85 | qcom,io-fraction = <0>; |
| 86 | }; |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 87 | }; |
| 88 | |
Jordan Crouse | bc8acae | 2013-03-27 16:33:54 -0600 | [diff] [blame] | 89 | qcom,dcvs-core-info { |
| 90 | #address-cells = <1>; |
| 91 | #size-cells = <0>; |
| 92 | |
| 93 | compatible = "qcom,dcvs-core-info"; |
| 94 | |
| 95 | qcom,num-cores = <1>; |
| 96 | qcom,sensors = <0>; |
| 97 | |
| 98 | qcom,core-core-type = <1>; |
| 99 | |
| 100 | qcom,algo-disable-pc-threshold = <0>; |
| 101 | qcom,algo-em-win-size-min-us = <100000>; |
| 102 | qcom,algo-em-win-size-max-us = <300000>; |
| 103 | qcom,algo-em-max-util-pct = <97>; |
| 104 | qcom,algo-group-id = <95>; |
| 105 | qcom,algo-max-freq-chg-time-us = <100000>; |
| 106 | qcom,algo-slack-mode-dynamic = <100000>; |
| 107 | qcom,algo-slack-weight-thresh-pct = <0>; |
| 108 | qcom,algo-slack-time-min-us = <39000>; |
| 109 | qcom,algo-slack-time-max-us = <39000>; |
| 110 | qcom,algo-ss-win-size-min-us = <1000000>; |
| 111 | qcom,algo-ss-win-size-max-us = <1000000>; |
| 112 | qcom,algo-ss-util-pct = <95>; |
| 113 | qcom,algo-ss-no-corr-below-freq = <0>; |
| 114 | |
| 115 | qcom,energy-active-coeff-a = <2492>; |
| 116 | qcom,energy-active-coeff-b = <0>; |
| 117 | qcom,energy-active-coeff-c = <0>; |
| 118 | qcom,energy-leakage-coeff-a = <11>; |
| 119 | qcom,energy-leakage-coeff-b = <157150>; |
| 120 | qcom,energy-leakage-coeff-c = <0>; |
| 121 | qcom,energy-leakage-coeff-d = <0>; |
| 122 | |
| 123 | qcom,power-current-temp = <25>; |
| 124 | qcom,power-num-freq = <4>; |
| 125 | |
| 126 | qcom,dcvs-freq@0 { |
| 127 | reg = <0>; |
| 128 | qcom,freq = <0>; |
| 129 | qcom,voltage = <0>; |
| 130 | qcom,is_trans_level = <0>; |
| 131 | qcom,active-energy-offset = <100>; |
| 132 | qcom,leakage-energy-offset = <0>; |
| 133 | }; |
| 134 | |
| 135 | qcom,dcvs-freq@1 { |
| 136 | reg = <1>; |
| 137 | qcom,freq = <0>; |
| 138 | qcom,voltage = <0>; |
| 139 | qcom,is_trans_level = <0>; |
| 140 | qcom,active-energy-offset = <100>; |
| 141 | qcom,leakage-energy-offset = <0>; |
| 142 | }; |
| 143 | |
| 144 | qcom,dcvs-freq@2 { |
| 145 | reg = <2>; |
| 146 | qcom,freq = <0>; |
| 147 | qcom,voltage = <0>; |
| 148 | qcom,is_trans_level = <0>; |
| 149 | qcom,active-energy-offset = <100>; |
| 150 | qcom,leakage-energy-offset = <0>; |
| 151 | }; |
| 152 | |
| 153 | qcom,dcvs-freq@3 { |
| 154 | reg = <3>; |
| 155 | qcom,freq = <0>; |
| 156 | qcom,voltage = <0>; |
| 157 | qcom,is_trans_level = <0>; |
| 158 | qcom,active-energy-offset = <844545>; |
| 159 | qcom,leakage-energy-offset = <0>; |
| 160 | }; |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 161 | }; |
| 162 | |
liu zhong | f5c0edb | 2013-01-25 11:18:53 -0700 | [diff] [blame] | 163 | }; |
| 164 | }; |