| /OK3568_Linux_fs/kernel/arch/arm/mach-omap2/ |
| H A D | pmic-cpcap.c | 21 * omap_cpcap_vsel_to_vdc - convert CPCAP VSEL value to microvolts DC 22 * @vsel: CPCAP VSEL value to convert 25 * programmed with @vsel. 27 static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) in omap_cpcap_vsel_to_uv() argument 29 if (vsel > 0x44) in omap_cpcap_vsel_to_uv() 30 vsel = 0x44; in omap_cpcap_vsel_to_uv() 31 return (((vsel * 125) + 6000)) * 100; in omap_cpcap_vsel_to_uv() 35 * omap_cpcap_uv_to_vsel - convert microvolts DC to CPCAP VSEL value 38 * Returns the VSEL value necessary for the CPCAP PMIC to 85 * omap_max8952_vsel_to_vdc - convert MAX8952 VSEL value to microvolts DC [all …]
|
| H A D | omap_twl.c | 44 static unsigned long twl4030_vsel_to_uv(const u8 vsel) in twl4030_vsel_to_uv() argument 46 return (((vsel * 125) + 6000)) * 100; in twl4030_vsel_to_uv() 54 static unsigned long twl6030_vsel_to_uv(const u8 vsel) in twl6030_vsel_to_uv() argument 70 if (!vsel) in twl6030_vsel_to_uv() 73 * There is no specific formula for voltage to vsel in twl6030_vsel_to_uv() 79 if (vsel == 0x3A) in twl6030_vsel_to_uv() 83 return ((((vsel - 1) * 1266) + 70900)) * 10; in twl6030_vsel_to_uv() 85 return ((((vsel - 1) * 1266) + 60770)) * 10; in twl6030_vsel_to_uv() 107 * There is no specific formula for voltage to vsel in twl6030_uv_to_vsel() 116 pr_err("%s:OUT OF RANGE! non mapped vsel for %ld Vs max %ld\n", in twl6030_uv_to_vsel()
|
| H A D | voltage.h | 117 * @vsel_to_uv: PMIC API to convert vsel value to actual voltage in uV. 118 * @uv_to_vsel: PMIC API to convert voltage in uV to vsel value. 135 unsigned long (*vsel_to_uv) (const u8 vsel);
|
| H A D | vp.c | 17 char vsel; in _vp_set_init_voltage() local 19 vsel = voltdm->pmic->uv_to_vsel(volt); in _vp_set_init_voltage() 25 vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask); in _vp_set_init_voltage()
|
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | twl6030-regulator.c | 274 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl6030ldo_get_voltage_sel() local 277 vsel &= ~TWL6030_VREG_VOLTAGE_WR_S; in twl6030ldo_get_voltage_sel() 279 return vsel; in twl6030ldo_get_voltage_sel() 404 int vsel = 0; in twl6030smps_map_voltage() local 409 vsel = 0; in twl6030smps_map_voltage() 411 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage() 412 vsel++; in twl6030smps_map_voltage() 414 /* Values 1..57 for vsel are linear and can be calculated in twl6030smps_map_voltage() 418 vsel = 62; in twl6030smps_map_voltage() 420 vsel = 61; in twl6030smps_map_voltage() [all …]
|
| H A D | wm831x-dcdc.c | 227 unsigned vsel) in wm831x_buckv_set_voltage_sel() argument 236 if (dcdc->dvs_gpiod && dcdc->on_vsel == vsel) in wm831x_buckv_set_voltage_sel() 239 if (dcdc->dvs_gpiod && dcdc->dvs_vsel == vsel) in wm831x_buckv_set_voltage_sel() 243 ret = wm831x_set_bits(wm831x, on_reg, WM831X_DC1_ON_VSEL_MASK, vsel); in wm831x_buckv_set_voltage_sel() 246 dcdc->on_vsel = vsel; in wm831x_buckv_set_voltage_sel() 257 * If this VSEL is higher than the last one we've seen then in wm831x_buckv_set_voltage_sel() 258 * remember it as the DVS VSEL. This is optimised for CPUfreq in wm831x_buckv_set_voltage_sel() 262 if (vsel > dcdc->dvs_vsel) { in wm831x_buckv_set_voltage_sel() 265 vsel); in wm831x_buckv_set_voltage_sel() 267 dcdc->dvs_vsel = vsel; in wm831x_buckv_set_voltage_sel() [all …]
|
| H A D | twl-regulator.c | 40 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */ 281 * select field in its control register. We use tables indexed by VSEL 284 * Note that VSEL values for VAUX2 changed in twl5030 and newer silicon; 288 * VSEL values documented as "TI cannot support these values" are flagged 393 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl4030ldo_get_voltage_sel() local 395 if (vsel < 0) in twl4030ldo_get_voltage_sel() 396 return vsel; in twl4030ldo_get_voltage_sel() 398 vsel &= info->table_len - 1; in twl4030ldo_get_voltage_sel() 399 return vsel; in twl4030ldo_get_voltage_sel() 422 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() local [all …]
|
| H A D | tps80031-regulator.c | 164 unsigned vsel) in tps80031_dcdc_set_voltage_sel() argument 181 ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel() 190 ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel() 201 uint8_t vsel = 0; in tps80031_dcdc_get_voltage_sel() local 206 ri->rinfo->force_reg, &vsel); in tps80031_dcdc_get_voltage_sel() 213 if (!(vsel & SMPS_CMD_MASK)) in tps80031_dcdc_get_voltage_sel() 214 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel() 217 ri->rinfo->volt_reg, &vsel); in tps80031_dcdc_get_voltage_sel() 223 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel()
|
| H A D | tps51632-regulator.c | 124 int vsel; in tps51632_init_dcdc() local 130 vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV); in tps51632_init_dcdc() 131 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc() 154 vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV); in tps51632_init_dcdc() 156 vsel); in tps51632_init_dcdc()
|
| H A D | sy8106a-regulator.c | 70 unsigned int reg, vsel; in sy8106a_i2c_probe() local 106 vsel = (fixed_voltage / 1000 - SY8106A_MIN_MV) / in sy8106a_i2c_probe() 110 vsel | SY8106A_GO_BIT); in sy8106a_i2c_probe()
|
| H A D | tps65910-regulator.c | 35 /* VSEL tables for TPS65910 specific LDOs and dcdc's */ 599 int id = rdev_get_id(dev), vsel; in tps65910_set_voltage_dcdc_sel() local 607 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 611 regmap_write(regmap, TPS65910_VDD1_OP, vsel); in tps65910_set_voltage_dcdc_sel() 617 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 621 regmap_write(regmap, TPS65910_VDD2_OP, vsel); in tps65910_set_voltage_dcdc_sel() 624 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel() 625 regmap_write(regmap, TPS65911_VDDCTRL_OP, vsel); in tps65910_set_voltage_dcdc_sel()
|
| /OK3568_Linux_fs/kernel/drivers/staging/hikey9xx/ |
| H A D | hisilicon,hi6421-spmi-pmic.yaml | 68 vsel-reg: 93 - vsel-reg 122 vsel-reg = <0x51>; 141 vsel-reg = <0x52>; 152 hi6421-vsel = <0x52 0x07>;
|
| /OK3568_Linux_fs/u-boot/drivers/power/ |
| H A D | palmas.c | 84 int twl603x_mmc1_set_ldo9(u8 vsel) in twl603x_mmc1_set_ldo9() argument 89 if (vsel) { in twl603x_mmc1_set_ldo9() 91 if (vsel > LDO_VOLT_3V3) { in twl603x_mmc1_set_ldo9() 97 vval = vsel & 0x3f; in twl603x_mmc1_set_ldo9() 103 vsel > LDO_VOLT_3V3 ? "bypass" : "voltage", err); in twl603x_mmc1_set_ldo9()
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/ |
| H A D | lnbh25.c | 86 const char *vsel; in lnbh25_set_voltage() local 98 vsel = "Off"; in lnbh25_set_voltage() 102 vsel = "13V"; in lnbh25_set_voltage() 106 vsel = "18V"; in lnbh25_set_voltage() 114 __func__, vsel, priv->i2c_address, in lnbh25_set_voltage()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/ |
| H A D | act8945a-regulator.txt | 7 - active-semi,vsel-high: Indicates if the VSEL pin is set to logic-high. 8 If this property is missing, assume the VSEL pin is set to logic-low. 33 active-semi,vsel-high;
|
| H A D | silergy,sy8827n.yaml | 24 silergy,vsel-state-high: 27 Indicates if the VSEL pin is set to high. 28 If this property is missing, assume the VSEL pin is set to low.
|
| H A D | act8865-regulator.txt | 11 - active-semi,vsel-high: Indicates the VSEL pin is high. 12 If this property is missing, assume the VSEL pin is low(0). 59 active-semi,vsel-high;
|
| H A D | rk860x-regulator.yaml | 33 vsel: 42 The polarity of vsel pin.
|
| /OK3568_Linux_fs/kernel/include/linux/mfd/ |
| H A D | lp8788.h | 163 * @vsel : dvs selector for buck v1 register 167 enum lp8788_dvs_sel vsel; member 173 * @vsel : dvs selector for buck v2 register 177 enum lp8788_dvs_sel vsel; member
|
| /OK3568_Linux_fs/kernel/drivers/clk/samsung/ |
| H A D | clk-pll.h | 101 .vsel = (_vsel), \ 114 .vsel = (_vsel), \ 128 unsigned int vsel; member
|
| /OK3568_Linux_fs/kernel/include/linux/regulator/ |
| H A D | lp872x.h | 56 * @vsel : dvs selector for buck v1 or buck v2 register 61 enum lp872x_dvs_sel vsel; member
|
| H A D | fan53555.h | 12 /* VSEL ID */ 53 /* Sleep VSEL ID */
|
| /OK3568_Linux_fs/u-boot/drivers/power/regulator/ |
| H A D | fan53555_regulator.c | 35 /* VSEL bit definitions */ 385 dev_err(di->dev, "Invalid VSEL ID!\n"); in fan53555_device_setup() 416 ret = gpio_request_by_name(dev, "vsel-gpios", 0, in fan53555_regulator_ofdata_to_platdata() 419 dev_err(dev, "vsel-gpios- not found! Error: %d\n", ret); in fan53555_regulator_ofdata_to_platdata()
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3399pro-npu-evb-v10.dts | 81 vsel-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; 131 vsel_gpio: vsel-gpio {
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/freescale/ |
| H A D | imx8mq-nitrogen.dts | 122 vsel-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; 139 vsel-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; 156 vsel-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
|