STRUCT MIPI_DBI(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 is NULL, 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 a MIPI_DCS_WRITE_MEMORY_START transfer. 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 of tx_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