blob: 072ffebc092a5bdc81b975f53948b9ea4dc58448 [file] [log] [blame]
Padmanabhan Komanduruf82d0a22016-01-21 12:27:33 +05301/* 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
42static 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/*---------------------------------------------------------------------------*/
50static 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/*---------------------------------------------------------------------------*/
57static struct color_info truly_wuxga_video_color = {
58 24, 0, 0xff, 0, 0, 0
59};
60
61/*---------------------------------------------------------------------------*/
62/* Panel Command information */
63/*---------------------------------------------------------------------------*/
64static char truly_wuxga_video_on_cmd0[] = {
650x00, 0x00, 0x32, 0x80, };
66
67static 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
73static char truly_wuxga_video_off_cmd0[] = {
740x00, 0x00, 0x22, 0x80 };
75
76static struct mipi_dsi_cmd truly_wuxga_video_off_command[] = {
77{ 0x4 , truly_wuxga_video_off_cmd0, 0x0}
78};
Sandeep Panda3840fe12016-02-25 14:22:35 +053079#define TRULY_WUXGA_VIDEO_OFF_COMMAND 1
Padmanabhan Komanduruf82d0a22016-01-21 12:27:33 +053080
81
82static struct command_state truly_wuxga_video_state = {
83 0, 1
84};
85
86/*---------------------------------------------------------------------------*/
87/* Command mode panel information */
88/*---------------------------------------------------------------------------*/
89
90static 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
98static 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
106static struct lane_configuration truly_wuxga_video_lane_config = {
107 4, 0, 1, 1, 1, 1, 0
108};
109
110
111/*---------------------------------------------------------------------------*/
112/* Panel Timing */
113/*---------------------------------------------------------------------------*/
114const uint32_t truly_wuxga_video_timings[] = {
115 0xf3, 0x3a, 0x26, 0x00, 0x6c, 0x6e, 0x2c, 0x3e, 0x2f, 0x03, 0x04, 0x00
116};
117
Padmanabhan Komanduruf9446de2016-02-03 15:58:02 +0530118static 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 Komanduruf82d0a22016-01-21 12:27:33 +0530126static struct panel_timing truly_wuxga_video_timing_info = {
127 0, 4, 0x02, 0x2d
128};
129
130static 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
138static struct backlight truly_wuxga_video_backlight = {
139 1, 1, 4095, 100, 1, "PMIC_8941"
140};
141
Vishnuvardhan Prodduturi0ceed8e2016-02-22 16:11:45 +0530142/*---------------------------------------------------------------------------*/
143/* Dynamic fps supported frequencies by panel */
144/*---------------------------------------------------------------------------*/
145static const struct dfps_panel_info truly_wuxga_video_dfps = {
Padmanabhan Komanduru83d482d2016-02-29 18:56:27 +0530146 1, 13, {48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60}
Vishnuvardhan Prodduturi0ceed8e2016-02-22 16:11:45 +0530147};
148
149
Padmanabhan Komanduruf82d0a22016-01-21 12:27:33 +0530150#define TRULY_WUXGA_VIDEO_SIGNATURE 0xFFFF
151
152#endif /*_TRULY_WUXGA_VIDEO_H_*/