Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, 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 | |
Shrenuj Bansal | 678b486 | 2017-04-27 12:51:29 -0700 | [diff] [blame] | 15 | pil_gpu: qcom,kgsl-hyp { |
| 16 | compatible = "qcom,pil-tz-generic"; |
| 17 | qcom,pas-id = <13>; |
| 18 | qcom,firmware-name = "a630_zap"; |
| 19 | }; |
| 20 | |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 21 | msm_bus: qcom,kgsl-busmon{ |
| 22 | label = "kgsl-busmon"; |
| 23 | compatible = "qcom,kgsl-busmon"; |
| 24 | }; |
| 25 | |
| 26 | gpubw: qcom,gpubw { |
| 27 | compatible = "qcom,devbw"; |
| 28 | governor = "bw_vbif"; |
| 29 | qcom,src-dst-ports = <26 512>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 30 | qcom,bw-tbl = |
| 31 | < 0 /* off */ >, |
Deepak Kumar | a448db1 | 2017-08-09 15:25:18 +0530 | [diff] [blame] | 32 | < 381 /* 100 MHz */ >, |
| 33 | < 572 /* 150 MHz */ >, |
| 34 | < 762 /* 200 MHz */ >, |
| 35 | < 1144 /* 300 MHz */ >, |
| 36 | < 1571 /* 412 MHz */ >, |
| 37 | < 2086 /* 547 MHz */ >, |
| 38 | < 2597 /* 681 MHz */ >, |
| 39 | < 2929 /* 768 MHz */ >, |
| 40 | < 3879 /* 1017 MHz */ >, |
| 41 | < 4943 /* 1296 MHz */ >, |
| 42 | < 5931 /* 1555 MHz */ >, |
| 43 | < 6881 /* 1804 MHz */ >; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | msm_gpu: qcom,kgsl-3d0@5000000 { |
| 47 | label = "kgsl-3d0"; |
| 48 | compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d"; |
| 49 | status = "ok"; |
| 50 | reg = <0x5000000 0x40000>; |
| 51 | reg-names = "kgsl_3d0_reg_memory"; |
| 52 | interrupts = <0 300 0>; |
| 53 | interrupt-names = "kgsl_3d0_irq"; |
| 54 | qcom,id = <0>; |
| 55 | |
| 56 | qcom,chipid = <0x06030000>; |
| 57 | |
George Shen | 19350fb | 2017-06-09 08:44:24 -0700 | [diff] [blame] | 58 | qcom,initial-pwrlevel = <5>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 59 | |
| 60 | qcom,gpu-quirk-hfi-use-reg; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 61 | |
Kyle Piefer | 4b4ced7 | 2017-05-02 15:44:53 -0700 | [diff] [blame] | 62 | qcom,idle-timeout = <80>; //msecs |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 63 | qcom,no-nap; |
| 64 | |
| 65 | qcom,highest-bank-bit = <15>; |
| 66 | |
| 67 | qcom,min-access-length = <32>; |
| 68 | |
| 69 | qcom,ubwc-mode = <2>; |
| 70 | |
| 71 | qcom,snapshot-size = <1048576>; //bytes |
| 72 | |
| 73 | qcom,gpu-qdss-stm = <0x161c0000 0x40000>; // base addr, size |
| 74 | |
| 75 | qcom,tsens-name = "tsens_tz_sensor12"; |
Ram Chandrasekar | 36ffe55 | 2017-04-17 16:33:05 -0600 | [diff] [blame] | 76 | #cooling-cells = <2>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 77 | |
| 78 | clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK>, |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 79 | <&clock_gpucc GPU_CC_CXO_CLK>, |
| 80 | <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>, |
Harshdeep Dhatt | 7a7b531 | 2017-04-20 21:36:55 -0600 | [diff] [blame] | 81 | <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>, |
| 82 | <&clock_gpucc GPU_CC_CX_GMU_CLK>, |
Harshdeep Dhatt | 82d4f6a | 2017-08-18 12:29:27 -0600 | [diff] [blame] | 83 | <&clock_gpucc GPU_CC_AHB_CLK>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 84 | |
Harshdeep Dhatt | 7a7b531 | 2017-04-20 21:36:55 -0600 | [diff] [blame] | 85 | clock-names = "core_clk", "rbbmtimer_clk", "mem_clk", |
Harshdeep Dhatt | 82d4f6a | 2017-08-18 12:29:27 -0600 | [diff] [blame] | 86 | "mem_iface_clk", "gmu_clk", "ahb_clk"; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 87 | |
| 88 | qcom,isense-clk-on-level = <1>; |
| 89 | |
| 90 | /* Bus Scale Settings */ |
| 91 | qcom,gpubw-dev = <&gpubw>; |
| 92 | qcom,bus-control; |
| 93 | qcom,msm-bus,name = "grp3d"; |
Deepak Kumar | a448db1 | 2017-08-09 15:25:18 +0530 | [diff] [blame] | 94 | qcom,bus-width = <32>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 95 | qcom,msm-bus,num-cases = <13>; |
| 96 | qcom,msm-bus,num-paths = <1>; |
| 97 | qcom,msm-bus,vectors-KBps = |
| 98 | <26 512 0 0>, |
| 99 | |
George Shen | 85c1ecc | 2017-07-11 14:48:20 -0700 | [diff] [blame] | 100 | <26 512 0 400000>, // 1 bus=100 |
| 101 | <26 512 0 600000>, // 2 bus=150 |
| 102 | <26 512 0 800000>, // 3 bus=200 |
| 103 | <26 512 0 1200000>, // 4 bus=300 |
| 104 | <26 512 0 1648000>, // 5 bus=412 |
| 105 | <26 512 0 2188000>, // 6 bus=547 |
| 106 | <26 512 0 2724000>, // 7 bus=681 |
| 107 | <26 512 0 3072000>, // 8 bus=768 |
| 108 | <26 512 0 4068000>, // 9 bus=1017 |
| 109 | <26 512 0 5184000>, // 10 bus=1296 |
| 110 | <26 512 0 6220000>, // 11 bus=1555 |
| 111 | <26 512 0 7216000>; // 12 bus=1804 |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 112 | |
| 113 | /* GDSC regulator names */ |
| 114 | regulator-names = "vddcx", "vdd"; |
| 115 | /* GDSC oxili regulators */ |
| 116 | vddcx-supply = <&gpu_cx_gdsc>; |
| 117 | vdd-supply = <&gpu_gx_gdsc>; |
| 118 | |
| 119 | /* GPU related llc slices */ |
| 120 | cache-slice-names = "gpu", "gpuhtw"; |
| 121 | cache-slices = <&llcc 12>, <&llcc 11>; |
| 122 | |
| 123 | /* GPU Mempools */ |
| 124 | qcom,gpu-mempools { |
| 125 | #address-cells = <1>; |
| 126 | #size-cells = <0>; |
| 127 | compatible = "qcom,gpu-mempools"; |
| 128 | |
| 129 | /* 4K Page Pool configuration */ |
| 130 | qcom,gpu-mempool@0 { |
| 131 | reg = <0>; |
| 132 | qcom,mempool-page-size = <4096>; |
| 133 | qcom,mempool-reserved = <2048>; |
| 134 | qcom,mempool-allocate; |
| 135 | }; |
| 136 | /* 8K Page Pool configuration */ |
| 137 | qcom,gpu-mempool@1 { |
| 138 | reg = <1>; |
| 139 | qcom,mempool-page-size = <8192>; |
| 140 | qcom,mempool-reserved = <1024>; |
| 141 | qcom,mempool-allocate; |
| 142 | }; |
| 143 | /* 64K Page Pool configuration */ |
| 144 | qcom,gpu-mempool@2 { |
| 145 | reg = <2>; |
| 146 | qcom,mempool-page-size = <65536>; |
| 147 | qcom,mempool-reserved = <256>; |
| 148 | }; |
| 149 | /* 1M Page Pool configuration */ |
| 150 | qcom,gpu-mempool@3 { |
| 151 | reg = <3>; |
| 152 | qcom,mempool-page-size = <1048576>; |
| 153 | qcom,mempool-reserved = <32>; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | /* Power levels */ |
| 158 | qcom,gpu-pwrlevels { |
| 159 | #address-cells = <1>; |
| 160 | #size-cells = <0>; |
| 161 | |
| 162 | compatible = "qcom,gpu-pwrlevels"; |
| 163 | |
| 164 | qcom,gpu-pwrlevel@0 { |
| 165 | reg = <0>; |
George Shen | 19350fb | 2017-06-09 08:44:24 -0700 | [diff] [blame] | 166 | qcom,gpu-freq = <600000000>; |
| 167 | qcom,bus-freq = <12>; |
| 168 | qcom,bus-min = <11>; |
| 169 | qcom,bus-max = <12>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 170 | }; |
| 171 | |
| 172 | |
| 173 | qcom,gpu-pwrlevel@1 { |
| 174 | reg = <1>; |
George Shen | 19350fb | 2017-06-09 08:44:24 -0700 | [diff] [blame] | 175 | qcom,gpu-freq = <548000000>; |
| 176 | qcom,bus-freq = <12>; |
| 177 | qcom,bus-min = <10>; |
| 178 | qcom,bus-max = <12>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | qcom,gpu-pwrlevel@2 { |
| 182 | reg = <2>; |
George Shen | 19350fb | 2017-06-09 08:44:24 -0700 | [diff] [blame] | 183 | qcom,gpu-freq = <487000000>; |
| 184 | qcom,bus-freq = <10>; |
| 185 | qcom,bus-min = <9>; |
| 186 | qcom,bus-max = <11>; |
| 187 | }; |
| 188 | |
| 189 | |
| 190 | qcom,gpu-pwrlevel@3 { |
| 191 | reg = <3>; |
| 192 | qcom,gpu-freq = <425000000>; |
| 193 | qcom,bus-freq = <9>; |
| 194 | qcom,bus-min = <8>; |
| 195 | qcom,bus-max = <10>; |
| 196 | }; |
| 197 | |
| 198 | qcom,gpu-pwrlevel@4 { |
| 199 | reg = <4>; |
| 200 | qcom,gpu-freq = <338000000>; |
| 201 | qcom,bus-freq = <8>; |
| 202 | qcom,bus-min = <7>; |
| 203 | qcom,bus-max = <9>; |
| 204 | }; |
| 205 | |
| 206 | |
| 207 | qcom,gpu-pwrlevel@5 { |
| 208 | reg = <5>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 209 | qcom,gpu-freq = <280000000>; |
George Shen | 85c1ecc | 2017-07-11 14:48:20 -0700 | [diff] [blame] | 210 | qcom,bus-freq = <5>; |
George Shen | 19350fb | 2017-06-09 08:44:24 -0700 | [diff] [blame] | 211 | qcom,bus-min = <5>; |
| 212 | qcom,bus-max = <7>; |
| 213 | }; |
| 214 | |
| 215 | qcom,gpu-pwrlevel@6 { |
| 216 | reg = <6>; |
| 217 | qcom,gpu-freq = <210000000>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 218 | qcom,bus-freq = <4>; |
| 219 | qcom,bus-min = <3>; |
| 220 | qcom,bus-max = <5>; |
| 221 | }; |
| 222 | |
George Shen | 19350fb | 2017-06-09 08:44:24 -0700 | [diff] [blame] | 223 | qcom,gpu-pwrlevel@7 { |
| 224 | reg = <7>; |
George Shen | eb026028 | 2017-07-13 10:58:34 -0700 | [diff] [blame] | 225 | qcom,gpu-freq = <0>; |
| 226 | qcom,bus-freq = <0>; |
| 227 | qcom,bus-min = <0>; |
| 228 | qcom,bus-max = <0>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 229 | }; |
| 230 | }; |
| 231 | |
| 232 | }; |
| 233 | |
| 234 | kgsl_msm_iommu: qcom,kgsl-iommu { |
| 235 | compatible = "qcom,kgsl-smmu-v2"; |
| 236 | |
| 237 | reg = <0x05040000 0x10000>; |
| 238 | qcom,protect = <0x40000 0x10000>; |
| 239 | qcom,micro-mmu-control = <0x6000>; |
| 240 | |
| 241 | clocks =<&clock_gcc GCC_GPU_CFG_AHB_CLK>, |
| 242 | <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>, |
| 243 | <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>; |
| 244 | |
| 245 | clock-names = "iface_clk", "mem_clk", "mem_iface_clk"; |
| 246 | |
| 247 | qcom,secure_align_mask = <0xfff>; |
Carter Cooper | 50f61da | 2017-05-24 11:38:59 -0600 | [diff] [blame] | 248 | qcom,hyp_secure_alloc; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 249 | |
| 250 | gfx3d_user: gfx3d_user { |
| 251 | compatible = "qcom,smmu-kgsl-cb"; |
| 252 | label = "gfx3d_user"; |
| 253 | iommus = <&kgsl_smmu 0>; |
| 254 | qcom,gpu-offset = <0x48000>; |
| 255 | }; |
| 256 | |
| 257 | gfx3d_secure: gfx3d_secure { |
| 258 | compatible = "qcom,smmu-kgsl-cb"; |
| 259 | iommus = <&kgsl_smmu 2>; |
| 260 | }; |
| 261 | }; |
| 262 | |
| 263 | gmu: qcom,gmu { |
| 264 | label = "kgsl-gmu"; |
| 265 | compatible = "qcom,gpu-gmu"; |
| 266 | |
George Shen | 711aa436 | 2017-08-30 10:59:41 -0700 | [diff] [blame^] | 267 | reg = <0x506a000 0x30000>, <0xb200000 0x300000>; |
| 268 | reg-names = "kgsl_gmu_reg", "kgsl_gmu_pdc_reg"; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 269 | |
| 270 | interrupts = <0 304 0>, <0 305 0>; |
| 271 | interrupt-names = "kgsl_hfi_irq", "kgsl_gmu_irq"; |
| 272 | |
| 273 | qcom,msm-bus,name = "cnoc"; |
| 274 | qcom,msm-bus,num-cases = <2>; |
| 275 | qcom,msm-bus,num-paths = <1>; |
| 276 | qcom,msm-bus,vectors-KBps = |
| 277 | <26 10036 0 0>, // CNOC off |
| 278 | <26 10036 0 100>; // CNOC on |
| 279 | |
| 280 | regulator-names = "vddcx", "vdd"; |
| 281 | vddcx-supply = <&gpu_cx_gdsc>; |
| 282 | vdd-supply = <&gpu_gx_gdsc>; |
| 283 | |
| 284 | |
| 285 | clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>, |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 286 | <&clock_gpucc GPU_CC_CXO_CLK>, |
| 287 | <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>, |
Kyle Piefer | c6d21b4 | 2017-04-26 18:25:04 -0700 | [diff] [blame] | 288 | <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>, |
| 289 | <&clock_gpucc GPU_CC_AHB_CLK>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 290 | |
Kyle Piefer | c6d21b4 | 2017-04-26 18:25:04 -0700 | [diff] [blame] | 291 | clock-names = "gmu_clk", "cxo_clk", "axi_clk", |
| 292 | "memnoc_clk", "ahb_clk"; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 293 | |
| 294 | qcom,gmu-pwrlevels { |
Kyle Piefer | 3d1d2da | 2017-04-10 14:50:19 -0700 | [diff] [blame] | 295 | #address-cells = <1>; |
| 296 | #size-cells = <0>; |
| 297 | |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 298 | compatible = "qcom,gmu-pwrlevels"; |
| 299 | |
| 300 | qcom,gmu-pwrlevel@0 { |
| 301 | reg = <0>; |
| 302 | qcom,gmu-freq = <400000000>; |
| 303 | }; |
| 304 | |
| 305 | qcom,gmu-pwrlevel@1 { |
| 306 | reg = <1>; |
George Shen | def14d7 | 2017-06-05 10:34:43 -0700 | [diff] [blame] | 307 | qcom,gmu-freq = <200000000>; |
Lokesh Batra | f7f72ff | 2016-10-13 11:51:59 -0700 | [diff] [blame] | 308 | }; |
| 309 | |
| 310 | qcom,gmu-pwrlevel@2 { |
| 311 | reg = <2>; |
| 312 | qcom,gmu-freq = <0>; |
| 313 | }; |
| 314 | }; |
| 315 | |
| 316 | gmu_user: gmu_user { |
| 317 | compatible = "qcom,smmu-gmu-user-cb"; |
| 318 | iommus = <&kgsl_smmu 4>; |
| 319 | }; |
| 320 | |
| 321 | gmu_kernel: gmu_kernel { |
| 322 | compatible = "qcom,smmu-gmu-kernel-cb"; |
| 323 | iommus = <&kgsl_smmu 5>; |
| 324 | }; |
| 325 | }; |
| 326 | }; |