Padmanabhan Komanduru | f82d0a2 | 2016-01-21 12:27:33 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2016, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * Redistribution and use in source and binary forms, with or without |
| 4 | * modification, are permitted provided that the following conditions are |
| 5 | * met: |
| 6 | * * Redistributions of source code must retain the above copyright |
| 7 | * notice, this list of conditions and the following disclaimer. |
| 8 | * * Redistributions in binary form must reproduce the above |
| 9 | * copyright notice, this list of conditions and the following |
| 10 | * disclaimer in the documentation and/or other materials provided |
| 11 | * with the distribution. |
| 12 | * * Neither the name of The Linux Foundation nor the names of its |
| 13 | * contributors may be used to endorse or promote products derived |
| 14 | * from this software without specific prior written permission. |
| 15 | * |
| 16 | * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED |
| 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT |
| 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
| 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 23 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 24 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 25 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 26 | * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | * |
| 28 | */ |
| 29 | |
| 30 | #ifndef _PANEL_TRULY_WUXGA_VIDEO_H_ |
| 31 | |
| 32 | #define _PANEL_TRULY_WUXGA_VIDEO_H_ |
| 33 | /*---------------------------------------------------------------------------*/ |
| 34 | /* HEADER files */ |
| 35 | /*---------------------------------------------------------------------------*/ |
| 36 | #include "panel.h" |
| 37 | |
| 38 | /*---------------------------------------------------------------------------*/ |
| 39 | /* Panel configuration */ |
| 40 | /*---------------------------------------------------------------------------*/ |
| 41 | |
| 42 | static struct panel_config truly_wuxga_video_panel_data = { |
| 43 | "qcom,mdss_dsi_truly_wuxga_video", "dsi:0:", "qcom,mdss-dsi-panel", |
| 44 | 10, 0, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, NULL |
| 45 | }; |
| 46 | |
| 47 | /*---------------------------------------------------------------------------*/ |
| 48 | /* Panel resolution */ |
| 49 | /*---------------------------------------------------------------------------*/ |
| 50 | static struct panel_resolution truly_wuxga_video_panel_res = { |
| 51 | 1920, 1200, 96, 64, 16, 0, 4, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 52 | }; |
| 53 | |
| 54 | /*---------------------------------------------------------------------------*/ |
| 55 | /* Panel Color Information */ |
| 56 | /*---------------------------------------------------------------------------*/ |
| 57 | static struct color_info truly_wuxga_video_color = { |
| 58 | 24, 0, 0xff, 0, 0, 0 |
| 59 | }; |
| 60 | |
| 61 | /*---------------------------------------------------------------------------*/ |
| 62 | /* Panel Command information */ |
| 63 | /*---------------------------------------------------------------------------*/ |
| 64 | static char truly_wuxga_video_on_cmd0[] = { |
| 65 | 0x00, 0x00, 0x32, 0x80, }; |
| 66 | |
| 67 | static struct mipi_dsi_cmd truly_wuxga_video_on_command[] = { |
| 68 | { 0x4 , truly_wuxga_video_on_cmd0, 0x00} |
| 69 | }; |
| 70 | #define TRULY_WUXGA_VIDEO_ON_COMMAND 1 |
| 71 | |
| 72 | |
| 73 | static char truly_wuxga_video_off_cmd0[] = { |
| 74 | 0x00, 0x00, 0x22, 0x80 }; |
| 75 | |
| 76 | static struct mipi_dsi_cmd truly_wuxga_video_off_command[] = { |
| 77 | { 0x4 , truly_wuxga_video_off_cmd0, 0x0} |
| 78 | }; |
Sandeep Panda | 3840fe1 | 2016-02-25 14:22:35 +0530 | [diff] [blame] | 79 | #define TRULY_WUXGA_VIDEO_OFF_COMMAND 1 |
Padmanabhan Komanduru | f82d0a2 | 2016-01-21 12:27:33 +0530 | [diff] [blame] | 80 | |
| 81 | |
| 82 | static struct command_state truly_wuxga_video_state = { |
| 83 | 0, 1 |
| 84 | }; |
| 85 | |
| 86 | /*---------------------------------------------------------------------------*/ |
| 87 | /* Command mode panel information */ |
| 88 | /*---------------------------------------------------------------------------*/ |
| 89 | |
| 90 | static struct commandpanel_info truly_wuxga_video_command_panel = { |
| 91 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 92 | }; |
| 93 | |
| 94 | /*---------------------------------------------------------------------------*/ |
| 95 | /* Video mode panel information */ |
| 96 | /*---------------------------------------------------------------------------*/ |
| 97 | |
| 98 | static struct videopanel_info truly_wuxga_video_video_panel = { |
| 99 | 0, 0, 0, 0, 1, 1, 1, 0, 0x9 |
| 100 | }; |
| 101 | |
| 102 | /*---------------------------------------------------------------------------*/ |
| 103 | /* Lane Configuration */ |
| 104 | /*---------------------------------------------------------------------------*/ |
| 105 | |
| 106 | static struct lane_configuration truly_wuxga_video_lane_config = { |
| 107 | 4, 0, 1, 1, 1, 1, 0 |
| 108 | }; |
| 109 | |
| 110 | |
| 111 | /*---------------------------------------------------------------------------*/ |
| 112 | /* Panel Timing */ |
| 113 | /*---------------------------------------------------------------------------*/ |
| 114 | const uint32_t truly_wuxga_video_timings[] = { |
| 115 | 0xf3, 0x3a, 0x26, 0x00, 0x6c, 0x6e, 0x2c, 0x3e, 0x2f, 0x03, 0x04, 0x00 |
| 116 | }; |
| 117 | |
Padmanabhan Komanduru | f9446de | 2016-02-03 15:58:02 +0530 | [diff] [blame] | 118 | static const uint32_t truly_wuxga_14nm_video_timings[] = { |
| 119 | 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0, |
| 120 | 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0, |
| 121 | 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0, |
| 122 | 0x24, 0x1f, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0, |
| 123 | 0x24, 0x1c, 0x8, 0x9, 0x5, 0x3, 0x4, 0xa0, |
| 124 | }; |
| 125 | |
Padmanabhan Komanduru | f82d0a2 | 2016-01-21 12:27:33 +0530 | [diff] [blame] | 126 | static struct panel_timing truly_wuxga_video_timing_info = { |
| 127 | 0, 4, 0x02, 0x2d |
| 128 | }; |
| 129 | |
| 130 | static struct panel_reset_sequence truly_wuxga_video_panel_reset_seq = { |
| 131 | { 1, 0, 1, }, { 200, 200, 200, }, 2 |
| 132 | }; |
| 133 | |
| 134 | /*---------------------------------------------------------------------------*/ |
| 135 | /* Backlight Settings */ |
| 136 | /*---------------------------------------------------------------------------*/ |
| 137 | |
| 138 | static struct backlight truly_wuxga_video_backlight = { |
| 139 | 1, 1, 4095, 100, 1, "PMIC_8941" |
| 140 | }; |
| 141 | |
Vishnuvardhan Prodduturi | 0ceed8e | 2016-02-22 16:11:45 +0530 | [diff] [blame] | 142 | /*---------------------------------------------------------------------------*/ |
| 143 | /* Dynamic fps supported frequencies by panel */ |
| 144 | /*---------------------------------------------------------------------------*/ |
| 145 | static const struct dfps_panel_info truly_wuxga_video_dfps = { |
Padmanabhan Komanduru | 83d482d | 2016-02-29 18:56:27 +0530 | [diff] [blame] | 146 | 1, 13, {48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60} |
Vishnuvardhan Prodduturi | 0ceed8e | 2016-02-22 16:11:45 +0530 | [diff] [blame] | 147 | }; |
| 148 | |
| 149 | |
Padmanabhan Komanduru | f82d0a2 | 2016-01-21 12:27:33 +0530 | [diff] [blame] | 150 | #define TRULY_WUXGA_VIDEO_SIGNATURE 0xFFFF |
| 151 | |
| 152 | #endif /*_TRULY_WUXGA_VIDEO_H_*/ |