blob: eedadf611b804e583e30d0e9b9272f62ff271f1e [file] [log] [blame]
Ping Lie4d93492014-12-22 13:41:22 -08001/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -07002 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions
5 * are 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 copyright
9 * notice, this list of conditions and the following disclaimer in
10 * the documentation and/or other materials provided with the
11 * 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 BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
23 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30/*---------------------------------------------------------------------------
31 * This file is autogenerated file using gcdb parser. Please do not edit it.
32 * Update input XML file to add a new entry or update variable in this file
33 * VERSION = "1.0"
34 *---------------------------------------------------------------------------*/
35
36#ifndef _PANEL_JDI_4K_DUALDSI_VIDEO_H_
37#define _PANEL_JDI_4K_DUALDSI_VIDEO_H_
38/*---------------------------------------------------------------------------*/
39/* HEADER files */
40/*---------------------------------------------------------------------------*/
41#include "panel.h"
42
43/*---------------------------------------------------------------------------*/
44/* Panel configuration */
45/*---------------------------------------------------------------------------*/
46static struct panel_config jdi_4k_dualdsi_video_panel_data = {
Padmanabhan Komanduru9ae0a542015-04-27 13:57:03 -070047 "qcom,dsi_jdi_4k_video", "dsi:0:", "qcom,mdss-dsi-panel",
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -070048 10, 0, "DISPLAY_1", 0, 0, 60, 0, 0, 1, 0, 0, 0, 0, 0, 11, 0, 0,
Padmanabhan Komanduru9ae0a542015-04-27 13:57:03 -070049 "qcom,dsi_jdi_4k_video",
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -070050};
51
52/*---------------------------------------------------------------------------*/
53/* Panel resolution */
54/*---------------------------------------------------------------------------*/
55static struct panel_resolution jdi_4k_dualdsi_video_panel_res = {
56 3840, 2160, 100, 80, 12, 0, 16, 16, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0
57};
58
59/*---------------------------------------------------------------------------*/
60/* Panel color information */
61/*---------------------------------------------------------------------------*/
62static struct color_info jdi_4k_dualdsi_video_color = {
63 24, 0, 0xff, 0, 0, 0
64};
65
66/*---------------------------------------------------------------------------*/
67/* Panel on/off command information */
68/*---------------------------------------------------------------------------*/
69static char jdi_4k_dualdsi_video_on_cmd0[] = {
70 0x51, 0xff, 0x15, 0x80,
71};
72
73static char jdi_4k_dualdsi_video_on_cmd1[] = {
74 0x53, 0x24, 0x15, 0x80,
75};
76
77static char jdi_4k_dualdsi_video_on_cmd2[] = {
78 0x11, 0x00, 0x05, 0x80
79};
80
81static char jdi_4k_dualdsi_video_on_cmd3[] = {
82 0x29, 0x00, 0x05, 0x80
83};
84
Ping Lie4d93492014-12-22 13:41:22 -080085static char jdi_4k_dualdsi_video_on_cmd_ip_0[] = {
86 0xb0, 0x04, 0x23, 0x80
87};
88
89static char jdi_4k_dualdsi_video_on_cmd_ip_1[] = {
90 0x07, 0x00, 0x29, 0xC0,
91 0xED, 0x80, 0x00, 0x34,
92 0x5B, 0x04, 0xB0, 0xFF
93};
94
95static char jdi_4k_dualdsi_video_on_cmd_ip_2[] = {
96 0xb0, 0x03, 0x23, 0x80
97};
98
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -070099static struct mipi_dsi_cmd jdi_4k_dualdsi_video_on_command[] = {
Padmanabhan Komanduru66459a92014-11-04 00:05:08 +0530100 {0x4, jdi_4k_dualdsi_video_on_cmd0, 0x78},
101 {0x4, jdi_4k_dualdsi_video_on_cmd1, 0x78},
102 {0x4, jdi_4k_dualdsi_video_on_cmd2, 0x78},
Ping Lie4d93492014-12-22 13:41:22 -0800103 {0x4, jdi_4k_dualdsi_video_on_cmd_ip_0, 0x50},
104 {0xC, jdi_4k_dualdsi_video_on_cmd_ip_1, 0x0a},
105 {0x4, jdi_4k_dualdsi_video_on_cmd_ip_2, 0x50},
Padmanabhan Komanduru66459a92014-11-04 00:05:08 +0530106 {0x4, jdi_4k_dualdsi_video_on_cmd3, 0x78}
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -0700107};
108
Ping Lie4d93492014-12-22 13:41:22 -0800109#define JDI_4K_DUALDSI_VIDEO_ON_COMMAND 7
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -0700110
111
112static char jdi_4k_dualdsi_videooff_cmd0[] = {
113 0x28, 0x00, 0x05, 0x80
114};
115
116static char jdi_4k_dualdsi_videooff_cmd1[] = {
117 0x10, 0x00, 0x05, 0x80
118};
119
120static struct mipi_dsi_cmd jdi_4k_dualdsi_video_off_command[] = {
121 {0x4, jdi_4k_dualdsi_videooff_cmd0, 0x32},
122 {0x4, jdi_4k_dualdsi_videooff_cmd1, 0x78}
123};
124
125#define JDI_4K_DUALDSI_VIDEO_OFF_COMMAND 2
126
127
128static struct command_state jdi_4k_dualdsi_video_state = {
129 0, 1
130};
131
132/*---------------------------------------------------------------------------*/
133/* Command mode panel information */
134/*---------------------------------------------------------------------------*/
135static struct commandpanel_info jdi_4k_dualdsi_video_command_panel = {
136 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
137};
138
139/*---------------------------------------------------------------------------*/
140/* Video mode panel information */
141/*---------------------------------------------------------------------------*/
142static struct videopanel_info jdi_4k_dualdsi_video_video_panel = {
143 0, 0, 0, 0, 1, 1, 1, 0, 0x9
144};
145
146/*---------------------------------------------------------------------------*/
147/* Lane configuration */
148/*---------------------------------------------------------------------------*/
149static struct lane_configuration jdi_4k_dualdsi_video_lane_config = {
Ray Zhang0d303af2015-01-21 10:17:02 +0800150 4, 0, 1, 1, 1, 1, 0
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -0700151};
152
153/*---------------------------------------------------------------------------*/
154/* Panel timing */
155/*---------------------------------------------------------------------------*/
156static const uint32_t jdi_4k_dualdsi_video_timings[] = {
157 0x3e, 0x38, 0x26, 0x00, 0x68, 0x6e, 0x2a, 0x3c, 0x2c, 0x03, 0x04, 0x00
158};
159
160static struct panel_timing jdi_4k_dualdsi_video_timing_info = {
161 0x0, 0x04, 0x03, 0x27
162};
163
164/*---------------------------------------------------------------------------*/
165/* Panel reset sequence */
166/*---------------------------------------------------------------------------*/
167static struct panel_reset_sequence jdi_4k_dualdsi_video_reset_seq = {
168 {1, 0, 1, }, {200, 200, 200, }, 2
169};
170
171/*---------------------------------------------------------------------------*/
172/* Backlight setting */
173/*---------------------------------------------------------------------------*/
174static struct backlight jdi_4k_dualdsi_video_backlight = {
175 0, 1, 4095, 100, 1, "PMIC_8941"
176};
177
178static struct fb_compression jdi_4k_dualdsi_video_fbc = {
Jeevan Shriramc1179fd2014-11-30 22:08:20 -0800179 1, 2, 1, 1, 2, 1, 1, 1, 1200, 5, 91, 0x200, 192, 4, 3, 0, 0, 0
Siddhartha Agrawal36dd7e92014-10-13 17:12:46 -0700180};
181
182#endif /*_PANEL_JDI_4K_DUALDSI_VIDEO_H_*/