STRUCT RPMH_VREG_HW_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

Welcome to the Kernel API Manual, bestie ✨ Today’s main character is struct rpmh_vreg_hw_data β€” the RPMh regulator hardware configurations blueprint. It’s giving β€œhow this regulator is built,” and we’re obsessed.


✨ NAME ✨

struct rpmh_vreg_hw_data β€” RPMh regulator hardware configurations. That’s the whole vibe, no cap πŸ’…


🫢 SYNOPSIS 🫢

       struct rpmh_vreg_hw_data {
           enum rpmh_regulator_type                regulator_type;
           const struct regulator_ops              *ops;
           const struct linear_range               *voltage_ranges;
           int n_linear_ranges;
           int n_voltages;
           int hpm_min_load_uA;
           int pmic_bypass_mode;
           const int                               *pmic_mode_map;
           unsigned int                          (*of_map_mode)(unsigned int
       mode);
        };

πŸ¦‹ Members πŸ¦‹

  • regulator_type β€” the RPMh accelerator type used to manage this regulator. It’s the β€œwho’s in charge” field, lowkey iconic.
  • ops β€” pointer to the regulator ops callback structure. Callback HQ, basically 🫢
  • voltage_ranges β€” the possible ranges of voltages supported by this PMIC regulator type. Voltage menu unlocked ✨
  • n_linear_ranges β€” number of entries in voltage_ranges. Literally the count, bestie.
  • n_voltages β€” the number of unique voltage set points defined by voltage_ranges. So many set points, so little time πŸ’€
  • hpm_min_load_uA β€” minimum load current in microamps that requires high power mode (HPM) operation. This is used for LDO hardware type regulators only β€” LDOs only, don’t generalize πŸ™ˆ
  • pmic_bypass_mode β€” the PMIC bypass mode value. It’s the bypass mode value, periodt.
  • pmic_mode_map β€” array indexed by regulator framework mode containing PMIC hardware modes. It must be large enough to index all framework modes supported by this regulator hardware type β€” no tiny arrays, bestie πŸ’€
  • of_map_mode β€” maps an RPMH_REGULATOR_MODE_* mode value defined in device tree to a regulator framework mode. Device-tree-to-framework translator, slay 🌈

🌸 SEE ALSO 🌸


Cute sign-off: this page’s source/version is ./drivers/regulator, and the date is October 2026. Stay regulated, bestie πŸŽ€πŸ’œ

πŸ“¦ where this page comes from