/openbmc/linux/drivers/regulator/ |
H A D | wm831x-dcdc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // wm831x-dcdc.c -- DC-DC buck converter driver for the WM831x series 62 struct wm831x_dcdc *dcdc = rdev_get_drvdata(rdev); in wm831x_dcdc_get_mode() local 63 struct wm831x *wm831x = dcdc->wm831x; in wm831x_dcdc_get_mode() 64 u16 reg = dcdc->base + WM831X_DCDC_ON_CONFIG; in wm831x_dcdc_get_mode() local 67 val = wm831x_reg_read(wm831x, reg); in wm831x_dcdc_get_mode() 84 return -EINVAL; in wm831x_dcdc_get_mode() 88 static int wm831x_dcdc_set_mode_int(struct wm831x *wm831x, int reg, in wm831x_dcdc_set_mode_int() argument 107 return -EINVAL; in wm831x_dcdc_set_mode_int() 110 return wm831x_set_bits(wm831x, reg, WM831X_DC1_ON_MODE_MASK, in wm831x_dcdc_set_mode_int() [all …]
|
H A D | wm8350-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // wm8350.c -- Voltage and current regulation for the Wolfson WM8350 PMIC 93 /* turn on ISINK followed by DCDC */ 101 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_enable() 109 1 << (wm8350->pmic.isink_A_dcdc - in wm8350_isink_enable() 113 return -EINVAL; in wm8350_isink_enable() 117 switch (wm8350->pmic.isink_B_dcdc) { in wm8350_isink_enable() 125 1 << (wm8350->pmic.isink_B_dcdc - in wm8350_isink_enable() 129 return -EINVAL; in wm8350_isink_enable() 133 return -EINVAL; in wm8350_isink_enable() [all …]
|
H A D | ltc3676.c | 1 // SPDX-License-Identifier: GPL-2.0-only 76 struct device *dev = ltc3676->dev; in ltc3676_set_suspend_voltage() 77 int dcdc = rdev_get_id(rdev); in ltc3676_set_suspend_voltage() local 80 dev_dbg(dev, "%s id=%d uV=%d\n", __func__, dcdc, uV); in ltc3676_set_suspend_voltage() 86 return regmap_update_bits(ltc3676->regmap, rdev->desc->vsel_reg + 1, in ltc3676_set_suspend_voltage() 87 rdev->desc->vsel_mask, sel); in ltc3676_set_suspend_voltage() 94 struct device *dev = ltc3676->dev; in ltc3676_set_suspend_mode() 96 int dcdc = rdev_get_id(rdev); in ltc3676_set_suspend_mode() local 98 dev_dbg(dev, "%s id=%d mode=%d\n", __func__, dcdc, mode); in ltc3676_set_suspend_mode() 109 dev_warn(&rdev->dev, "%s: regulator mode: 0x%x not supported\n", in ltc3676_set_suspend_mode() [all …]
|
H A D | rn5t618-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #define REG(rid, ereg, emask, vreg, vmask, min, max, step) \ macro 34 .n_voltages = ((max) - (min)) / (step) + 1, \ 44 /* DCDC */ 45 REG(DCDC1, DC1CTL, BIT(0), DC1DAC, 0xff, 600000, 3500000, 12500), 46 REG(DCDC2, DC2CTL, BIT(0), DC2DAC, 0xff, 600000, 3500000, 12500), 47 REG(DCDC3, DC3CTL, BIT(0), DC3DAC, 0xff, 600000, 3500000, 12500), 48 REG(DCDC4, DC4CTL, BIT(0), DC4DAC, 0xff, 600000, 3500000, 12500), 50 REG(LDO1, LDOEN1, BIT(0), LDO1DAC, 0x7f, 900000, 3500000, 25000), 51 REG(LDO2, LDOEN1, BIT(1), LDO2DAC, 0x7f, 900000, 3500000, 25000), [all …]
|
H A D | bcm590xx-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 73 /* DCDC regulator IDs */ 118 /* DCDC group CSR: supported voltages in microvolts */ 125 /* DCDC group IOSR1: supported voltages in microvolts */ 133 /* DCDC group SDSR1: supported voltages in microvolts */ 206 return BCM590XX_CSRVOUT1 + (id - BCM590XX_REG_CSR) * 3; in bcm590xx_get_vsel_register() 211 int reg = 0; in bcm590xx_get_enable_register() local 214 reg = BCM590XX_RFLDOPMCTRL1 + id * 2; in bcm590xx_get_enable_register() 216 reg = BCM590XX_GPLDO1PMCTRL1 + id * 2; in bcm590xx_get_enable_register() 220 reg = BCM590XX_CSRPMCTRL1; in bcm590xx_get_enable_register() [all …]
|
H A D | axp20x-regulator.c | 354 .n_voltages = (((_max) - (_min)) / (_step) + 1), \ 376 .n_voltages = (((_max) - (_min)) / (_step) + 1), \ 444 u8 reg, mask, enable, cfg = 0xff; in axp20x_set_ramp_delay() local 448 switch (axp20x->variant) { in axp20x_set_ramp_delay() 453 reg = AXP20X_DCDC2_LDO3_V_RAMP; in axp20x_set_ramp_delay() 464 reg = AXP20X_DCDC2_LDO3_V_RAMP; in axp20x_set_ramp_delay() 478 return -ENOTSUPP; in axp20x_set_ramp_delay() 497 dev_err(axp20x->dev, "unsupported ramp value %d", ramp); in axp20x_set_ramp_delay() 498 return -EINVAL; in axp20x_set_ramp_delay() 504 return regmap_update_bits(axp20x->regmap, reg, mask, cfg); in axp20x_set_ramp_delay() [all …]
|
H A D | rk808-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Author: Chris Zhong <zyw@rock-chips.com> 9 * Author: Zhang Qing <zhangqing@rock-chips.com> 10 * Author: Xu Shengfei <xsf@rock-chips.com> 87 .n_voltages = (((_max) - (_min)) / (_step) + 1), \ 111 .n_voltages = (((_max) - (_min)) / (_step) + 1), \ 195 u8 reg; member 201 .reg = _reg, \ 234 #define RK817_BUCK1_SEL0 ((RK817_BUCK1_MAX0 - RK817_BUCK1_MIN0) /\ 236 #define RK817_BUCK1_SEL1 ((RK817_BUCK1_MAX1 - RK817_BUCK1_MIN1) /\ [all …]
|
H A D | max8660.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max8660.c -- Voltage regulation for the Maxim 8660/8661 5 * based on max1586.c and wm8400-regulator.c 11 * Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX8660-MAX8661.pdf 13 * This chip is a bit nasty because it is a write-only device. Thus, the driver 23 * functions for V3-V7 is sufficient. For maximum flexibility during 73 static int max8660_write(struct max8660 *max8660, u8 reg, u8 mask, u8 val) in max8660_write() argument 80 u8 reg_val = (max8660->shadow_regs[reg] & mask) | val; in max8660_write() 82 dev_vdbg(&max8660->client->dev, "Writing reg %02x with %02x\n", in max8660_write() 83 max8660_addresses[reg], reg_val); in max8660_write() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | rockchip,rk806.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sebastian.reichel@collabora.com> 19 - rockchip,rk806 21 reg: 27 gpio-controller: true 29 '#gpio-cells': 32 vcc1-supply: 34 The input supply for dcdc-reg1. [all …]
|
H A D | actions,atc260x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 11 - Cristian Ciocaltea <cristian.ciocaltea@gmail.com> 16 (i.e. regulators and system power-off/reboot) for the ATC2603C and ATC2609A 18 ATC2603C includes 3 programmable DC-DC converters, 9 programmable LDO 20 ATC2609A includes 5 programmable DC-DC converters and 10 programmable LDO 24 - $ref: ../input/input.yaml 29 - actions,atc2603c [all …]
|
H A D | ricoh,rn5t618.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andreas Kemnade <andreas@kemnade.info> 14 integrates 3 to 5 step-down DCDC converters, 7 to 10 low-dropout regulators, 16 The RN5T618/RC5T619 provides additionally a Li-ion battery charger, 21 - if: 30 "^(DCDC[1-4]|LDO[1-5]|LDORTC[12])$": 33 - if: 42 "^(DCDC[1-3]|LDO[1-5]|LDORTC[12])$": [all …]
|
H A D | x-powers,axp152.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: X-Powers AXP PMIC 10 - Chen-Yu Tsai <wens@csie.org> 13 - if: 18 - x-powers,axp152 19 - x-powers,axp202 20 - x-powers,axp209 [all …]
|
H A D | as3711.txt | 1 AS3711 is an I2C PMIC from Austria MicroSystems with multiple DCDC and LDO power 3 DCDC converters are defined. Other DCDC and LDO supplies are configured, using 4 standard regulator properties, they must belong to a sub-node, called 9 - compatible : must be "ams,as3711" 10 - reg : specifies the I2C address 14 - su1-dev : framebuffer phandle 15 - su1-max-uA : maximum current 19 - su2-dev : framebuffer phandle 20 - su1-max-uA : maximum current 24 - su2-feedback-voltage : voltage feedback is used [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/display/panel/ |
H A D | jdi,lt070me05000.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vinay Simha BN <simhavcs@gmail.com> 13 - $ref: panel-common.yaml# 19 enable-gpios: true 20 reg: true 21 reset-gpios: true 23 vddp-supply: 25 The regulator that provides the supply voltage Power IC supply (3-5V) [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3588-evb1-v10.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 15 compatible = "rockchip,rk3588-evb1-v10", "rockchip,rk3588"; 23 stdout-path = "serial2:1500000n8"; 27 compatible = "pwm-backlight"; 28 power-supply = <&vcc12v_dcin>; 32 vcc12v_dcin: vcc12v-dcin-regulator { 33 compatible = "regulator-fixed"; [all …]
|
H A D | rk3588-rock-5b.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 10 compatible = "radxa,rock-5b", "rockchip,rk3588"; 19 stdout-path = "serial2:1500000n8"; 22 analog-sound { 23 compatible = "audio-graph-card"; 24 label = "rk3588-es8316"; 34 hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; 35 pinctrl-names = "default"; [all …]
|
H A D | rk3588s-rock-5a.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 12 compatible = "radxa,rock-5a", "rockchip,rk3588s"; 20 analog-sound { 21 compatible = "audio-graph-card"; 22 label = "rk3588-es8316"; 35 stdout-path = "serial2:1500000n8"; [all …]
|
H A D | rk3588s-indiedroid-nova.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/usb/pd.h> 22 stdout-path = "serial2:1500000n8"; 25 sdio_pwrseq: sdio-pwrseq { 26 compatible = "mmc-pwrseq-simple"; 27 clock-names = "ext_clock"; 29 pinctrl-0 = <&wifi_enable_h>; [all …]
|
H A D | rk3588-nanopc-t6.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/pinctrl/rockchip.h> 12 #include <dt-bindings/usb/pd.h> 16 model = "FriendlyElec NanoPC-T6"; 17 compatible = "friendlyarm,nanopc-t6", "rockchip,rk3588"; 26 stdout-path = "serial2:1500000n8"; 30 compatible = "gpio-leds"; 32 sys_led: led-0 { [all …]
|
H A D | rk3588-edgeble-neu6b.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 compatible = "edgeble,neural-compute-module-6b", "rockchip,rk3588"; 13 vcc12v_dcin: vcc12v-dcin-regulator { 14 compatible = "regulator-fixed"; 15 regulator-name = "vcc12v_dcin"; 16 regulator-always-on; 17 regulator-boot-on; 18 regulator-min-microvolt = <12000000>; 19 regulator-max-microvolt = <12000000>; 22 vcc5v0_sys: vcc5v0-sys-regulator { [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/regulator/ |
H A D | tps65090.txt | 4 - compatible: "ti,tps65090" 5 - reg: I2C slave address 6 - interrupts: the interrupt outputs of the controller 7 - regulators: A node that houses a sub-node for each regulator within the 8 device. Each sub-node is identified using the node's name, with valid 9 values listed below. The content of each sub-node is defined by the 11 dcdc[1-3], fet[1-7] and ldo[1-2] respectively. 12 - vsys[1-3]-supply: The input supply for DCDC[1-3] respectively. 13 - infet[1-7]-supply: The input supply for FET[1-7] respectively. 14 - vsys-l[1-2]-supply: The input supply for LDO[1-2] respectively. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | tps65090.txt | 4 - compatible: "ti,tps65090" 5 - reg: I2C slave address 6 - interrupts: the interrupt outputs of the controller 7 - regulators: A node that houses a sub-node for each regulator within the 8 device. Each sub-node is identified using the node's name, with valid 9 values listed below. The content of each sub-node is defined by the 11 dcdc[1-3], fet[1-7] and ldo[1-2] respectively. 12 - vsys[1-3]-supply: The input supply for DCDC[1-3] respectively. 13 - infet[1-7]-supply: The input supply for FET[1-7] respectively. 14 - vsys-l[1-2]-supply: The input supply for LDO[1-2] respectively. [all …]
|
H A D | da9210.txt | 1 * Dialog Semiconductor DA9210 Multi-phase 12A DCDC BUCK Converter 5 - compatible: must be "dlg,da9210" 6 - reg: the i2c slave address of the regulator. It should be 0x68. 10 - interrupts: a reference to the DA9210 interrupt, if available. 13 DCDC. 19 reg = <0x68>; 21 interrupt-parent = <...>; 24 regulator-min-microvolt = <300000>; 25 regulator-max-microvolt = <1570000>; 26 regulator-min-microamp = <1600000>; [all …]
|
/openbmc/linux/include/linux/mfd/wm8350/ |
H A D | pmic.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * pmic.h -- Power Management Driver for Wolfson WM8350 PMIC 71 * R172 (0xAC) - Current Sink Driver A 86 * R173 (0xAD) - CSA Flash control 96 * R174 (0xAE) - Current Sink Driver B 102 * R175 (0xAF) - CSB Flash control 112 * R176 (0xB0) - DCDC/LDO requested 127 * R177 (0xB1) - DCDC Active options 137 * R178 (0xB2) - DCDC Sleep options 145 * R179 (0xB3) - Power-check comparator [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | tfa989x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2014-2020 NXP Semiconductors, All Rights Reserved. 42 #define TFA989X_I2S_SEL_REG_DCFG_MSK GENMASK(14, 11) /* DCDC compensation */ 65 static bool tfa989x_writeable_reg(struct device *dev, unsigned int reg) in tfa989x_writeable_reg() argument 67 return reg > TFA989X_REVISIONNUMBER; in tfa989x_writeable_reg() 70 static bool tfa989x_volatile_reg(struct device *dev, unsigned int reg) in tfa989x_volatile_reg() argument 72 return reg < TFA989X_REVISIONNUMBER; in tfa989x_volatile_reg() 111 gpiod_set_value_cansleep(tfa989x->rcv_gpiod, ucontrol->value.enumerated.item[0]); in tfa989x_put_mode() 126 if (tfa989x->rev->rev == TFA9897_REVISION) in tfa989x_probe() 155 return -EINVAL; in tfa989x_find_sample_rate() [all …]
|