Channagoud Kadabi | 459f011 | 2017-03-20 12:42:15 -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 | #include "sdm845.dtsi" |
Soundrapandian Jeyaprakash | 3cc03bb | 2017-08-09 15:16:41 -0700 | [diff] [blame] | 14 | #include "sdm845-v2-camera.dtsi" |
Channagoud Kadabi | 459f011 | 2017-03-20 12:42:15 -0700 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Qualcomm Technologies, Inc. SDM845 V2"; |
| 18 | qcom,msm-id = <321 0x20000>; |
| 19 | }; |
David Collins | 3605018 | 2017-04-26 11:41:22 -0700 | [diff] [blame] | 20 | |
Subhash Jadavani | 0842b27 | 2017-07-19 17:05:13 -0700 | [diff] [blame] | 21 | &sdhc_2 { |
Subhash Jadavani | 3497a96 | 2017-07-31 13:57:47 -0700 | [diff] [blame] | 22 | /delete-property/ qcom,sdr104-wa; |
Subhash Jadavani | 0842b27 | 2017-07-19 17:05:13 -0700 | [diff] [blame] | 23 | }; |
| 24 | |
Archana Sathyakumar | eb78ba4 | 2017-10-13 14:42:51 -0600 | [diff] [blame] | 25 | /delete-node/ &pdc; |
| 26 | |
Lina Iyer | c1e83dc | 2017-09-27 21:52:38 +0000 | [diff] [blame] | 27 | &tlmm { |
| 28 | compatible = "qcom,sdm845-pinctrl-v2"; |
| 29 | }; |
| 30 | |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 31 | &soc { |
Manoj Prabhu B | 31520a4 | 2017-10-26 14:43:43 +0530 | [diff] [blame] | 32 | qcom,memshare { |
| 33 | compatible = "qcom,memshare"; |
| 34 | |
| 35 | qcom,client_1 { |
| 36 | compatible = "qcom,memshare-peripheral"; |
| 37 | qcom,peripheral-size = <0x0>; |
| 38 | qcom,client-id = <0>; |
| 39 | qcom,allocate-boot-time; |
| 40 | label = "modem"; |
| 41 | }; |
| 42 | |
| 43 | qcom,client_2 { |
| 44 | compatible = "qcom,memshare-peripheral"; |
| 45 | qcom,peripheral-size = <0x0>; |
| 46 | qcom,client-id = <2>; |
| 47 | label = "modem"; |
| 48 | }; |
| 49 | |
| 50 | mem_client_3_size: qcom,client_3 { |
| 51 | compatible = "qcom,memshare-peripheral"; |
| 52 | qcom,peripheral-size = <0x500000>; |
| 53 | qcom,client-id = <1>; |
| 54 | label = "modem"; |
| 55 | }; |
| 56 | }; |
| 57 | |
Vicky Wallace | ddf4fad | 2017-08-03 20:15:55 -0700 | [diff] [blame] | 58 | gpu_gx_domain_addr: syscon@0x5091508 { |
| 59 | compatible = "syscon"; |
| 60 | reg = <0x5091508 0x4>; |
| 61 | }; |
| 62 | |
| 63 | gpu_gx_sw_reset: syscon@0x5091008 { |
| 64 | compatible = "syscon"; |
| 65 | reg = <0x5091008 0x4>; |
| 66 | }; |
Archana Sathyakumar | eb78ba4 | 2017-10-13 14:42:51 -0600 | [diff] [blame] | 67 | |
| 68 | pdc: interrupt-controller@0xb220000{ |
| 69 | compatible = "qcom,pdc-sdm845-v2"; |
| 70 | reg = <0xb220000 0x400>; |
| 71 | #interrupt-cells = <3>; |
| 72 | interrupt-parent = <&intc>; |
| 73 | interrupt-controller; |
| 74 | }; |
| 75 | |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 76 | }; |
| 77 | |
Kyle Yan | f248e35 | 2017-09-14 11:15:58 -0700 | [diff] [blame] | 78 | &pil_modem { |
| 79 | qcom,mss_pdc_offset = <9>; |
| 80 | }; |
| 81 | |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 82 | &clock_cpucc { |
Deepak Katragadda | a442baa | 2017-07-11 12:27:06 -0700 | [diff] [blame] | 83 | compatible = "qcom,clk-cpu-osm-v2"; |
Deepak Katragadda | 02617bd | 2017-11-10 16:03:43 -0800 | [diff] [blame] | 84 | reg = <0x17d41000 0x1400>, |
| 85 | <0x17d43000 0x1400>, |
| 86 | <0x17d45800 0x1400>, |
| 87 | <0x78425c 0x4>; |
| 88 | reg-names = "osm_l3_base", "osm_pwrcl_base", "osm_perfcl_base", |
| 89 | "cpr_rc"; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 90 | }; |
| 91 | |
Tony Truong | 80258d6 | 2017-08-16 11:41:33 -0700 | [diff] [blame] | 92 | &pcie1 { |
| 93 | qcom,phy-sequence = <0x1804 0x03 0x0 |
| 94 | 0x00dc 0x27 0x0 |
| 95 | 0x0014 0x01 0x0 |
| 96 | 0x0020 0x31 0x0 |
| 97 | 0x0024 0x01 0x0 |
| 98 | 0x0028 0xde 0x0 |
| 99 | 0x002c 0x07 0x0 |
| 100 | 0x0034 0x4c 0x0 |
| 101 | 0x0038 0x06 0x0 |
| 102 | 0x0054 0x18 0x0 |
| 103 | 0x0058 0xb0 0x0 |
| 104 | 0x006c 0x8c 0x0 |
| 105 | 0x0070 0x20 0x0 |
| 106 | 0x0078 0x14 0x0 |
| 107 | 0x007c 0x34 0x0 |
| 108 | 0x00b4 0x06 0x0 |
| 109 | 0x00b8 0x06 0x0 |
| 110 | 0x00c0 0x16 0x0 |
| 111 | 0x00c4 0x16 0x0 |
| 112 | 0x00cc 0x36 0x0 |
| 113 | 0x00d0 0x36 0x0 |
| 114 | 0x00f0 0x05 0x0 |
| 115 | 0x00f8 0x42 0x0 |
| 116 | 0x0100 0x82 0x0 |
| 117 | 0x0108 0x68 0x0 |
| 118 | 0x011c 0x55 0x0 |
| 119 | 0x0120 0x55 0x0 |
| 120 | 0x0124 0x03 0x0 |
| 121 | 0x0128 0xab 0x0 |
| 122 | 0x012c 0xaa 0x0 |
| 123 | 0x0130 0x02 0x0 |
| 124 | 0x0150 0x3f 0x0 |
| 125 | 0x0158 0x3f 0x0 |
| 126 | 0x0178 0x10 0x0 |
| 127 | 0x01cc 0x04 0x0 |
| 128 | 0x01d0 0x30 0x0 |
| 129 | 0x01e0 0x04 0x0 |
| 130 | 0x01e8 0x73 0x0 |
| 131 | 0x01f0 0x1c 0x0 |
| 132 | 0x01fc 0x15 0x0 |
| 133 | 0x021c 0x04 0x0 |
| 134 | 0x0224 0x01 0x0 |
| 135 | 0x0228 0x22 0x0 |
| 136 | 0x022c 0x00 0x0 |
| 137 | 0x0098 0x05 0x0 |
| 138 | 0x080c 0x00 0x0 |
| 139 | 0x0818 0x0d 0x0 |
| 140 | 0x0860 0x01 0x0 |
| 141 | 0x0864 0x3a 0x0 |
| 142 | 0x087c 0x2f 0x0 |
| 143 | 0x08c0 0x09 0x0 |
| 144 | 0x08c4 0x09 0x0 |
| 145 | 0x08c8 0x1a 0x0 |
| 146 | 0x08d0 0x01 0x0 |
| 147 | 0x08d4 0x07 0x0 |
| 148 | 0x08d8 0x31 0x0 |
| 149 | 0x08dc 0x31 0x0 |
| 150 | 0x08e0 0x03 0x0 |
| 151 | 0x08fc 0x02 0x0 |
| 152 | 0x0900 0x01 0x0 |
| 153 | 0x0908 0x12 0x0 |
| 154 | 0x0914 0x25 0x0 |
| 155 | 0x0918 0x00 0x0 |
| 156 | 0x091c 0x05 0x0 |
| 157 | 0x0920 0x01 0x0 |
| 158 | 0x0924 0x26 0x0 |
| 159 | 0x0928 0x12 0x0 |
| 160 | 0x0930 0x04 0x0 |
| 161 | 0x0934 0x04 0x0 |
| 162 | 0x0938 0x09 0x0 |
| 163 | 0x0954 0x15 0x0 |
| 164 | 0x0960 0x32 0x0 |
| 165 | 0x0968 0x7f 0x0 |
| 166 | 0x096c 0x07 0x0 |
| 167 | 0x0978 0x04 0x0 |
| 168 | 0x0980 0x70 0x0 |
| 169 | 0x0984 0x8b 0x0 |
| 170 | 0x0988 0x08 0x0 |
| 171 | 0x098c 0x09 0x0 |
| 172 | 0x0990 0x03 0x0 |
| 173 | 0x0994 0x04 0x0 |
| 174 | 0x0998 0x02 0x0 |
| 175 | 0x099c 0x0c 0x0 |
| 176 | 0x09a4 0x02 0x0 |
| 177 | 0x09c0 0x5c 0x0 |
| 178 | 0x09c4 0x3e 0x0 |
| 179 | 0x09c8 0x3f 0x0 |
| 180 | 0x0a30 0x01 0x0 |
| 181 | 0x0a34 0xa0 0x0 |
| 182 | 0x0a38 0x08 0x0 |
| 183 | 0x0aa4 0x01 0x0 |
| 184 | 0x0aac 0xc3 0x0 |
| 185 | 0x0ab0 0x00 0x0 |
| 186 | 0x0ab8 0x8c 0x0 |
| 187 | 0x0ac0 0x7f 0x0 |
| 188 | 0x0ac4 0x2a 0x0 |
| 189 | 0x0810 0x0c 0x0 |
| 190 | 0x0814 0x00 0x0 |
| 191 | 0x0acc 0x04 0x0 |
| 192 | 0x093c 0x20 0x0 |
| 193 | 0x100c 0x00 0x0 |
| 194 | 0x1018 0x0d 0x0 |
| 195 | 0x1060 0x01 0x0 |
| 196 | 0x1064 0x3a 0x0 |
| 197 | 0x107c 0x2f 0x0 |
| 198 | 0x10c0 0x09 0x0 |
| 199 | 0x10c4 0x09 0x0 |
| 200 | 0x10c8 0x1a 0x0 |
| 201 | 0x10d0 0x01 0x0 |
| 202 | 0x10d4 0x07 0x0 |
| 203 | 0x10d8 0x31 0x0 |
| 204 | 0x10dc 0x31 0x0 |
| 205 | 0x10e0 0x03 0x0 |
| 206 | 0x10fc 0x02 0x0 |
| 207 | 0x1100 0x01 0x0 |
| 208 | 0x1108 0x12 0x0 |
| 209 | 0x1114 0x25 0x0 |
| 210 | 0x1118 0x00 0x0 |
| 211 | 0x111c 0x05 0x0 |
| 212 | 0x1120 0x01 0x0 |
| 213 | 0x1124 0x26 0x0 |
| 214 | 0x1128 0x12 0x0 |
| 215 | 0x1130 0x04 0x0 |
| 216 | 0x1134 0x04 0x0 |
| 217 | 0x1138 0x09 0x0 |
| 218 | 0x1154 0x15 0x0 |
| 219 | 0x1160 0x32 0x0 |
| 220 | 0x1168 0x7f 0x0 |
| 221 | 0x116c 0x07 0x0 |
| 222 | 0x1178 0x04 0x0 |
| 223 | 0x1180 0x70 0x0 |
| 224 | 0x1184 0x8b 0x0 |
| 225 | 0x1188 0x08 0x0 |
| 226 | 0x118c 0x09 0x0 |
| 227 | 0x1190 0x03 0x0 |
| 228 | 0x1194 0x04 0x0 |
| 229 | 0x1198 0x02 0x0 |
| 230 | 0x119c 0x0c 0x0 |
| 231 | 0x11a4 0x02 0x0 |
| 232 | 0x11c0 0x5c 0x0 |
| 233 | 0x11c4 0x3e 0x0 |
| 234 | 0x11c8 0x3f 0x0 |
| 235 | 0x1230 0x01 0x0 |
| 236 | 0x1234 0xa0 0x0 |
| 237 | 0x1238 0x08 0x0 |
| 238 | 0x12a4 0x01 0x0 |
| 239 | 0x12ac 0xc3 0x0 |
| 240 | 0x12b0 0x00 0x0 |
| 241 | 0x12b8 0x8c 0x0 |
| 242 | 0x12c0 0x7f 0x0 |
| 243 | 0x12c4 0x2a 0x0 |
| 244 | 0x1010 0x0c 0x0 |
| 245 | 0x1014 0x0f 0x0 |
| 246 | 0x12cc 0x04 0x0 |
| 247 | 0x113c 0x20 0x0 |
| 248 | 0x195c 0x3f 0x0 |
| 249 | 0x1974 0x50 0x0 |
| 250 | 0x196c 0x9f 0x0 |
| 251 | 0x182c 0x19 0x0 |
| 252 | 0x1840 0x07 0x0 |
| 253 | 0x1854 0x17 0x0 |
| 254 | 0x1868 0x09 0x0 |
| 255 | 0x1800 0x00 0x0 |
| 256 | 0x0aa8 0x01 0x0 |
| 257 | 0x12a8 0x01 0x0 |
| 258 | 0x1808 0x01 0x0>; |
| 259 | }; |
| 260 | |
Jonathan Avila | 29bc197 | 2017-08-24 16:49:18 -0700 | [diff] [blame] | 261 | &devfreq_l3lat_0 { |
| 262 | qcom,core-dev-table = |
| 263 | < 300000 300000000 >, |
| 264 | < 480000 403200000 >, |
| 265 | < 652800 480000000 >, |
| 266 | < 748800 576000000 >, |
| 267 | < 902400 652800000 >, |
| 268 | < 979200 748800000 >, |
| 269 | < 1132800 844800000 >, |
| 270 | < 1228800 940800000 >, |
| 271 | < 1324800 1036800000 >, |
| 272 | < 1420800 1132800000 >, |
| 273 | < 1516800 1209600000 >, |
Amir Vajid | f9335aa | 2017-10-31 16:52:17 -0700 | [diff] [blame] | 274 | < 1689600 1305600000 >, |
| 275 | < 1766400 1401600000 >; |
Jonathan Avila | 29bc197 | 2017-08-24 16:49:18 -0700 | [diff] [blame] | 276 | }; |
| 277 | |
| 278 | &devfreq_l3lat_4 { |
| 279 | qcom,core-dev-table = |
| 280 | < 300000 300000000 >, |
| 281 | < 825600 576000000 >, |
| 282 | < 1132800 748800000 >, |
| 283 | < 1363200 940800000 >, |
| 284 | < 1689600 1209600000 >, |
Amir Vajid | f9335aa | 2017-10-31 16:52:17 -0700 | [diff] [blame] | 285 | < 1996800 1305600000 >, |
| 286 | < 2400000 1401600000 >, |
| 287 | < 2745600 1593600000 >; |
Jonathan Avila | 29bc197 | 2017-08-24 16:49:18 -0700 | [diff] [blame] | 288 | }; |
| 289 | |
Stephen Boyd | cbe46a0 | 2017-08-02 13:59:31 -0700 | [diff] [blame] | 290 | &bwmon { |
| 291 | qcom,count-unit = <0x10000>; |
| 292 | }; |
| 293 | |
Stephen Boyd | 31aac5f | 2017-09-01 09:16:06 -0700 | [diff] [blame] | 294 | &cpubw { |
| 295 | qcom,bw-tbl = |
| 296 | < MHZ_TO_MBPS(150, 16) >, /* 2288 MB/s */ |
| 297 | < MHZ_TO_MBPS(300, 16) >, /* 4577 MB/s */ |
| 298 | < MHZ_TO_MBPS(426, 16) >, /* 6500 MB/s */ |
| 299 | < MHZ_TO_MBPS(533, 16) >, /* 8132 MB/s */ |
| 300 | < MHZ_TO_MBPS(600, 16) >, /* 9155 MB/s */ |
| 301 | < MHZ_TO_MBPS(806, 16) >, /* 12298 MB/s */ |
| 302 | < MHZ_TO_MBPS(933, 16) >; /* 14236 MB/s */ |
| 303 | }; |
| 304 | |
| 305 | &devfreq_cpufreq { |
| 306 | mincpubw-cpufreq { |
| 307 | cpu-to-dev-map-4 = |
| 308 | < 1881600 MHZ_TO_MBPS(200, 4) >, |
Jonathan Avila | 018bf52 | 2017-10-19 14:57:32 -0700 | [diff] [blame] | 309 | < 2400000 MHZ_TO_MBPS(1017, 4) >; |
Stephen Boyd | 31aac5f | 2017-09-01 09:16:06 -0700 | [diff] [blame] | 310 | }; |
| 311 | }; |
| 312 | |
Jonathan Avila | c7a6fd5 | 2017-10-12 15:24:05 -0700 | [diff] [blame] | 313 | &devfreq_compute { |
| 314 | qcom,core-dev-table = |
Jonathan Avila | 9c330084a | 2017-11-02 15:30:40 -0700 | [diff] [blame] | 315 | < 1881600 MHZ_TO_MBPS( 200, 4) >, |
| 316 | < 2649600 MHZ_TO_MBPS(1017, 4) >, |
| 317 | < 2745600 MHZ_TO_MBPS(1804, 4) >; |
Jonathan Avila | c7a6fd5 | 2017-10-12 15:24:05 -0700 | [diff] [blame] | 318 | }; |
| 319 | |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 320 | &clock_gcc { |
Deepak Katragadda | 3f120bb | 2017-08-09 14:49:49 -0700 | [diff] [blame] | 321 | compatible = "qcom,gcc-sdm845-v2", "syscon"; |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 322 | }; |
| 323 | |
| 324 | &clock_camcc { |
Deepak Katragadda | 3f120bb | 2017-08-09 14:49:49 -0700 | [diff] [blame] | 325 | compatible = "qcom,cam_cc-sdm845-v2", "syscon"; |
Jigarkumar Zala | 9e21491 | 2017-09-14 16:40:03 -0700 | [diff] [blame] | 326 | qcom,cam_cc_csi3phytimer_clk_src-opp-handle = <&cam_csiphy3>; |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 327 | }; |
| 328 | |
| 329 | &clock_dispcc { |
Deepak Katragadda | 3f120bb | 2017-08-09 14:49:49 -0700 | [diff] [blame] | 330 | compatible = "qcom,dispcc-sdm845-v2", "syscon"; |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 331 | }; |
| 332 | |
Vicky Wallace | 1762ab3 | 2017-07-12 19:00:04 -0700 | [diff] [blame] | 333 | &clock_gpucc { |
Deepak Katragadda | 3f120bb | 2017-08-09 14:49:49 -0700 | [diff] [blame] | 334 | compatible = "qcom,gpucc-sdm845-v2", "syscon"; |
Vicky Wallace | 1762ab3 | 2017-07-12 19:00:04 -0700 | [diff] [blame] | 335 | }; |
| 336 | |
| 337 | &clock_gfx { |
| 338 | compatible = "qcom,gfxcc-sdm845-v2"; |
| 339 | }; |
| 340 | |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 341 | &clock_videocc { |
Deepak Katragadda | 3f120bb | 2017-08-09 14:49:49 -0700 | [diff] [blame] | 342 | compatible = "qcom,video_cc-sdm845-v2", "syscon"; |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 343 | }; |
Praneeth Paladugu | 5538121 | 2017-07-05 15:02:44 -0700 | [diff] [blame] | 344 | |
| 345 | &msm_vidc { |
| 346 | qcom,allowed-clock-rates = <100000000 200000000 330000000 |
| 347 | 404000000 444000000 533000000>; |
| 348 | }; |
Reut Zysman | 861fd6c | 2017-07-30 15:39:13 +0300 | [diff] [blame] | 349 | |
David Collins | 113cc277 | 2017-06-27 17:26:54 -0700 | [diff] [blame] | 350 | &refgen { |
| 351 | status = "ok"; |
| 352 | }; |
| 353 | |
Reut Zysman | 861fd6c | 2017-07-30 15:39:13 +0300 | [diff] [blame] | 354 | &spss_utils { |
| 355 | qcom,spss-dev-firmware-name = "spss2d"; /* 8 chars max */ |
| 356 | qcom,spss-test-firmware-name = "spss2t"; /* 8 chars max */ |
| 357 | qcom,spss-prod-firmware-name = "spss2p"; /* 8 chars max */ |
| 358 | }; |
Narendra Muppalla | 4efd344 | 2017-07-24 17:36:15 -0700 | [diff] [blame] | 359 | |
| 360 | &mdss_mdp { |
| 361 | clock-max-rate = <0 0 0 0 430000000 19200000 0>; |
Narendra Muppalla | 86a46a0 | 2017-08-17 11:14:37 -0700 | [diff] [blame] | 362 | qcom,sde-min-core-ib-kbps = <4800000>; |
Ingrid Gallardo | bdc7243 | 2017-10-16 14:44:47 -0700 | [diff] [blame] | 363 | qcom,sde-max-bw-low-kbps = <9600000>; |
| 364 | qcom,sde-max-bw-high-kbps = <9600000>; |
Narendra Muppalla | 4efd344 | 2017-07-24 17:36:15 -0700 | [diff] [blame] | 365 | }; |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 366 | |
Ingrid Gallardo | e38166e | 2017-09-06 17:01:00 -0700 | [diff] [blame] | 367 | &mdss_dsi0 { |
| 368 | qcom,core-supply-entries { |
| 369 | #address-cells = <1>; |
| 370 | #size-cells = <0>; |
| 371 | |
| 372 | qcom,core-supply-entry@0 { |
| 373 | reg = <0>; |
| 374 | qcom,supply-name = "refgen"; |
| 375 | qcom,supply-min-voltage = <0>; |
| 376 | qcom,supply-max-voltage = <0>; |
| 377 | qcom,supply-enable-load = <0>; |
| 378 | qcom,supply-disable-load = <0>; |
| 379 | }; |
| 380 | }; |
| 381 | }; |
| 382 | |
| 383 | &mdss_dsi1 { |
| 384 | qcom,core-supply-entries { |
| 385 | #address-cells = <1>; |
| 386 | #size-cells = <0>; |
| 387 | |
| 388 | qcom,core-supply-entry@0 { |
| 389 | reg = <0>; |
| 390 | qcom,supply-name = "refgen"; |
| 391 | qcom,supply-min-voltage = <0>; |
| 392 | qcom,supply-max-voltage = <0>; |
| 393 | qcom,supply-enable-load = <0>; |
| 394 | qcom,supply-disable-load = <0>; |
| 395 | }; |
| 396 | }; |
| 397 | }; |
| 398 | |
| 399 | &sde_dp { |
| 400 | qcom,core-supply-entries { |
| 401 | #address-cells = <1>; |
| 402 | #size-cells = <0>; |
| 403 | |
| 404 | qcom,core-supply-entry@0 { |
| 405 | reg = <0>; |
| 406 | qcom,supply-name = "refgen"; |
| 407 | qcom,supply-min-voltage = <0>; |
| 408 | qcom,supply-max-voltage = <0>; |
| 409 | qcom,supply-enable-load = <0>; |
| 410 | qcom,supply-disable-load = <0>; |
| 411 | }; |
| 412 | }; |
| 413 | }; |
| 414 | |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 415 | &energy_costs { |
| 416 | CPU_COST_0: core-cost0 { |
| 417 | busy-cost-data = < |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 418 | 300000 12 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 419 | 403200 17 |
| 420 | 480000 21 |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 421 | 576000 27 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 422 | 652800 31 |
| 423 | 748800 37 |
| 424 | 825600 42 |
| 425 | 902400 47 |
| 426 | 979200 52 |
| 427 | 1056000 57 |
| 428 | 1132800 62 |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 429 | 1228800 70 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 430 | 1324800 78 |
| 431 | 1420800 89 |
| 432 | 1516800 103 |
| 433 | 1612800 122 |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 434 | 1689600 141 |
| 435 | 1766400 160 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 436 | >; |
| 437 | idle-cost-data = < |
| 438 | 22 18 14 12 |
| 439 | >; |
| 440 | }; |
| 441 | CPU_COST_1: core-cost1 { |
| 442 | busy-cost-data = < |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 443 | 300000 189 |
| 444 | 403200 523 |
| 445 | 480000 763 |
| 446 | 576000 1052 |
| 447 | 652800 1273 |
| 448 | 748800 1536 |
| 449 | 825600 1736 |
| 450 | 902400 1926 |
| 451 | 979200 2108 |
| 452 | 1056000 2284 |
| 453 | 1132800 2456 |
| 454 | 1209600 2628 |
| 455 | 1286400 2804 |
| 456 | 1363200 2992 |
| 457 | 1459200 3255 |
| 458 | 1536000 3499 |
| 459 | 1612800 3786 |
| 460 | 1689600 4128 |
| 461 | 1766400 4535 |
| 462 | 1843200 5019 |
| 463 | 1920000 5583 |
| 464 | 1996800 6226 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 465 | 2092800 7120 |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 466 | 2169600 7876 |
| 467 | 2246400 8628 |
| 468 | 2323200 9344 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 469 | 2400000 10030 |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 470 | 2476800 10806 |
| 471 | 2553600 12045 |
| 472 | 2649600 15686 |
| 473 | 2745600 25586 |
Vikram Mulukutla | a47c2bd | 2017-10-25 18:26:46 -0700 | [diff] [blame] | 474 | 2764800 30000 |
| 475 | 2784000 35000 |
| 476 | 2803200 40000 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 477 | >; |
| 478 | idle-cost-data = < |
| 479 | 100 80 60 40 |
| 480 | >; |
| 481 | }; |
| 482 | CLUSTER_COST_0: cluster-cost0 { |
| 483 | busy-cost-data = < |
| 484 | 300000 3 |
| 485 | 403200 4 |
| 486 | 480000 4 |
| 487 | 576000 4 |
| 488 | 652800 5 |
| 489 | 748800 5 |
| 490 | 825600 6 |
| 491 | 902400 7 |
| 492 | 979200 7 |
| 493 | 1056000 8 |
| 494 | 1132800 9 |
| 495 | 1228800 9 |
| 496 | 1324800 10 |
| 497 | 1420800 11 |
| 498 | 1516800 12 |
| 499 | 1612800 13 |
| 500 | 1689600 15 |
| 501 | 1766400 17 |
| 502 | >; |
| 503 | idle-cost-data = < |
| 504 | 4 3 2 1 |
| 505 | >; |
| 506 | }; |
| 507 | CLUSTER_COST_1: cluster-cost1 { |
| 508 | busy-cost-data = < |
| 509 | 300000 24 |
| 510 | 403200 24 |
| 511 | 480000 25 |
| 512 | 576000 25 |
| 513 | 652800 26 |
| 514 | 748800 27 |
| 515 | 825600 28 |
| 516 | 902400 29 |
| 517 | 979200 30 |
| 518 | 1056000 32 |
| 519 | 1132800 34 |
| 520 | 1209600 37 |
| 521 | 1286400 40 |
| 522 | 1363200 45 |
| 523 | 1459200 50 |
| 524 | 1536000 57 |
| 525 | 1612800 64 |
| 526 | 1689600 74 |
| 527 | 1766400 84 |
| 528 | 1843200 96 |
| 529 | 1920000 106 |
| 530 | 1996800 113 |
| 531 | 2092800 120 |
| 532 | 2169600 125 |
| 533 | 2246400 127 |
| 534 | 2323200 130 |
| 535 | 2400000 135 |
| 536 | 2476800 140 |
| 537 | 2553600 145 |
Puja Gupta | 346e399c | 2017-09-06 14:32:42 -0700 | [diff] [blame] | 538 | 2649600 150 |
| 539 | 2745600 155 |
Vikram Mulukutla | a47c2bd | 2017-10-25 18:26:46 -0700 | [diff] [blame] | 540 | 2764800 160 |
| 541 | 2784000 165 |
| 542 | 2803200 170 |
Joonwoo Park | f3f7dac | 2017-08-17 16:02:29 -0700 | [diff] [blame] | 543 | >; |
| 544 | idle-cost-data = < |
| 545 | 4 3 2 1 |
| 546 | >; |
| 547 | }; |
| 548 | }; |
Vicky Wallace | ddf4fad | 2017-08-03 20:15:55 -0700 | [diff] [blame] | 549 | |
| 550 | &gpu_gx_gdsc { |
| 551 | domain-addr = <&gpu_gx_domain_addr>; |
| 552 | sw-reset = <&gpu_gx_sw_reset>; |
| 553 | qcom,reset-aon-logic; |
| 554 | }; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 555 | |
| 556 | /* GPU overrides */ |
| 557 | &msm_gpu { |
| 558 | /* Updated chip ID */ |
| 559 | qcom,chipid = <0x06030001>; |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 560 | qcom,initial-pwrlevel = <6>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 561 | |
| 562 | qcom,gpu-pwrlevels { |
| 563 | #address-cells = <1>; |
| 564 | #size-cells = <0>; |
| 565 | |
| 566 | compatible = "qcom,gpu-pwrlevels"; |
| 567 | |
| 568 | qcom,gpu-pwrlevel@0 { |
| 569 | reg = <0>; |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 570 | qcom,gpu-freq = <710000000>; |
| 571 | qcom,bus-freq = <12>; |
| 572 | qcom,bus-min = <12>; |
| 573 | qcom,bus-max = <12>; |
| 574 | }; |
| 575 | |
| 576 | qcom,gpu-pwrlevel@1 { |
| 577 | reg = <1>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 578 | qcom,gpu-freq = <675000000>; |
| 579 | qcom,bus-freq = <12>; |
| 580 | qcom,bus-min = <10>; |
| 581 | qcom,bus-max = <12>; |
| 582 | }; |
| 583 | |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 584 | qcom,gpu-pwrlevel@2 { |
| 585 | reg = <2>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 586 | qcom,gpu-freq = <596000000>; |
| 587 | qcom,bus-freq = <10>; |
| 588 | qcom,bus-min = <9>; |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 589 | qcom,bus-max = <12>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 590 | }; |
| 591 | |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 592 | qcom,gpu-pwrlevel@3 { |
| 593 | reg = <3>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 594 | qcom,gpu-freq = <520000000>; |
| 595 | qcom,bus-freq = <9>; |
| 596 | qcom,bus-min = <8>; |
Oleg Perelet | cb0a604 | 2017-11-16 11:02:48 -0800 | [diff] [blame] | 597 | qcom,bus-max = <11>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 598 | }; |
| 599 | |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 600 | qcom,gpu-pwrlevel@4 { |
| 601 | reg = <4>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 602 | qcom,gpu-freq = <414000000>; |
| 603 | qcom,bus-freq = <8>; |
| 604 | qcom,bus-min = <7>; |
| 605 | qcom,bus-max = <9>; |
| 606 | }; |
| 607 | |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 608 | qcom,gpu-pwrlevel@5 { |
| 609 | reg = <5>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 610 | qcom,gpu-freq = <342000000>; |
| 611 | qcom,bus-freq = <6>; |
| 612 | qcom,bus-min = <5>; |
| 613 | qcom,bus-max = <7>; |
| 614 | }; |
| 615 | |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 616 | qcom,gpu-pwrlevel@6 { |
| 617 | reg = <6>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 618 | qcom,gpu-freq = <257000000>; |
| 619 | qcom,bus-freq = <4>; |
| 620 | qcom,bus-min = <3>; |
| 621 | qcom,bus-max = <5>; |
| 622 | }; |
| 623 | |
Lynus Vaz | e656553 | 2017-09-14 10:25:34 +0530 | [diff] [blame] | 624 | qcom,gpu-pwrlevel@7 { |
| 625 | reg = <7>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 626 | qcom,gpu-freq = <0>; |
| 627 | qcom,bus-freq = <0>; |
| 628 | qcom,bus-min = <0>; |
| 629 | qcom,bus-max = <0>; |
| 630 | }; |
| 631 | }; |
| 632 | }; |
| 633 | |
| 634 | &gmu { |
| 635 | qcom,gmu-pwrlevels { |
| 636 | #address-cells = <1>; |
| 637 | #size-cells = <0>; |
| 638 | |
| 639 | compatible = "qcom,gmu-pwrlevels"; |
| 640 | |
Kyle Piefer | 33bec86 | 2017-08-14 16:26:53 -0700 | [diff] [blame] | 641 | /* GMU power levels must go from lowest to highest */ |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 642 | qcom,gmu-pwrlevel@0 { |
| 643 | reg = <0>; |
Kyle Piefer | 33bec86 | 2017-08-14 16:26:53 -0700 | [diff] [blame] | 644 | qcom,gmu-freq = <0>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 645 | }; |
| 646 | |
| 647 | qcom,gmu-pwrlevel@1 { |
| 648 | reg = <1>; |
| 649 | qcom,gmu-freq = <200000000>; |
| 650 | }; |
| 651 | |
| 652 | qcom,gmu-pwrlevel@2 { |
| 653 | reg = <2>; |
Kyle Piefer | 33bec86 | 2017-08-14 16:26:53 -0700 | [diff] [blame] | 654 | qcom,gmu-freq = <500000000>; |
Lokesh Batra | 835f016 | 2017-08-01 11:55:53 -0700 | [diff] [blame] | 655 | }; |
| 656 | }; |
| 657 | }; |
Mayank Rana | f1137ef | 2017-09-26 09:30:26 -0700 | [diff] [blame] | 658 | |
| 659 | &qusb_phy0 { |
| 660 | qcom,qusb-phy-init-seq = |
| 661 | /* <value reg_offset> */ |
| 662 | <0x23 0x210 /* PWR_CTRL1 */ |
| 663 | 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ |
| 664 | 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ |
| 665 | 0x80 0x2c /* PLL_CMODE */ |
| 666 | 0x0a 0x184 /* PLL_LOCK_DELAY */ |
| 667 | 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ |
| 668 | 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ |
| 669 | 0x20 0x198 /* PLL_BIAS_CONTROL_2 */ |
| 670 | 0x21 0x214 /* PWR_CTRL2 */ |
Mayank Rana | 9676ea2 | 2017-11-10 17:35:37 -0800 | [diff] [blame] | 671 | 0x08 0x220 /* IMP_CTRL1 */ |
Mayank Rana | f1137ef | 2017-09-26 09:30:26 -0700 | [diff] [blame] | 672 | 0x58 0x224 /* IMP_CTRL2 */ |
| 673 | 0x45 0x240 /* TUNE1 */ |
| 674 | 0x29 0x244 /* TUNE2 */ |
| 675 | 0xca 0x248 /* TUNE3 */ |
| 676 | 0x04 0x24c /* TUNE4 */ |
| 677 | 0x03 0x250 /* TUNE5 */ |
| 678 | 0x00 0x23c /* CHG_CTRL2 */ |
| 679 | 0x22 0x210>; /* PWR_CTRL1 */ |
| 680 | }; |