Kuogee Hsieh | 5cf43d6 | 2014-01-22 09:00:30 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2013-2014, 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 | &mdss_mdp { |
| 14 | dsi_dual_jdi_video_0: qcom,dsi_jdi_qhd_video_0 { |
| 15 | qcom,mdss-dsi-panel-name = "Dual 0 video mode dsi panel"; |
| 16 | qcom,mdss-dsi-panel-controller = <&mdss_dsi0>; |
| 17 | qcom,mdss-dsi-panel-type = "dsi_video_mode"; |
| 18 | qcom,mdss-dsi-panel-destination = "display_1"; |
| 19 | qcom,mdss-dsi-panel-framerate = <60>; |
| 20 | qcom,mdss-dsi-virtual-channel-id = <0>; |
| 21 | qcom,mdss-dsi-stream = <0>; |
| 22 | qcom,mdss-dsi-panel-width = <1280>; |
| 23 | qcom,mdss-dsi-panel-height = <1440>; |
| 24 | qcom,mdss-dsi-h-front-porch = <120>; |
| 25 | qcom,mdss-dsi-h-back-porch = <44>; |
| 26 | qcom,mdss-dsi-h-pulse-width = <16>; |
| 27 | qcom,mdss-dsi-h-sync-skew = <0>; |
| 28 | qcom,mdss-dsi-v-back-porch = <4>; |
| 29 | qcom,mdss-dsi-v-front-porch = <8>; |
| 30 | qcom,mdss-dsi-v-pulse-width = <4>; |
| 31 | qcom,mdss-dsi-h-left-border = <0>; |
| 32 | qcom,mdss-dsi-h-right-border = <0>; |
| 33 | qcom,mdss-dsi-v-top-border = <0>; |
| 34 | qcom,mdss-dsi-v-bottom-border = <0>; |
| 35 | qcom,mdss-dsi-bpp = <24>; |
| 36 | qcom,mdss-dsi-underflow-color = <0xff>; |
| 37 | qcom,mdss-dsi-border-color = <0>; |
| 38 | qcom,mdss-dsi-h-sync-pulse = <0>; |
| 39 | qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; |
| 40 | qcom,mdss-dsi-bllp-eof-power-mode; |
| 41 | qcom,mdss-dsi-bllp-power-mode; |
| 42 | qcom,mdss-dsi-panel-broadcast-mode; |
| 43 | qcom,mdss-dsi-lane-0-state; |
| 44 | qcom,mdss-dsi-lane-1-state; |
| 45 | qcom,mdss-dsi-lane-2-state; |
| 46 | qcom,mdss-dsi-lane-3-state; |
| 47 | qcom,mdss-dsi-panel-timings = [cd 32 22 00 60 64 26 34 29 03 |
| 48 | 04 00]; |
| 49 | qcom,mdss-dsi-t-clk-post = <0x03>; |
| 50 | qcom,mdss-dsi-t-clk-pre = <0x27>; |
| 51 | qcom,mdss-dsi-bl-max-level = <4095>; |
| 52 | qcom,mdss-dsi-dma-trigger = "trigger_sw"; |
| 53 | qcom,mdss-dsi-mdp-trigger = "none"; |
| 54 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 55 | qcom,mdss-dsi-on-command = [05 01 00 00 0a 00 01 00 |
| 56 | /* Soft reset, wait 10ms */ |
| 57 | 15 01 00 00 0a 00 02 3a 77 |
| 58 | /* Set Pixel format (24 bpp) */ |
| 59 | 39 01 00 00 0a 00 05 2a 00 00 04 ff |
| 60 | /* Set Column address */ |
| 61 | 39 01 00 00 0a 00 05 2b 00 00 05 9f |
| 62 | /* Set page address */ |
| 63 | 15 01 00 00 0a 00 02 35 00 |
| 64 | /* Set tear on */ |
| 65 | 39 01 00 00 0a 00 03 44 00 00 |
| 66 | /* Set tear scan line */ |
| 67 | 15 01 00 00 0a 00 02 51 ff |
| 68 | /* write display brightness */ |
| 69 | 15 01 00 00 0a 00 02 53 24 |
| 70 | /* write control brightness */ |
| 71 | 15 01 00 00 0a 00 02 55 00 |
| 72 | /* CABC brightness */ |
| 73 | 05 01 00 00 78 00 01 11 |
| 74 | /* exit sleep mode, wait 120ms */ |
| 75 | 23 01 00 00 0a 00 02 b0 00 |
| 76 | /* MCAP */ |
| 77 | 29 01 00 00 0a 00 02 b3 14 |
| 78 | /* Interface setting */ |
| 79 | 29 01 00 00 0a 00 14 ce 7d 40 48 56 67 |
| 80 | 78 88 98 a7 b5 c3 d1 de e9 f2 fa ff 04 |
| 81 | 00 /* Backlight control 4 */ |
| 82 | 23 01 00 00 0a 00 02 b0 03 |
| 83 | /* MCAP */ |
| 84 | 05 01 00 00 10 00 01 29]; |
| 85 | /* Set display on, wait 16ms */ |
| 86 | qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; |
| 87 | qcom,mdss-dsi-off-command = [05 01 00 00 32 00 02 28 00 |
| 88 | 05 01 00 00 78 00 02 10 00]; |
| 89 | qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; |
| 90 | qcom,mdss-dsi-reset-sequence = <1 20>, <0 200>, <1 20>; |
| 91 | }; |
| 92 | }; |