| /kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
| 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 …]
|
| 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()
|
| /kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
| 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 …]
|
| 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()
|
| /kernel/linux/linux-6.6/drivers/regulator/ |
| D | twl6030-regulator.c | 273 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl6030ldo_get_voltage_sel() local 276 vsel &= ~TWL6030_VREG_VOLTAGE_WR_S; in twl6030ldo_get_voltage_sel() 278 return vsel; in twl6030ldo_get_voltage_sel() 403 int vsel = 0; in twl6030smps_map_voltage() local 408 vsel = 0; in twl6030smps_map_voltage() 410 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage() 411 vsel++; in twl6030smps_map_voltage() 413 /* Values 1..57 for vsel are linear and can be calculated in twl6030smps_map_voltage() 417 vsel = 62; in twl6030smps_map_voltage() 419 vsel = 61; in twl6030smps_map_voltage() [all …]
|
| 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 …]
|
| D | twl-regulator.c | 39 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */ 274 * select field in its control register. We use tables indexed by VSEL 277 * Note that VSEL values for VAUX2 changed in twl5030 and newer silicon; 281 * VSEL values documented as "TI cannot support these values" are flagged 386 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl4030ldo_get_voltage_sel() local 388 if (vsel < 0) in twl4030ldo_get_voltage_sel() 389 return vsel; in twl4030ldo_get_voltage_sel() 391 vsel &= info->table_len - 1; in twl4030ldo_get_voltage_sel() 392 return vsel; in twl4030ldo_get_voltage_sel() 415 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() local [all …]
|
| D | rt4803.c | 111 unsigned int reg, vsel; in rt4803_set_suspend_voltage() local 118 vsel = (uV - rdev->desc->min_uV) / rdev->desc->uV_step; in rt4803_set_suspend_voltage() 119 vsel <<= ffs(RT4803_VSEL_MASK) - 1; in rt4803_set_suspend_voltage() 121 return regmap_update_bits(regmap, reg, RT4803_VSEL_MASK, vsel); in rt4803_set_suspend_voltage() 175 vsel_act_high = device_property_read_bool(dev, "richtek,vsel-active-high"); in rt4803_probe()
|
| D | rt6160-regulator.c | 132 int vsel; in rt6160_set_suspend_voltage() local 134 vsel = regulator_map_voltage_linear(rdev, uV, uV); in rt6160_set_suspend_voltage() 135 if (vsel < 0) in rt6160_set_suspend_voltage() 136 return vsel; in rt6160_set_suspend_voltage() 144 RT6160_VSEL_MASK, vsel); in rt6160_set_suspend_voltage() 241 device_property_present(&i2c->dev, "richtek,vsel-active-low"); in rt6160_probe()
|
| D | rt5739.c | 102 unsigned int reg, vsel; in rt5739_set_suspend_voltage() local 115 vsel = (uV - desc->min_uV) / desc->uV_step; in rt5739_set_suspend_voltage() 116 return regmap_write(regmap, reg, vsel); in rt5739_set_suspend_voltage() 215 /* Assigned by vsel level */ in rt5739_init_regulator_desc() 280 vsel_acth = device_property_read_bool(dev, "richtek,vsel-active-high"); in rt5739_probe()
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| 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 …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/regulator/ |
| D | richtek,rtq2134-regulator.yaml | 38 richtek,use-vsel-dvs: 41 If specified, buck will listen to 'vsel' pin for dvs config. 76 richtek,use-vsel-dvs; 87 richtek,use-vsel-dvs; 98 richtek,use-vsel-dvs;
|
| 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.
|
| D | active-semi,act8865.yaml | 25 active-semi,vsel-high: 27 Indicates the VSEL pin is high. If this property is missing, 28 the VSEL pin is assumed to be low. 100 active-semi,vsel-high;
|
| D | richtek,rt4803.yaml | 34 richtek,vsel-active-high: 36 description: Specify the VSEL register group is using when system is active 61 richtek,vsel-active-high;
|
| D | richtek,rt5739.yaml | 33 richtek,vsel-active-high: 37 'VSEL' pin connection. 66 richtek,vsel-active-high;
|
| /kernel/linux/linux-5.10/drivers/staging/hikey9xx/ |
| 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>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/ |
| 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.
|
| 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;
|
| 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;
|
| /kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
| 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()
|
| /kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
| 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()
|
| /kernel/linux/linux-6.6/arch/powerpc/crypto/ |
| D | aesp10-ppc.pl | 204 vsel $stage,$outhead,$outtail,$outmask 224 vsel $stage,$outhead,$outtail,$outmask 241 vsel $stage,$outhead,$outtail,$outmask 254 vsel $stage,$outhead,$outtail,$outmask 269 vsel $stage,$outhead,$outtail,$outmask 302 vsel $stage,$outhead,$outtail,$outmask 312 vsel $stage,$outhead,$outtail,$outmask 328 vsel $stage,$outhead,$outtail,$outmask 345 vsel $stage,$outhead,$outtail,$outmask 356 vsel $stage,$outhead,$outtail,$outmask [all …]
|