STRUCT MIPI_DBI(9)
π struct mipi_dbi(9) β MIPI DBI interface
okay bestie, welcome to the Kernel API Manual β¨ this one's literally about struct mipi_dbi, the MIPI DBI interface, and it's lowkey just a struct with a bunch of fields so likeβ¦ buckle up, it's a short one π
πΈ NAME πΈ
struct mipi_dbi β the MIPI DBI interface, periodt π
π¦ SYNOPSIS π¦
here's the whole struct, character for character, don't touch anything:
struct mipi_dbi {
struct mutex cmdlock;
int (*command)(struct mipi_dbi *dbi, u8 *cmd, u8 *param, size_t
num);
const u8 *read_commands;
bool swap_bytes;
struct gpio_desc *reset;
struct spi_device *spi;
unsigned int write_memory_bpw;
struct gpio_desc *dc;
void *tx_buf9;
size_t tx_buf9_len;
};
π Members π
okay so these are the fields, one by one, no skipping, we're doing all ten π«Ά
cmdlockβ the command lock. that's it, that's the whole vibe, it locks the commands πcommandβ the bus-specific callback that actually executes commands. main character energy fr π«read_commandsβ an array of read commands, terminated by a zero entry. and listen β reading is disabled if this isNULL, so don't come crying to me when it doesn't read πswap_bytesβ swaps bytes in the buffer before transfer. little endian besties stay winning πresetβ optional reset gpio. optional! it can ghost you and that's fine β¨spiβ the SPI device πwrite_memory_bpwβ bits per word used on aMIPI_DCS_WRITE_MEMORY_STARTtransfer. big words, literally π§dcβ optional D/C gpio. again with the optional, we love a low-commitment field πtx_buf9β buffer used for Option 1 9-bit conversion. nine-bit girlies rise π₯tx_buf9_lenβ the size oftx_buf9. obviously. keeping it consistent π
β SEE ALSO β
- Kernel file
./include/drm/drm_mipi_dbi.hβ the header bestie herself struct mipi_dbi_dev(9)mipi_dbi_command(9)
ngl this one was short but she ate π go read the header if you want the full lore, iykyk π
and that's a wrap, bestie π from ./include/drm, dated October 2026, on the struct mipi_dbi(9) page β mwah, stan, bye ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms