STRUCT SPMI_REGULATOR_INIT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct spmi_regulator_init_data πŸŽ€

Hiii bestie!! This is the struct spmi_regulator_init_data(9) page from the Kernel API Manual, and we are about to make this spmi-regulator initialization data make sense. No cap, it's giving very "tiny struct, important job" energy. ✨


🌸 NAME 🌸

struct spmi_regulator_init_data β€” spmi-regulator initialization data


✨ SYNOPSIS ✨

struct spmi_regulator_init_data {
    unsigned pin_ctrl_enable;
    unsigned pin_ctrl_hpm;
    enum spmi_vs_soft_start_str             vs_soft_start_strength;
 };

πŸ’… Members πŸ’…

  • pin_ctrl_enable β€” okay so this is a bit mask that says which hardware pins, if any, should be used to enable the regulator. Its value should be an ORing of SPMI_REGULATOR_PIN_CTRL_ENABLE_* constants. If the bit specified by SPMI_REGULATOR_PIN_CTRL_ENABLE_HW_DEFAULT is set, then the pin control enable hardware registers will not be modified. 🫢
  • pin_ctrl_hpm β€” this bit mask says which hardware pins, if any, should be used to force the regulator into high power mode. Its value should be an ORing of SPMI_REGULATOR_PIN_CTRL_HPM_* constants. If the bit specified by SPMI_REGULATOR_PIN_CTRL_HPM_HW_DEFAULT is set, then the pin control mode hardware registers will not be modified. ⚑
  • vs_soft_start_strength β€” this parameter sets the soft start strength for voltage switch type regulators. Its value should be one of SPMI_VS_SOFT_START_STR_*. If its value is SPMI_VS_SOFT_START_STR_HW_DEFAULT, then the soft start strength will be left at its default hardware value. 🌈

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/regulator/qcom_spmi-regulator.c
  • struct spmi_voltage_range(9)

Source/version: ./drivers/regulator Β· October 2026 β€” that was struct spmi...or_init_data(9), signing off bestie πŸ’–βœ¨πŸ’…

πŸ“¦ where this page comes from