|
54 | 54 | */
|
55 | 55 | #define MIPI_DBI_MODE_SPI_4WIRE 0x2
|
56 | 56 | /**
|
57 |
| - * Parallel Bus protocol for MIPI DBI Type A based on Motorola 6800 bus. |
| 57 | + * @name Parallel Bus protocol for MIPI DBI Type A based on Motorola 6800 bus. |
58 | 58 | *
|
59 | 59 | * -. .--------. .------------------------
|
60 | 60 | * CS '---' '---'
|
|
77 | 77 | * D[7:0]
|
78 | 78 | *
|
79 | 79 | * Please refer to the MIPI DBI specification for a detailed cycle diagram.
|
| 80 | + * |
| 81 | + * @{ |
80 | 82 | */
|
81 |
| -#define MIPI_DBI_MODE_6800_BUS_16_BIT 0x3 |
82 |
| -#define MIPI_DBI_MODE_6800_BUS_9_BIT 0x4 |
83 |
| -#define MIPI_DBI_MODE_6800_BUS_8_BIT 0x5 |
| 83 | +#define MIPI_DBI_MODE_6800_BUS_16_BIT 0x3 /**< Motorola 6800 parallel bus, 16-bit width */ |
| 84 | +#define MIPI_DBI_MODE_6800_BUS_9_BIT 0x4 /**< Motorola 6800 parallel bus, 9-bit width */ |
| 85 | +#define MIPI_DBI_MODE_6800_BUS_8_BIT 0x5 /**< Motorola 6800 parallel bus, 8-bit width */ |
| 86 | +/** @} */ |
84 | 87 | /**
|
85 |
| - * Parallel Bus protocol for MIPI DBI Type B based on Intel 8080 bus. |
| 88 | + * @name Parallel Bus protocol for MIPI DBI Type B based on Intel 8080 bus. |
86 | 89 | *
|
87 | 90 | * -. .-
|
88 | 91 | * CS '---------------------------------------'
|
|
105 | 108 | * D[7:0]
|
106 | 109 | *
|
107 | 110 | * Please refer to the MIPI DBI specification for a detailed cycle diagram.
|
| 111 | + * @{ |
108 | 112 | */
|
109 |
| -#define MIPI_DBI_MODE_8080_BUS_16_BIT 0x6 |
110 |
| -#define MIPI_DBI_MODE_8080_BUS_9_BIT 0x7 |
111 |
| -#define MIPI_DBI_MODE_8080_BUS_8_BIT 0x8 |
| 113 | +#define MIPI_DBI_MODE_8080_BUS_16_BIT 0x6 /**< Intel 8080 parallel bus, 16-bit width */ |
| 114 | +#define MIPI_DBI_MODE_8080_BUS_9_BIT 0x7 /**< Intel 8080 parallel bus, 9-bit width */ |
| 115 | +#define MIPI_DBI_MODE_8080_BUS_8_BIT 0x8 /**< Intel 8080 parallel bus, 8-bit width */ |
| 116 | +/** @} */ |
112 | 117 |
|
113 |
| -/** Color coding for MIPI DBI Type A or Type B interface. */ |
114 | 118 | /**
|
115 |
| - * For 8-bit data bus width, 1 pixel is sent in 1 cycle. For 16-bit data bus width, |
116 |
| - * 2 pixels are sent in 1 cycle. |
| 119 | + * @name Color coding for MIPI DBI Type A or Type B interface. |
| 120 | + * @{ |
| 121 | + */ |
| 122 | +/** |
| 123 | + * RGB332 (8 bpp). |
| 124 | + * |
| 125 | + * - For 8-bit data bus width, 1 pixel is sent in 1 cycle. |
| 126 | + * - For 16-bit data bus width, 2 pixels are sent in 1 cycle. |
117 | 127 | */
|
118 | 128 | #define MIPI_DBI_MODE_RGB332 (0x1 << 4U)
|
119 | 129 | /**
|
120 |
| - * For 8-bit data bus width, 2 pixels are sent in 3 cycles. For 16-bit data bus width, |
121 |
| - * 1 pixel is sent in 1 cycle, the high 4 bits are not used. |
| 130 | + * RGB444 (12 bpp). |
| 131 | + * |
| 132 | + * - For 8-bit data bus width, 2 pixels are sent in 3 cycles. |
| 133 | + * - For 16-bit data bus width, 1 pixel is sent in 1 cycle, the high 4 bits are not used. |
122 | 134 | */
|
123 | 135 | #define MIPI_DBI_MODE_RGB444 (0x2 << 4U)
|
124 | 136 | /**
|
125 |
| - * For 8-bit data bus width, 1 pixel is sent in 2 cycles. For 16-bit data bus width, |
126 |
| - * 1 pixel is sent in 1 cycle. |
| 137 | + * RGB565 (16 bpp). |
| 138 | + * |
| 139 | + * - For 8-bit data bus width, 1 pixel is sent in 2 cycles. |
| 140 | + * - For 16-bit data bus width, 1 pixel is sent in 1 cycle. |
127 | 141 | */
|
128 | 142 | #define MIPI_DBI_MODE_RGB565 (0x3 << 4U)
|
129 | 143 | /**
|
130 |
| - * For 8-bit data bus width, MIPI_DBI_MODE_RGB666_1 and MIPI_DBI_MODE_RGB666_2 |
131 |
| - * are the same. 1 pixel is sent in 3 cycles, R component first, and the low 2 |
132 |
| - * bits are not used. |
133 |
| - * For 9-bit data bus width, MIPI_DBI_MODE_RGB666_1 and MIPI_DBI_MODE_RGB666_2 |
134 |
| - * are the same. 1 pixel is sent in 2 cycles. |
135 |
| - * For 16-bit data bus width, MIPI_DBI_MODE_RGB666_1 is option 1, |
136 |
| - * 2 pixels are sent in 3 cycles. The first pixel's R/G/B components are sent in |
137 |
| - * cycle 1 bits 10-15, cycle 1 bits 2-7 and cycle 2 bits 10-15. |
138 |
| - * The second pixel's R/G/B components are sent in cycle 2 bits 2-7, cycle 3 bits |
139 |
| - * 10-15 and cycle 3 bits 2-7. |
140 |
| - * MIPI_DBI_MODE_RGB666_2 is option 2, 1 pixel is sent in 2 cycles. The pixel's |
141 |
| - * R/G/B components are sent in cycle 1 bits 2-7, cycle 2 bits 10-15 and cycle 2 |
142 |
| - * bits 2-7. |
| 144 | + * RGB666 (18 bpp). |
| 145 | + * |
| 146 | + * - For 8-bit data bus width, #MIPI_DBI_MODE_RGB666_1 and #MIPI_DBI_MODE_RGB666_2 are the same. |
| 147 | + * 1 pixel is sent in 3 cycles, R component first, and the low 2 bits are not used. |
| 148 | + * - For 9-bit data bus width, #MIPI_DBI_MODE_RGB666_1 and #MIPI_DBI_MODE_RGB666_2 are the same. |
| 149 | + * 1 pixel is sent in 2 cycles. |
| 150 | + * - For 16-bit data bus width, #MIPI_DBI_MODE_RGB666_1 is option 1, 2 pixels are sent in 3 cycles. |
| 151 | + * The first pixel's R/G/B components are sent in cycle 1 bits 10-15, cycle 1 bits 2-7 and cycle |
| 152 | + * 2 bits 10-15. The second pixel's R/G/B components are sent in cycle 2 bits 2-7, cycle 3 bits |
| 153 | + * 10-15 and cycle 3 bits 2-7. #MIPI_DBI_MODE_RGB666_2 is option 2, 1 pixel is sent in 2 cycles. |
| 154 | + * The pixel's R/G/B components are sent in cycle 1 bits 2-7, cycle 2 bits 10-15 and cycle 2 bits |
| 155 | + * 2-7. |
143 | 156 | */
|
144 | 157 | #define MIPI_DBI_MODE_RGB666_1 (0x4 << 4U)
|
| 158 | +/** |
| 159 | + * RGB666 (18 bpp). |
| 160 | + * |
| 161 | + * @see MIPI_DBI_MODE_RGB666_1 |
| 162 | + */ |
145 | 163 | #define MIPI_DBI_MODE_RGB666_2 (0x5 << 4U)
|
146 | 164 | /**
|
147 |
| - * For 8-bit data bus width, MIPI_DBI_MODE_RGB666_1 and MIPI_DBI_MODE_RGB666_2 |
148 |
| - * are the same. 1 pixel is sent in 3 cycles, R component first. |
149 |
| - * For 16-bit data bus width, MIPI_DBI_MODE_RGB666_1 is option 1, |
150 |
| - * 2 pixels are sent in 3 cycles. The first pixel's R/G/B components are sent in |
151 |
| - * cycle 1 bits 8-15, cycle 1 bits 0-7 and cycle 2 bits 0-15. |
152 |
| - * The second pixel's R/G/B components are sent in cycle 2 bits 0-7, cycle 3 bits |
153 |
| - * 8-15 and cycle 3 bits 0-7. |
154 |
| - * MIPI_DBI_MODE_RGB666_2 is option 2, 1 pixel is sent in 2 cycles. The pixel's |
155 |
| - * R/G/B components are sent in cycle 1 bits 0-7, cycle 2 bits 8-15 and cycle 2 |
156 |
| - * bits 0-7. |
| 165 | + * RGB666 (18 bpp). |
| 166 | + * |
| 167 | + * - For 8-bit data bus width, #MIPI_DBI_MODE_RGB666_1 and #MIPI_DBI_MODE_RGB666_2 are the same. |
| 168 | + * 1 pixel is sent in 3 cycles, R component first. |
| 169 | + * - For 16-bit data bus width, #MIPI_DBI_MODE_RGB666_1 is option 1, 2 pixels are sent in 3 cycles. |
| 170 | + * The first pixel's R/G/B components are sent in cycle 1 bits 8-15, cycle 1 bits 0-7 and cycle 2 |
| 171 | + * bits 0-15. The second pixel's R/G/B components are sent in cycle 2 bits 0-7, cycle 3 bits 8-15 |
| 172 | + * and cycle 3 bits 0-7. |
| 173 | + * #MIPI_DBI_MODE_RGB666_2 is option 2, 1 pixel is sent in 2 cycles. The pixel's R/G/B components |
| 174 | + * are sent in cycle 1 bits 0-7, cycle 2 bits 8-15 and cycle 2 bits 0-7. |
157 | 175 | */
|
158 | 176 | #define MIPI_DBI_MODE_RGB888_1 (0x6 << 4U)
|
| 177 | +/** |
| 178 | + * RGB888 (24 bpp). |
| 179 | + * @see MIPI_DBI_MODE_RGB888_1 |
| 180 | + */ |
159 | 181 | #define MIPI_DBI_MODE_RGB888_2 (0x7 << 4U)
|
| 182 | +/** @} */ |
160 | 183 |
|
161 | 184 | /** MIPI DBI tearing enable synchronization is disabled. */
|
162 | 185 | #define MIPI_DBI_TE_NO_EDGE 0x0
|
|
0 commit comments