Home
last modified time | relevance | path

Searched refs:ldo (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/regulator/
Dwm831x-ldo.c47 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()
107 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_gp_ldo_set_mode() local
[all …]
Dwm8994-regulator.c44 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
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()
170 config.driver_data = ldo; in wm8994_ldo_probe()
[all …]
Dlp8788-ldo.c155 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()
514 if (!ldo->ena_gpiod) in lp8788_config_ldo_enable_mode()
527 struct lp8788_ldo *ldo; in lp8788_dldo_probe() local
532 ldo = devm_kzalloc(&pdev->dev, sizeof(struct lp8788_ldo), GFP_KERNEL); in lp8788_dldo_probe()
[all …]
Dlp3972.c224 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()
248 return lp3972_set_bits(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo), in lp3972_ldo_disable()
255 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_get_voltage_sel() local
[all …]
Dlp3971.c109 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_is_enabled() local
110 u16 mask = 1 << (1 + ldo); in lp3971_ldo_is_enabled()
120 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_enable() local
121 u16 mask = 1 << (1 + ldo); in lp3971_ldo_enable()
129 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_disable() local
130 u16 mask = 1 << (1 + ldo); in lp3971_ldo_disable()
138 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_get_voltage_sel() local
141 reg = lp3971_reg_read(lp3971, LP3971_LDO_VOL_CONTR_REG(ldo)); in lp3971_ldo_get_voltage_sel()
142 val = (reg >> LDO_VOL_CONTR_SHIFT(ldo)) & LDO_VOL_CONTR_MASK; in lp3971_ldo_get_voltage_sel()
151 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_set_voltage_sel() local
[all …]
Dmax8998.c43 int ldo = rdev_get_id(rdev); in max8998_get_enable_register() local
45 switch (ldo) { in max8998_get_enable_register()
48 *shift = 3 - (ldo - MAX8998_LDO2); in max8998_get_enable_register()
52 *shift = 7 - (ldo - MAX8998_LDO6); in max8998_get_enable_register()
56 *shift = 7 - (ldo - MAX8998_LDO14); in max8998_get_enable_register()
60 *shift = 7 - (ldo - MAX8998_BUCK1); in max8998_get_enable_register()
64 *shift = 7 - (ldo - MAX8998_EN32KHZ_AP); in max8998_get_enable_register()
68 *shift = 7 - (ldo - MAX8998_ESAFEOUT1); in max8998_get_enable_register()
133 int ldo = rdev_get_id(rdev); in max8998_get_voltage_register() local
137 switch (ldo) { in max8998_get_voltage_register()
[all …]
Dqcom_spmi-regulator.c1458 SPMI_VREG(LDO, N300, 0, INF, LDO, ldo, nldo1, 10000),
1459 SPMI_VREG(LDO, N600, 0, 0, LDO, ldo, nldo2, 10000),
1460 SPMI_VREG(LDO, N1200, 0, 0, LDO, ldo, nldo2, 10000),
1461 SPMI_VREG(LDO, N600, 1, INF, LDO, ldo, nldo3, 10000),
1462 SPMI_VREG(LDO, N1200, 1, INF, LDO, ldo, nldo3, 10000),
1463 SPMI_VREG(LDO, N600_ST, 0, 0, LDO, ldo, nldo2, 10000),
1464 SPMI_VREG(LDO, N1200_ST, 0, 0, LDO, ldo, nldo2, 10000),
1465 SPMI_VREG(LDO, N600_ST, 1, INF, LDO, ldo, nldo3, 10000),
1466 SPMI_VREG(LDO, N1200_ST, 1, INF, LDO, ldo, nldo3, 10000),
1467 SPMI_VREG(LDO, P50, 0, INF, LDO, ldo, pldo, 5000),
[all …]
Dwm8350-regulator.c481 int sel, volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_voltage() local
484 dev_dbg(wm8350->dev, "%s %d mV %d\n", __func__, ldo, uV / 1000); in wm8350_ldo_set_suspend_voltage()
486 switch (ldo) { in wm8350_ldo_set_suspend_voltage()
516 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_enable() local
519 switch (ldo) { in wm8350_ldo_set_suspend_enable()
545 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_disable() local
548 switch (ldo) { in wm8350_ldo_set_suspend_disable()
619 int wm8350_ldo_set_slot(struct wm8350 *wm8350, int ldo, u16 start, u16 stop) in wm8350_ldo_set_slot() argument
625 __func__, ldo, start, stop); in wm8350_ldo_set_slot()
631 switch (ldo) { in wm8350_ldo_set_slot()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dhpmc.S120 ldo 128(sp),sp /* leave room for arguments */
133 ldo 4(%r4),%r4
148 ldo PDC_PIM(%r0), arg0
149 ldo PDC_PIM_HPMC(%r0),arg1 /* Transfer HPMC data */
157 ldo R%PA(os_hpmc_2)(rp), rp
164 ldo PDC_IO(%r0),arg0
165 ldo 0(%r0),arg1 /* log IO errors */
166 ldo 0(%r0),arg2 /* reserved */
167 ldo 0(%r0),arg3 /* reserved */
172 ldo R%PA(os_hpmc_3)(rp),rp
[all …]
Dsyscall.S143 ldo THREAD_SZ_ALGN+FRAME_SIZE(%r30),%r30 /* set up kernel stack */
190 ldo TASK_PT_FR0(%r1), %r27 /* save fpregs from the kernel */
199 ldo -16(%r30),%r29 /* Reference param save area */
222 ldo R%sys_call_table(%r1), %r19
224 ldo R%sys_call_table64(%r1), %r19
243 ldo R%syscall_exit(%r2),%r2
248 ldo R%syscall_exit_rfi(%r2),%r2
259 ldo -ENOSYS(%r0),%r28 /* set errno */
275 ldo -THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r1 /* get task ptr */
295 ldo 4(%r2),%r2
[all …]
Dhead.S122 ldo (PxD_FLAG_PRESENT+PxD_FLAG_VALID)(%r3),%r3
124 ldo ASM_PMD_ENTRY*ASM_PMD_ENTRY_SIZE(%r5),%r4
127 ldo ASM_PGD_ENTRY*ASM_PGD_ENTRY_SIZE(%r4),%r4
133 ldo (PxD_FLAG_PRESENT+PxD_FLAG_VALID)(%r3),%r3
139 ldo (PAGE_SIZE >> PxD_VALUE_SHIFT)(%r3),%r3
142 ldo ASM_PMD_ENTRY_SIZE(%r4),%r4
144 ldo ASM_PGD_ENTRY_SIZE(%r4),%r4
150 ldo 0+_PAGE_KERNEL_RWX(%r0),%r3 /* Hardwired 0 phys addr start */
156 ldo (1<<PFN_PTE_SHIFT)(%r3),%r3 /* add one PFN */
171 ldo THREAD_SZ_ALGN(%r6),%sp
[all …]
Dentry.S71 ldo 4(%r1), %r1
113 ldo THREAD_SZ_ALGN(%r1), %r30
119 ldo TASK_REGS(%r9),%r9
133 ldo PT_SZ_ALGN(%r30),%r30
361 ldo R%PA(swapper_pg_dir)(\reg),\reg
824 ldo TASK_REGS(%r16),%r16
894 ldo -16(%r30),%r29 /* Reference param save area */
909 ldo PT_FR31(%r29),%r1
953 ldo -16(%r30),%r29 /* Reference param save area */
963 ldo R%intr_check_sig(%r2), %r2
[all …]
Dreal2.S62 ldo 2*REG_SZ(%sp), %sp /* room for a couple more saves */
110 ldo -2*REG_SZ(%sp), %sp
173 ldo 4(%r1), %r1
210 ldo 4(%r1), %r1
252 ldo 64(%arg1), %r29
Dpacache.S55 ldo 4(%r1), %r1
167 ldo 4(%r1), %r1
339 ldo 128(%r26), %r26
368 ldo 64(%r26), %r26
421 ldo 128(%r25), %r25
430 ldo 128(%r26), %r26
474 ldo 64(%r25), %r25
477 ldo 64(%r26), %r26
620 ldo 128(%r29), %r29
623 ldo 128(%r28), %r28
[all …]
Drelocate_kernel.S61 ldo 1f-0b(%arg2), %r1
65 ldo 4(%r1),%r1
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/
Dmt6380-regulator.txt5 to its regulator type, buck-<name> and ldo-<name>. The definition for each
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 {
Das3722-regulator.txt8 sd[0-6], 10 LDOs as ldo[0-7], ldo[9-11]. The input supply of these
28 sd[0-6], ldo[0-7], ldo[9-11].
Dti-abb-regulator.txt48 - "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.
118 "efuse-address", "ldo-address";
/kernel/linux/linux-5.10/arch/arm64/boot/dts/allwinner/
Daxp803.dtsi29 gpio0_ldo: gpio0-ldo {
31 function = "ldo";
34 gpio1_ldo: gpio1-ldo {
36 function = "ldo";
126 reg_ldo_io0: ldo-io0 {
127 regulator-name = "ldo-io0";
131 reg_ldo_io1: ldo-io1 {
132 regulator-name = "ldo-io1";
136 reg_rtc_ldo: rtc-ldo {
141 regulator-name = "rtc-ldo";
/kernel/linux/linux-5.10/arch/parisc/lib/
Dlusercopy.S64 ldo 1(%r25),%r25
93 ldo 1(%r26),%r26 /* special case for N == 0 */
184 ldo -1(len),len
196 ldo 16(src),src
201 ldo 16(src),src
215 ldo -32(len),len
222 ldo -4(len),len
236 ldo -1(len),len
251 ldo 16(src),src
265 ldo -16(len),len
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/mediatek/
Dmt6380.dtsi41 mt6380_vm_reg: ldo-vm {
50 mt6380_va_reg: ldo-va {
59 mt6380_vphy_reg: ldo-vphy {
68 mt6380_vddr_reg: ldo-vddr {
77 mt6380_vt_reg: ldo-vt {
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Daxp81x.dtsi66 gpio0_ldo: gpio0-ldo {
68 function = "ldo";
71 gpio1_ldo: gpio1-ldo {
73 function = "ldo";
146 reg_ldo_io0: ldo-io0 {
153 reg_ldo_io1: ldo-io1 {
160 reg_rtc_ldo: rtc-ldo {
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/gpio/
Dgpio-axp209.txt66 GPIO0 | gpio_in, gpio_out, ldo, adc
67 GPIO1 | gpio_in, gpio_out, ldo, adc
74 GPIO0 | gpio_in, gpio_out, ldo, adc
75 GPIO1 | gpio_in, gpio_out, ldo
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dcs35l33.txt61 - cirrus,ldo-thld : Configures the signal threshold at which the PWM output
66 - cirrus,ldo-path-disable : This is a boolean property. If present, the H/G
70 - cirrus,ldo-entry-delay : The LDO entry delay in milliseconds before the H/G
116 cirrus,ldo-thld = <0x1>;
117 cirrus,ldo-path-disable = <0x0>;
118 cirrus,ldo-entry-delay=<0x4>;
/kernel/linux/linux-5.10/drivers/ssb/
Ddriver_chipcommon_pmu.c593 int ldo; in ssb_pmu_set_ldo_paref() local
597 ldo = SSB_PMURES_4312_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
600 ldo = SSB_PMURES_4328_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
603 ldo = SSB_PMURES_5354_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
610 chipco_set32(cc, SSB_CHIPCO_PMU_MINRES_MSK, 1 << ldo); in ssb_pmu_set_ldo_paref()
612 chipco_mask32(cc, SSB_CHIPCO_PMU_MINRES_MSK, ~(1 << ldo)); in ssb_pmu_set_ldo_paref()

123