Home
last modified time | relevance | path

Searched +full:ldo +full:- (Results 1 – 25 of 625) sorted by relevance

12345678910>>...25

/kernel/linux/linux-6.6/drivers/regulator/
Dwm831x-ldo.c1 // SPDX-License-Identifier: GPL-2.0+
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()
[all …]
Dqcom-rpmh-regulator.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
17 #include <soc/qcom/cmd-db.h>
20 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
23 * enum rpmh_regulator_type - supported RPMh accelerator types
25 * and mode of LDO, SMPS, and BOB type PMIC regulators.
67 * struct rpmh_vreg_hw_data - RPMh regulator hardware configurations
77 * for LDO hardware type regulators only.
96 * struct rpmh_vreg - individual RPMh regulator data structure encapsulating a
98 * @dev: Device pointer for the top-level PMIC RPMh
[all …]
Dwm8994-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 // wm8994-regulator.c -- Regulator driver for the WM8994
44 struct wm8994_ldo *ldo = rdev_get_drvdata(rdev); in wm8994_ldo2_list_voltage() local
47 return -EINVAL; in wm8994_ldo2_list_voltage()
49 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage()
57 return -EINVAL; in wm8994_ldo2_list_voltage()
63 return -EINVAL; in wm8994_ldo2_list_voltage()
151 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_ldo_probe()
152 struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); in wm8994_ldo_probe()
153 int id = pdev->id % ARRAY_SIZE(pdata->ldo); in wm8994_ldo_probe()
[all …]
Dmt6357-regulator.c1 // SPDX-License-Identifier: GPL-2.0
9 // Based on mt6397-regulator.c
20 #include <linux/regulator/mt6357-regulator.h>
47 .n_voltages = ((max) - (min)) / (step) + 1, \
90 .n_voltages = ((max) - (min)) / (step) + 1, \
120 * mt6357_get_buck_voltage_sel - get_voltage_sel for regmap users
133 ret = regmap_read(rdev->regmap, info->da_vsel_reg, &regval); in mt6357_get_buck_voltage_sel()
135 dev_err(&rdev->dev, in mt6357_get_buck_voltage_sel()
137 info->desc.name, ret); in mt6357_get_buck_voltage_sel()
141 regval &= info->da_vsel_mask; in mt6357_get_buck_voltage_sel()
[all …]
Dlp8788-ldo.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
160 return -EINVAL; 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()
[all …]
/kernel/linux/linux-5.10/drivers/regulator/
Dwm831x-ldo.c1 // SPDX-License-Identifier: GPL-2.0+
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()
[all …]
Dwm8994-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 // wm8994-regulator.c -- Regulator driver for the WM8994
44 struct wm8994_ldo *ldo = rdev_get_drvdata(rdev); in wm8994_ldo2_list_voltage() local
47 return -EINVAL; in wm8994_ldo2_list_voltage()
49 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage()
57 return -EINVAL; in wm8994_ldo2_list_voltage()
63 return -EINVAL; in wm8994_ldo2_list_voltage()
151 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_ldo_probe()
152 struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); in wm8994_ldo_probe()
153 int id = pdev->id % ARRAY_SIZE(pdata->ldo); in wm8994_ldo_probe()
[all …]
Dqcom-rpmh-regulator.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
18 #include <soc/qcom/cmd-db.h>
21 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
24 * enum rpmh_regulator_type - supported RPMh accelerator types
26 * and mode of LDO, SMPS, and BOB type PMIC regulators.
68 * struct rpmh_vreg_hw_data - RPMh regulator hardware configurations
78 * for LDO hardware type regulators only.
97 * struct rpmh_vreg - individual RPMh regulator data structure encapsulating a
99 * @dev: Device pointer for the top-level PMIC RPMh
[all …]
Dlp8788-ldo.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
160 return -EINVAL; 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()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/
Dtwl-regulator.txt5 - compatible:
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
[all …]
Dmax8925-regulator.txt4 -nodes:
5 - SDV1 for SDV SDV1
6 - SDV2 for SDV SDV2
7 - SDV3 for SDV SDV3
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
[all …]
Dmt6380-regulator.txt5 to its regulator type, buck-<name> and ldo-<name>. The definition for each
11 buck-core1, buck-vcore, buck-vrf
12 LDO:
13 ldo-vm ,ldo-va , ldo-vphy, ldo-vddr, ldo-vt
18 compatible = "mediatek,mt6380-regulator";
20 mt6380_vcpu_reg: buck-vcore1 {
21 regulator-name = "vcore1";
22 regulator-min-microvolt = < 600000>;
23 regulator-max-microvolt = <1393750>;
24 regulator-ramp-delay = <6250>;
[all …]
Dti-abb-regulator.txt1 Adaptive Body Bias(ABB) SoC internal LDO regulator for Texas Instruments SoCs
4 - compatible: Should be one of:
5 - "ti,abb-v1" for older SoCs like OMAP3
6 - "ti,abb-v2" for newer SoCs like OMAP4, OMAP5
7 - "ti,abb-v3" for a generic definition where setup and control registers are
9 - reg: Address and length of the register set for the device. It contains
10 the information of registers in the same order as described by reg-names
11 - reg-names: Should contain the reg names
12 - "base-address" - contains base address of ABB module (ti,abb-v1,ti,abb-v2)
13 - "control-address" - contains control register address of ABB module (ti,abb-v3)
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/regulator/
Dtwl-regulator.txt5 - compatible:
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
[all …]
Dmax8925-regulator.txt4 -nodes:
5 - SDV1 for SDV SDV1
6 - SDV2 for SDV SDV2
7 - SDV3 for SDV SDV3
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
[all …]
Dmediatek,mt6331-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6331-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
13 The MT6331 PMIC provides 6 BUCK and 21 LDO (Low Dropout) regulators
15 buck-<name> and ldo-<name>.
19 "^buck-v(core2|io18|dvfs11|dvfs12|dvfs13|dvfs14)$":
24 regulator-name:
29 "^ldo-v(avdd32aud|auxa32)$":
[all …]
Dmediatek,mt6357-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6357-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen Zhong <chen.zhong@mediatek.com>
11 - Fabien Parent <fabien.parent@linaro.org>
12 - Alexandre Mergnat <amergnat@baylibre.com>
15 The MT6357 PMIC provides 5 BUCK and 29 LDO.
17 - buck-<name>
18 - ldo-<name>.
[all …]
Dmt6380-regulator.txt5 to its regulator type, buck-<name> and ldo-<name>. The definition for each
11 buck-core1, buck-vcore, buck-vrf
12 LDO:
13 ldo-vm ,ldo-va , ldo-vphy, ldo-vddr, ldo-vt
18 compatible = "mediatek,mt6380-regulator";
20 mt6380_vcpu_reg: buck-vcore1 {
21 regulator-name = "vcore1";
22 regulator-min-microvolt = < 600000>;
23 regulator-max-microvolt = <1393750>;
24 regulator-ramp-delay = <6250>;
[all …]
Dti-abb-regulator.txt1 Adaptive Body Bias(ABB) SoC internal LDO regulator for Texas Instruments SoCs
4 - compatible: Should be one of:
5 - "ti,abb-v1" for older SoCs like OMAP3
6 - "ti,abb-v2" for newer SoCs like OMAP4, OMAP5
7 - "ti,abb-v3" for a generic definition where setup and control registers are
9 - reg: Address and length of the register set for the device. It contains
10 the information of registers in the same order as described by reg-names
11 - reg-names: Should contain the reg names
12 - "base-address" - contains base address of ABB module (ti,abb-v1,ti,abb-v2)
13 - "control-address" - contains control register address of ABB module (ti,abb-v3)
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Daxp20x.txt4 axp152 (X-Powers)
5 axp202 (X-Powers)
6 axp209 (X-Powers)
7 axp221 (X-Powers)
8 axp223 (X-Powers)
9 axp803 (X-Powers)
10 axp806 (X-Powers)
11 axp809 (X-Powers)
12 axp813 (X-Powers)
20 - compatible: should be one of:
[all …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/mediatek/
Dmt6357.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 #include <dt-bindings/input/input.h>
14 mt6357_vproc_reg: buck-vproc {
15 regulator-name = "vproc";
16 regulator-min-microvolt = <518750>;
17 regulator-max-microvolt = <1312500>;
18 regulator-ramp-delay = <6250>;
19 regulator-enable-ramp-delay = <220>;
20 regulator-always-on;
23 mt6357_vcore_reg: buck-vcore {
[all …]
Dmt6331.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
6 #include <dt-bindings/input/input.h>
11 interrupt-controller;
12 #interrupt-cells = <2>;
15 compatible = "mediatek,mt6331-regulator";
17 mt6331_vdvfs11_reg: buck-vdvfs11 {
18 regulator-name = "vdvfs11";
19 regulator-min-microvolt = <700000>;
20 regulator-max-microvolt = <1493750>;
21 regulator-ramp-delay = <12500>;
[all …]
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dhpmc.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Copyright (C) 1999 Hewlett-Packard (Frank Rowand)
7 * Copyright (C) 2000 Hewlett-Packard (John Marvin)
120 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 */
153 stw %r4,-52(sp)
157 ldo R%PA(os_hpmc_2)(rp), rp
164 ldo PDC_IO(%r0),arg0
[all …]
/kernel/linux/linux-6.6/arch/parisc/kernel/
Dhpmc.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Copyright (C) 1999 Hewlett-Packard (Frank Rowand)
7 * Copyright (C) 2000 Hewlett-Packard (John Marvin)
47 #define hpmc_stack toc_stack /* re-use the TOC stack */
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 */
151 stw %r4,-52(sp)
155 ldo R%PA(os_hpmc_2)(rp), rp
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/allwinner/
Daxp803.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
10 interrupt-controller;
11 #interrupt-cells = <1>;
13 ac_power_supply: ac-power-supply {
14 compatible = "x-powers,axp803-ac-power-supply",
15 "x-powers,axp813-ac-power-supply";
20 compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
21 #io-channel-cells = <1>;
25 compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio";
26 gpio-controller;
[all …]

12345678910>>...25