Jingbiao Lu | dc9d878 | 2018-01-31 16:35:04 +0800 | [diff] [blame] | 1 | /* |
Veerabhadrarao Badiganti | d06f4e0 | 2019-06-18 18:58:54 +0530 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. |
Jingbiao Lu | dc9d878 | 2018-01-31 16:35:04 +0800 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include "msm8937.dtsi" |
| 15 | #include "sdm439-pm8953.dtsi" |
| 16 | #include "sdm439-pmi632.dtsi" |
Vaishnavi Kommaraju | cb37c71 | 2018-04-09 13:01:48 +0530 | [diff] [blame] | 17 | #include "sdm439-audio.dtsi" |
Jingbiao Lu | dc9d878 | 2018-01-31 16:35:04 +0800 | [diff] [blame] | 18 | |
| 19 | / { |
| 20 | model = "Qualcomm Technologies, Inc. SDM439"; |
| 21 | compatible = "qcom,sdm439"; |
| 22 | qcom,msm-id = <353 0x0>; |
| 23 | }; |
| 24 | |
Vijay kumar Tumati | 10abc9b | 2018-03-15 16:25:23 +0530 | [diff] [blame] | 25 | &soc { |
| 26 | qcom,csid@1b30000 { |
Vijay kumar Tumati | 56b12f6 | 2018-04-19 09:46:47 +0530 | [diff] [blame] | 27 | qcom,csi-vdd-voltage = <800000>; |
Vijay kumar Tumati | d7633b0 | 2018-04-11 12:09:27 +0530 | [diff] [blame] | 28 | qcom,mipi-csi-vdd-supply = <&pm8953_l23>; |
Vijay kumar Tumati | 10abc9b | 2018-03-15 16:25:23 +0530 | [diff] [blame] | 29 | }; |
| 30 | qcom,csid@1b30400 { |
Vijay kumar Tumati | 56b12f6 | 2018-04-19 09:46:47 +0530 | [diff] [blame] | 31 | qcom,csi-vdd-voltage = <800000>; |
Vijay kumar Tumati | d7633b0 | 2018-04-11 12:09:27 +0530 | [diff] [blame] | 32 | qcom,mipi-csi-vdd-supply = <&pm8953_l23>; |
Vijay kumar Tumati | 10abc9b | 2018-03-15 16:25:23 +0530 | [diff] [blame] | 33 | }; |
| 34 | qcom,csid@1b30800 { |
Vijay kumar Tumati | 56b12f6 | 2018-04-19 09:46:47 +0530 | [diff] [blame] | 35 | qcom,csi-vdd-voltage = <800000>; |
Vijay kumar Tumati | d7633b0 | 2018-04-11 12:09:27 +0530 | [diff] [blame] | 36 | qcom,mipi-csi-vdd-supply = <&pm8953_l23>; |
Vijay kumar Tumati | 10abc9b | 2018-03-15 16:25:23 +0530 | [diff] [blame] | 37 | }; |
Mounika Reddy Tangirala | e55561b | 2018-12-12 15:55:55 +0530 | [diff] [blame] | 38 | qcom,csiphy@1b34000 { |
| 39 | compatible = "qcom,csiphy-v10.00", "qcom,csiphy"; |
| 40 | }; |
| 41 | qcom,csiphy@1b35000 { |
| 42 | compatible = "qcom,csiphy-v10.00", "qcom,csiphy"; |
| 43 | }; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 44 | |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 45 | /delete-node/ qcom,msm-cpufreq; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 46 | msm_cpufreq: qcom,msm-cpufreq { |
| 47 | compatible = "qcom,msm-cpufreq"; |
| 48 | clock-names = |
| 49 | "l2_clk", |
| 50 | "cpu0_clk", |
| 51 | "cpu4_clk"; |
| 52 | clocks = <&clock_cpu clk_cci_clk>, |
| 53 | <&clock_cpu clk_a53_bc_clk>, |
| 54 | <&clock_cpu clk_a53_lc_clk>; |
| 55 | |
| 56 | qcom,governor-per-policy; |
| 57 | |
| 58 | qcom,cpufreq-table-0 = |
Santosh Mardi | ec09245 | 2018-05-15 12:05:04 +0530 | [diff] [blame] | 59 | < 960000 >, |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 60 | < 1305600 >, |
| 61 | < 1497600 >, |
| 62 | < 1708800 >, |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 63 | < 1804800 >, |
Odelu Kukatla | e8fd12b | 2018-09-21 15:11:03 +0530 | [diff] [blame] | 64 | < 1958400 >, |
| 65 | < 2016000 >; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 66 | |
| 67 | qcom,cpufreq-table-4 = |
| 68 | < 768000 >, |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 69 | < 998400 >, |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 70 | < 1171200 >, |
| 71 | < 1305600 >, |
| 72 | < 1459200 >; |
| 73 | }; |
| 74 | |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 75 | /delete-node/ qcom,cpubw; |
| 76 | cpubw: qcom,cpubw { |
| 77 | compatible = "qcom,devbw"; |
| 78 | governor = "cpufreq"; |
| 79 | qcom,src-dst-ports = <1 512>; |
| 80 | qcom,active-only; |
| 81 | qcom,bw-tbl = |
| 82 | < 769 /* 100.8 MHz */ >, |
| 83 | < 1611 /* 211.2 MHz */ >, /*Low SVS*/ |
| 84 | < 2124 /* 278.4 MHz */ >, |
| 85 | < 2929 /* 384 MHz */ >, /* SVS */ |
| 86 | < 3221 /* 422.4 MHz */ >, |
| 87 | < 4248 /* 556.8 MHz */ >, |
Santosh Mardi | feb53d6 | 2018-07-20 12:27:55 +0530 | [diff] [blame] | 88 | < 5053 /* 662.4 MHz */ >, /* SVS+ */ |
| 89 | < 5712 /* 748.8 MHz */ >, /* NOM */ |
| 90 | < 6079 /* 796.8 MHz */ >, /* NOM+ */ |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 91 | < 6445 /* 844.8 MHz */ >, |
| 92 | < 7104 /* 931.2 MHz */ >; /* TURBO */ |
| 93 | }; |
| 94 | |
| 95 | /delete-node/ qcom,mincpubw; |
| 96 | mincpubw: qcom,mincpubw { |
| 97 | compatible = "qcom,devbw"; |
| 98 | governor = "cpufreq"; |
| 99 | qcom,src-dst-ports = <1 512>; |
| 100 | qcom,active-only; |
| 101 | qcom,bw-tbl = |
| 102 | < 769 /* 100.8 MHz */ >, |
| 103 | < 1611 /* 211.2 MHz */ >, /*Low SVS*/ |
| 104 | < 2124 /* 278.4 MHz */ >, |
| 105 | < 2929 /* 384 MHz */ >, /* SVS */ |
| 106 | < 3221 /* 422.4 MHz */ >, |
| 107 | < 4248 /* 556.8 MHz */ >, |
Santosh Mardi | feb53d6 | 2018-07-20 12:27:55 +0530 | [diff] [blame] | 108 | < 5053 /* 662.4 MHz */ >, /* SVS+ */ |
| 109 | < 5712 /* 748.8 MHz */ >, /* NOM */ |
| 110 | < 6079 /* 796.8 MHz */ >, /* NOM+ */ |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 111 | < 6445 /* 844.8 MHz */ >, |
| 112 | < 7104 /* 931.2 MHz */ >; /* TURBO */ |
| 113 | }; |
| 114 | |
| 115 | /delete-node/ qcom,cci; |
| 116 | cci_cache: qcom,cci { |
| 117 | compatible = "devfreq-simple-dev"; |
| 118 | clock-names = "devfreq_clk"; |
| 119 | clocks = <&clock_cpu clk_cci_clk>; |
| 120 | governor = "cpufreq"; |
| 121 | freq-tbl-khz = |
| 122 | < 400000 >, |
| 123 | < 400000 >, |
| 124 | < 400000 >, |
| 125 | < 533000 >, |
| 126 | < 576000 >; |
| 127 | }; |
| 128 | |
| 129 | /delete-node/ devfreq-cpufreq; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 130 | devfreq-cpufreq { |
| 131 | cpubw-cpufreq { |
| 132 | target-dev = <&cpubw>; |
| 133 | cpu-to-dev-map-0 = |
Santosh Mardi | 94af162 | 2018-07-20 12:36:12 +0530 | [diff] [blame] | 134 | < 1305600 5053 >, |
| 135 | < 1497600 5712 >, |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 136 | < 1708800 6445 >, |
| 137 | < 1804800 7104 >, |
Odelu Kukatla | e8fd12b | 2018-09-21 15:11:03 +0530 | [diff] [blame] | 138 | < 1958400 7104 >, |
| 139 | < 2016000 7104 >; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 140 | cpu-to-dev-map-4 = |
| 141 | < 768000 2929 >, |
Santosh Mardi | 94af162 | 2018-07-20 12:36:12 +0530 | [diff] [blame] | 142 | < 998400 5053 >, |
| 143 | < 1171200 5712 >, |
| 144 | < 1305600 6079 >, |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 145 | < 1459200 7104 >; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 146 | |
| 147 | }; |
| 148 | |
| 149 | cci-cpufreq { |
| 150 | target-dev = <&cci_cache>; |
| 151 | cpu-to-dev-map-0 = |
| 152 | < 1305600 400000 >, |
| 153 | < 1497600 400000 >, |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 154 | < 1708800 533000 >, |
| 155 | < 1804800 576000 >, |
Odelu Kukatla | e8fd12b | 2018-09-21 15:11:03 +0530 | [diff] [blame] | 156 | < 1958400 576000 >, |
| 157 | < 2016000 576000 >; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 158 | cpu-to-dev-map-4 = |
| 159 | < 768000 400000 >, |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 160 | < 998400 400000 >, |
| 161 | < 1171200 400000 >, |
| 162 | < 1305600 533000 >, |
| 163 | < 1459200 576000 >; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 164 | }; |
| 165 | |
| 166 | mincpubw-cpufreq { |
| 167 | target-dev = <&mincpubw>; |
| 168 | cpu-to-dev-map-0 = |
| 169 | < 1305600 2929 >, |
Santosh Mardi | 94af162 | 2018-07-20 12:36:12 +0530 | [diff] [blame] | 170 | < 1804800 5712 >; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 171 | cpu-to-dev-map-4 = |
| 172 | < 1171200 2929 >, |
Santosh Mardi | 94af162 | 2018-07-20 12:36:12 +0530 | [diff] [blame] | 173 | < 1459200 5712 >; |
blong | 415b9cf | 2018-04-17 11:19:15 +0800 | [diff] [blame] | 174 | }; |
| 175 | }; |
Vijay kumar Tumati | 10abc9b | 2018-03-15 16:25:23 +0530 | [diff] [blame] | 176 | }; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 177 | |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 178 | /{ |
| 179 | /delete-node/ energy-costs; |
| 180 | energy_costs: energy-costs { |
| 181 | compatible = "sched-energy"; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 182 | |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 183 | CPU_COST_0: core-cost0 { |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 184 | busy-cost-data = < |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 185 | 800000 137 |
| 186 | 1305600 207 |
| 187 | 1497600 256 |
| 188 | 1708800 327 |
| 189 | 1804800 343 |
| 190 | 1958400 445 |
Pavankumar Kondeti | 7cdd772 | 2018-09-21 18:37:15 +0530 | [diff] [blame] | 191 | 2016000 470 |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 192 | >; |
| 193 | idle-cost-data = < |
| 194 | 100 80 60 40 |
| 195 | >; |
| 196 | }; |
| 197 | CPU_COST_1: core-cost1 { |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 198 | busy-cost-data = < |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 199 | 768000 43 |
| 200 | 998400 56 |
| 201 | 1171200 71 |
| 202 | 1305600 89 |
| 203 | 1459200 120 |
| 204 | >; |
| 205 | idle-cost-data = < |
| 206 | 40 20 10 8 |
| 207 | >; |
| 208 | }; |
| 209 | CLUSTER_COST_0: cluster-cost0 { |
| 210 | busy-cost-data = < |
| 211 | 800000 49 |
| 212 | 1305600 61 |
| 213 | 1497600 71 |
| 214 | 1708800 85 |
| 215 | 1804800 88 |
| 216 | 1958400 110 |
Pavankumar Kondeti | 7cdd772 | 2018-09-21 18:37:15 +0530 | [diff] [blame] | 217 | 2016000 120 |
blong | 7deb2a6 | 2018-04-20 11:30:57 +0800 | [diff] [blame] | 218 | >; |
| 219 | idle-cost-data = < |
| 220 | 4 3 2 1 |
| 221 | >; |
| 222 | }; |
| 223 | CLUSTER_COST_1: cluster-cost1 { |
| 224 | busy-cost-data = < |
| 225 | 768000 8 |
| 226 | 998400 10 |
| 227 | 1171200 13 |
| 228 | 1305600 15 |
| 229 | 1459200 20 |
| 230 | >; |
| 231 | idle-cost-data = < |
| 232 | 4 3 2 1 |
| 233 | >; |
| 234 | }; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 235 | }; |
| 236 | }; |
qqzhou | ee2c177 | 2018-04-11 11:26:50 +0800 | [diff] [blame] | 237 | |
| 238 | &kgsl_smmu { |
| 239 | qcom,enable-static-cb; |
| 240 | }; |
qqzhou | 91eddfa | 2018-04-12 10:50:57 +0800 | [diff] [blame] | 241 | |
| 242 | &reserved_memory { |
| 243 | gpu_mem: gpu_region@0 { |
| 244 | compatible = "shared-dma-pool"; |
| 245 | reusable; |
| 246 | alloc-ranges = <0x0 0x80000000 0x0 0x10000000>; |
| 247 | alignment = <0 0x400000>; |
| 248 | size = <0 0x800000>; |
| 249 | }; |
| 250 | }; |
Sunil Khatri | 8254c7e | 2018-04-12 14:10:41 +0530 | [diff] [blame] | 251 | |
qqzhou | cc001c2 | 2018-08-20 17:08:52 +0800 | [diff] [blame] | 252 | &modem_mem { |
| 253 | reg = <0x0 0x86800000 0x0 0x5500000>; |
| 254 | }; |
| 255 | |
| 256 | &adsp_fw_mem { |
| 257 | reg = <0x0 0x8bd00000 0x0 0x1100000>; |
| 258 | }; |
| 259 | |
| 260 | &wcnss_fw_mem { |
| 261 | reg = <0x0 0x8ce00000 0x0 0x700000>; |
| 262 | }; |
| 263 | |
Sunil Khatri | 8254c7e | 2018-04-12 14:10:41 +0530 | [diff] [blame] | 264 | &soc { |
| 265 | pil_gpu: qcom,kgsl-hyp { |
| 266 | compatible = "qcom,pil-tz-generic"; |
| 267 | qcom,pas-id = <13>; |
| 268 | qcom,firmware-name = "a506_zap"; |
| 269 | memory-region = <&gpu_mem>; |
| 270 | qcom,mas-crypto = <&mas_crypto>; |
| 271 | clocks = <&clock_gcc clk_gcc_crypto_clk>, |
| 272 | <&clock_gcc clk_gcc_crypto_ahb_clk>, |
| 273 | <&clock_gcc clk_gcc_crypto_axi_clk>, |
| 274 | <&clock_gcc clk_crypto_clk_src>; |
| 275 | clock-names = "scm_core_clk", "scm_iface_clk", |
| 276 | "scm_bus_clk", "scm_core_clk_src"; |
| 277 | qcom,proxy-clock-names = "scm_core_clk", "scm_iface_clk", |
| 278 | "scm_bus_clk", "scm_core_clk_src"; |
| 279 | qcom,scm_core_clk_src-freq = <80000000>; |
| 280 | }; |
| 281 | }; |
| 282 | |
| 283 | &kgsl_msm_iommu { |
| 284 | gfx3d_secure: gfx3d_secure { |
| 285 | compatible = "qcom,smmu-kgsl-cb"; |
| 286 | iommus = <&kgsl_smmu 2>; |
| 287 | memory-region = <&secure_mem>; |
| 288 | }; |
| 289 | }; |
Odelu Kukatla | 9254bfa | 2018-03-19 18:50:02 +0530 | [diff] [blame] | 290 | |
| 291 | &clock_cpu { |
| 292 | compatible = "qcom,cpu-clock-sdm439"; |
| 293 | vdd-c0-supply = <&apc_vreg_corner>; |
| 294 | vdd-c1-supply = <&apc_vreg_corner>; |
| 295 | vdd-cci-supply = <&apc_vreg_corner>; |
| 296 | qcom,speed0-bin-v0-c0 = |
| 297 | < 0 0>, |
| 298 | < 768000000 1>, |
| 299 | < 998400000 1>, |
| 300 | < 1171200000 2>, |
| 301 | < 1305600000 3>, |
| 302 | < 1459200000 5>; |
| 303 | |
| 304 | qcom,speed0-bin-v0-c1 = |
| 305 | < 0 0>, |
Odelu Kukatla | 78f4711 | 2018-05-14 12:53:32 +0530 | [diff] [blame] | 306 | < 960000000 1>, |
Odelu Kukatla | 9254bfa | 2018-03-19 18:50:02 +0530 | [diff] [blame] | 307 | < 1305600000 1>, |
| 308 | < 1497600000 2>, |
| 309 | < 1708800000 3>, |
| 310 | < 1958400000 5>; |
| 311 | |
| 312 | qcom,speed0-bin-v0-cci = |
| 313 | < 0 0>, |
| 314 | < 400000000 1>, |
| 315 | < 533333333 3>; |
| 316 | |
| 317 | qcom,speed1-bin-v0-c0 = |
| 318 | < 0 0>, |
| 319 | < 768000000 1>, |
| 320 | < 998400000 1>, |
| 321 | < 1171200000 2>, |
| 322 | < 1305600000 3>, |
| 323 | < 1459200000 5>; |
| 324 | |
| 325 | qcom,speed1-bin-v0-c1 = |
| 326 | < 0 0>, |
Odelu Kukatla | 78f4711 | 2018-05-14 12:53:32 +0530 | [diff] [blame] | 327 | < 960000000 1>, |
Odelu Kukatla | 9254bfa | 2018-03-19 18:50:02 +0530 | [diff] [blame] | 328 | < 1305600000 1>, |
| 329 | < 1497600000 2>, |
| 330 | < 1708800000 3>, |
| 331 | < 1804800000 5>; |
| 332 | |
| 333 | qcom,speed1-bin-v0-cci = |
| 334 | < 0 0>, |
| 335 | < 400000000 1>, |
| 336 | < 533333333 3>; |
Odelu Kukatla | e8fd12b | 2018-09-21 15:11:03 +0530 | [diff] [blame] | 337 | |
| 338 | qcom,speed4-bin-v0-c0 = |
| 339 | < 0 0>, |
| 340 | < 768000000 1>, |
| 341 | < 998400000 1>, |
| 342 | < 1171200000 2>, |
| 343 | < 1305600000 3>, |
| 344 | < 1459200000 5>; |
| 345 | |
| 346 | qcom,speed4-bin-v0-c1 = |
| 347 | < 0 0>, |
| 348 | < 960000000 1>, |
| 349 | < 1305600000 1>, |
| 350 | < 1497600000 2>, |
| 351 | < 1708800000 3>, |
| 352 | < 1958400000 5>, |
| 353 | < 2016000000 6>; |
| 354 | |
| 355 | qcom,speed4-bin-v0-cci = |
| 356 | < 0 0>, |
| 357 | < 400000000 1>, |
| 358 | < 533333333 3>; |
Junwen Wu | 94eed55 | 2019-07-08 18:10:49 +0800 | [diff] [blame] | 359 | |
| 360 | qcom,speed5-bin-v0-c0 = |
| 361 | < 0 0>, |
| 362 | < 768000000 1>, |
| 363 | < 998400000 1>, |
| 364 | < 1171200000 2>, |
| 365 | < 1305600000 3>, |
| 366 | < 1459200000 5>; |
| 367 | |
| 368 | qcom,speed5-bin-v0-c1= |
| 369 | < 0 0>, |
| 370 | < 960000000 1>, |
| 371 | < 1305600000 1>, |
| 372 | < 1497600000 2>, |
| 373 | < 1708800000 3>; |
| 374 | |
| 375 | qcom,speed5-bin-v0-cci = |
| 376 | < 0 0>, |
| 377 | < 400000000 1>, |
| 378 | < 533333333 3>; |
Odelu Kukatla | 9254bfa | 2018-03-19 18:50:02 +0530 | [diff] [blame] | 379 | }; |
| 380 | |
| 381 | &clock_gcc { |
| 382 | compatible = "qcom,gcc-sdm439"; |
| 383 | reg = <0x1800000 0x80000>, |
| 384 | <0xb016000 0x00040>, |
| 385 | <0xb116000 0x00040>, |
| 386 | <0x00a6018 0x00004>; |
| 387 | reg-names = "cc_base", "apcs_c1_base", |
| 388 | "apcs_c0_base", "efuse"; |
| 389 | vdd_dig-supply = <&pm8953_s2_level>; |
| 390 | vdd_sr2_dig-supply = <&pm8953_s2_level_ao>; |
| 391 | vdd_sr2_pll-supply = <&pm8953_l7_ao>; |
| 392 | vdd_hf_dig-supply = <&pm8953_s2_level_ao>; |
| 393 | vdd_hf_pll-supply = <&pm8953_l7_ao>; |
| 394 | }; |
Padmanabhan Komanduru | b3b650b | 2018-04-30 09:00:14 +0530 | [diff] [blame] | 395 | |
Odelu Kukatla | be78005 | 2018-05-17 16:17:46 +0530 | [diff] [blame] | 396 | &soc { |
| 397 | devfreq_spdm_cpu { |
| 398 | status = "disabled"; |
| 399 | }; |
| 400 | |
| 401 | devfreq_spdm_gov { |
| 402 | status = "disabled"; |
| 403 | }; |
| 404 | }; |
| 405 | |
Padmanabhan Komanduru | b3b650b | 2018-04-30 09:00:14 +0530 | [diff] [blame] | 406 | &clock_gcc_mdss { |
| 407 | compatible = "qcom,gcc-mdss-sdm439"; |
| 408 | clocks = <&mdss_dsi0_pll clk_dsi0pll_pixel_clk_src>, |
| 409 | <&mdss_dsi0_pll clk_dsi0pll_byte_clk_src>, |
| 410 | <&mdss_dsi1_pll clk_dsi1pll_pixel_clk_src>, |
| 411 | <&mdss_dsi1_pll clk_dsi1pll_byte_clk_src>; |
| 412 | clock-names = "pclk0_src", "byte0_src", "pclk1_src", |
| 413 | "byte1_src"; |
| 414 | #clock-cells = <1>; |
| 415 | }; |
Padmanabhan Komanduru | dfeb2d8 | 2018-04-24 10:39:16 +0530 | [diff] [blame] | 416 | |
| 417 | &mdss_dsi0_pll { |
| 418 | compatible = "qcom,mdss_dsi_pll_sdm439"; |
| 419 | reg = <0x001a94400 0x400>, |
| 420 | <0x0184d074 0x8>; |
| 421 | reg-names = "pll_base", "gdsc_base"; |
Padmanabhan Komanduru | 9677d34 | 2018-05-02 18:18:47 +0530 | [diff] [blame] | 422 | qcom,dsi-pll-ssc-en; |
| 423 | qcom,dsi-pll-ssc-mode = "down-spread"; |
| 424 | qcom,ssc-frequency-hz = <31500>; |
| 425 | qcom,ssc-ppm = <5000>; |
Padmanabhan Komanduru | dfeb2d8 | 2018-04-24 10:39:16 +0530 | [diff] [blame] | 426 | }; |
| 427 | |
| 428 | &mdss_dsi1_pll { |
| 429 | compatible = "qcom,mdss_dsi_pll_sdm439"; |
| 430 | reg = <0x001a96400 0x400>, |
| 431 | <0x0184d074 0x8>; |
| 432 | reg-names = "pll_base", "gdsc_base"; |
Padmanabhan Komanduru | 9677d34 | 2018-05-02 18:18:47 +0530 | [diff] [blame] | 433 | qcom,dsi-pll-ssc-en; |
| 434 | qcom,dsi-pll-ssc-mode = "down-spread"; |
| 435 | qcom,ssc-frequency-hz = <31500>; |
| 436 | qcom,ssc-ppm = <5000>; |
Padmanabhan Komanduru | dfeb2d8 | 2018-04-24 10:39:16 +0530 | [diff] [blame] | 437 | }; |
| 438 | |
| 439 | &mdss_dsi { |
| 440 | ranges = <0x1a94000 0x1a94000 0x300 |
| 441 | 0x1a94400 0x1a94400 0x400 |
| 442 | 0x193e000 0x193e000 0x30 |
| 443 | 0x1a96000 0x1a96000 0x300 |
| 444 | 0x1a96400 0x1a96400 0x400 |
| 445 | 0x193e000 0x193e000 0x30>; |
| 446 | }; |
| 447 | |
| 448 | &mdss_dsi0 { |
| 449 | reg = <0x1a94000 0x300>, |
| 450 | <0x1a94400 0x400>, |
| 451 | <0x193e000 0x30>; |
| 452 | reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; |
| 453 | /delete-property/ qcom,platform-strength-ctrl; |
| 454 | /delete-property/ qcom,platform-bist-ctrl; |
| 455 | /delete-property/ qcom,platform-regulator-settings; |
| 456 | /delete-property/ qcom,platform-lane-config; |
| 457 | }; |
| 458 | |
| 459 | &mdss_dsi1 { |
| 460 | reg = <0x1a96000 0x300>, |
| 461 | <0x1a96400 0x400>, |
| 462 | <0x193e000 0x30>; |
| 463 | reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; |
| 464 | /delete-property/ qcom,platform-strength-ctrl; |
| 465 | /delete-property/ qcom,platform-bist-ctrl; |
| 466 | /delete-property/ qcom,platform-regulator-settings; |
| 467 | /delete-property/ qcom,platform-lane-config; |
| 468 | }; |
Sunil Khatri | 4007310 | 2018-04-23 15:29:55 +0530 | [diff] [blame] | 469 | |
| 470 | /* GPU Overrides*/ |
| 471 | &gpubw { |
| 472 | /delete-property/qcom,bw-tbl; |
| 473 | qcom,bw-tbl = |
| 474 | < 0 >, /* off */ |
| 475 | < 769 >, /* 1. DDR:100.80 MHz BIMC: 50.40 MHz */ |
| 476 | < 1611 >, /* 2. DDR:211.20 MHz BIMC: 105.60 MHz */ |
| 477 | < 2273 >, /* 3. DDR:297.60 MHz BIMC: 148.80 MHz */ |
| 478 | < 2929 >, /* 4. DDR:384.00 MHz BIMC: 192.00 MHz */ |
| 479 | < 4248 >, /* 5. DDR:556.80 MHz BIMC: 278.40 MHz */ |
| 480 | < 5346 >, /* 6. DDR:662.40 MHz BIMC: 331.20 MHz */ |
| 481 | < 5712 >, /* 7. DDR:748.80 MHz BIMC: 374.40 MHz */ |
| 482 | < 6150 >, /* 8. DDR:796.80 MHz BIMC: 398.40 MHz */ |
| 483 | < 7105 >; /* 9. DDR:931.20 MHz BIMC: 465.60 MHz */ |
| 484 | }; |
| 485 | |
| 486 | &msm_gpu { |
| 487 | /delete-property/qcom,msm-bus,num-cases; |
| 488 | qcom,msm-bus,num-cases = <10>; |
| 489 | /delete-property/qcom,msm-bus,vectors-KBps; |
| 490 | qcom,msm-bus,vectors-KBps = |
| 491 | <26 512 0 0>, /* off */ |
| 492 | <26 512 0 806400>, /* 1. 100.80 MHz */ |
| 493 | <26 512 0 1689600>, /* 2. 211.20 MHz */ |
| 494 | <26 512 0 2380800>, /* 3. 297.60 MHz */ |
| 495 | <26 512 0 3072000>, /* 4. 384.00 MHz */ |
| 496 | <26 512 0 4454400>, /* 5. 556.80 MHz */ |
| 497 | <26 512 0 5299200>, /* 6. 662.40 MHz */ |
| 498 | <26 512 0 5990400>, /* 7. 748.80 MHz */ |
| 499 | <26 512 0 6374400>, /* 8. 796.80 MHz */ |
| 500 | <26 512 0 7449600>; /* 9. 931.20 MHz */ |
| 501 | |
| 502 | qcom,gpu-speed-bin-vectors = |
| 503 | <0x6004 0x00c00000 22>, |
| 504 | <0x6008 0x00000600 7>; |
| 505 | |
| 506 | /delete-node/qcom,gpu-pwrlevels; |
| 507 | qcom,gpu-pwrlevel-bins { |
| 508 | #address-cells = <1>; |
| 509 | #size-cells = <0>; |
| 510 | |
| 511 | compatible="qcom,gpu-pwrlevel-bins"; |
| 512 | |
| 513 | qcom,gpu-pwrlevels-0 { |
| 514 | #address-cells = <1>; |
| 515 | #size-cells = <0>; |
| 516 | |
| 517 | qcom,speed-bin = <0>; |
| 518 | |
| 519 | qcom,initial-pwrlevel = <3>; |
| 520 | |
| 521 | /* TURBO */ |
| 522 | qcom,gpu-pwrlevel@0 { |
| 523 | reg = <0>; |
| 524 | qcom,gpu-freq = <650000000>; |
| 525 | qcom,bus-freq = <9>; |
| 526 | qcom,bus-min = <9>; |
| 527 | qcom,bus-max = <9>; |
| 528 | }; |
| 529 | |
| 530 | /* NOM+ */ |
| 531 | qcom,gpu-pwrlevel@1 { |
| 532 | reg = <1>; |
| 533 | qcom,gpu-freq = <560000000>; |
| 534 | qcom,bus-freq = <8>; |
| 535 | qcom,bus-min = <7>; |
| 536 | qcom,bus-max = <9>; |
| 537 | }; |
| 538 | |
| 539 | /* NOM */ |
| 540 | qcom,gpu-pwrlevel@2 { |
| 541 | reg = <2>; |
| 542 | qcom,gpu-freq = <510000000>; |
| 543 | qcom,bus-freq = <7>; |
| 544 | qcom,bus-min = <6>; |
| 545 | qcom,bus-max = <8>; |
| 546 | }; |
| 547 | |
| 548 | /* SVS+ */ |
| 549 | qcom,gpu-pwrlevel@3 { |
| 550 | reg = <3>; |
| 551 | qcom,gpu-freq = <400000000>; |
| 552 | qcom,bus-freq = <5>; |
| 553 | qcom,bus-min = <4>; |
| 554 | qcom,bus-max = <7>; |
| 555 | }; |
| 556 | |
| 557 | /* SVS */ |
| 558 | qcom,gpu-pwrlevel@4 { |
| 559 | reg = <4>; |
| 560 | qcom,gpu-freq = <320000000>; |
| 561 | qcom,bus-freq = <4>; |
| 562 | qcom,bus-min = <3>; |
| 563 | qcom,bus-max = <5>; |
| 564 | }; |
| 565 | |
| 566 | /* XO */ |
| 567 | qcom,gpu-pwrlevel@5 { |
| 568 | reg = <5>; |
| 569 | qcom,gpu-freq = <19200000>; |
| 570 | qcom,bus-freq = <0>; |
| 571 | qcom,bus-min = <0>; |
| 572 | qcom,bus-max = <0>; |
| 573 | }; |
| 574 | }; |
| 575 | |
| 576 | qcom,gpu-pwrlevels-1 { |
| 577 | #address-cells = <1>; |
| 578 | #size-cells = <0>; |
| 579 | |
| 580 | qcom,speed-bin = <4>; |
| 581 | |
| 582 | qcom,initial-pwrlevel = <2>; |
| 583 | |
| 584 | /* NOM+ */ |
| 585 | qcom,gpu-pwrlevel@0 { |
| 586 | reg = <0>; |
| 587 | qcom,gpu-freq = <560000000>; |
| 588 | qcom,bus-freq = <8>; |
| 589 | qcom,bus-min = <7>; |
| 590 | qcom,bus-max = <9>; |
| 591 | }; |
| 592 | |
| 593 | /* NOM */ |
| 594 | qcom,gpu-pwrlevel@1 { |
| 595 | reg = <1>; |
| 596 | qcom,gpu-freq = <510000000>; |
| 597 | qcom,bus-freq = <7>; |
| 598 | qcom,bus-min = <6>; |
| 599 | qcom,bus-max = <8>; |
| 600 | }; |
| 601 | |
| 602 | /* SVS+ */ |
| 603 | qcom,gpu-pwrlevel@2 { |
| 604 | reg = <2>; |
| 605 | qcom,gpu-freq = <400000000>; |
| 606 | qcom,bus-freq = <5>; |
| 607 | qcom,bus-min = <4>; |
| 608 | qcom,bus-max = <7>; |
| 609 | }; |
| 610 | |
| 611 | /* SVS */ |
| 612 | qcom,gpu-pwrlevel@3 { |
| 613 | reg = <3>; |
| 614 | qcom,gpu-freq = <320000000>; |
| 615 | qcom,bus-freq = <4>; |
| 616 | qcom,bus-min = <3>; |
| 617 | qcom,bus-max = <5>; |
| 618 | }; |
| 619 | |
| 620 | /* XO */ |
| 621 | qcom,gpu-pwrlevel@4 { |
| 622 | reg = <4>; |
| 623 | qcom,gpu-freq = <19200000>; |
| 624 | qcom,bus-freq = <0>; |
| 625 | qcom,bus-min = <0>; |
| 626 | qcom,bus-max = <0>; |
| 627 | }; |
| 628 | }; |
| 629 | |
| 630 | qcom,gpu-pwrlevels-2 { |
| 631 | #address-cells = <1>; |
| 632 | #size-cells = <0>; |
| 633 | |
| 634 | qcom,speed-bin = <5>; |
| 635 | |
| 636 | qcom,initial-pwrlevel = <1>; |
| 637 | |
| 638 | /* NOM */ |
| 639 | qcom,gpu-pwrlevel@0 { |
| 640 | reg = <0>; |
| 641 | qcom,gpu-freq = <510000000>; |
| 642 | qcom,bus-freq = <7>; |
| 643 | qcom,bus-min = <6>; |
| 644 | qcom,bus-max = <8>; |
| 645 | }; |
| 646 | |
| 647 | /* SVS+ */ |
| 648 | qcom,gpu-pwrlevel@1 { |
| 649 | reg = <1>; |
| 650 | qcom,gpu-freq = <400000000>; |
| 651 | qcom,bus-freq = <5>; |
| 652 | qcom,bus-min = <4>; |
| 653 | qcom,bus-max = <7>; |
| 654 | }; |
| 655 | |
| 656 | /* SVS */ |
| 657 | qcom,gpu-pwrlevel@2 { |
| 658 | reg = <2>; |
| 659 | qcom,gpu-freq = <320000000>; |
| 660 | qcom,bus-freq = <4>; |
| 661 | qcom,bus-min = <3>; |
| 662 | qcom,bus-max = <5>; |
| 663 | }; |
| 664 | |
| 665 | /* XO */ |
| 666 | qcom,gpu-pwrlevel@3 { |
| 667 | reg = <3>; |
| 668 | qcom,gpu-freq = <19200000>; |
| 669 | qcom,bus-freq = <0>; |
| 670 | qcom,bus-min = <0>; |
| 671 | qcom,bus-max = <0>; |
| 672 | }; |
| 673 | }; |
| 674 | |
| 675 | qcom,gpu-pwrlevels-3 { |
| 676 | #address-cells = <1>; |
| 677 | #size-cells = <0>; |
| 678 | |
| 679 | qcom,speed-bin = <10>; |
| 680 | |
| 681 | qcom,initial-pwrlevel = <0>; |
| 682 | |
| 683 | /* SVS */ |
| 684 | qcom,gpu-pwrlevel@0 { |
| 685 | reg = <0>; |
| 686 | qcom,gpu-freq = <320000000>; |
| 687 | qcom,bus-freq = <4>; |
| 688 | qcom,bus-min = <4>; |
| 689 | qcom,bus-max = <8>; |
| 690 | }; |
| 691 | |
| 692 | /* XO */ |
| 693 | qcom,gpu-pwrlevel@1 { |
| 694 | reg = <1>; |
| 695 | qcom,gpu-freq = <19200000>; |
| 696 | qcom,bus-freq = <0>; |
| 697 | qcom,bus-min = <0>; |
| 698 | qcom,bus-max = <0>; |
| 699 | }; |
| 700 | }; |
| 701 | }; |
| 702 | }; |
Animesh Kishore | 212cec7 | 2018-05-03 15:28:59 +0530 | [diff] [blame] | 703 | |
Veerabhadrarao Badiganti | cd6fc9a | 2018-11-30 17:17:40 +0530 | [diff] [blame] | 704 | &sdhc_1 { |
Veerabhadrarao Badiganti | d06f4e0 | 2019-06-18 18:58:54 +0530 | [diff] [blame] | 705 | /* DLL HSR settings. Refer go/hsr - <Target> DLL settings */ |
| 706 | qcom,dll-hsr-list = <0x00076400 0x0 0x0 0x0 0x00040868>; |
| 707 | |
| 708 | }; |
| 709 | |
| 710 | &sdhc_2 { |
| 711 | /* DLL HSR settings. Refer go/hsr - <Target> DLL settings */ |
| 712 | qcom,dll-hsr-list = <0x00076400 0x0 0x0 0x0 0x00040868>; |
| 713 | |
Veerabhadrarao Badiganti | cd6fc9a | 2018-11-30 17:17:40 +0530 | [diff] [blame] | 714 | }; |
| 715 | |
Animesh Kishore | 212cec7 | 2018-05-03 15:28:59 +0530 | [diff] [blame] | 716 | &mdss_mdp { |
| 717 | qcom,vbif-settings = <0xd0 0x20>; |
| 718 | }; |
Manaf Meethalavalappu Pallikunhi | 03007f1 | 2018-06-19 16:29:55 +0530 | [diff] [blame] | 719 | |
| 720 | &thermal_zones { |
| 721 | hexa-cpu-max-step { |
| 722 | trips { |
| 723 | cpu-trip { |
| 724 | temperature = <95000>; |
| 725 | }; |
| 726 | }; |
| 727 | }; |
| 728 | }; |
Ajay Agarwal | e2ac878 | 2018-09-06 21:36:21 +0530 | [diff] [blame] | 729 | |
| 730 | &usb_otg { |
Ajay Agarwal | e0d0f20 | 2018-10-23 14:44:06 +0530 | [diff] [blame] | 731 | qcom,hsusb-otg-phy-init-seq = <0x43 0x80 0x06 0x82 0xffffffff>; |
Ajay Agarwal | e2ac878 | 2018-09-06 21:36:21 +0530 | [diff] [blame] | 732 | }; |