xref: /freebsd-src/sys/compat/linuxkpi/common/include/video/mipi_display.h (revision 73e342328b538e5936f248c03a299884dbe22047)
1*73e34232SEmmanuel Vadot /* Public domain. */
2*73e34232SEmmanuel Vadot 
3*73e34232SEmmanuel Vadot #ifndef _LINUXKPI_VIDEO_MIPI_DISPLAY_H_
4*73e34232SEmmanuel Vadot #define	_LINUXKPI_VIDEO_MIPI_DISPLAY_H_
5*73e34232SEmmanuel Vadot 
6*73e34232SEmmanuel Vadot #define MIPI_DSI_V_SYNC_START			0x01
7*73e34232SEmmanuel Vadot #define MIPI_DSI_V_SYNC_END			0x11
8*73e34232SEmmanuel Vadot #define MIPI_DSI_H_SYNC_START			0x21
9*73e34232SEmmanuel Vadot #define MIPI_DSI_H_SYNC_END			0x31
10*73e34232SEmmanuel Vadot #define MIPI_DSI_COMPRESSION_MODE		0x07
11*73e34232SEmmanuel Vadot #define MIPI_DSI_END_OF_TRANSMISSION		0x08
12*73e34232SEmmanuel Vadot #define MIPI_DSI_COLOR_MODE_OFF			0x02
13*73e34232SEmmanuel Vadot #define MIPI_DSI_COLOR_MODE_ON			0x12
14*73e34232SEmmanuel Vadot #define MIPI_DSI_SHUTDOWN_PERIPHERAL		0x22
15*73e34232SEmmanuel Vadot #define MIPI_DSI_TURN_ON_PERIPHERAL		0x32
16*73e34232SEmmanuel Vadot #define MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM	0x03
17*73e34232SEmmanuel Vadot #define MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM	0x13
18*73e34232SEmmanuel Vadot #define MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM	0x23
19*73e34232SEmmanuel Vadot #define MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM	0x04
20*73e34232SEmmanuel Vadot #define MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM	0x14
21*73e34232SEmmanuel Vadot #define MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM	0x24
22*73e34232SEmmanuel Vadot #define MIPI_DSI_DCS_SHORT_WRITE		0x05
23*73e34232SEmmanuel Vadot #define MIPI_DSI_DCS_SHORT_WRITE_PARAM		0x15
24*73e34232SEmmanuel Vadot #define MIPI_DSI_DCS_READ			0x06
25*73e34232SEmmanuel Vadot #define MIPI_DSI_EXECUTE_QUEUE			0x16
26*73e34232SEmmanuel Vadot #define MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE	0x37
27*73e34232SEmmanuel Vadot #define MIPI_DSI_NULL_PACKET			0x09
28*73e34232SEmmanuel Vadot #define MIPI_DSI_BLANKING_PACKET		0x19
29*73e34232SEmmanuel Vadot #define MIPI_DSI_GENERIC_LONG_WRITE		0x29
30*73e34232SEmmanuel Vadot #define MIPI_DSI_DCS_LONG_WRITE			0x39
31*73e34232SEmmanuel Vadot #define MIPI_DSI_PICTURE_PARAMETER_SET		0x0a
32*73e34232SEmmanuel Vadot #define MIPI_DSI_COMPRESSED_PIXEL_STREAM	0x0b
33*73e34232SEmmanuel Vadot #define MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20	0x0c
34*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24	0x1c
35*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16	0x2c
36*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_30		0x0d
37*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_36		0x1d
38*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12	0x3d
39*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_16		0x0e
40*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_18		0x1e
41*73e34232SEmmanuel Vadot #define MIPI_DSI_PIXEL_STREAM_3BYTE_18		0x2e
42*73e34232SEmmanuel Vadot #define MIPI_DSI_PACKED_PIXEL_STREAM_24		0x3e
43*73e34232SEmmanuel Vadot 
44*73e34232SEmmanuel Vadot #define MIPI_DCS_NOP				0x00
45*73e34232SEmmanuel Vadot #define MIPI_DCS_SOFT_RESET			0x01
46*73e34232SEmmanuel Vadot #define MIPI_DCS_GET_POWER_MODE			0x0a
47*73e34232SEmmanuel Vadot #define MIPI_DCS_GET_PIXEL_FORMAT		0x0c
48*73e34232SEmmanuel Vadot #define MIPI_DCS_ENTER_SLEEP_MODE		0x10
49*73e34232SEmmanuel Vadot #define MIPI_DCS_EXIT_SLEEP_MODE		0x11
50*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_DISPLAY_OFF		0x28
51*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_DISPLAY_ON			0x29
52*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_COLUMN_ADDRESS		0x2a
53*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_PAGE_ADDRESS		0x2b
54*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_TEAR_OFF			0x34
55*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_TEAR_ON			0x35
56*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_PIXEL_FORMAT		0x3a
57*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_TEAR_SCANLINE		0x44
58*73e34232SEmmanuel Vadot #define MIPI_DCS_SET_DISPLAY_BRIGHTNESS		0x51
59*73e34232SEmmanuel Vadot #define MIPI_DCS_GET_DISPLAY_BRIGHTNESS		0x52
60*73e34232SEmmanuel Vadot #define MIPI_DCS_WRITE_CONTROL_DISPLAY		0x53
61*73e34232SEmmanuel Vadot #define MIPI_DCS_GET_CONTROL_DISPLAY		0x54
62*73e34232SEmmanuel Vadot #define MIPI_DCS_WRITE_POWER_SAVE		0x55
63*73e34232SEmmanuel Vadot 
64*73e34232SEmmanuel Vadot #endif	/* _LINUXKPI_VIDEO_MIPI_DISPLAY_H_ */
65