STRUCT MADERA_PDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct madera_pdata(9) β€” from the Kernel API Manual β€” is the Configuration data for Madera devices struct. bestie, it’s the bundle of settings for Madera devices, and we’re gonna go through every single member, no skipping πŸ’–

🌸 SYNOPSIS 🌸

       struct madera_pdata {
           struct gpio_desc *reset;
           struct arizona_ldo1_pdata ldo1;
           struct arizona_micsupp_pdata micvdd;
           unsigned int irq_flags;
           int gpio_base;
           const struct pinctrl_map *gpio_configs;
           int n_gpio_configs;
           u32 gpsw[MADERA_MAX_GPSW];
           struct madera_codec_pdata codec;
        };

πŸ’… Members πŸ’…

okay so every field is doing its little main-character thing:

  • reset β€” the GPIO controlling /RESET; NULL means none. πŸ’€
  • ldo1 β€” substruct of pdata for the LDO1 regulator. πŸŽ€
  • micvdd β€” substruct of pdata for the MICVDD regulator. 🧚
  • irq_flags β€” mode for the primary IRQ; defaults to active low. ⭐
  • gpio_base β€” base GPIO number. πŸ”’
  • gpio_configs β€” array of GPIO configurations (see Documentation/driver-api/pin-control.rst). πŸ¦‹
  • n_gpio_configs β€” number of entries in gpio_configs. πŸ“
  • gpsw β€” general purpose switch mode setting. It depends on the external hardware connected to the switch. (See the SW1_MODE field in the datasheet for the available values for your codec.) πŸ”₯
  • codec β€” substruct of pdata for the ASoC codec driver. 🌈

🫢 SEE ALSO 🫢

Kernel file: ./include/linux/mfd/madera/pdata.h β€” go look, iykyk πŸ“–


cute sign-off: source/version ./include/linux/mfd/madera, dated October 2026 β€” that’s the footer energy, and this manual page is done, periodt πŸ’œ

πŸ“¦ where this page comes from