Ujwal Patel | 0386fbe | 2013-08-19 11:14:06 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. |
Shalabh Jain | 51a0bf6 | 2013-05-28 17:32:15 -0700 | [diff] [blame] | 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@fd900000 { |
| 15 | compatible = "qcom,mdss_mdp"; |
| 16 | reg = <0xfd900000 0x22100>, |
| 17 | <0xfd924000 0x1000>; |
| 18 | reg-names = "mdp_phys", "vbif_phys"; |
| 19 | interrupts = <0 72 0>; |
Ujwal Patel | fcd48d6 | 2013-07-08 11:42:24 -0700 | [diff] [blame] | 20 | vdd-supply = <&gdsc_mdss>; |
Shalabh Jain | 51a0bf6 | 2013-05-28 17:32:15 -0700 | [diff] [blame] | 21 | |
Ujwal Patel | cbdc4bb | 2013-07-16 10:22:57 -0700 | [diff] [blame] | 22 | status = "disabled"; |
| 23 | |
Sree Sesha Aravind Vadrevu | 4d417fc | 2013-11-26 16:49:00 -0800 | [diff] [blame] | 24 | qcom,max-bandwidth-low-kbps = <6000000>; |
| 25 | qcom,max-bandwidth-high-kbps = <6000000>; |
| 26 | |
Ujwal Patel | 0386fbe | 2013-08-19 11:14:06 -0700 | [diff] [blame] | 27 | /* Bus Scale Settings */ |
| 28 | qcom,msm-bus,name = "mdss_mdp"; |
| 29 | qcom,msm-bus,num-cases = <3>; |
| 30 | qcom,msm-bus,num-paths = <2>; |
| 31 | qcom,msm-bus,vectors-KBps = |
| 32 | <22 512 0 0>, <23 512 0 0>, |
| 33 | <22 512 0 6400000>, <23 512 0 6400000>, |
| 34 | <22 512 0 6400000>, <23 512 0 6400000>; |
| 35 | |
Ujwal Patel | 5427d0d | 2013-10-15 11:27:11 -0700 | [diff] [blame] | 36 | /* Fudge factors */ |
| 37 | qcom,mdss-ab-factor = <2 1>; /* 2 times */ |
Huaibin Yang | 605ce12 | 2014-01-15 10:52:42 -0800 | [diff] [blame] | 38 | qcom,mdss-ib-factor = <6 5>; /* 1.2 times */ |
Ujwal Patel | 5427d0d | 2013-10-15 11:27:11 -0700 | [diff] [blame] | 39 | qcom,mdss-clk-factor = <105 100>; /* 1.05 times */ |
| 40 | |
Shalabh Jain | 51a0bf6 | 2013-05-28 17:32:15 -0700 | [diff] [blame] | 41 | qcom,max-clk-rate = <320000000>; |
| 42 | |
| 43 | qcom,mdss-pipe-vig-off = <0x00001200 0x00001600 |
| 44 | 0x00001A00 0x00001E00>; |
| 45 | qcom,mdss-pipe-rgb-off = <0x00002200 0x00002600 |
| 46 | 0x00002A00 0x00002E00>; |
| 47 | qcom,mdss-pipe-dma-off = <0x00003200 0x00003600>; |
| 48 | |
| 49 | qcom,mdss-pipe-vig-fetch-id = <1 4 7 19>; |
| 50 | qcom,mdss-pipe-rgb-fetch-id = <16 17 18 22>; |
| 51 | qcom,mdss-pipe-dma-fetch-id = <10 13>; |
| 52 | |
Ujwal Patel | 04e5bd3 | 2013-08-22 20:47:30 -0700 | [diff] [blame] | 53 | qcom,mdss-pipe-vig-xin-id = <0 4 8 12>; |
| 54 | qcom,mdss-pipe-rgb-xin-id = <1 5 9 13>; |
| 55 | qcom,mdss-pipe-dma-xin-id = <2 10>; |
| 56 | |
Shalabh Jain | 51a0bf6 | 2013-05-28 17:32:15 -0700 | [diff] [blame] | 57 | qcom,mdss-smp-data = <44 8192>; |
| 58 | |
| 59 | qcom,mdss-ctl-off = <0x00000600 0x00000700 0x00000800 |
| 60 | 0x00000900 0x0000A00>; |
| 61 | qcom,mdss-mixer-intf-off = <0x00003A00 0x00003E00 |
| 62 | 0x00004200 0x00004E00>; |
| 63 | qcom,mdss-mixer-wb-off = <0x00004600 0x00004A00>; |
| 64 | qcom,mdss-dspp-off = <0x00005200 0x00005600 0x00005A00 |
| 65 | 0x00005E00>; |
| 66 | qcom,mdss-wb-off = <0x00011100 0x00011500 0x00011900 |
| 67 | 0x00011D00 0x00012100>; |
| 68 | qcom,mdss-intf-off = <0x00012500 0x00012700 |
| 69 | 0x00012900 0x00012b00>; |
| 70 | qcom,mdss-pingpong-off = <0x00012F00 0x00013000 0x00013100 |
| 71 | 0x00013200>; |
| 72 | qcom,mdss-ad-off = <0x0013500 0x00013700 0x00013900>; |
| 73 | |
| 74 | qcom,mdss-has-bwc; |
| 75 | qcom,mdss-has-decimation; |
| 76 | |
Huaibin Yang | 45e3187 | 2013-12-09 16:48:24 -0800 | [diff] [blame^] | 77 | /* buffer parameters to calculate prefill bandwidth */ |
| 78 | qcom,mdss-prefill-outstanding-buffer-bytes = <1024>; |
| 79 | qcom,mdss-prefill-y-buffer-bytes = <4096>; |
| 80 | qcom,mdss-prefill-scaler-buffer-lines-bilinear = <2>; |
| 81 | qcom,mdss-prefill-scaler-buffer-lines-caf = <4>; |
| 82 | qcom,mdss-prefill-post-scaler-buffer-pixels = <2048>; |
| 83 | qcom,mdss-prefill-pingpong-buffer-pixels = <5120>; |
| 84 | qcom,mdss-prefill-fbc-lines = <2>; |
| 85 | |
Shalabh Jain | 51a0bf6 | 2013-05-28 17:32:15 -0700 | [diff] [blame] | 86 | mdss_fb0: qcom,mdss_fb_primary { |
| 87 | cell-index = <0>; |
| 88 | compatible = "qcom,mdss-fb"; |
| 89 | qcom,memory-reservation-type = "EBI1"; |
| 90 | qcom,memory-reservation-size = <0x1000000>; |
| 91 | }; |
| 92 | |
| 93 | mdss_fb1: qcom,mdss_fb_external { |
| 94 | cell-index = <1>; |
| 95 | compatible = "qcom,mdss-fb"; |
| 96 | }; |
| 97 | |
| 98 | mdss_fb2: qcom,mdss_fb_wfd { |
| 99 | cell-index = <2>; |
| 100 | compatible = "qcom,mdss-fb"; |
| 101 | }; |
| 102 | }; |
| 103 | |
| 104 | qcom,mdss_wb_panel { |
| 105 | compatible = "qcom,mdss_wb"; |
| 106 | qcom,mdss_pan_res = <1920 1080>; |
| 107 | qcom,mdss_pan_bpp = <24>; |
| 108 | qcom,mdss-fb-map = <&mdss_fb2>; |
| 109 | }; |
| 110 | }; |