/openbmc/linux/drivers/regulator/ |
H A D | lp8788-buck.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8788 MFD - buck regulator driver 94 /* BUCK 1 ~ 4 voltage ranges */ 100 static void lp8788_buck1_set_dvs(struct lp8788_buck *buck) in lp8788_buck1_set_dvs() argument 102 struct lp8788_buck1_dvs *dvs = (struct lp8788_buck1_dvs *)buck->dvs; in lp8788_buck1_set_dvs() 108 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs() 109 if (gpio_is_valid(dvs->gpio)) in lp8788_buck1_set_dvs() 110 gpio_set_value(dvs->gpio, pinstate); in lp8788_buck1_set_dvs() 113 static void lp8788_buck2_set_dvs(struct lp8788_buck *buck) in lp8788_buck2_set_dvs() argument 115 struct lp8788_buck2_dvs *dvs = (struct lp8788_buck2_dvs *)buck->dvs; in lp8788_buck2_set_dvs() [all …]
|
H A D | rtq2208-regulator.c | 1 // 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 D | lp3971.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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 81 LP3971_LDO5 -> LP3971_LDO_VOL_CONTR_BASE + 2 86 LP3971_LDO1 -> 0, LP3971_LDO2 -> 4 [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 38 managed regulators and simple non-configurable regulators. 65 They provide two I2C-controlled DC/DC step-down converters with 85 tristate "Active-semi act8865 voltage regulator" 90 This driver controls a active-semi act8865 voltage output 94 tristate "Active-semi ACT8945A voltage regulator" 97 This driver controls a active-semi ACT8945A voltage regulator 98 via I2C bus. The ACT8945A features three step-down DC/DC converters 99 and four low-dropout linear regulators, along with a ActivePath 110 tristate "Freescale i.MX on-chip ANATOP LDO regulators" [all …]
|
H A D | lp3972.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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() 197 mutex_unlock(&lp3972->io_lock); in lp3972_reg_read() [all …]
|
/openbmc/openbmc/meta-security/recipes-scanners/buck-security/ |
H A D | buck-security_0.7.bb | 2 DESCRIPTION = "Buck-Security is a security scanner for Debian and Ubuntu Linux. It runs a couple of… 5 LICENSE = "GPL-2.0-only" 6 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" 8 SRC_URI = "http://sourceforge.net/projects/buck-security/files/buck-security/buck-security_${PV}/${… 19 install -d ${D}${bindir}/buck 20 cp -r ${S}/* ${D}${bindir}/buck 21 cp -r ${S}/buck-security ${D}${bindir} 22 …sed -i 's!use lib "checks"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "bu… 23 …sed -i 's!use lib "checks/lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)),… 24 …sed -i 's!use lib "lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "buck/… [all …]
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | s2mps11_regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 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 85 switch (buck) { in s2mps11_buck_volt2hex() [all …]
|
H A D | max77686.c | 1 // 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 D | rk8xx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 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() 104 int mask = info->vsel_mask; in _buck_set_value() 107 if (info->vsel_reg == -1) in _buck_set_value() 108 return -ENOSYS; in _buck_set_value() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | mps,mpq7920.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Saravanan Sekar <sravanhome@gmail.com> 14 pattern: "pmic@[0-9a-f]{1,2}" 17 - mps,mpq7920 27 after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5] 30 mps,switch-freq: 44 "^ldo[1-4]$": 49 "^buck[1-4]$": [all …]
|
H A D | richtek,rtq2208.yaml | 1 # 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 …]
|
H A D | mt6380-regulator.txt | 5 to its regulator type, buck-<name> and ldo-<name>. The definition for each 10 BUCK: 11 buck-core1, buck-vcore, buck-vrf 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 …]
|
H A D | mediatek,mt6332-regulator.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6332-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 13 The MT6332 Companion PMIC provides 6 BUCK and 4 LDO (Low Dropout) 15 buck-<name> and ldo-<name>. 19 "^buck-v(dram|dvfs2|pa|rf18a|rf18b|sbst)$": 24 regulator-name: 29 "^ldo-v(bif28|dig18|sram|usb33)$": [all …]
|
H A D | samsung,s2mpa01.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 16 The S2MPA01 provides buck and LDO regulators. 23 "^LDO([1-9]|1[0-9]|2[0-6])$": 31 - regulator-name 34 "^BUCK([1-9]|10)$": 39 Properties for single BUCK regulator. 42 regulator-ramp-delay: [all …]
|
H A D | maxim,max77686.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chanwoo Choi <cw00.choi@samsung.com> 11 - Krzysztof Kozlowski <krzk@kernel.org> 17 The Maxim MAX77686 provides high-efficiency Buck and 26 Low-DropOut (LDO) 25 "^LDO([1-9]|1[0-9]|2[3-6])$": 32 LDO2, LDO6-8, LDO10-12, LDO14-16 35 - regulator-name 37 # LDO20-LDO22 with maxim,ena-gpios [all …]
|
H A D | adi,max77541-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/regulator/adi,max77541-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Buck Converter for MAX77540/MAX77541 10 - Okan Sahin <okan.sahin@analog.com> 15 The buck converter is represented as a sub-node of the PMIC node on the device tree. 17 The device has two buck regulators. 22 "^buck[12]$": 27 Buck regulator. [all …]
|
H A D | dlg,da9121.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Adam Ward <Adam.Ward.opensource@diasemi.com> 13 Dialog Semiconductor DA9121 Single-channel 10A double-phase buck converter 14 Dialog Semiconductor DA9122 Double-channel 5A single-phase buck converter 15 Dialog Semiconductor DA9220 Double-channel 3A single-phase buck converter 16 Dialog Semiconductor DA9217 Single-channel 6A double-phase buck converter 17 Dialog Semiconductor DA9130 Single-channel 10A double-phase buck converter 18 Dialog Semiconductor DA9131 Double-channel 5A single-phase buck converter [all …]
|
H A D | richtek,rt5739.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Richtek RT5739 Step-Down Buck Converter 10 - ChiYuan Huang <cy_huang@richtek.com> 13 The RT5739 is a step-down switching buck converter that can deliver the 19 - $ref: regulator.yaml# 24 - richtek,rt5733 25 - richtek,rt5739 30 enable-gpios: [all …]
|
H A D | onnn,fan53880.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Christoph Fritz <chf.fritz@googlemail.com> 14 that contains a BUCK (step-down converter), four low dropouts (LDO) 15 and one BOOST (step-up converter) output. It is designed for mobile 20 pattern: "pmic@[0-9a-f]{1,2}" 23 - onnn,fan53880 28 VIN12-supply: 31 VIN3-supply: [all …]
|
H A D | samsung,s5m8767.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 16 The S5M8767 provides buck and LDO regulators. 23 "^LDO([1-9]|1[0-9]|2[0-8])$": 38 0 - always off mode 39 1 - on in normal mode 40 2 - low power mode 41 3 - suspend mode [all …]
|
/openbmc/linux/include/linux/regulator/ |
H A D | da9121.h | 1 /* 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)
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | qcom,wcd9335.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 13 Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC with in-built 27 clock-names: 29 - const: mclk 30 - const: slimbus 35 interrupt-names: 37 - const: intr1 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | samsung,s5m8767.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 17 and current regulators, RTC, clock outputs and other sub-blocks. 21 const: samsung,s5m8767-pmic 39 s5m8767,pmic-buck2-dvs-voltage: 40 $ref: /schemas/types.yaml#/definitions/uint32-array 44 A set of 8 voltage values in micro-volt (uV) units for buck2 when 47 s5m8767,pmic-buck3-dvs-voltage: [all …]
|
H A D | max8998.txt | 1 * Maxim MAX8998, National/TI LP3974 multi-function device 3 The Maxim MAX8998 is a multi-function device which includes voltage/current 5 other sub-blocks. It is interfaced using an I2C interface. Each sub-block 8 PMIC sub-block 9 -------------- 11 The PMIC sub-block contains a number of voltage and current regulators, 17 - compatible: Should be one of the following: 18 - "maxim,max8998" for Maxim MAX8998 19 - "national,lp3974" or "ti,lp3974" for National/TI LP3974. 20 - reg: Specifies the i2c slave address of the pmic block. It should be 0x66. [all …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | mpq7932.c | 1 // 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 …]
|