STRUCT SPMI_VOLTAGE_RANGE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct spmi_voltage_range(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this page is your little group chat for struct spmi_voltage_range(9), and it is literally giving regulator set point voltage mapping. no cap, every field matters πŸ’…


✨ NAME ✨

struct spmi_voltage_range β€” regulator set point voltage mapping description.

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct spmi_voltage_range {
           int min_uV;
           int max_uV;
           int step_uV;
           int set_point_min_uV;
           int set_point_max_uV;
           unsigned n_voltages;
           u8 range_sel;
        };

πŸ’… Members πŸ’…

okay, here is the cast β€” every member is a main character:

  • min_uV β€” Minimum programmable output voltage resulting from set point register value 0x00.
  • max_uV β€” Maximum programmable output voltage.
  • step_uV β€” Output voltage increase resulting from the set point register value increasing by 1.
  • set_point_min_uV β€” Minimum allowed voltage.
  • set_point_max_uV β€” Maximum allowed voltage. This may be tweaked in order to pick which range should be used in the case of overlapping set points.
  • n_voltages β€” Number of preferred voltage set points present in this range.
  • range_sel β€” Voltage range register value corresponding to this range.

🌸 Description 🌸

okay so the following relationships must be true for the values used in this struct β€” like, non-negotiable bestie:

(max_uV - min_uV) % step_uV == 0
(set_point_min_uV - min_uV) % step_uV == 0*
(set_point_max_uV - min_uV) % step_uV == 0*
n_voltages = (set_point_max_uV - set_point_min_uV) / step_uV + 1
*Note, set_point_min_uV == set_point_max_uV == 0 is allowed in order to specify that the voltage range has meaning, but is not preferred.

πŸ”₯ SEE ALSO πŸ”₯

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

that’s the whole vibe, bestie β€” source/version ./drivers/regulator, date October 2026, page struct spmi_voltage_range(9). byeee πŸ’…βœ¨

πŸ“¦ where this page comes from