STRUCT ZYNQ_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct zynq_platform_data(9) πŸ’œ

okay bestie, so we're deep in the Kernel API Manual today (yes, that manual, the one with the good stuff) and the star of this page is struct zynq_platform_data β€” literally the zynq gpio platform data structure. it's the little bundle of info that tells the zynq GPIO driver what kind of beast it's dealing with. no cap, lowkey iconic. πŸŽ€


✨ SYNOPSIS ✨

here's the whole shape of it, character for character, don't touch:

struct zynq_platform_data {
    const char *label;
    u32 quirks;
    u16 ngpio;
    int max_bank;
    int bank_min[ZYNQMP_GPIO_MAX_BANK];
    int bank_max[ZYNQMP_GPIO_MAX_BANK];
 };

that's it. that's the struct. gorgeous. πŸ¦‹


🌸 Members 🌸

okay so let's go member by member, because every single one matters, periodt:

  • label β€” a string that gets stored in gpio->label. yes, it's literally just the name tag. it's giving "hello my name is" sticker energy 🫢
  • quirks β€” Flags, and they're used to identify the platform. so like, which flavor of hardware are we on? that's what the flags spill πŸ“
  • ngpio β€” the max number of gpio pins. the absolute ceiling, bestie. the whole roster πŸ’…
  • max_bank β€” maximum number of gpio banks. how many little groupings we're working with πŸ‘‘
  • bank_min β€” this array represents bank's min pin. the lower edge of each bank, mapped out ⭐
  • bank_max β€” this array represents bank's max pin. and here's the upper edge of each one. symmetric, slay 🌈
fr fr there are two arrays here and both are sized ZYNQMP_GPIO_MAX_BANK β€” do not forget that, it's in the synopsis for a reason πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

okay the lore is deep on this one, so buckle up β€” every link in the chain:

like, that's the whole friend group. go read them. iykyk 🧚


and that's the page! this one lives over in ./drivers/gpio, and it was stamped October 2026 in the Kernel API Manual β€” so when you cite it, cite it cute. mwah, study hard bestie πŸ’–βœ¨

πŸ“¦ where this page comes from