/linux/arch/arm/mach-omap2/ |
H A D | pmic-cpcap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pmic-cpcap.c - CPCAP-specific functions for the OPP code 15 #include "voltage.h" 21 * omap_cpcap_vsel_to_uv - convert CPCAP VSEL value to microvolts DC 24 * Returns: the microvolts DC that the CPCAP PMIC should generate when 35 * omap_cpcap_uv_to_vsel - convert microvolts DC to CPCAP VSEL value 36 * @uv: microvolts DC to convert 39 * generate an output voltage equal to or greater than @uv microvolts DC. 47 return DIV_ROUND_UP(uv - 600000, 12500); in omap_cpcap_uv_to_vsel() 85 * omap_max8952_vsel_to_uv - convert MAX8952 VSEL value to microvolts DC [all …]
|
H A D | omap_opp_data.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2009-2010 Texas Instruments Incorporated - https://www.ti.com/ 16 #include "voltage.h" 25 * struct omap_opp_def - OMAP OPP Definition 28 * @u_volt: Nominal voltage in microvolts corresponding to this OPP 29 * @default_available: True/false - is this OPP available by default 31 * OMAP SOCs have a standard set of tuples consisting of frequency and voltage 32 * pairs that the device will support per voltage domain. This is called 35 * domain, you can have a set of {frequency, voltage} pairs and this is denoted 39 * which belongs to a voltage domain may define their own set of OPPs on top [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | nvidia,tegra124-dfll.txt | 4 Documentation/devicetree/bindings/clock/clock-bindings.txt 7 the fast CPU cluster. It consists of a free-running voltage controlled 8 oscillator connected to the CPU voltage rail (VDD_CPU), and a closed loop 9 control module that will automatically adjust the VDD_CPU voltage by 10 communicating with an off-chip PMIC either via an I2C bus or via PWM signals. 13 - compatible : should be one of: 14 - "nvidia,tegra124-dfll": for Tegra124 15 - "nvidia,tegra210-dfll": for Tegra210 16 - reg : Defines the following set of registers, in the order listed: 17 - registers for the DFLL control logic. [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-regulator | 20 supplying power to the system (unless some non-Linux 26 NOTE: this field can be used in conjunction with microvolts 38 - off 39 - on 40 - error 41 - fast 42 - normal 43 - idle 44 - standby 52 "error" indicates an out-of-regulation status such as being [all …]
|
H A D | sysfs-class-power-ltc4162l | 1 What: /sys/class/power_supply/ltc4162-l/charge_status 18 What: /sys/class/power_supply/ltc4162-l/ibat 29 What: /sys/class/power_supply/ltc4162-l/vbat 33 Battery voltage as measured by the charger. 37 Valid values: In microvolts 39 What: /sys/class/power_supply/ltc4162-l/vbat_avg 43 Battery voltage, averaged over time, as measured by the charger. 47 Valid values: In microvolts 49 What: /sys/class/power_supply/ltc4162-l/force_telemetry 55 voltage, current and temperature measurements. [all …]
|
H A D | sysfs-class-power | 5 Contact: linux-pm@vger.kernel.org 14 Contact: linux-pm@vger.kernel.org 23 Contact: linux-pm@vger.kernel.org 32 Contact: linux-pm@vger.kernel.org 43 Contact: linux-pm@vger.kernel.org 66 Contact: linux-pm@vger.kernel.org 81 Contact: linux-pm@vger.kernel.org 94 read-only reporting, unless the 'online' state of the supply 106 Contact: linux-pm@vger.kernel.org 124 Contact: linux-pm@vger.kernel.org [all …]
|
/linux/include/linux/regulator/ |
H A D | fixed.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 * Roger Quadros <ext-roger.quadros@nokia.com> 19 * struct fixed_voltage_config - fixed_voltage_config structure 22 * @microvolts: Output voltage of regulator 23 * @startup_delay: Start-up time in microseconds 30 * This structure contains fixed voltage regulator configuration 32 * voltage regulator driver. 37 int microvolts; member 58 "fixed-dummy", s, ns, 0)
|
H A D | gpio-regulator.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * gpio-regulator.h 14 * Roger Quadros <ext-roger.quadros@nokia.com> 27 * struct gpio_regulator_state - state description 28 * @value: microvolts or microamps 29 * @gpios: bitfield of gpio target-states for the value 32 * and the necessary gpio-state to achieve it. 34 * The n-th bit in the bitfield describes the state of the n-th GPIO 35 * from the gpios-array defined in gpio_regulator_config below. 43 * struct gpio_regulator_config - config structure [all …]
|
/linux/include/linux/ |
H A D | power_supply.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 226 /* Run-time specific power supply configuration */ 339 int ocv; /* microVolts */ 349 int vbat_uv; /* Battery voltage in microvolt */ 354 * struct power_supply_maintenance_charge_table - setting for maintenace charging 358 * reach this voltage the maintenance charging current is turned off. It is 359 * turned back on if we fall below this voltage. 360 * @charge_voltage_max_uv: maintenance charging voltage that is usually a bit 362 * charge_current_max_ua until we get back up to this voltage. 366 * maintenance charge current and voltage pair in respective array and wait [all …]
|
H A D | pm_opp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2009-2010 Texas Instruments Incorporated. 31 * struct dev_pm_opp_supply - Power supply voltage/current values 32 * @u_volt: Target voltage in microvolts corresponding to this OPP 33 * @u_volt_min: Minimum voltage in microvolts corresponding to this OPP 34 * @u_volt_max: Maximum voltage in microvolts corresponding to this OPP 38 * This structure stores the voltage/current/power values for a single power 57 * struct dev_pm_opp_config - Device OPP configuration values 90 * struct dev_pm_opp_data - The data to use to initialize an OPP. 95 * @u_volt: The voltage in uV for the OPP. [all …]
|
/linux/drivers/regulator/ |
H A D | fixed-helper.c | 1 // SPDX-License-Identifier: GPL-2.0 18 kfree_const(data->cfg.supply_name); in regulator_fixed_release() 23 * regulator_register_always_on - register an always-on regulator with a fixed name 28 * @uv: voltage in microvolts 41 data->cfg.supply_name = kstrdup_const(name, GFP_KERNEL); in regulator_register_always_on() 42 if (!data->cfg.supply_name) { in regulator_register_always_on() 47 data->cfg.microvolts = uv; in regulator_register_always_on() 48 data->cfg.enabled_at_boot = 1; in regulator_register_always_on() 49 data->cfg.init_data = &data->init_data; in regulator_register_always_on() 51 data->init_data.constraints.always_on = 1; in regulator_register_always_on() [all …]
|
H A D | fixed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * Roger Quadros <ext-roger.quadros@nokia.com> 13 * non-controllable regulators, as well as for allowing testing on 55 ret = clk_prepare_enable(priv->enable_clock); in reg_clock_enable() 59 priv->enable_counter++; in reg_clock_enable() 68 clk_disable_unprepare(priv->enable_clock); in reg_clock_disable() 69 priv->enable_counter--; in reg_clock_disable() 77 struct device *dev = rdev->dev.parent; in reg_domain_enable() 80 ret = dev_pm_genpd_set_performance_state(dev, priv->performance_state); in reg_domain_enable() 84 priv->enable_counter++; in reg_domain_enable() [all …]
|
H A D | bcm590xx-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 102 /* LDO group A: supported voltages in microvolts */ 108 /* LDO group C: supported voltages in microvolts */ 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() 277 struct bcm590xx *bcm590xx = dev_get_drvdata(pdev->dev.parent); in bcm590xx_probe() 284 pmu = devm_kzalloc(&pdev->dev, sizeof(*pmu), GFP_KERNEL); in bcm590xx_probe() 286 return -ENOMEM; in bcm590xx_probe() [all …]
|
H A D | tps65910-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * tps65910.c -- TI tps65910 29 /* supported VIO voltages in microvolts */ 36 /* supported VRTC voltages in microvolts */ 41 /* supported VDD3 voltages in microvolts */ 46 /* supported VDIG1 voltages in microvolts */ 51 /* supported VDIG2 voltages in microvolts */ 56 /* supported VPLL voltages in microvolts */ 61 /* supported VDAC voltages in microvolts */ 66 /* supported VAUX1 voltages in microvolts */ [all …]
|
/linux/drivers/hwmon/ |
H A D | ltc4215.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <linux/hwmon-sysfs.h> 46 struct i2c_client *client = data->client; in ltc4215_update_device() 50 mutex_lock(&data->update_lock); in ltc4215_update_device() 53 if (time_after(jiffies, data->last_updated + HZ / 10) || !data->valid) { in ltc4215_update_device() 55 dev_dbg(&client->dev, "Starting ltc4215 update\n"); in ltc4215_update_device() 58 for (i = 0; i < ARRAY_SIZE(data->regs); i++) { in ltc4215_update_device() 61 data->regs[i] = 0; in ltc4215_update_device() 63 data->regs[i] = val; in ltc4215_update_device() 66 data->last_updated = jiffies; in ltc4215_update_device() [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | maxim,max8998.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> 13 The Maxim MAX8998 is a Power Management IC which includes voltage/current 15 sub-blocks. It is interfaced using an I2C interface. Each sub-block is 21 - maxim,max8998 22 - national,lp3974 23 - ti,lp3974 31 - description: Main interrupt [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | aspeed,ast2600-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Billy Tsai <billy_tsai@aspeedtech.com> 13 • 10-bits resolution for 16 voltage channels. 14 • The device split into two individual engine and each contains 8 voltage 16 • Channel scanning can be non-continuous. 21 • Built-in a compensating method. 22 • Built-in a register to trim internal reference voltage. [all …]
|
H A D | adi,ad7949.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Charles-Antoine Couret <charles-antoine.couret@essensium.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf 22 - adi,ad7682 23 - adi,ad7689 24 - adi,ad7949 29 vrefin-supply: [all …]
|
/linux/Documentation/devicetree/bindings/input/ |
H A D | allwinner,sun4i-a10-lradc-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/input/allwinner,sun4i-a10-lradc-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 16 - const: allwinner,sun4i-a10-lradc-keys 17 - const: allwinner,sun8i-a83t-r-lradc 18 - items: 19 - enum: [all …]
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | pwm-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/pwm-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Brian Norris <briannorris@chromium.org> 11 - Lee Jones <lee@kernel.org> 12 - Alexandre Courbot <acourbot@nvidia.com> 17 Voltage Table: 18 When in this mode, a voltage table (See below) of predefined voltage <=> 19 duty-cycle values must be provided via DT. Limitations are that the [all …]
|
H A D | gpio-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/gpio-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 18 - $ref: regulator.yaml# 22 const: regulator-gpio 24 regulator-name: true 26 enable-gpios: [all …]
|
H A D | maxim,max8952.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: Maxim MAX8952 voltage regulator 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 - $ref: regulator.yaml# 19 max8952,default-mode: 23 index of default DVS voltage 25 max8952,dvs-mode-microvolt: 32 Array of 4 integer values defining DVS voltages in microvolts. All values [all …]
|
/linux/Documentation/hwmon/ |
H A D | ltc2990.rst | 11 Addresses scanned: - 19 - Mike Looijmans <mike.looijmans@topic.nl> 20 - Tom Levens <tom.levens@cern.ch> 24 ----------- 26 LTC2990 is a Quad I2C Voltage, Current and Temperature Monitor. 28 can be combined to measure a differential voltage, which is typically used to 34 ----------- 41 ---------------- 44 in0_input Voltage at Vcc pin in millivolt (range 2.5V to 5V) 52 in[1-4]_input Voltage at V[1-4] pin in millivolt [all …]
|
H A D | adm1177.rst | 7 Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf 13 ----------- 16 Hot-Swap Controller and Digital Power Monitors with Soft Start Pin. 20 ----------- 22 This driver does not auto-detect devices. You will have to instantiate the 23 devices explicitly. Please see Documentation/i2c/instantiating-devices.rst 28 ------------- 31 is read-write, all other attributes are read-only. 33 in0_input Measured voltage in microvolts.
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | twl4030-charger.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/twl4030-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 value in explicit configuration in device-tree. Rather if there is a sibling 15 of the BCI node which is compatible with "ti,twl4030-usb", then that is used 19 - Sebastian Reichel <sre@kernel.org> 22 - $ref: power-supply.yaml# 26 const: ti,twl4030-bci 32 ti,bb-uvolt: [all …]
|