STRUCT ZYNQ_PLATFORM_DATA(9)
π 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 ingpio->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:
- Kernel file
./drivers/gpio/gpio-zynq.cstructzynq_gpio(9) zynq_gpio_is_zynq(9)gpio_data_ro_bug(9)zynq_gpio_get_bank_pin(9)zynq_gpio_get_value(9)zynq_gpio_set_value(9)zynq_gpio_dir_in(9)zynq_gpio_dir_out(9)zynq_gpio_get_direction(9)zynq_gpio_irq_mask(9)zynq_gpio_irq_unmask(9)zynq_gpio_irq_ack(9)zynq_gpio_irq_enable(9)zynq_gpio_set_irq_type(9)zynq_gpio_irqhandler(9)zynq_gpio_probe(9)zynq_gpio_remove(9)
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
- 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