| /linux/drivers/soc/rockchip/ |
| H A D | io-domain.c | 75 int (*write)(struct rockchip_iodomain_supply *supply, int uV); 83 int (*write)(struct rockchip_iodomain_supply *supply, int uV); 86 static int rk3568_iodomain_write(struct rockchip_iodomain_supply *supply, int uV) in rk3568_iodomain_write() argument 89 u32 is_3v3 = uV > MAX_VOLTAGE_1_8; in rk3568_iodomain_write() 128 int uV) in rockchip_iodomain_write() argument 135 val = (uV > MAX_VOLTAGE_1_8) ? 0 : 1; in rockchip_iodomain_write() 154 int uV; in rockchip_iodomain_notify() local 173 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify() 176 uV = (unsigned long)data; in rockchip_iodomain_notify() 181 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify() 654 int uV; rockchip_iodomain_probe() local [all...] |
| /linux/drivers/regulator/ |
| H A 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 …]
|
| H A D | sun20i-regulator.c | 26 unsigned int fraction, uV; in sun20i_d1_system_ldo_list_voltage() local 31 uV = desc->min_uV + (desc->uV_step * selector); in sun20i_d1_system_ldo_list_voltage() 34 if (uV > 1606667) in sun20i_d1_system_ldo_list_voltage() 35 uV += 6667; in sun20i_d1_system_ldo_list_voltage() 40 return uV + (fraction / 3); in sun20i_d1_system_ldo_list_voltage()
|
| H A 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()
|
| H A D | qcom_spmi-regulator.c | 339 /* slew_rate has units of uV/us. */ 673 int uV = min_uV; in spmi_regulator_select_voltage() local 682 if (uV < lim_min_uV && max_uV >= lim_min_uV) in spmi_regulator_select_voltage() 683 uV = lim_min_uV; in spmi_regulator_select_voltage() 685 if (uV < lim_min_uV || uV > lim_max_uV) { in spmi_regulator_select_voltage() 692 /* Find the range which uV is inside of. */ in spmi_regulator_select_voltage() 695 if (uV > range_max_uV && range_max_uV > 0) in spmi_regulator_select_voltage() 703 * Force uV to be an allowed set point by applying a ceiling function to in spmi_regulator_select_voltage() 704 * the uV valu in spmi_regulator_select_voltage() 810 int uV = min_uV; spmi_regulator_select_voltage_same_range() local 940 int uV; spmi_regulator_ftsmps426_get_voltage() local 1031 int uV = 0; spmi_regulator_common_list_voltage() local [all...] |
| H A D | pf1550-regulator.c | 103 int uV) in pf1550_buck_set_table_suspend_voltage() 110 ret = regulator_map_voltage_ascend(rdev, uV, uV); 112 dev_err(rdev_get_dev(rdev), "failed to map %i uV\n", uV); in pf1550_buck_set_linear_suspend_voltage() argument 121 int uV) in pf1550_buck_set_linear_suspend_voltage() 128 ret = regulator_map_voltage_linear(rdev, uV, uV); 130 dev_err(rdev_get_dev(rdev), "failed to map %i uV\n", uV); 94 pf1550_buck_set_table_suspend_voltage(struct regulator_dev * rdev,int uV) pf1550_buck_set_table_suspend_voltage() argument [all...] |
| H A 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()
|
| H A D | vctrl-regulator.c | 100 int uV; in vctrl_set_voltage() local 107 uV = vctrl_calc_output_voltage(vctrl, orig_ctrl_uV); in vctrl_set_voltage() 109 if (req_min_uV >= uV || !vctrl->ovp_threshold) in vctrl_set_voltage() 116 while (uV > req_min_uV) { in vctrl_set_voltage() 117 int max_drop_uV = (uV * vctrl->ovp_threshold) / 100; in vctrl_set_voltage() 126 next_uV = max_t(int, req_min_uV, uV - max_drop_uV); in vctrl_set_voltage() 136 delay = DIV_ROUND_UP(uV - next_uV, vctrl->min_slew_down_rate); in vctrl_set_voltage() 139 uV = next_uV; in vctrl_set_voltage()
|
| H A 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() 320 int uV) in wm831x_aldo_set_suspend_voltage() argument 326 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_aldo_set_suspend_voltage() 527 int uV) in wm831x_alive_ldo_set_suspend_voltage() argument 533 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm831x_alive_ldo_set_suspend_voltage()
|
| H A 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()
|
| H A D | rt5739.c | 99 static int rt5739_set_suspend_voltage(struct regulator_dev *rdev, int uV) in rt5739_set_suspend_voltage() argument 108 if (uV < desc->min_uV || uV > max_uV) in rt5739_set_suspend_voltage() 116 vsel = (uV - desc->min_uV) / desc->uV_step; in rt5739_set_suspend_voltage()
|
| H A D | rt8092.c | 129 static int rt8092_set_suspend_voltage(struct regulator_dev *rdev, int uV) in rt8092_set_suspend_voltage() argument 145 uV >>= vbank_idx; in rt8092_set_suspend_voltage() 146 if (uV < RT8092_VOUT_BASEUV) in rt8092_set_suspend_voltage() 149 vsel_val = (uV - RT8092_VOUT_BASEUV) / RT8092_VOUT_STEPUV; in rt8092_set_suspend_voltage()
|
| H A D | rt6160-regulator.c | 132 static int rt6160_set_suspend_voltage(struct regulator_dev *rdev, int uV) in rt6160_set_suspend_voltage() argument 138 vsel = regulator_map_voltage_linear(rdev, uV, uV); in rt6160_set_suspend_voltage()
|
| H A D | wm831x-dcdc.c | 277 int uV) in wm831x_buckv_set_suspend_voltage() argument 284 vsel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_buckv_set_suspend_voltage() 515 static int wm831x_buckp_set_suspend_voltage(struct regulator_dev *rdev, int uV) 522 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm831x_buckp_set_suspend_voltage() 516 wm831x_buckp_set_suspend_voltage(struct regulator_dev * rdev,int uV) wm831x_buckp_set_suspend_voltage() argument
|
| H A D | rtq2134-regulator.c | 111 static int rtq2134_buck_set_suspend_voltage(struct regulator_dev *rdev, int uV) in rtq2134_buck_set_suspend_voltage() argument 117 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in rtq2134_buck_set_suspend_voltage()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-adc-mt6360 | 6 Calculating with scale and offset returns voltage in uV 14 Calculating with scale and offset returns voltage in uV 22 Calculating with scale and offset returns voltage in uV 29 Calculating with scale and offset returns voltage in uV 36 Calculating with scale and offset returns voltage in uV 57 Calculating with scale and offset returns voltage in uV 71 Calculating with scale and offset returns voltage in uV 78 Calculating with scale and offset returns voltage in uV
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A 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 */
|
| H A D | imx6dl-sabreauto.dts | 17 /* kHz uV */ 23 /* ARM kHz SOC-PU uV */
|
| H A D | imx6q-cm-fx6.dts | 213 /* kHz uV */ 220 /* ARM kHz SOC-PU uV */ 235 /* kHz uV */ 242 /* ARM kHz SOC-PU uV */ 257 /* kHz uV */ 264 /* ARM kHz SOC-PU uV */ 279 /* kHz uV */ 286 /* ARM kHz SOC-PU uV */
|
| H A D | imx6dl.dtsi | 24 /* kHz uV */ 30 /* ARM kHz SOC-PU uV */ 57 /* kHz uV */ 63 /* ARM kHz SOC-PU uV */
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | omap4460.dtsi | 14 /* kHz uV */ 51 /*uV ABB efuse rbb_m fbb_m vset_m*/ 69 /*uV ABB efuse rbb_m fbb_m vset_m*/
|
| H A D | omap443x.dtsi | 15 /* kHz uV */ 52 /*uV ABB efuse rbb_m fbb_m vset_m*/
|
| /linux/Documentation/devicetree/bindings/regulator/ |
| H A D | ti-abb-regulator.txt | 30 volt: voltage in uV - Only used to index ABB information. 81 /* uV ABB efuse rbb_m fbb_m vset_m */ 101 /* uV ABB efuse rbb_m fbb_m vset_m */ 128 /* uV ABB efuse rbb_m fbb_m vset_m */
|
| /linux/drivers/remoteproc/ |
| H A D | qcom_q6v5_mss.c | 146 int uV; member 152 int uV; member 295 regs[i].uV = reg_res[i].uV; in q6v5_regulator_init() 309 if (regs[i].uV > 0) { in q6v5_regulator_enable() 311 regs[i].uV, INT_MAX); in q6v5_regulator_enable() 340 if (regs[i].uV > 0) in q6v5_regulator_enable() 358 if (regs[i].uV > 0) in q6v5_regulator_disable() 2551 .uV = 1050000, 2599 .uV = 1050000, 2644 .uV = 1050000, [all …]
|
| /linux/drivers/pinctrl/sunxi/ |
| H A D | pinctrl-sunxi.c | 733 int uV; in sunxi_pinctrl_set_io_bias_cfg() local 738 uV = regulator_get_voltage(supply); in sunxi_pinctrl_set_io_bias_cfg() 739 if (uV < 0) in sunxi_pinctrl_set_io_bias_cfg() 740 return uV; in sunxi_pinctrl_set_io_bias_cfg() 743 if (uV == 0) in sunxi_pinctrl_set_io_bias_cfg() 755 if (uV <= 1800000) in sunxi_pinctrl_set_io_bias_cfg() 757 else if (uV <= 2500000) in sunxi_pinctrl_set_io_bias_cfg() 759 else if (uV <= 2800000) in sunxi_pinctrl_set_io_bias_cfg() 761 else if (uV <= 3000000) in sunxi_pinctrl_set_io_bias_cfg() 775 val = uV > 180000 in sunxi_pinctrl_set_io_bias_cfg() [all...] |