raghavendra ambadas | 32879dc | 2018-03-13 15:41:27 +0530 | [diff] [blame^] | 1 | /* Copyright (c) 2018, 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_bus: qcom,kgsl-busmon { |
| 15 | label = "kgsl-busmon"; |
| 16 | compatible = "qcom,kgsl-busmon"; |
| 17 | }; |
| 18 | |
| 19 | /* Bus governor */ |
| 20 | gpubw: qcom,gpubw { |
| 21 | compatible = "qcom,devbw"; |
| 22 | governor = "bw_vbif"; |
| 23 | qcom,src-dst-ports = <26 512>; |
| 24 | /* |
| 25 | * Need to configure 2x Clock as BIMC |
| 26 | * Internally Divides by 2 for Gen1 DDR PHY. |
| 27 | */ |
| 28 | qcom,active-only; |
| 29 | qcom,bw-tbl = |
| 30 | < 0 >, /* Off */ |
| 31 | < 769 >, /* 1. DDR:100.80 MHz BIMC: 201.60 MHz */ |
| 32 | < 1611 >, /* 2. DDR:211.20 MHz BIMC: 422.40 MHz */ |
| 33 | < 2270 >, /* 3. DDR:297.60 MHz BIMC: 595.20 MHz */ |
| 34 | < 2929 >, /* 4. DDR:384.00 MHz BIMC: 768.00 MHz */ |
| 35 | < 4248 >, /* 5. DDR:556.80 MHz BIMC: 1113.60 MHz */ |
| 36 | < 4541 >, /* 6. DDR:595.20 MHz BIMC: 1190.40 MHz */ |
| 37 | < 5126 >, /* 7. DDR:672.00 MHz BIMC: 1344.00 MHz */ |
| 38 | < 5639 >; /* 8. DDR:739.20 MHz BIMC: 1478.40 MHz */ |
| 39 | }; |
| 40 | |
| 41 | msm_gpu: qcom,kgsl-3d0@1c00000 { |
| 42 | label = "kgsl-3d0"; |
| 43 | compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d"; |
| 44 | reg = <0x1c00000 0x10000 |
| 45 | 0x1c10000 0x10000 |
| 46 | 0x00a0000 0x06fff>; |
| 47 | reg-names = "kgsl_3d0_reg_memory" , "kgsl_3d0_shader_memory", |
| 48 | "qfprom_memory"; |
| 49 | interrupts = <0 33 0>; |
| 50 | interrupt-names = "kgsl_3d0_irq"; |
| 51 | qcom,id = <0>; |
| 52 | |
| 53 | qcom,chipid = <0x03000620>; |
| 54 | |
| 55 | qcom,initial-pwrlevel = <3>; |
| 56 | |
| 57 | qcom,idle-timeout = <80>; //msecs |
| 58 | qcom,strtstp-sleepwake; |
| 59 | qcom,gpu-bimc-interface-clk-freq = <400000000>; //In Hz |
| 60 | |
| 61 | clocks = <&clock_gcc clk_gcc_oxili_gfx3d_clk>, |
| 62 | <&clock_gcc clk_gcc_oxili_ahb_clk>, |
| 63 | <&clock_gcc clk_gcc_bimc_gfx_clk>, |
| 64 | <&clock_gcc clk_gcc_bimc_gpu_clk>, |
| 65 | <&clock_gcc clk_gcc_gtcu_ahb_clk>, |
| 66 | <&clock_gcc clk_gcc_gfx_tcu_clk>, |
| 67 | <&clock_gcc clk_gcc_gfx_tbu_clk>, |
| 68 | <&clock_gcc clk_bimc_gpu_clk>; |
| 69 | |
| 70 | clock-names = "core_clk", "iface_clk", "mem_iface_clk", |
| 71 | "alt_mem_iface_clk", "gtcu_iface_clk", |
| 72 | "gtcu_clk", "gtbu_clk", "bimc_gpu_clk"; |
| 73 | |
| 74 | /* Bus Scale Settings */ |
| 75 | qcom,gpubw-dev = <&gpubw>; |
| 76 | qcom,bus-control; |
| 77 | qcom,bus-width = <16>; |
| 78 | qcom,msm-bus,name = "grp3d"; |
| 79 | qcom,msm-bus,num-cases = <9>; |
| 80 | qcom,msm-bus,num-paths = <1>; |
| 81 | qcom,msm-bus,vectors-KBps = |
| 82 | <26 512 0 0>, /* off */ |
| 83 | <26 512 0 806400>, /* 1. 100.80 MHz */ |
| 84 | <26 512 0 1689600>, /* 2. 211.20 MHz */ |
| 85 | <26 512 0 2380800>, /* 3. 297.60 MHz */ |
| 86 | <26 512 0 3072000>, /* 4. 384.00 MHz */ |
| 87 | <26 512 0 4454400>, /* 5. 556.80 MHz */ |
| 88 | <26 512 0 4761600>, /* 6. 595.20 MHz */ |
| 89 | <26 512 0 5376000>, /* 7. 672.00 MHz */ |
| 90 | <26 512 0 5913600>; /* 8. 739.20 MHz */ |
| 91 | |
| 92 | /* GDSC regulator names */ |
| 93 | regulator-names = "vdd"; |
| 94 | /* GDSC oxili regulators */ |
| 95 | vdd-supply = <&gdsc_oxili_gx>; |
| 96 | |
| 97 | /* CPU latency parameter */ |
| 98 | qcom,pm-qos-active-latency = <651>; |
| 99 | |
| 100 | /* Power levels */ |
| 101 | qcom,gpu-pwrlevels { |
| 102 | #address-cells = <1>; |
| 103 | #size-cells = <0>; |
| 104 | |
| 105 | compatible = "qcom,gpu-pwrlevels"; |
| 106 | |
| 107 | /* TURBO */ |
| 108 | qcom,gpu-pwrlevel@0 { |
| 109 | reg = <0>; |
| 110 | qcom,gpu-freq = <598000000>; |
| 111 | qcom,bus-freq = <7>; |
| 112 | qcom,bus-min = <7>; |
| 113 | qcom,bus-max = <7>; |
| 114 | }; |
| 115 | |
| 116 | /* NOM+ */ |
| 117 | qcom,gpu-pwrlevel@1 { |
| 118 | reg = <1>; |
| 119 | qcom,gpu-freq = <523200000>; |
| 120 | qcom,bus-freq = <6>; |
| 121 | qcom,bus-min = <5>; |
| 122 | qcom,bus-max = <7>; |
| 123 | }; |
| 124 | |
| 125 | /* NOM */ |
| 126 | qcom,gpu-pwrlevel@2 { |
| 127 | reg = <2>; |
| 128 | qcom,gpu-freq = <484800000>; |
| 129 | qcom,bus-freq = <5>; |
| 130 | qcom,bus-min = <4>; |
| 131 | qcom,bus-max = <6>; |
| 132 | }; |
| 133 | |
| 134 | /* SVS+ */ |
| 135 | qcom,gpu-pwrlevel@3 { |
| 136 | reg = <3>; |
| 137 | qcom,gpu-freq = <400000000>; |
| 138 | qcom,bus-freq = <4>; |
| 139 | qcom,bus-min = <3>; |
| 140 | qcom,bus-max = <5>; |
| 141 | }; |
| 142 | |
| 143 | /* SVS */ |
| 144 | qcom,gpu-pwrlevel@4 { |
| 145 | reg = <4>; |
| 146 | qcom,gpu-freq = <270000000>; |
| 147 | qcom,bus-freq = <3>; |
| 148 | qcom,bus-min = <1>; |
| 149 | qcom,bus-max = <3>; |
| 150 | }; |
| 151 | |
| 152 | /* XO */ |
| 153 | qcom,gpu-pwrlevel@5 { |
| 154 | reg = <5>; |
| 155 | qcom,gpu-freq = <19200000>; |
| 156 | qcom,bus-freq = <0>; |
| 157 | qcom,bus-min = <0>; |
| 158 | qcom,bus-max = <0>; |
| 159 | }; |
| 160 | }; |
| 161 | }; |
| 162 | |
| 163 | kgsl_msm_iommu: qcom,kgsl-iommu@1f00000 { |
| 164 | compatible = "qcom,kgsl-smmu-v2"; |
| 165 | reg = <0x1f00000 0x10000>; |
| 166 | /* |
| 167 | * The gpu can only program a single context bank |
| 168 | * at this fixed offset. |
| 169 | */ |
| 170 | qcom,protect = <0xa000 0x1000>; |
| 171 | clocks = <&clock_gcc clk_gcc_smmu_cfg_clk>, |
| 172 | <&clock_gcc clk_gcc_gfx_tcu_clk>, |
| 173 | <&clock_gcc clk_gcc_gtcu_ahb_clk>, |
| 174 | <&clock_gcc clk_gcc_gfx_tbu_clk>; |
| 175 | clock-names = "scfg_clk", "gtcu_clk", "gtcu_iface_clk", |
| 176 | "gtbu_clk"; |
| 177 | qcom,retention; |
| 178 | gfx3d_user: gfx3d_user { |
| 179 | compatible = "qcom,smmu-kgsl-cb"; |
| 180 | iommus = <&gfx_iommu 0>; |
| 181 | qcom,gpu-offset = <0xa000>; |
| 182 | }; |
| 183 | }; |
| 184 | }; |