Sachin Bhayare | 2043571 | 2018-01-15 09:57:00 -0800 | [diff] [blame^] | 1 | /* Copyright (c) 2015-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 | mdss_mdp: qcom,mdss_mdp@1a00000 { |
| 15 | compatible = "qcom,mdss_mdp"; |
| 16 | reg = <0x01a00000 0x90000>, |
| 17 | <0x01ab0000 0x1040>; |
| 18 | reg-names = "mdp_phys", "vbif_phys"; |
| 19 | interrupts = <0 72 0>; |
| 20 | vdd-supply = <&gdsc_mdss>; |
| 21 | |
| 22 | /* Bus Scale Settings */ |
| 23 | qcom,msm-bus,name = "mdss_mdp"; |
| 24 | qcom,msm-bus,num-cases = <3>; |
| 25 | qcom,msm-bus,num-paths = <1>; |
| 26 | qcom,msm-bus,vectors-KBps = |
| 27 | <22 512 0 0>, |
| 28 | <22 512 0 6400000>, |
| 29 | <22 512 0 6400000>; |
| 30 | |
| 31 | /* Fudge factors */ |
| 32 | qcom,mdss-ab-factor = <1 1>; /* 1 time */ |
| 33 | qcom,mdss-ib-factor = <1 1>; /* 1 time */ |
| 34 | qcom,mdss-clk-factor = <105 100>; /* 1.05 times */ |
| 35 | |
| 36 | qcom,max-mixer-width = <2048>; |
| 37 | qcom,max-pipe-width = <2048>; |
| 38 | |
| 39 | /* VBIF QoS remapper settings*/ |
| 40 | qcom,mdss-vbif-qos-rt-setting = <1 2 2 2>; |
| 41 | qcom,mdss-vbif-qos-nrt-setting = <1 1 1 1>; |
| 42 | |
| 43 | qcom,mdss-has-panic-ctrl; |
| 44 | qcom,mdss-per-pipe-panic-luts = <0x000f>, |
| 45 | <0xffff>, |
| 46 | <0xfffc>, |
| 47 | <0xff00>; |
| 48 | |
| 49 | qcom,mdss-mdp-reg-offset = <0x00001000>; |
| 50 | qcom,max-bandwidth-low-kbps = <3400000>; |
| 51 | qcom,max-bandwidth-high-kbps = <3400000>; |
| 52 | qcom,max-bandwidth-per-pipe-kbps = <2300000>; |
| 53 | qcom,max-clk-rate = <400000000>; |
| 54 | qcom,mdss-default-ot-rd-limit = <32>; |
| 55 | qcom,mdss-default-ot-wr-limit = <16>; |
| 56 | |
| 57 | /* Bandwidth limit settings */ |
| 58 | qcom,max-bw-settings = <1 3400000>, /* Default */ |
| 59 | <2 3100000>; /* Camera */ |
| 60 | |
| 61 | qcom,mdss-pipe-vig-off = <0x00005000>; |
| 62 | qcom,mdss-pipe-rgb-off = <0x00015000 0x00017000>; |
| 63 | qcom,mdss-pipe-dma-off = <0x00025000>; |
| 64 | qcom,mdss-pipe-cursor-off = <0x00035000>; |
| 65 | |
| 66 | qcom,mdss-pipe-vig-xin-id = <0>; |
| 67 | qcom,mdss-pipe-rgb-xin-id = <1 5>; |
| 68 | qcom,mdss-pipe-dma-xin-id = <2>; |
| 69 | qcom,mdss-pipe-cursor-xin-id = <7>; |
| 70 | |
| 71 | /* Offsets relative to "mdp_phys + mdp-reg-offset" address */ |
| 72 | qcom,mdss-pipe-vig-clk-ctrl-offsets = <0x2aC 0 0>; |
| 73 | qcom,mdss-pipe-rgb-clk-ctrl-offsets = <0x2aC 4 8>, |
| 74 | <0x2b4 4 8>; |
| 75 | qcom,mdss-pipe-dma-clk-ctrl-offsets = <0x2ac 8 12>; |
| 76 | qcom,mdss-pipe-cursor-clk-ctrl-offsets = <0x3a8 16 15>; |
| 77 | |
| 78 | |
| 79 | qcom,mdss-ctl-off = <0x00002000 0x00002200 0x00002400>; |
| 80 | qcom,mdss-mixer-intf-off = <0x00045000 0x00046000>; |
| 81 | qcom,mdss-dspp-off = <0x00055000>; |
| 82 | qcom,mdss-wb-off = <0x00065000 0x00066000>; |
| 83 | qcom,mdss-intf-off = <0x0006b000 0x0006b800 0x0006c000>; |
| 84 | qcom,mdss-pingpong-off = <0x00071000 0x00071800>; |
| 85 | qcom,mdss-slave-pingpong-off = <0x00073000>; |
| 86 | qcom,mdss-cdm-off = <0x0007a200>; |
| 87 | qcom,mdss-wfd-mode = "intf"; |
| 88 | qcom,mdss-highest-bank-bit = <0x1>; |
| 89 | qcom,mdss-has-decimation; |
| 90 | qcom,mdss-has-non-scalar-rgb; |
| 91 | qcom,mdss-has-rotator-downscale; |
| 92 | qcom,mdss-rot-downscale-min = <2>; |
| 93 | qcom,mdss-rot-downscale-max = <16>; |
| 94 | qcom,mdss-idle-power-collapse-enabled; |
| 95 | qcom,mdss-rot-block-size = <64>; |
| 96 | qcom,mdss-ppb-off = <0x00000330>; |
| 97 | qcom,mdss-has-pingpong-split; |
| 98 | |
| 99 | clocks = <&clock_gcc clk_gcc_mdss_ahb_clk>, |
| 100 | <&clock_gcc clk_gcc_mdss_axi_clk>, |
| 101 | <&clock_gcc clk_mdp_clk_src>, |
| 102 | <&clock_gcc_mdss clk_mdss_mdp_vote_clk>, |
| 103 | <&clock_gcc clk_gcc_mdss_vsync_clk>; |
| 104 | clock-names = "iface_clk", "bus_clk", "core_clk_src", |
| 105 | "core_clk", "vsync_clk"; |
| 106 | |
| 107 | qcom,mdp-settings = <0x0506c 0x00000000>, |
| 108 | <0x1506c 0x00000000>, |
| 109 | <0x1706c 0x00000000>, |
| 110 | <0x2506c 0x00000000>; |
| 111 | |
| 112 | qcom,vbif-settings = <0x0d0 0x00000010>; |
| 113 | |
| 114 | qcom,regs-dump-mdp = <0x01000 0x01454>, |
| 115 | <0x02000 0x02064>, |
| 116 | <0x02200 0x02264>, |
| 117 | <0x02400 0x02464>, |
| 118 | <0x05000 0x05150>, |
| 119 | <0x05200 0x05230>, |
| 120 | <0x15000 0x15150>, |
| 121 | <0x17000 0x17150>, |
| 122 | <0x25000 0x25150>, |
| 123 | <0x35000 0x35150>, |
| 124 | <0x45000 0x452bc>, |
| 125 | <0x46000 0x462bc>, |
| 126 | <0x55000 0x5522c>, |
| 127 | <0x65000 0x652c0>, |
| 128 | <0x66000 0x662c0>, |
| 129 | <0x6b800 0x6ba68>, |
| 130 | <0x6c000 0x6c268>, |
| 131 | <0x71000 0x710d4>, |
| 132 | <0x71800 0x718d4>; |
| 133 | |
| 134 | qcom,regs-dump-names-mdp = "MDP", |
| 135 | "CTL_0", "CTL_1", "CTL_2", |
| 136 | "VIG0_SSPP", "VIG0", |
| 137 | "RGB0_SSPP", "RGB1_SSPP", |
| 138 | "DMA0_SSPP", |
| 139 | "CURSOR0_SSPP", |
| 140 | "LAYER_0", "LAYER_1", |
| 141 | "DSPP_0", |
| 142 | "WB_0", "WB_2", |
| 143 | "INTF_1", "INTF_2", |
| 144 | "PP_0", "PP_1"; |
| 145 | |
| 146 | /* buffer parameters to calculate prefill bandwidth */ |
| 147 | qcom,mdss-prefill-outstanding-buffer-bytes = <0>; |
| 148 | qcom,mdss-prefill-y-buffer-bytes = <0>; |
| 149 | qcom,mdss-prefill-scaler-buffer-lines-bilinear = <2>; |
| 150 | qcom,mdss-prefill-scaler-buffer-lines-caf = <4>; |
| 151 | qcom,mdss-prefill-post-scaler-buffer-pixels = <2048>; |
| 152 | qcom,mdss-prefill-pingpong-buffer-pixels = <4096>; |
| 153 | |
| 154 | qcom,mdss-pp-offsets { |
| 155 | qcom,mdss-sspp-mdss-igc-lut-off = <0x2000>; |
| 156 | qcom,mdss-sspp-vig-pcc-off = <0x1780>; |
| 157 | qcom,mdss-sspp-rgb-pcc-off = <0x380>; |
| 158 | qcom,mdss-sspp-dma-pcc-off = <0x380>; |
| 159 | qcom,mdss-lm-pgc-off = <0x3c0>; |
| 160 | qcom,mdss-dspp-pcc-off = <0x1700>; |
| 161 | qcom,mdss-dspp-pgc-off = <0x17c0>; |
| 162 | }; |
| 163 | |
| 164 | qcom,mdss-reg-bus { |
| 165 | /* Reg Bus Scale Settings */ |
| 166 | qcom,msm-bus,name = "mdss_reg"; |
| 167 | qcom,msm-bus,num-cases = <4>; |
| 168 | qcom,msm-bus,num-paths = <1>; |
| 169 | qcom,msm-bus,active-only; |
| 170 | qcom,msm-bus,vectors-KBps = |
| 171 | <1 590 0 0>, |
| 172 | <1 590 0 76800>, |
| 173 | <1 590 0 160000>, |
| 174 | <1 590 0 320000>; |
| 175 | }; |
| 176 | |
| 177 | qcom,mdss-hw-rt-bus { |
| 178 | /* Bus Scale Settings */ |
| 179 | qcom,msm-bus,name = "mdss_hw_rt"; |
| 180 | qcom,msm-bus,num-cases = <2>; |
| 181 | qcom,msm-bus,num-paths = <1>; |
| 182 | qcom,msm-bus,vectors-KBps = |
| 183 | <22 512 0 0>, |
| 184 | <22 512 0 1000>; |
| 185 | }; |
| 186 | |
| 187 | smmu_mdp_unsec: qcom,smmu_mdp_unsec_cb { |
| 188 | compatible = "qcom,smmu_mdp_unsec"; |
| 189 | iommus = <&apps_iommu 0xC00 0>; /* For NS ctx bank */ |
| 190 | }; |
| 191 | smmu_mdp_sec: qcom,smmu_mdp_sec_cb { |
| 192 | compatible = "qcom,smmu_mdp_sec"; |
| 193 | iommus = <&apps_iommu 0xC01 0>; /* For SEC Ctx Bank */ |
| 194 | }; |
| 195 | |
| 196 | mdss_fb0: qcom,mdss_fb_primary { |
| 197 | cell-index = <0>; |
| 198 | compatible = "qcom,mdss-fb"; |
| 199 | qcom,cont-splash-memory { |
| 200 | linux,contiguous-region = <&cont_splash_mem>; |
| 201 | }; |
| 202 | }; |
| 203 | |
| 204 | mdss_fb1: qcom,mdss_fb_wfd { |
| 205 | cell-index = <1>; |
| 206 | compatible = "qcom,mdss-fb"; |
| 207 | }; |
| 208 | |
| 209 | mdss_fb2: qcom,mdss_fb_secondary { |
| 210 | cell-index = <2>; |
| 211 | compatible = "qcom,mdss-fb"; |
| 212 | }; |
| 213 | }; |
| 214 | |
| 215 | mdss_dsi: qcom,mdss_dsi@0 { |
| 216 | compatible = "qcom,mdss-dsi"; |
| 217 | hw-config = "single_dsi"; |
| 218 | #address-cells = <1>; |
| 219 | #size-cells = <1>; |
| 220 | gdsc-supply = <&gdsc_mdss>; |
| 221 | vdda-supply = <&pm8953_s3>; |
| 222 | vcca-supply = <&pm8953_l3>; |
| 223 | |
| 224 | /* Bus Scale Settings */ |
| 225 | qcom,msm-bus,name = "mdss_dsi"; |
| 226 | qcom,msm-bus,num-cases = <2>; |
| 227 | qcom,msm-bus,num-paths = <1>; |
| 228 | qcom,msm-bus,vectors-KBps = |
| 229 | <22 512 0 0>, |
| 230 | <22 512 0 1000>; |
| 231 | |
| 232 | ranges = <0x1a94000 0x1a94000 0x400 |
| 233 | 0x1a94400 0x1a94400 0x588 |
| 234 | 0x193e000 0x193e000 0x30 |
| 235 | 0x1a96000 0x1a96000 0x400 |
| 236 | 0x1a96400 0x1a96400 0x588 |
| 237 | 0x193e000 0x193e000 0x30>; |
| 238 | |
| 239 | clocks = <&clock_gcc_mdss clk_mdss_mdp_vote_clk>, |
| 240 | <&clock_gcc clk_gcc_mdss_ahb_clk>, |
| 241 | <&clock_gcc clk_gcc_mdss_axi_clk>, |
| 242 | <&clock_gcc_mdss clk_ext_byte0_clk_src>, |
| 243 | <&clock_gcc_mdss clk_ext_byte1_clk_src>, |
| 244 | <&clock_gcc_mdss clk_ext_pclk0_clk_src>, |
| 245 | <&clock_gcc_mdss clk_ext_pclk1_clk_src>; |
| 246 | clock-names = "mdp_core_clk", "iface_clk", "bus_clk", |
| 247 | "ext_byte0_clk", "ext_byte1_clk", "ext_pixel0_clk", |
| 248 | "ext_pixel1_clk"; |
| 249 | |
| 250 | qcom,mmss-ulp-clamp-ctrl-offset = <0x20>; |
| 251 | qcom,mmss-phyreset-ctrl-offset = <0x24>; |
| 252 | |
| 253 | qcom,mdss-fb-map-prim = <&mdss_fb0>; |
| 254 | qcom,mdss-fb-map-sec = <&mdss_fb2>; |
| 255 | |
| 256 | qcom,core-supply-entries { |
| 257 | #address-cells = <1>; |
| 258 | #size-cells = <0>; |
| 259 | |
| 260 | qcom,core-supply-entry@0 { |
| 261 | reg = <0>; |
| 262 | qcom,supply-name = "gdsc"; |
| 263 | qcom,supply-min-voltage = <0>; |
| 264 | qcom,supply-max-voltage = <0>; |
| 265 | qcom,supply-enable-load = <0>; |
| 266 | qcom,supply-disable-load = <0>; |
| 267 | }; |
| 268 | }; |
| 269 | |
| 270 | qcom,ctrl-supply-entries { |
| 271 | #address-cells = <1>; |
| 272 | #size-cells = <0>; |
| 273 | |
| 274 | qcom,ctrl-supply-entry@0 { |
| 275 | reg = <0>; |
| 276 | qcom,supply-name = "vdda"; |
| 277 | qcom,supply-min-voltage = <1225000>; |
| 278 | qcom,supply-max-voltage = <1225000>; |
| 279 | qcom,supply-enable-load = <18160>; |
| 280 | qcom,supply-disable-load = <1>; |
| 281 | }; |
| 282 | }; |
| 283 | |
| 284 | qcom,phy-supply-entries { |
| 285 | #address-cells = <1>; |
| 286 | #size-cells = <0>; |
| 287 | |
| 288 | qcom,phy-supply-entry@0 { |
| 289 | reg = <0>; |
| 290 | qcom,supply-name = "vcca"; |
| 291 | qcom,supply-min-voltage = <925000>; |
| 292 | qcom,supply-max-voltage = <925000>; |
| 293 | qcom,supply-enable-load = <17000>; |
| 294 | qcom,supply-disable-load = <32>; |
| 295 | }; |
| 296 | }; |
| 297 | |
| 298 | mdss_dsi0: qcom,mdss_dsi_ctrl0@1a94000 { |
| 299 | compatible = "qcom,mdss-dsi-ctrl"; |
| 300 | label = "MDSS DSI CTRL->0"; |
| 301 | cell-index = <0>; |
| 302 | reg = <0x1a94000 0x400>, |
| 303 | <0x1a94400 0x580>, |
| 304 | <0x193e000 0x30>; |
| 305 | reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; |
| 306 | |
| 307 | qcom,timing-db-mode; |
| 308 | qcom,mdss-mdp = <&mdss_mdp>; |
| 309 | vdd-supply = <&pm8953_l17>; |
| 310 | vddio-supply = <&pm8953_l6>; |
| 311 | |
| 312 | clocks = <&clock_gcc_mdss clk_gcc_mdss_byte0_clk>, |
| 313 | <&clock_gcc_mdss clk_gcc_mdss_pclk0_clk>, |
| 314 | <&clock_gcc clk_gcc_mdss_esc0_clk>, |
| 315 | <&clock_gcc_mdss clk_byte0_clk_src>, |
| 316 | <&clock_gcc_mdss clk_pclk0_clk_src>, |
| 317 | <&mdss_dsi0_pll clk_dsi0pll_byte_clk_mux>, |
| 318 | <&mdss_dsi0_pll clk_dsi0pll_pixel_clk_mux>, |
| 319 | <&mdss_dsi0_pll clk_dsi0pll_byte_clk_src>, |
| 320 | <&mdss_dsi0_pll clk_dsi0pll_pixel_clk_src>, |
| 321 | <&mdss_dsi0_pll |
| 322 | clk_dsi0pll_shadow_byte_clk_src>, |
| 323 | <&mdss_dsi0_pll |
| 324 | clk_dsi0pll_shadow_pixel_clk_src>; |
| 325 | clock-names = "byte_clk", "pixel_clk", "core_clk", |
| 326 | "byte_clk_rcg", "pixel_clk_rcg", |
| 327 | "pll_byte_clk_mux", "pll_pixel_clk_mux", |
| 328 | "pll_byte_clk_src", "pll_pixel_clk_src", |
| 329 | "pll_shadow_byte_clk_src", |
| 330 | "pll_shadow_pixel_clk_src"; |
| 331 | |
| 332 | qcom,platform-strength-ctrl = [ff 06 |
| 333 | ff 06 |
| 334 | ff 06 |
| 335 | ff 06 |
| 336 | ff 00]; |
| 337 | qcom,platform-regulator-settings = [1d |
| 338 | 1d 1d 1d 1d]; |
| 339 | qcom,platform-lane-config = [00 00 10 0f |
| 340 | 00 00 10 0f |
| 341 | 00 00 10 0f |
| 342 | 00 00 10 0f |
| 343 | 00 00 10 8f]; |
| 344 | }; |
| 345 | |
| 346 | mdss_dsi1: qcom,mdss_dsi_ctrl1@1a96000 { |
| 347 | compatible = "qcom,mdss-dsi-ctrl"; |
| 348 | label = "MDSS DSI CTRL->1"; |
| 349 | cell-index = <1>; |
| 350 | reg = <0x1a96000 0x400>, |
| 351 | <0x1a96400 0x588>, |
| 352 | <0x193e000 0x30>; |
| 353 | reg-names = "dsi_ctrl", "dsi_phy", "mmss_misc_phys"; |
| 354 | |
| 355 | qcom,mdss-mdp = <&mdss_mdp>; |
| 356 | vdd-supply = <&pm8953_l17>; |
| 357 | vddio-supply = <&pm8953_l6>; |
| 358 | |
| 359 | clocks = <&clock_gcc_mdss clk_gcc_mdss_byte1_clk>, |
| 360 | <&clock_gcc_mdss clk_gcc_mdss_pclk1_clk>, |
| 361 | <&clock_gcc clk_gcc_mdss_esc1_clk>, |
| 362 | <&clock_gcc_mdss clk_byte1_clk_src>, |
| 363 | <&clock_gcc_mdss clk_pclk1_clk_src>, |
| 364 | <&mdss_dsi1_pll clk_dsi1pll_byte_clk_mux>, |
| 365 | <&mdss_dsi1_pll clk_dsi1pll_pixel_clk_mux>, |
| 366 | <&mdss_dsi1_pll clk_dsi1pll_byte_clk_src>, |
| 367 | <&mdss_dsi1_pll clk_dsi1pll_pixel_clk_src>, |
| 368 | <&mdss_dsi1_pll |
| 369 | clk_dsi1pll_shadow_byte_clk_src>, |
| 370 | <&mdss_dsi1_pll |
| 371 | clk_dsi1pll_shadow_pixel_clk_src>; |
| 372 | clock-names = "byte_clk", "pixel_clk", "core_clk", |
| 373 | "byte_clk_rcg", "pixel_clk_rcg", |
| 374 | "pll_byte_clk_mux", "pll_pixel_clk_mux", |
| 375 | "pll_byte_clk_src", "pll_pixel_clk_src", |
| 376 | "pll_shadow_byte_clk_src", |
| 377 | "pll_shadow_pixel_clk_src"; |
| 378 | |
| 379 | qcom,timing-db-mode; |
| 380 | qcom,platform-strength-ctrl = [ff 06 |
| 381 | ff 06 |
| 382 | ff 06 |
| 383 | ff 06 |
| 384 | ff 00]; |
| 385 | qcom,platform-regulator-settings = [1d |
| 386 | 1d 1d 1d 1d]; |
| 387 | qcom,platform-lane-config = [00 00 10 0f |
| 388 | 00 00 10 0f |
| 389 | 00 00 10 0f |
| 390 | 00 00 10 0f |
| 391 | 00 00 10 8f]; |
| 392 | }; |
| 393 | }; |
| 394 | |
| 395 | qcom,mdss_wb_panel { |
| 396 | compatible = "qcom,mdss_wb"; |
| 397 | qcom,mdss_pan_res = <640 640>; |
| 398 | qcom,mdss_pan_bpp = <24>; |
| 399 | qcom,mdss-fb-map = <&mdss_fb1>; |
| 400 | }; |
| 401 | |
| 402 | mdss_rotator: qcom,mdss_rotator { |
| 403 | compatible = "qcom,mdss_rotator"; |
| 404 | qcom,mdss-wb-count = <1>; |
| 405 | qcom,mdss-has-downscale; |
| 406 | qcom,mdss-has-ubwc; |
| 407 | /* Bus Scale Settings */ |
| 408 | qcom,msm-bus,name = "mdss_rotator"; |
| 409 | qcom,msm-bus,num-cases = <3>; |
| 410 | qcom,msm-bus,num-paths = <1>; |
| 411 | qcom,msm-bus,vectors-KBps = |
| 412 | <22 512 0 0>, |
| 413 | <22 512 0 6400000>, |
| 414 | <22 512 0 6400000>; |
| 415 | |
| 416 | rot-vdd-supply = <&gdsc_mdss>; |
| 417 | qcom,supply-names = "rot-vdd"; |
| 418 | qcom,mdss-has-reg-bus; |
| 419 | clocks = <&clock_gcc clk_gcc_mdss_ahb_clk>, |
| 420 | <&clock_gcc_mdss clk_mdss_rotator_vote_clk>; |
| 421 | clock-names = "iface_clk", "rot_core_clk"; |
| 422 | |
| 423 | qcom,mdss-rot-reg-bus { |
| 424 | /* Reg Bus Scale Settings */ |
| 425 | qcom,msm-bus,name = "mdss_rot_reg"; |
| 426 | qcom,msm-bus,num-cases = <2>; |
| 427 | qcom,msm-bus,num-paths = <1>; |
| 428 | qcom,msm-bus,active-only; |
| 429 | qcom,msm-bus,vectors-KBps = |
| 430 | <1 590 0 0>, |
| 431 | <1 590 0 76800>; |
| 432 | }; |
| 433 | }; |
| 434 | }; |