| /Linux-v5.10/drivers/soc/rockchip/ |
| D | io-domain.c | 80 int uV) in rockchip_iodomain_write() argument 87 val = (uV > MAX_VOLTAGE_1_8) ? 0 : 1; in rockchip_iodomain_write() 106 int uV; in rockchip_iodomain_notify() local 125 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify() 128 uV = (unsigned long)data; in rockchip_iodomain_notify() 133 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify() 135 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_notify() 136 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV); in rockchip_iodomain_notify() 142 ret = rockchip_iodomain_write(supply, uV); in rockchip_iodomain_notify() 146 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV); in rockchip_iodomain_notify() [all …]
|
| /Linux-v5.10/drivers/regulator/ |
| D | qcom_rpm-regulator.c | 28 struct request_member uV; /* used if voltage is in uV */ member 58 int uV; member 108 .uV = { 0, 0x007FFFFF, 0 }, 119 .uV = { 0, 0x007FFFFF, 0 }, 142 .uV = { 0, 0x007FFFFF, 0 }, 213 int uV; in rpm_reg_set_mV_sel() local 218 uV = regulator_list_voltage_linear_range(rdev, selector); in rpm_reg_set_mV_sel() 219 if (uV < 0) in rpm_reg_set_mV_sel() 220 return uV; in rpm_reg_set_mV_sel() 224 ret = rpm_reg_write(vreg, req, uV / 1000); in rpm_reg_set_mV_sel() [all …]
|
| D | qcom_spmi-regulator.c | 609 int uV = min_uV; in spmi_regulator_select_voltage() local 618 if (uV < lim_min_uV && max_uV >= lim_min_uV) in spmi_regulator_select_voltage() 619 uV = lim_min_uV; in spmi_regulator_select_voltage() 621 if (uV < lim_min_uV || uV > lim_max_uV) { in spmi_regulator_select_voltage() 631 if (uV > range_max_uV && range_max_uV > 0) in spmi_regulator_select_voltage() 642 voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); in spmi_regulator_select_voltage() 643 uV = voltage_sel * range->step_uV + range->min_uV; in spmi_regulator_select_voltage() 645 if (uV > max_uV) { in spmi_regulator_select_voltage() 649 min_uV, max_uV, uV); in spmi_regulator_select_voltage() 656 selector += (uV - range->set_point_min_uV) / range->step_uV; in spmi_regulator_select_voltage() [all …]
|
| D | ltc3676.c | 73 static int ltc3676_set_suspend_voltage(struct regulator_dev *rdev, int uV) in ltc3676_set_suspend_voltage() argument 80 dev_dbg(dev, "%s id=%d uV=%d\n", __func__, dcdc, uV); in ltc3676_set_suspend_voltage() 81 sel = regulator_map_voltage_linear(rdev, uV, uV); in ltc3676_set_suspend_voltage() 135 static inline unsigned int ltc3676_scale(unsigned int uV, u32 r1, u32 r2) in ltc3676_scale() argument 138 if (uV == 0) in ltc3676_scale() 140 tmp = (uint64_t)uV * r1; in ltc3676_scale() 142 return uV + (unsigned int)tmp; in ltc3676_scale()
|
| D | vexpress-regulator.c | 19 unsigned int uV; in vexpress_regulator_get_voltage() local 20 int err = regmap_read(regdev->regmap, 0, &uV); in vexpress_regulator_get_voltage() 22 return err ? err : uV; in vexpress_regulator_get_voltage()
|
| D | ltc3589.c | 113 static int ltc3589_set_suspend_voltage(struct regulator_dev *rdev, int uV) in ltc3589_set_suspend_voltage() argument 118 sel = regulator_map_voltage_linear(rdev, uV, uV); in ltc3589_set_suspend_voltage() 179 static inline unsigned int ltc3589_scale(unsigned int uV, u32 r1, u32 r2) in ltc3589_scale() argument 183 if (uV == 0) in ltc3589_scale() 186 tmp = (uint64_t)uV * r1; in ltc3589_scale() 188 return uV + (unsigned int)tmp; in ltc3589_scale()
|
| D | wm831x-ldo.c | 66 int uV) in wm831x_gp_ldo_set_suspend_voltage() argument 72 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_gp_ldo_set_suspend_voltage() 319 int uV) in wm831x_aldo_set_suspend_voltage() argument 325 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_aldo_set_suspend_voltage() 525 int uV) in wm831x_alive_ldo_set_suspend_voltage() argument 531 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm831x_alive_ldo_set_suspend_voltage()
|
| D | vctrl-regulator.c | 97 int uV = vctrl_calc_output_voltage(vctrl, orig_ctrl_uV); in vctrl_set_voltage() local 100 if (req_min_uV >= uV || !vctrl->ovp_threshold) in vctrl_set_voltage() 107 while (uV > req_min_uV) { in vctrl_set_voltage() 108 int max_drop_uV = (uV * vctrl->ovp_threshold) / 100; in vctrl_set_voltage() 117 next_uV = max_t(int, req_min_uV, uV - max_drop_uV); in vctrl_set_voltage() 127 delay = DIV_ROUND_UP(uV - next_uV, vctrl->min_slew_down_rate); in vctrl_set_voltage() 130 uV = next_uV; in vctrl_set_voltage()
|
| D | max8925-regulator.c | 102 static int max8925_set_dvm_voltage(struct regulator_dev *rdev, int uV) in max8925_set_dvm_voltage() argument 107 if (uV < SD1_DVM_VMIN || uV > SD1_DVM_VMAX) in max8925_set_dvm_voltage() 110 data = DIV_ROUND_UP(uV - SD1_DVM_VMIN, SD1_DVM_STEP); in max8925_set_dvm_voltage()
|
| D | fan53555.c | 111 static int fan53555_set_suspend_voltage(struct regulator_dev *rdev, int uV) in fan53555_set_suspend_voltage() argument 116 if (di->sleep_vol_cache == uV) in fan53555_set_suspend_voltage() 118 ret = regulator_map_voltage_linear(rdev, uV, uV); in fan53555_set_suspend_voltage() 127 di->sleep_vol_cache = uV; in fan53555_set_suspend_voltage()
|
| /Linux-v5.10/drivers/soc/qcom/ |
| D | cpr.c | 204 int uV; member 216 int uV; member 780 new_uV = corner->uV; in cpr_set_performance_state() 862 int step_size_uV, steps, uV; in cpr_read_fuse_uV() local 877 uV = fdata->ref_uV + steps * step_size_uV; in cpr_read_fuse_uV() 878 return DIV_ROUND_UP(uV, step_volt) * step_volt; in cpr_read_fuse_uV() 890 int uV; in cpr_fuse_corner_init() local 915 uV = cpr_read_fuse_uV(desc, fdata, fuses->init_voltage, in cpr_fuse_corner_init() 917 if (uV < 0) in cpr_fuse_corner_init() 918 return uV; in cpr_fuse_corner_init() [all …]
|
| /Linux-v5.10/sound/soc/atmel/ |
| D | tse850-pcm5142.c | 194 unsigned int uV = ucontrol->value.enumerated.item[0]; in tse850_put_ana() local 197 if (uV >= e->items) in tse850_put_ana() 209 if (uV) in tse850_put_ana() 210 uV = 11000000 + (1000000 * uV); in tse850_put_ana() 212 uV = 2000000; in tse850_put_ana() 214 ret = regulator_set_voltage(tse850->ana, uV, uV); in tse850_put_ana()
|
| /Linux-v5.10/Documentation/devicetree/bindings/opp/ |
| D | qcom-opp.txt | 18 a certain fuse corner/level. A fuse corner/level contains e.g. ref uV, 19 min uV, and max uV.
|
| /Linux-v5.10/Documentation/devicetree/bindings/power/supply/ |
| D | rt9455_charger.txt | 15 - richtek,battery-regulation-voltage: integer, maximum battery voltage in uV. 17 devices, when the charger is in boost mode, in uV. 20 - richtek,min-input-voltage-regulation: integer, input voltage level in uV, used to 25 Default: 4500000 uV (4.5V)
|
| D | bq24257.txt | 11 - ti,battery-regulation-voltage: integer, maximum charging voltage in uV. 27 - ti,ovp-voltage: Configures the over voltage protection voltage (in uV). If 30 power path management (in uV). If not specified a default of 4,360,000
|
| D | bq25890.txt | 14 - ti,battery-regulation-voltage: integer, maximum charging voltage (in uV); 22 minimum-sys-voltage setting (in uV); 23 - ti,boost-voltage: integer, VBUS voltage level in boost mode (in uV);
|
| D | qcom_smbb.txt | 50 Value type: <u32>; uV; range [2.1V : 3.6V] 57 Value type: <u32>; uV; range [3.24V : 5V] 64 Value type: <u32>; uV; range [3.24V : 5V] 78 Value type: <u32>; uV; range [3.24V : 5V] 85 Value type: <u32>; uV; range [4.2V : 9.6V]
|
| /Linux-v5.10/arch/arm/boot/dts/ |
| D | imx6q.dtsi | 25 /* kHz uV */ 33 /* ARM kHz SOC-PU uV */ 62 /* kHz uV */ 70 /* ARM kHz SOC-PU uV */ 97 /* kHz uV */ 105 /* ARM kHz SOC-PU uV */ 132 /* kHz uV */ 140 /* ARM kHz SOC-PU uV */
|
| D | imx6dl-sabreauto.dts | 17 /* kHz uV */ 23 /* ARM kHz SOC-PU uV */
|
| D | imx6q-cm-fx6.dts | 176 /* kHz uV */ 183 /* ARM kHz SOC-PU uV */ 198 /* kHz uV */ 205 /* ARM kHz SOC-PU uV */ 220 /* kHz uV */ 227 /* ARM kHz SOC-PU uV */ 242 /* kHz uV */ 249 /* ARM kHz SOC-PU uV */
|
| D | omap4460.dtsi | 17 /* kHz uV */ 61 /*uV ABB efuse rbb_m fbb_m vset_m*/ 79 /*uV ABB efuse rbb_m fbb_m vset_m*/
|
| D | imx6dl.dtsi | 24 /* kHz uV */ 30 /* ARM kHz SOC-PU uV */ 57 /* kHz uV */ 63 /* ARM kHz SOC-PU uV */
|
| D | omap443x.dtsi | 18 /* kHz uV */ 53 /*uV ABB efuse rbb_m fbb_m vset_m*/
|
| /Linux-v5.10/Documentation/devicetree/bindings/phy/ |
| D | apm-xgene-phy.txt | 33 Range is between 0 to 199500 in unit of uV. 34 Default is 199500 uV. 38 uV. Default is 0. 41 speed on the host. Range is 0 to 127400 in unit uV.
|
| /Linux-v5.10/Documentation/devicetree/bindings/hwmon/ |
| D | max6650.txt | 11 - maxim,fan-microvolt : The supply voltage of the fan, either 5000000 uV or 12 12000000 uV.
|