STRUCT MTK_SPI_COMPATIBLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« struct mtk_spi_compatible(9) πŸ’«

okay so bestie, welcome to the Kernel API Manual page for struct mtk_spi_compatible β€” yes that whole mouthful β€” and no, we are not skipping a single field, because every one of these bools is doing something 🫢


✨ NAME ✨

struct mtk_spi_compatible β€” the device data structure. that's it, that's the vibe. it's the little bundle of "which quirks does this SPI controller have" flags. lowkey iconic.


🌸 SYNOPSIS 🌸

here's the whole thing, character for character, no cap:

struct mtk_spi_compatible {
    bool need_pad_sel;
    bool must_tx;
    bool enhance_timing;
    bool dma_ext;
    bool no_need_unprepare;
    bool ipm_design;
 };

six bools. six little switches. each one tells the driver how this particular controller wants to be handled πŸ’…


πŸ¦‹ Members πŸ¦‹

okay so let's go through them one by one, bestie, no skipping:

  • need_pad_sel β€” turns on pad (pins) selection in the SPI controller. like, the controller gets to pick which pads it's actually talking through. pins matters, periodt ✨
  • must_tx β€” means you must explicitly send dummy TX bytes in order to do an RX only transfer. no sneaky receive-only shortcut here, the hardware wants its lil fake transmissions first πŸ™ˆ
  • enhance_timing β€” enables adjusting the cfg register to enhance time accuracy. yes bestie, we're fiddling with the config register for better timing precision πŸ”₯
  • dma_ext β€” DMA address extension is supported. bigger addresses, more reach, main character energy πŸ‘‘
  • no_need_unprepare β€” says don't unprepare the SPI clk during runtime. like leave the clock alone, it's fine, it's thriving πŸ’€
  • ipm_design β€” adjust/extend registers to support IPM design IP features. register glow-up, basically πŸŽ€

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/spi/spi-mt65xx.c
  • struct mtk_spi(9)

go read those, iykyk 🧚


fr fr, this struct is just a compatibility checklist in disguise. tiny, but it's giving essential πŸ’–

mwah πŸ’œ that's the whole page β€” brought to you from ./drivers/spi, dated October 2026, under the Kernel API Manual. stay hydrated, read your structs, and slay βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from