STRUCT MADERA_PDATA(9)
β¨ 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;NULLmeans 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 (seeDocumentation/driver-api/pin-control.rst). π¦n_gpio_configsβ number of entries ingpio_configs. πgpswβ general purpose switch mode setting. It depends on the external hardware connected to the switch. (See theSW1_MODEfield 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
- 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