STRUCT RPMH_VREG_HW_DATA(9)
π 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 involtage_ranges. Literally the count, bestie.n_voltagesβ the number of unique voltage set points defined byvoltage_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 anRPMH_REGULATOR_MODE_*mode value defined in device tree to a regulator framework mode. Device-tree-to-framework translator, slay π
πΈ SEE ALSO πΈ
- Kernel file
./drivers/regulator/qcom-rpmh-regulator.cβ go read the source, the lore is right there. enum rpmh_regulator_type(9)enum regulator_hw_type(9)struct rpmh_vreg(9)struct rpmh_vreg_init_data(9)rpmh_regulator_send_request(9)rpmh_regulator_vrm_get_optimum_mode(9)rpmh_regulator_init_vreg(9)
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
- 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