Home
last modified time | relevance | path

Searched +full:buck +full:- +full:c (Results 1 – 25 of 156) sorted by relevance

1234567

/openbmc/linux/include/linux/regulator/
H A Dda9121.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * DA9121 Single-channel dual-phase 10A buck converter
4 * DA9130 Single-channel dual-phase 10A buck converter (Automotive)
5 * DA9217 Single-channel dual-phase 6A buck converter
6 * DA9122 Dual-channel single-phase 5A buck converter
7 * DA9131 Dual-channel single-phase 5A buck converter (Automotive)
8 * DA9220 Dual-channel single-phase 3A buck converter
9 * DA9132 Dual-channel single-phase 3A buck converter (Automotive)
11 * Copyright (C) 2020 Dialog Semiconductor
H A Dda9211.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * da9211.h - Regulator device driver for DA9211/DA9212
5 * Copyright (C) 2015 Dialog Semiconductor Ltd.
30 * Number of buck
31 * 1 : 4 phase 1 buck
32 * 2 : 2 phase 2 buck
/openbmc/u-boot/drivers/power/regulator/
H A Drk8xx.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Google, Inc
6 * Based on Rockchip's drivers/power/pmic/pmic_rk808.c:
7 * Copyright (C) 2012 rockchips
8 * zyw <zyw@rock-chips.com>
46 { 712500, 12500, -1, RK808_BUCK_VSEL_MASK, },
53 { 712500, 12500, -1, RK818_BUCK_VSEL_MASK, },
93 switch (priv->variant) { in get_buck_reg()
101 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
103 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck - 1); in _buck_set_value()
[all …]
H A Ds2mps11_regulator.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Samsung Electronics
22 /* BUCK : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 */
44 static int s2mps11_buck_hex2volt(int buck, int hex) in s2mps11_buck_hex2volt() argument
51 switch (buck) { in s2mps11_buck_hex2volt()
66 if (buck == 5 && hex > S2MPS11_BUCK5_VOLT_MAX_HEX) in s2mps11_buck_hex2volt()
68 else if (buck != 5 && hex > S2MPS11_BUCK_VOLT_MAX_HEX) in s2mps11_buck_hex2volt()
77 pr_err("Value: %#x is wrong for BUCK%d", hex, buck); in s2mps11_buck_hex2volt()
78 return -EINVAL; in s2mps11_buck_hex2volt()
81 static int s2mps11_buck_volt2hex(int buck, int uV) in s2mps11_buck_volt2hex() argument
[all …]
H A Dmax77686.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2012-2015 Samsung Electronics
40 /* Buck: 1 */
47 /* Buck: 2,3,4 */
55 /* Buck: 5,6,7,8,9 */
69 static int max77686_buck_volt2hex(int buck, int uV) in max77686_buck_volt2hex() argument
74 switch (buck) { in max77686_buck_volt2hex()
78 /* hex = (uV - 600000) / 12500; */ in max77686_buck_volt2hex()
79 hex = (uV - MAX77686_BUCK_UV_LMIN) / MAX77686_BUCK_UV_LSTEP; in max77686_buck_volt2hex()
84 * hex = (uV - 750000) / 50000. We assume that dynamic voltage in max77686_buck_volt2hex()
[all …]
H A Ds5m8767.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Google, Inc
47 * | voltage ----| | enable -| voltage
102 ret = pmic_reg_read(dev->parent, param->vol_addr); in reg_get_value()
106 desc = param->vol; in reg_get_value()
107 val = (ret >> param->vol_bitpos) & param->vol_bitmask; in reg_get_value()
108 uv = desc->min + val * desc->step; in reg_get_value()
119 desc = param->vol; in reg_set_value()
120 if (uv < desc->min || uv > desc->max) in reg_set_value()
121 return -EINVAL; in reg_set_value()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Drichtek,rtq2208.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alina Yu <alina_yu@richtek.com>
14 multi-configurable synchronous buck converters and two LDOs.
16 Bucks support "regulator-allowed-modes" and "regulator-mode". The former defines the permitted
20 operation modes for all buck rails, automatic power saving mode (Auto mode) and forced continuous
25 0 - Auto mode for power saving, which reducing the switching frequency at light load condition
27 …1 - FCCM to meet the strict voltage regulation accuracy, which keeping constant switching frequenc…
35 - richtek,rtq2208
[all …]
/openbmc/linux/drivers/regulator/
H A Drtq2208-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
95 (const struct rtq2208_regulator_desc *)rdev->desc; in rtq2208_set_mode()
106 return -EINVAL; in rtq2208_set_mode()
109 shift = ffs(rdesc->mode_mask) - 1; in rtq2208_set_mode()
110 return regmap_update_bits(rdev->regmap, rdesc->mode_reg, in rtq2208_set_mode()
111 rdesc->mode_mask, val << shift); in rtq2208_set_mode()
117 (const struct rtq2208_regulator_desc *)rdev->desc; in rtq2208_get_mode()
121 ret = regmap_read(rdev->regmap, rdesc->mode_reg, &mode_val); in rtq2208_get_mode()
125 return (mode_val & rdesc->mode_mask) ? REGULATOR_MODE_FAST : REGULATOR_MODE_NORMAL; in rtq2208_get_mode()
130 const struct regulator_desc *desc = rdev->desc; in rtq2208_set_ramp_delay()
[all …]
H A Dlp3971.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2009 Samsung Electronics
8 * Based on wm8350.c
40 LP3971_BUCK1 -> 0
41 LP3971_BUCK2 -> 4
42 LP3971_BUCK3 -> 6
77 LP3971_LDO1 -> LP3971_LDO_VOL_CONTR_BASE + 0
78 LP3971_LDO2 -> LP3971_LDO_VOL_CONTR_BASE + 0
79 LP3971_LDO3 -> LP3971_LDO_VOL_CONTR_BASE + 1
80 LP3971_LDO4 -> LP3971_LDO_VOL_CONTR_BASE + 1
[all …]
H A Dmt6332-regulator.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2022 Collabora Ltd.
6 // Based on mt6323-regulator.c,
7 // Copyright (c) 2016 MediaTek Inc.
18 #include <linux/regulator/mt6332-regulator.h>
30 * @vselctrl_reg: Register for controlling the buck control mode.
31 * @vselctrl_mask: Mask for query buck's voltage control mode.
57 .n_voltages = (max - min)/step + 1, \
83 .n_voltages = (max - min)/step + 1, \
188 if (info->qi > 0) { in mt6332_get_status()
[all …]
H A Dda9121-regulator.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * DA9121 Single-channel dual-phase 10A buck converter
4 * DA9130 Single-channel dual-phase 10A buck converter (Automotive)
5 * DA9217 Single-channel dual-phase 6A buck converter
6 * DA9122 Dual-channel single-phase 5A buck converter
7 * DA9131 Dual-channel single-phase 5A buck converter (Automotive)
8 * DA9220 Dual-channel single-phase 3A buck converter
9 * DA9132 Dual-channel single-phase 3A buck converter (Automotive)
11 * Copyright (C) 2020 Dialog Semiconductor
23 #include <dt-bindings/regulator/dlg,da9121-regulator.h>
H A Dmax77686-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77686.c - Regulator driver for the Maxim 77686
5 // Copyright (C) 2012 Samsung Electronics
9 // This driver is based on max8997.c
21 #include <linux/mfd/max77686-private.h>
37 * Value for configuring buck[89] and LDO{20,21,22} as GPIO control.
43 * Forcing low power mode: LDO1, 3-5, 9, 13, 17-26
48 * - LDO2, 6-8, 10-12, 14-16
49 * - buck[1234]
54 /* Forcing low power mode: buck[234] */
[all …]
H A Dmt6357-regulator.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2022 MediaTek Inc.
4 // Copyright (c) 2022 BayLibre, SAS.
9 // Based on mt6397-regulator.c
20 #include <linux/regulator/mt6357-regulator.h>
27 * @da_vsel_reg: Monitor register for query buck's voltage.
28 * @da_vsel_mask: Mask for query buck's voltage.
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
[all …]
H A Dlp3972.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Based on lp3971.c
147 LP3972_LDO1 -> 0, LP3972_LDO2 -> 4
148 LP3972_LDO3 -> 0, LP3972_LDO4 -> 4
149 LP3972_LDO5 -> 0
169 return -EIO; in lp3972_i2c_read()
182 return -EIO; in lp3972_i2c_write()
190 mutex_lock(&lp3972->io_lock); in lp3972_reg_read()
192 lp3972_i2c_read(lp3972->i2c, reg, 1, &val); in lp3972_reg_read()
194 dev_dbg(lp3972->dev, "reg read 0x%02x -> 0x%02x\n", (int)reg, in lp3972_reg_read()
[all …]
H A Dmax77802-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77802.c - Regulator driver for the Maxim 77802
5 // Copyright (C) 2013-2014 Google, Inc
8 // Copyright (C) 2012 Samsung Electronics
12 // This driver is based on max8997.c
24 #include <linux/mfd/max77686-private.h>
25 #include <dt-bindings/regulator/maxim,max77802.h>
83 return -EINVAL; in max77802_get_opmode_shift()
87 * max77802_set_suspend_disable - Disable the regulator during system suspend
100 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_suspend_disable()
[all …]
H A Dmt6331-regulator.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2022 Collabora Ltd.
6 // Based on mt6323-regulator.c,
7 // Copyright (c) 2016 MediaTek Inc.
18 #include <linux/regulator/mt6331-regulator.h>
30 * @vselctrl_reg: Register for controlling the buck control mode.
31 * @vselctrl_mask: Mask for query buck's voltage control mode.
57 .n_voltages = (max - min)/step + 1, \
212 ret = regmap_read(rdev->regmap, info->desc.enable_reg, &regval); in mt6331_get_status()
214 dev_err(&rdev->dev, "Failed to get enable reg: %d\n", ret); in mt6331_get_status()
[all …]
H A Dmax77541-regulator.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2022 Analog Devices, Inc.
57 .name = "buck"#_id, \
58 .of_match = "buck"#_id, \
76 .name = "buck"#_id, \
77 .of_match = "buck"#_id, \
107 struct device *dev = &pdev->dev; in max77541_regulator_probe()
109 struct max77541 *max77541 = dev_get_drvdata(dev->parent); in max77541_regulator_probe()
112 config.dev = dev->parent; in max77541_regulator_probe()
114 switch (max77541->id) { in max77541_regulator_probe()
[all …]
/openbmc/linux/drivers/hwmon/pmbus/
H A Dmpq7932.c1 // SPDX-License-Identifier: GPL-2.0+
3 * mpq7932.c - hwmon with optional regulator driver for mps mpq7932
38 PMBUS_REGULATOR_STEP("buck", 0, MPQ7932_N_VOLTAGES,
40 PMBUS_REGULATOR_STEP("buck", 1, MPQ7932_N_VOLTAGES,
42 PMBUS_REGULATOR_STEP("buck", 2, MPQ7932_N_VOLTAGES,
44 PMBUS_REGULATOR_STEP("buck", 3, MPQ7932_N_VOLTAGES,
46 PMBUS_REGULATOR_STEP("buck", 4, MPQ7932_N_VOLTAGES,
48 PMBUS_REGULATOR_STEP("buck", 5, MPQ7932_N_VOLTAGES,
59 * access results -EREMOTEIO in mpq7932_write_word_data()
65 return -ENODATA; in mpq7932_write_word_data()
[all …]
/openbmc/u-boot/drivers/power/pmic/
H A DKconfig4 ---help---
5 This config enables the driver-model PMIC support.
6 UCLASS_PMIC - designed to provide an I/O interface for PMIC devices.
7 For the multi-function PMIC devices, this can be used as parent I/O
10 - 'drivers/power/pmic/pmic-uclass.c'
11 - 'include/power/pmic.h'
17 ---help---
21 U-Boot proper.
27 ---help---
31 to call your regulator code (e.g. see rk8xx.c for direct functions
[all …]
/openbmc/u-boot/include/power/
H A Ds5m8767.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2015 Google, Inc
59 * struct s5m8767_para - s5m8767 register parameters
60 * @param vol_addr i2c address of the given buck/ldo register
64 * given buck/ldo.
65 * @param reg_enbiton value to be written to buck/ldo to make it ON
H A Dmax77686_pmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2012 Samsung Electronics
160 int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV);
161 int max77686_set_buck_mode(struct pmic *p, int buck, char opmode);
184 /* For regulator hex<->volt conversion */
188 #define MAX77686_BUCK_UV_LMIN 600000 /* Lower minimun BUCK value */
189 #define MAX77686_BUCK_UV_HMIN 750000 /* Higher minimun BUCK value */
H A Dsandbox_pmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Samsung Electronics
13 #define SANDBOX_OF_BUCK_PREFIX "buck"
50 /* Buck operation modes */
97 /* register <-> value conversion */
99 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
101 /* Operation mode id -> register value conversion */
104 /* Test data for: test/dm/power.c */
106 /* BUCK names */
122 * - regulator_autoset_by_name()
[all …]
/openbmc/openbmc/meta-security/docs/
H A Doverview.txt1 Meta-security Docs
17 bastille -c --os Yocto
27 bastille -l lists the configuration files that Bastille
41 Alternatives to Bastille include buck-security and checksecurity,
45 == redhat-security ==
51- rpm-chksec.sh : This will take an rpm name as input and verify each ELF file to see if its compi…
53 … It has a mode --all that is the equivalent of using rpm -qa and feeding the packages to it.
55 re-run using just the package name.
57 …!!! WARNING !!! - in order to use this script you need to add to your conf/local.conf file the fol…
58 IMAGE_ROOTFS_EXTRA_SPACE = "" - specifying the extra space of the image
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dstm32mp15xx-dhcor-io1v8.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
5 * Copyright (C) 2020 Marek Vasut <marex@denx.de>
10 vdd_io: regulator-buck-io {
11 compatible = "regulator-fixed";
12 regulator-name = "buck-io";
13 regulator-min-microvolt = <1800000>;
14 regulator-max-microvolt = <1800000>;
15 regulator-always-on;
16 regulator-boot-on;
[all …]
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt6380.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2018 MediaTek Inc.
12 compatible = "mediatek,mt6380-regulator";
14 mt6380_vcpu_reg: buck-vcore1 {
15 regulator-name = "vcore1";
16 regulator-min-microvolt = < 600000>;
17 regulator-max-microvolt = <1393750>;
18 regulator-ramp-delay = <6250>;
19 regulator-always-on;
20 regulator-boot-on;
[all …]

1234567