Skip to content

Commit 1df6e7c

Browse files
committed
include: dt-bindings: mipi_dbi: doxygen fixups
Improve/fix documentation of this header file Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 94a4b13 commit 1df6e7c

File tree

1 file changed

+61
-38
lines changed

1 file changed

+61
-38
lines changed

include/zephyr/dt-bindings/mipi_dbi/mipi_dbi.h

Lines changed: 61 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
*/
5555
#define MIPI_DBI_MODE_SPI_4WIRE 0x2
5656
/**
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.
5858
*
5959
* -. .--------. .------------------------
6060
* CS '---' '---'
@@ -77,12 +77,15 @@
7777
* D[7:0]
7878
*
7979
* Please refer to the MIPI DBI specification for a detailed cycle diagram.
80+
*
81+
* @{
8082
*/
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+
/** @} */
8487
/**
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.
8689
*
8790
* -. .-
8891
* CS '---------------------------------------'
@@ -105,58 +108,78 @@
105108
* D[7:0]
106109
*
107110
* Please refer to the MIPI DBI specification for a detailed cycle diagram.
111+
* @{
108112
*/
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+
/** @} */
112117

113-
/** Color coding for MIPI DBI Type A or Type B interface. */
114118
/**
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.
117127
*/
118128
#define MIPI_DBI_MODE_RGB332 (0x1 << 4U)
119129
/**
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.
122134
*/
123135
#define MIPI_DBI_MODE_RGB444 (0x2 << 4U)
124136
/**
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.
127141
*/
128142
#define MIPI_DBI_MODE_RGB565 (0x3 << 4U)
129143
/**
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.
143156
*/
144157
#define MIPI_DBI_MODE_RGB666_1 (0x4 << 4U)
158+
/**
159+
* RGB666 (18 bpp).
160+
*
161+
* @see MIPI_DBI_MODE_RGB666_1
162+
*/
145163
#define MIPI_DBI_MODE_RGB666_2 (0x5 << 4U)
146164
/**
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.
157175
*/
158176
#define MIPI_DBI_MODE_RGB888_1 (0x6 << 4U)
177+
/**
178+
* RGB888 (24 bpp).
179+
* @see MIPI_DBI_MODE_RGB888_1
180+
*/
159181
#define MIPI_DBI_MODE_RGB888_2 (0x7 << 4U)
182+
/** @} */
160183

161184
/** MIPI DBI tearing enable synchronization is disabled. */
162185
#define MIPI_DBI_TE_NO_EDGE 0x0

0 commit comments

Comments
 (0)