Home
last modified time | relevance | path

Searched refs:uV (Results 1 – 25 of 107) sorted by relevance

12345

/Linux-v4.19/drivers/power/avs/
Drockchip-io-domain.c88 int uV) in rockchip_iodomain_write() argument
95 val = (uV > MAX_VOLTAGE_1_8) ? 0 : 1; in rockchip_iodomain_write()
114 int uV; in rockchip_iodomain_notify() local
133 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify()
136 uV = (unsigned long)data; in rockchip_iodomain_notify()
141 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify()
143 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_notify()
144 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV); in rockchip_iodomain_notify()
150 ret = rockchip_iodomain_write(supply, uV); in rockchip_iodomain_notify()
154 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV); in rockchip_iodomain_notify()
[all …]
/Linux-v4.19/drivers/regulator/
Dqcom_rpm-regulator.c36 struct request_member uV; /* used if voltage is in uV */ member
66 int uV; member
116 .uV = { 0, 0x007FFFFF, 0 },
127 .uV = { 0, 0x007FFFFF, 0 },
150 .uV = { 0, 0x007FFFFF, 0 },
221 int uV; in rpm_reg_set_mV_sel() local
226 uV = regulator_list_voltage_linear_range(rdev, selector); in rpm_reg_set_mV_sel()
227 if (uV < 0) in rpm_reg_set_mV_sel()
228 return uV; in rpm_reg_set_mV_sel()
232 ret = rpm_reg_write(vreg, req, uV / 1000); in rpm_reg_set_mV_sel()
[all …]
Dqcom_spmi-regulator.c532 int uV = min_uV; in spmi_regulator_select_voltage() local
541 if (uV < lim_min_uV && max_uV >= lim_min_uV) in spmi_regulator_select_voltage()
542 uV = lim_min_uV; in spmi_regulator_select_voltage()
544 if (uV < lim_min_uV || uV > lim_max_uV) { in spmi_regulator_select_voltage()
554 if (uV > range_max_uV && range_max_uV > 0) in spmi_regulator_select_voltage()
565 voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); in spmi_regulator_select_voltage()
566 uV = voltage_sel * range->step_uV + range->min_uV; in spmi_regulator_select_voltage()
568 if (uV > max_uV) { in spmi_regulator_select_voltage()
572 min_uV, max_uV, uV); in spmi_regulator_select_voltage()
579 selector += (uV - range->set_point_min_uV) / range->step_uV; in spmi_regulator_select_voltage()
[all …]
Dltc3676.c82 static int ltc3676_set_suspend_voltage(struct regulator_dev *rdev, int uV) in ltc3676_set_suspend_voltage() argument
89 dev_dbg(dev, "%s id=%d uV=%d\n", __func__, dcdc, uV); in ltc3676_set_suspend_voltage()
90 sel = regulator_map_voltage_linear(rdev, uV, uV); in ltc3676_set_suspend_voltage()
144 static inline unsigned int ltc3676_scale(unsigned int uV, u32 r1, u32 r2) in ltc3676_scale() argument
147 if (uV == 0) in ltc3676_scale()
149 tmp = (uint64_t)uV * r1; in ltc3676_scale()
151 return uV + (unsigned int)tmp; in ltc3676_scale()
Dvexpress-regulator.c35 u32 uV; in vexpress_regulator_get_voltage() local
36 int err = regmap_read(reg->regmap, 0, &uV); in vexpress_regulator_get_voltage()
38 return err ? err : uV; in vexpress_regulator_get_voltage()
Dwm831x-ldo.c71 int uV) in wm831x_gp_ldo_set_suspend_voltage() argument
77 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_gp_ldo_set_suspend_voltage()
324 int uV) in wm831x_aldo_set_suspend_voltage() argument
330 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_aldo_set_suspend_voltage()
530 int uV) in wm831x_alive_ldo_set_suspend_voltage() argument
536 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm831x_alive_ldo_set_suspend_voltage()
Dltc3589.c133 static int ltc3589_set_suspend_voltage(struct regulator_dev *rdev, int uV) in ltc3589_set_suspend_voltage() argument
138 sel = regulator_map_voltage_linear(rdev, uV, uV); in ltc3589_set_suspend_voltage()
439 static inline unsigned int ltc3589_scale(unsigned int uV, u32 r1, u32 r2) in ltc3589_scale() argument
442 if (uV == 0) in ltc3589_scale()
444 tmp = (uint64_t)uV * r1; in ltc3589_scale()
446 return uV + (unsigned int)tmp; in ltc3589_scale()
Dvctrl-regulator.c102 int uV = vctrl_calc_output_voltage(vctrl, orig_ctrl_uV); in vctrl_set_voltage() local
105 if (req_min_uV >= uV || !vctrl->ovp_threshold) in vctrl_set_voltage()
112 while (uV > req_min_uV) { in vctrl_set_voltage()
113 int max_drop_uV = (uV * vctrl->ovp_threshold) / 100; in vctrl_set_voltage()
122 next_uV = max_t(int, req_min_uV, uV - max_drop_uV); in vctrl_set_voltage()
131 delay = DIV_ROUND_UP(uV - next_uV, vctrl->min_slew_down_rate); in vctrl_set_voltage()
134 uV = next_uV; in vctrl_set_voltage()
Dfan53555.c103 static int fan53555_set_suspend_voltage(struct regulator_dev *rdev, int uV) in fan53555_set_suspend_voltage() argument
108 if (di->sleep_vol_cache == uV) in fan53555_set_suspend_voltage()
110 ret = regulator_map_voltage_linear(rdev, uV, uV); in fan53555_set_suspend_voltage()
119 di->sleep_vol_cache = uV; in fan53555_set_suspend_voltage()
Dmax8925-regulator.c105 static int max8925_set_dvm_voltage(struct regulator_dev *rdev, int uV) in max8925_set_dvm_voltage() argument
110 if (uV < SD1_DVM_VMIN || uV > SD1_DVM_VMAX) in max8925_set_dvm_voltage()
113 data = DIV_ROUND_UP(uV - SD1_DVM_VMIN, SD1_DVM_STEP); in max8925_set_dvm_voltage()
/Linux-v4.19/sound/soc/atmel/
Dtse850-pcm5142.c200 unsigned int uV = ucontrol->value.enumerated.item[0]; in tse850_put_ana() local
203 if (uV >= e->items) in tse850_put_ana()
215 if (uV) in tse850_put_ana()
216 uV = 11000000 + (1000000 * uV); in tse850_put_ana()
218 uV = 2000000; in tse850_put_ana()
220 ret = regulator_set_voltage(tse850->ana, uV, uV); in tse850_put_ana()
/Linux-v4.19/Documentation/devicetree/bindings/power/supply/
Drt9455_charger.txt15 - 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)
Dbq25890.txt7 - ti,battery-regulation-voltage: integer, maximum charging voltage (in uV);
15 minimum-sys-voltage setting (in uV);
16 - ti,boost-voltage: integer, VBUS voltage level in boost mode (in uV);
Dbq24257.txt11 - 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
Dqcom_smbb.txt50 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-v4.19/arch/arm/boot/dts/
Dimx6q.dtsi25 /* kHz uV */
33 /* ARM kHz SOC-PU uV */
60 /* kHz uV */
68 /* ARM kHz SOC-PU uV */
94 /* kHz uV */
102 /* ARM kHz SOC-PU uV */
128 /* kHz uV */
136 /* ARM kHz SOC-PU uV */
Dimx6ull.dtsi16 /* kHz uV */
24 /* KHz uV */
Dimx6q-cm-fx6.dts175 /* kHz uV */
182 /* ARM kHz SOC-PU uV */
197 /* kHz uV */
204 /* ARM kHz SOC-PU uV */
219 /* kHz uV */
226 /* ARM kHz SOC-PU uV */
241 /* kHz uV */
248 /* ARM kHz SOC-PU uV */
Domap4460.dtsi17 /* kHz uV */
61 /*uV ABB efuse rbb_m fbb_m vset_m*/
79 /*uV ABB efuse rbb_m fbb_m vset_m*/
Domap443x.dtsi18 /* kHz uV */
53 /*uV ABB efuse rbb_m fbb_m vset_m*/
Dimx6dl.dtsi24 /* kHz uV */
30 /* ARM kHz SOC-PU uV */
55 /* kHz uV */
61 /* ARM kHz SOC-PU uV */
/Linux-v4.19/Documentation/devicetree/bindings/phy/
Dapm-xgene-phy.txt33 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-v4.19/drivers/opp/
Dcore.c188 } *uV; in dev_pm_opp_get_max_volt_latency() local
200 uV = kmalloc_array(count, sizeof(*uV), GFP_KERNEL); in dev_pm_opp_get_max_volt_latency()
201 if (!uV) in dev_pm_opp_get_max_volt_latency()
207 uV[i].min = ~0; in dev_pm_opp_get_max_volt_latency()
208 uV[i].max = 0; in dev_pm_opp_get_max_volt_latency()
214 if (opp->supplies[i].u_volt_min < uV[i].min) in dev_pm_opp_get_max_volt_latency()
215 uV[i].min = opp->supplies[i].u_volt_min; in dev_pm_opp_get_max_volt_latency()
216 if (opp->supplies[i].u_volt_max > uV[i].max) in dev_pm_opp_get_max_volt_latency()
217 uV[i].max = opp->supplies[i].u_volt_max; in dev_pm_opp_get_max_volt_latency()
229 ret = regulator_set_voltage_time(reg, uV[i].min, uV[i].max); in dev_pm_opp_get_max_volt_latency()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/hwmon/
Dmax6650.txt11 - maxim,fan-microvolt : The supply voltage of the fan, either 5000000 uV or
12 12000000 uV.
/Linux-v4.19/Documentation/devicetree/bindings/cpufreq/
Darm_big_little_dt.txt33 /* kHz uV */
52 /* kHz uV */

12345