Rajesh Kemisetti | ba56c48 | 2017-08-31 18:12:35 +0530 | [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 | |
| 15 | pil_gpu: qcom,kgsl-hyp { |
| 16 | compatible = "qcom,pil-tz-generic"; |
| 17 | qcom,pas-id = <13>; |
| 18 | qcom,firmware-name = "a615_zap"; |
| 19 | }; |
| 20 | |
| 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>; |
| 30 | qcom,bw-tbl = |
| 31 | < 0 /* off */ >, |
| 32 | < 381 /* 100 MHz */ >, |
| 33 | < 762 /* 200 MHz */ >, |
| 34 | < 1144 /* 300 MHz */ >, |
| 35 | < 1720 /* 451 MHz */ >, |
| 36 | < 2086 /* 547 MHz */ >, |
| 37 | < 2597 /* 681 MHz */ >, |
| 38 | < 3147 /* 825 MHz */ >, |
| 39 | < 3879 /* 1017 MHz */ >, |
| 40 | < 5161 /* 1353 MHz */ >, |
| 41 | < 5931 /* 1555 MHz */ >, |
| 42 | < 6881 /* 1804 MHz */ >; |
| 43 | }; |
| 44 | |
| 45 | msm_gpu: qcom,kgsl-3d0@5000000 { |
| 46 | label = "kgsl-3d0"; |
| 47 | compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d"; |
| 48 | status = "ok"; |
| 49 | reg = <0x5000000 0x40000>; |
| 50 | reg-names = "kgsl_3d0_reg_memory"; |
| 51 | interrupts = <0 300 0>; |
| 52 | interrupt-names = "kgsl_3d0_irq"; |
| 53 | qcom,id = <0>; |
| 54 | |
| 55 | qcom,chipid = <0x06010500>; |
| 56 | |
| 57 | qcom,initial-pwrlevel = <3>; |
| 58 | |
| 59 | qcom,gpu-quirk-hfi-use-reg; |
| 60 | |
| 61 | /* <HZ/12> */ |
| 62 | qcom,idle-timeout = <80>; |
| 63 | qcom,no-nap; |
| 64 | |
| 65 | qcom,highest-bank-bit = <14>; |
| 66 | |
Akhil P Oommen | 6ac29d0 | 2017-10-04 15:59:19 +0530 | [diff] [blame] | 67 | qcom,min-access-length = <32>; |
Rajesh Kemisetti | ba56c48 | 2017-08-31 18:12:35 +0530 | [diff] [blame] | 68 | |
| 69 | qcom,ubwc-mode = <2>; |
| 70 | |
| 71 | /* size in bytes */ |
| 72 | qcom,snapshot-size = <1048576>; |
| 73 | |
| 74 | /* base addr, size */ |
| 75 | qcom,gpu-qdss-stm = <0x161c0000 0x40000>; |
Manaf Meethalavalappu Pallikunhi | 1d4ebf7 | 2017-09-07 01:45:19 +0530 | [diff] [blame] | 76 | #cooling-cells = <2>; |
Rajesh Kemisetti | ba56c48 | 2017-08-31 18:12:35 +0530 | [diff] [blame] | 77 | |
| 78 | clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK>, |
| 79 | <&clock_gpucc GPU_CC_CXO_CLK>, |
| 80 | <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>, |
| 81 | <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>, |
| 82 | <&clock_gpucc GPU_CC_CX_GMU_CLK>, |
| 83 | <&clock_gpucc GPU_CC_AHB_CLK>; |
| 84 | |
| 85 | clock-names = "core_clk", "rbbmtimer_clk", "mem_clk", |
| 86 | "mem_iface_clk", "gmu_clk", "ahb_clk"; |
| 87 | |
| 88 | /* Bus Scale Settings */ |
| 89 | qcom,gpubw-dev = <&gpubw>; |
| 90 | qcom,bus-control; |
| 91 | qcom,msm-bus,name = "grp3d"; |
| 92 | qcom,bus-width = <32>; |
| 93 | qcom,msm-bus,num-cases = <12>; |
| 94 | qcom,msm-bus,num-paths = <1>; |
| 95 | qcom,msm-bus,vectors-KBps = |
| 96 | <26 512 0 0>, |
| 97 | <26 512 0 400000>, /* 1 bus=100 */ |
| 98 | <26 512 0 800000>, /* 2 bus=200 */ |
| 99 | <26 512 0 1200000>, /* 3 bus=300 */ |
| 100 | <26 512 0 1804000>, /* 4 bus=451 */ |
| 101 | <26 512 0 2188000>, /* 5 bus=547 */ |
| 102 | <26 512 0 2724000>, /* 6 bus=681 */ |
| 103 | <26 512 0 3300000>, /* 7 bus=825 */ |
| 104 | <26 512 0 4068000>, /* 8 bus=1017 */ |
| 105 | <26 512 0 5412000>, /* 9 bus=1353 */ |
| 106 | <26 512 0 6220000>, /* 10 bus=1555 */ |
| 107 | <26 512 0 7216000>; /* 11 bus=1804 */ |
| 108 | |
| 109 | /* GDSC regulator names */ |
| 110 | regulator-names = "vddcx", "vdd"; |
| 111 | /* GDSC oxili regulators */ |
| 112 | vddcx-supply = <&gpu_cx_gdsc>; |
| 113 | vdd-supply = <&gpu_gx_gdsc>; |
| 114 | |
| 115 | /* GPU related llc slices */ |
| 116 | cache-slice-names = "gpu", "gpuhtw"; |
| 117 | cache-slices = <&llcc 12>, <&llcc 11>; |
| 118 | |
Rajesh Kemisetti | 6261ae7 | 2017-09-04 14:17:11 +0530 | [diff] [blame] | 119 | /* CPU latency parameter */ |
| 120 | qcom,pm-qos-active-latency = <660>; |
| 121 | qcom,pm-qos-wakeup-latency = <460>; |
| 122 | |
Rajesh Kemisetti | def2cf7 | 2017-09-04 09:46:15 +0530 | [diff] [blame] | 123 | /* Enable context aware freq. scaling */ |
| 124 | qcom,enable-ca-jump; |
| 125 | /* Context aware jump busy penalty in us */ |
| 126 | qcom,ca-busy-penalty = <12000>; |
| 127 | /* Context aware jump target power level */ |
| 128 | qcom,ca-target-pwrlevel = <1>; |
| 129 | |
Rajesh Kemisetti | ba56c48 | 2017-08-31 18:12:35 +0530 | [diff] [blame] | 130 | /* GPU Mempools */ |
| 131 | qcom,gpu-mempools { |
| 132 | #address-cells = <1>; |
| 133 | #size-cells = <0>; |
| 134 | compatible = "qcom,gpu-mempools"; |
| 135 | |
| 136 | /* 4K Page Pool configuration */ |
| 137 | qcom,gpu-mempool@0 { |
| 138 | reg = <0>; |
| 139 | qcom,mempool-page-size = <4096>; |
| 140 | qcom,mempool-allocate; |
| 141 | }; |
| 142 | /* 8K Page Pool configuration */ |
| 143 | qcom,gpu-mempool@1 { |
| 144 | reg = <1>; |
| 145 | qcom,mempool-page-size = <8192>; |
| 146 | qcom,mempool-allocate; |
| 147 | }; |
| 148 | /* 64K Page Pool configuration */ |
| 149 | qcom,gpu-mempool@2 { |
| 150 | reg = <2>; |
| 151 | qcom,mempool-page-size = <65536>; |
| 152 | qcom,mempool-reserved = <256>; |
| 153 | }; |
| 154 | /* 1M Page Pool configuration */ |
| 155 | qcom,gpu-mempool@3 { |
| 156 | reg = <3>; |
| 157 | qcom,mempool-page-size = <1048576>; |
| 158 | qcom,mempool-reserved = <32>; |
| 159 | }; |
| 160 | }; |
| 161 | |
| 162 | /* Power levels */ |
| 163 | qcom,gpu-pwrlevels { |
| 164 | #address-cells = <1>; |
| 165 | #size-cells = <0>; |
| 166 | |
| 167 | compatible = "qcom,gpu-pwrlevels"; |
| 168 | |
| 169 | /* SVS_L1 */ |
| 170 | qcom,gpu-pwrlevel@0 { |
| 171 | reg = <0>; |
| 172 | qcom,gpu-freq = <430000000>; |
| 173 | qcom,bus-freq = <11>; |
Akhil P Oommen | 2d9205d | 2017-09-11 18:21:01 +0530 | [diff] [blame] | 174 | qcom,bus-min = <8>; |
Rajesh Kemisetti | ba56c48 | 2017-08-31 18:12:35 +0530 | [diff] [blame] | 175 | qcom,bus-max = <11>; |
| 176 | }; |
| 177 | |
| 178 | /* SVS */ |
| 179 | qcom,gpu-pwrlevel@1 { |
| 180 | reg = <1>; |
| 181 | qcom,gpu-freq = <355000000>; |
Akhil P Oommen | 2d9205d | 2017-09-11 18:21:01 +0530 | [diff] [blame] | 182 | qcom,bus-freq = <8>; |
| 183 | qcom,bus-min = <5>; |
| 184 | qcom,bus-max = <9>; |
Rajesh Kemisetti | ba56c48 | 2017-08-31 18:12:35 +0530 | [diff] [blame] | 185 | }; |
| 186 | |
| 187 | /* LOW SVS */ |
| 188 | qcom,gpu-pwrlevel@2 { |
| 189 | reg = <2>; |
| 190 | qcom,gpu-freq = <267000000>; |
| 191 | qcom,bus-freq = <6>; |
| 192 | qcom,bus-min = <4>; |
| 193 | qcom,bus-max = <8>; |
| 194 | }; |
| 195 | |
| 196 | /* MIN SVS */ |
| 197 | qcom,gpu-pwrlevel@3 { |
| 198 | reg = <3>; |
| 199 | qcom,gpu-freq = <180000000>; |
| 200 | qcom,bus-freq = <4>; |
| 201 | qcom,bus-min = <3>; |
Akhil P Oommen | 2d9205d | 2017-09-11 18:21:01 +0530 | [diff] [blame] | 202 | qcom,bus-max = <4>; |
Rajesh Kemisetti | ba56c48 | 2017-08-31 18:12:35 +0530 | [diff] [blame] | 203 | }; |
| 204 | |
| 205 | /* XO */ |
| 206 | qcom,gpu-pwrlevel@4 { |
| 207 | reg = <4>; |
| 208 | qcom,gpu-freq = <0>; |
| 209 | qcom,bus-freq = <0>; |
| 210 | qcom,bus-min = <0>; |
| 211 | qcom,bus-max = <0>; |
| 212 | }; |
| 213 | }; |
| 214 | |
| 215 | }; |
| 216 | |
| 217 | kgsl_msm_iommu: qcom,kgsl-iommu { |
| 218 | compatible = "qcom,kgsl-smmu-v2"; |
| 219 | |
| 220 | reg = <0x05040000 0x10000>; |
| 221 | qcom,protect = <0x40000 0x10000>; |
| 222 | qcom,micro-mmu-control = <0x6000>; |
| 223 | |
| 224 | clocks =<&clock_gcc GCC_GPU_CFG_AHB_CLK>, |
| 225 | <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>, |
| 226 | <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>; |
| 227 | |
| 228 | clock-names = "iface_clk", "mem_clk", "mem_iface_clk"; |
| 229 | |
| 230 | qcom,secure_align_mask = <0xfff>; |
| 231 | qcom,retention; |
| 232 | qcom,hyp_secure_alloc; |
| 233 | |
| 234 | gfx3d_user: gfx3d_user { |
| 235 | compatible = "qcom,smmu-kgsl-cb"; |
| 236 | label = "gfx3d_user"; |
| 237 | iommus = <&kgsl_smmu 0>; |
| 238 | qcom,gpu-offset = <0x48000>; |
| 239 | }; |
| 240 | |
| 241 | gfx3d_secure: gfx3d_secure { |
| 242 | compatible = "qcom,smmu-kgsl-cb"; |
| 243 | iommus = <&kgsl_smmu 2>; |
| 244 | }; |
| 245 | }; |
| 246 | |
| 247 | gmu: qcom,gmu { |
| 248 | label = "kgsl-gmu"; |
| 249 | compatible = "qcom,gpu-gmu"; |
| 250 | |
| 251 | reg = |
| 252 | <0x506a000 0x31000>, |
| 253 | <0xb200000 0x300000>, |
| 254 | <0xc200000 0x10000>; |
| 255 | reg-names = |
| 256 | "kgsl_gmu_reg", |
| 257 | "kgsl_gmu_pdc_reg", |
| 258 | "kgsl_gmu_cpr_reg"; |
| 259 | |
| 260 | interrupts = <0 304 0>, <0 305 0>; |
| 261 | interrupt-names = "kgsl_hfi_irq", "kgsl_gmu_irq"; |
| 262 | |
| 263 | qcom,msm-bus,name = "cnoc"; |
| 264 | qcom,msm-bus,num-cases = <2>; |
| 265 | qcom,msm-bus,num-paths = <1>; |
| 266 | qcom,msm-bus,vectors-KBps = |
| 267 | <26 10036 0 0>, /* CNOC off */ |
| 268 | <26 10036 0 100>; /* CNOC on */ |
| 269 | |
| 270 | regulator-names = "vddcx", "vdd"; |
| 271 | vddcx-supply = <&gpu_cx_gdsc>; |
| 272 | vdd-supply = <&gpu_gx_gdsc>; |
| 273 | |
| 274 | |
| 275 | clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>, |
| 276 | <&clock_gpucc GPU_CC_CXO_CLK>, |
| 277 | <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>, |
| 278 | <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>, |
| 279 | <&clock_gpucc GPU_CC_AHB_CLK>; |
| 280 | |
| 281 | clock-names = "gmu_clk", "cxo_clk", "axi_clk", |
| 282 | "memnoc_clk", "ahb_clk"; |
| 283 | |
| 284 | qcom,gmu-pwrlevels { |
| 285 | #address-cells = <1>; |
| 286 | #size-cells = <0>; |
| 287 | |
| 288 | compatible = "qcom,gmu-pwrlevels"; |
| 289 | |
| 290 | qcom,gmu-pwrlevel@0 { |
| 291 | reg = <0>; |
| 292 | qcom,gmu-freq = <200000000>; |
| 293 | }; |
| 294 | |
| 295 | qcom,gmu-pwrlevel@1 { |
| 296 | reg = <1>; |
| 297 | qcom,gmu-freq = <0>; |
| 298 | }; |
| 299 | }; |
| 300 | |
| 301 | gmu_user: gmu_user { |
| 302 | compatible = "qcom,smmu-gmu-user-cb"; |
| 303 | iommus = <&kgsl_smmu 4>; |
| 304 | }; |
| 305 | |
| 306 | gmu_kernel: gmu_kernel { |
| 307 | compatible = "qcom,smmu-gmu-kernel-cb"; |
| 308 | iommus = <&kgsl_smmu 5>; |
| 309 | }; |
| 310 | }; |
| 311 | }; |