/openbmc/linux/drivers/regulator/ |
H A D | wm831x-ldo.c | 3 // wm831x-ldo.c -- LDO driver for the WM831x series 47 struct wm831x_ldo *ldo = data; in wm831x_ldo_uv_irq() local 49 regulator_notifier_call_chain(ldo->regulator, in wm831x_ldo_uv_irq() 68 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_gp_ldo_set_suspend_voltage() local 69 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_set_suspend_voltage() 70 int sel, reg = ldo->base + WM831X_LDO_SLEEP_CONTROL; in wm831x_gp_ldo_set_suspend_voltage() 81 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_gp_ldo_get_mode() local 82 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_get_mode() 83 int ctrl_reg = ldo->base + WM831X_LDO_CONTROL; in wm831x_gp_ldo_get_mode() 84 int on_reg = ldo->base + WM831X_LDO_ON_CONTROL; in wm831x_gp_ldo_get_mode() [all …]
|
H A D | qcom-rpmh-regulator.c | 25 * and mode of LDO, SMPS, and BOB type PMIC regulators. 77 * for LDO hardware type regulators only. 140 * "ldo%s1" for RPMh resource "ldoa1". 829 RPMH_VREG("ldo1", "ldo%s1", &pmic4_nldo, "vdd-l1-l27"), 830 RPMH_VREG("ldo2", "ldo%s2", &pmic4_nldo, "vdd-l2-l8-l17"), 831 RPMH_VREG("ldo3", "ldo%s3", &pmic4_nldo, "vdd-l3-l11"), 832 RPMH_VREG("ldo4", "ldo%s4", &pmic4_nldo, "vdd-l4-l5"), 833 RPMH_VREG("ldo5", "ldo%s5", &pmic4_nldo, "vdd-l4-l5"), 834 RPMH_VREG("ldo6", "ldo%s6", &pmic4_pldo, "vdd-l6"), 835 RPMH_VREG("ldo7", "ldo%s7", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"), [all …]
|
H A D | wm8994-regulator.c | 44 struct wm8994_ldo *ldo = rdev_get_drvdata(rdev); in wm8994_ldo2_list_voltage() local 49 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage() 153 int id = pdev->id % ARRAY_SIZE(pdata->ldo); in wm8994_ldo_probe() 155 struct wm8994_ldo *ldo; in wm8994_ldo_probe() local 159 dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); in wm8994_ldo_probe() 161 ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_ldo), GFP_KERNEL); in wm8994_ldo_probe() 162 if (!ldo) in wm8994_ldo_probe() 165 ldo->wm8994 = wm8994; in wm8994_ldo_probe() 166 ldo->supply = wm8994_ldo_consumer[id]; in wm8994_ldo_probe() 167 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe() [all …]
|
H A D | mt6357-regulator.c | 356 MT6357_LDO("ldo-vcama", VCAMA, vcama_voltages, 358 MT6357_LDO("ldo-vcamd", VCAMD, vcamd_voltages, 360 MT6357_LDO("ldo-vcn33-bt", VCN33_BT, vcn33_voltages, 362 MT6357_LDO("ldo-vcn33-wifi", VCN33_WIFI, vcn33_voltages, 364 MT6357_LDO("ldo-vdram", VDRAM, vdram_voltages, 366 MT6357_LDO("ldo-vefuse", VEFUSE, vefuse_voltages, 368 MT6357_LDO("ldo-vemc", VEMC, vemc_voltages, 370 MT6357_LDO("ldo-vibr", VIBR, vibr_voltages, 372 MT6357_LDO("ldo-vldo28", VLDO28, vldo28_voltages, 374 MT6357_LDO("ldo-vmc", VMC, vmc_voltages, [all …]
|
H A D | lp8788-ldo.c | 3 * TI LP8788 MFD - ldo regulator driver 155 struct lp8788_ldo *ldo = rdev_get_drvdata(rdev); in lp8788_ldo_enable_time() local 159 if (lp8788_read_byte(ldo->lp, addr, &val)) in lp8788_ldo_enable_time() 462 struct lp8788_ldo *ldo, in lp8788_config_ldo_enable_mode() argument 465 struct lp8788 *lp = ldo->lp; in lp8788_config_ldo_enable_mode() 505 ldo->ena_gpiod = gpiod_get_index_optional(&pdev->dev, in lp8788_config_ldo_enable_mode() 510 if (IS_ERR(ldo->ena_gpiod)) in lp8788_config_ldo_enable_mode() 511 return PTR_ERR(ldo->ena_gpiod); in lp8788_config_ldo_enable_mode() 513 /* if no GPIO for ldo pin, then set default enable mode */ in lp8788_config_ldo_enable_mode() 514 if (!ldo->ena_gpiod) in lp8788_config_ldo_enable_mode() [all …]
|
H A D | mt6331-regulator.c | 359 MT6331_REG_FIXED("ldo-vrtc", VRTC, MT6331_DIGLDO_CON11, 8, 15, 2800000, 0, 0), 360 MT6331_REG_FIXED("ldo-vtcxo1", VTCXO1, MT6331_ANALDO_CON1, 10, 15, 2800000, 362 MT6331_REG_FIXED("ldo-vtcxo2", VTCXO2, MT6331_ANALDO_CON2, 10, 15, 2800000, 364 MT6331_REG_FIXED("ldo-vsram", VSRAM_DVFS1, MT6331_SYSLDO_CON4, 10, 15, 1012500, 366 MT6331_REG_FIXED("ldo-vio28", VIO28, MT6331_DIGLDO_CON1, 10, 15, 2800000, 368 MT6331_LDO("ldo-avdd32aud", AVDD32_AUD, ldo_volt_table1, MT6331_ANALDO_CON3, 10, 370 MT6331_LDO("ldo-vauxa32", VAUXA32, ldo_volt_table1, MT6331_ANALDO_CON4, 10, 372 MT6331_LDO("ldo-vemc33", VEMC33, ldo_volt_table6, MT6331_DIGLDO_CON5, 10, 374 MT6331_LDO("ldo-vibr", VIBR, ldo_volt_table3, MT6331_DIGLDO_CON12, 10, 376 MT6331_LDO("ldo-vmc", VMC, ldo_volt_table5, MT6331_DIGLDO_CON3, 10, [all …]
|
H A D | qcom_spmi-regulator.c | 297 /* LDO regulator current limit control register layout */ 300 /* LDO regulator soft start control register layout */ 1585 SPMI_VREG(LDO, HT_P600, 0, INF, HFS430, hfs430, ht_p600, 10000), 1586 SPMI_VREG(LDO, HT_P150, 0, INF, HFS430, hfs430, ht_p150, 10000), 1590 SPMI_VREG(LDO, N300, 0, INF, LDO, ldo, nldo1, 10000), 1591 SPMI_VREG(LDO, N600, 0, 0, LDO, ldo, nldo2, 10000), 1592 SPMI_VREG(LDO, N1200, 0, 0, LDO, ldo, nldo2, 10000), 1593 SPMI_VREG(LDO, N600, 1, INF, LDO, ldo, nldo3, 10000), 1594 SPMI_VREG(LDO, N1200, 1, INF, LDO, ldo, nldo3, 10000), 1595 SPMI_VREG(LDO, N600_ST, 0, 0, LDO, ldo, nldo2, 10000), [all …]
|
H A D | atc260x-regulator.c | 227 .name = "LDO"#num, \ 228 .supply_name = "ldo"#num, \ 229 .of_match = of_match_ptr("ldo"#num), \ 246 .name = "LDO"#num, \ 247 .supply_name = "ldo"#num, \ 248 .of_match = of_match_ptr("ldo"#num), \ 263 .name = "LDO"#num, \ 264 .supply_name = "ldo"#num, \ 265 .of_match = of_match_ptr("ldo"#num), \ 377 .name = "LDO"#num, \ [all …]
|
H A D | lp3972.c | 64 /* LDO output enable mask */ 146 /* LDO voltage control registers shift: 224 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_is_enabled() local 225 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_is_enabled() 228 val = lp3972_reg_read(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo)); in lp3972_ldo_is_enabled() 235 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_enable() local 236 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_enable() 238 return lp3972_set_bits(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo), in lp3972_ldo_enable() 245 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_disable() local 246 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_disable() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | twl-regulator.txt | 6 - "ti,twl6030-vaux1" for VAUX1 LDO 7 - "ti,twl6030-vaux2" for VAUX2 LDO 8 - "ti,twl6030-vaux3" for VAUX3 LDO 9 - "ti,twl6030-vmmc" for VMMC LDO 10 - "ti,twl6030-vpp" for VPP LDO 11 - "ti,twl6030-vusim" for VUSIM LDO 12 - "ti,twl6030-vana" for VANA LDO 13 - "ti,twl6030-vcxio" for VCXIO LDO 14 - "ti,twl6030-vdac" for VDAC LDO 15 - "ti,twl6030-vusb" for VUSB LDO [all …]
|
H A D | max8925-regulator.txt | 8 - LDO1 for LDO LDO1 9 - LDO2 for LDO LDO2 10 - LDO3 for LDO LDO3 11 - LDO4 for LDO LDO4 12 - LDO5 for LDO LDO5 13 - LDO6 for LDO LDO6 14 - LDO7 for LDO LDO7 15 - LDO8 for LDO LDO8 16 - LDO9 for LDO LDO9 17 - LDO10 for LDO LDO10 [all …]
|
H A D | mediatek,mt6331-regulator.yaml | 13 The MT6331 PMIC provides 6 BUCK and 21 LDO (Low Dropout) regulators 15 buck-<name> and ldo-<name>. 29 "^ldo-v(avdd32aud|auxa32)$": 39 "^ldo-v(dig18|emc33|ibr|mc|mch|mipi|rtc|sram|usb10)$": 49 "^ldo-vcam(a|af|d|io)$": 59 "^ldo-vtcxo[12]$": 72 "^ldo-vgp[1234]$": 139 mt6331_vtcxo1_reg: ldo-vtcxo1 { 146 mt6331_vtcxo2_reg: ldo-vtcxo2 { 153 mt6331_avdd32_aud_reg: ldo-avdd32aud { [all …]
|
H A D | mediatek,mt6357-regulator.yaml | 15 The MT6357 PMIC provides 5 BUCK and 29 LDO. 18 - ldo-<name>. 34 "^ldo-v(camio18|aud28|aux18|io18|io28|rf12|rf18|cn18|cn28|fe28)$": 39 Properties for single fixed LDO regulator. 46 "^ldo-v(efuse|ibr|ldo28|mch|cama|camd|cn33-bt|cn33-wifi)$": 51 Properties for single LDO regulator. 58 "^ldo-v(xo22|emc|mc|sim1|sim2|sram-others|sram-proc|dram|usb33)$": 63 Properties for single LDO regulator. 114 mt6357_vfe28_reg: ldo-vfe28 { 121 mt6357_vxo22_reg: ldo-vxo22 { [all …]
|
H A D | mt6380-regulator.txt | 5 to its regulator type, buck-<name> and ldo-<name>. The definition for each 12 LDO: 13 ldo-vm ,ldo-va , ldo-vphy, ldo-vddr, ldo-vt 45 mt6380_vm_reg: ldo-vm { 54 mt6380_va_reg: ldo-va { 63 mt6380_vphy_reg: ldo-vphy { 72 mt6380_vddr_reg: ldo-vddr { 81 mt6380_vt_reg: ldo-vt {
|
H A D | ti-abb-regulator.txt | 1 Adaptive Body Bias(ABB) SoC internal LDO regulator for Texas Instruments SoCs 26 indicating LDO tranxdone (operation complete). 48 - "ldo-address" - Contains address of ABB LDO override register. 50 - ti,ldovbb-vset-mask - Required if ldo-address is set, mask for LDO override 52 - ti,ldovbb-override-mask - Required if ldo-address is set, mask for LDO 65 Vset value efuse Mask: Mandatory if ldo-address is set. Picks up from 66 efuse the value to set in 'ti,ldovbb-vset-mask' at ldo-address. 88 Example #2: Efuse bits contain ABB mode setting (no LDO override capability) 109 Example #3: Efuse bits contain ABB mode setting and LDO override capability 118 "efuse-address", "ldo-address";
|
H A D | mediatek,mt6332-regulator.yaml | 13 The MT6332 Companion PMIC provides 6 BUCK and 4 LDO (Low Dropout) 15 buck-<name> and ldo-<name>. 29 "^ldo-v(bif28|dig18|sram|usb33)$": 83 mt6332_vauxb32_reg: ldo-vauxb32 { 88 mt6332_vbif28_reg: ldo-vbif28 { 93 mt6332_vdig18_reg: ldo-vdig18 { 99 mt6332_vsram_reg: ldo-vsram { 105 mt6332_vusb33_reg: ldo-vusb33 {
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt6357.dtsi | 62 mt6357_vfe28_reg: ldo-vfe28 { 70 mt6357_vxo22_reg: ldo-vxo22 { 77 mt6357_vrf18_reg: ldo-vrf18 { 85 mt6357_vrf12_reg: ldo-vrf12 { 93 mt6357_vefuse_reg: ldo-vefuse { 100 mt6357_vcn33_bt_reg: ldo-vcn33-bt { 107 mt6357_vcn33_wifi_reg: ldo-vcn33-wifi { 114 mt6357_vcn28_reg: ldo-vcn28 { 122 mt6357_vcn18_reg: ldo-vcn18 { 130 mt6357_vcama_reg: ldo-vcama { [all …]
|
H A D | mt6331.dtsi | 77 mt6331_vtcxo1_reg: ldo-vtcxo1 { 86 mt6331_vtcxo2_reg: ldo-vtcxo2 { 95 mt6331_avdd32_aud_reg: ldo-avdd32aud { 104 mt6331_vauxa32_reg: ldo-vauxa32 { 111 mt6331_vcama_reg: ldo-vcama { 118 mt6331_vio28_reg: ldo-vio28 { 127 mt6331_vcamaf_reg: ldo-vcamaf { 134 mt6331_vmc_reg: ldo-vmc { 141 mt6331_vmch_reg: ldo-vmch { 148 mt6331_vemc33_reg: ldo-vemc33 { [all …]
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | max77686.c | 24 /* LDO: 1,3,4,5,9,17,18,19,20,21,22,23,24,26,26,27 */ 32 /* LDO: 2,6,7,8,10,11,12,14,15,16 */ 138 static int max77686_ldo_volt2hex(int ldo, int uV) in max77686_ldo_volt2hex() argument 142 switch (ldo) { in max77686_ldo_volt2hex() 160 pr_err("Value: %d uV is wrong for LDO%d", uV, ldo); in max77686_ldo_volt2hex() 164 static int max77686_ldo_hex2volt(int ldo, int hex) in max77686_ldo_hex2volt() argument 171 switch (ldo) { in max77686_ldo_hex2volt() 189 pr_err("Value: %#x is wrong for ldo%d", hex, ldo); in max77686_ldo_hex2volt() 193 static int max77686_ldo_hex2mode(int ldo, int hex) in max77686_ldo_hex2mode() argument 202 /* The same mode values but different meaning for each ldo */ in max77686_ldo_hex2mode() [all …]
|
H A D | s2mps11_regulator.c | 334 static int s2mps11_ldo_hex2volt(int ldo, int hex) in s2mps11_ldo_hex2volt() argument 339 pr_err("Value: %#x is wrong for LDO%d", hex, ldo); in s2mps11_ldo_hex2volt() 343 switch (ldo) { in s2mps11_ldo_hex2volt() 361 static int s2mps11_ldo_volt2hex(int ldo, int uV) in s2mps11_ldo_volt2hex() argument 365 switch (ldo) { in s2mps11_ldo_volt2hex() 383 pr_err("Value: %d uV is wrong for LDO%d", uV, ldo); in s2mps11_ldo_volt2hex() 393 int hex, ldo, ret; in s2mps11_ldo_val() local 395 ldo = dev->driver_data; in s2mps11_ldo_val() 396 if (ldo < 1 || ldo > S2MPS11_LDO_NUM) { in s2mps11_ldo_val() 397 pr_err("Wrong ldo number: %d\n", ldo); in s2mps11_ldo_val() [all …]
|
H A D | as3722_regulator.c | 74 int ldo = dev->driver_data; in ldo_set_enable() local 77 if (ldo > AS3722_LDO_CONTROL0_MAX_INDEX) { in ldo_set_enable() 79 ldo -= 8; in ldo_set_enable() 82 ret = pmic_clrsetbits(pmic, ctrl_reg, !enable << ldo, enable << ldo); in ldo_set_enable() 84 debug("%s: failed to write LDO control register: %d", __func__, in ldo_set_enable() 96 int ldo = dev->driver_data; in ldo_get_enable() local 99 if (ldo > AS3722_LDO_CONTROL0_MAX_INDEX) { in ldo_get_enable() 101 ldo -= 8; in ldo_get_enable() 111 return ret & (1 << ldo) ? true : false; in ldo_get_enable()
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | hpmc.S | 118 ldo 128(sp),sp /* leave room for arguments */ 131 ldo 4(%r4),%r4 146 ldo PDC_PIM(%r0), arg0 147 ldo PDC_PIM_HPMC(%r0),arg1 /* Transfer HPMC data */ 155 ldo R%PA(os_hpmc_2)(rp), rp 162 ldo PDC_IO(%r0),arg0 163 ldo 0(%r0),arg1 /* log IO errors */ 164 ldo 0(%r0),arg2 /* reserved */ 165 ldo 0(%r0),arg3 /* reserved */ 170 ldo R%PA(os_hpmc_3)(rp),rp [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | actions,atc260x.yaml | 18 ATC2603C includes 3 programmable DC-DC converters, 9 programmable LDO 19 regulators and 1 fixed LDO regulator. 20 ATC2609A includes 5 programmable DC-DC converters and 10 programmable LDO 49 * ATC2603C: dcdc[1-3], ldo[1-3,5-8,11,12], switchldo1 50 * ATC2609A: dcdc[0-4], ldo[0-9] 74 "^(dcdc[0-4]|ldo[0-9]|ldo1[1-2]|switchldo1)-supply$": 77 "^(dcdc[0-4]|ldo[0-9]|ldo1[1-2])$": 99 "^(dcdc[0,4]|ldo[0,4,9])(-supply)?$": false 101 "^(ldo|dcdc)": 113 "^(dcdc|ldo[3-9])":
|
/openbmc/linux/arch/parisc/lib/ |
H A D | lusercopy.S | 48 ldo 1(%r25),%r25 134 ldo -1(len),len 146 ldo 16(src),src 151 ldo 16(src),src 165 ldo -32(len),len 172 ldo -4(len),len 186 ldo -1(len),len 201 ldo 16(src),src 215 ldo -16(len),len 221 ldo 1(src),src [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | cs35l33.txt | 61 - cirrus,ldo-thld : Configures the signal threshold at which the PWM output 62 stage enters LDO operation. Starts as a default value of 50mV for a value 66 - cirrus,ldo-path-disable : This is a boolean property. If present, the H/G 67 algorithm uses the max detection path. If not present, the LDO 70 - cirrus,ldo-entry-delay : The LDO entry delay in milliseconds before the H/G 71 algorithm switches to the LDO voltage. This property can be set to values 116 cirrus,ldo-thld = <0x1>; 117 cirrus,ldo-path-disable = <0x0>; 118 cirrus,ldo-entry-delay=<0x4>;
|