/Linux-v5.10/arch/arm/mach-omap2/ |
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_vdc - 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_vdc - convert MAX8952 VSEL value to microvolts DC [all …]
|
D | omap_opp_data.h | 4 * Copyright (C) 2009-2010 Texas Instruments Incorporated - https://www.ti.com/ 24 #include "voltage.h" 33 * struct omap_opp_def - OMAP OPP Definition 36 * @u_volt: Nominal voltage in microvolts corresponding to this OPP 37 * @default_available: True/false - is this OPP available by default 39 * OMAP SOCs have a standard set of tuples consisting of frequency and voltage 40 * pairs that the device will support per voltage domain. This is called 43 * domain, you can have a set of {frequency, voltage} pairs and this is denoted 47 * which belongs to a voltage domain may define their own set of OPPs on top 48 * of this - but this is handled by the appropriate driver.
|
/Linux-v5.10/Documentation/ABI/testing/ |
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 …]
|
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-v5.10/Documentation/devicetree/bindings/clock/ |
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 …]
|
D | idt,versaclock5.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 16 - 5P49V5923: 17 0 -- OUT0_SEL_I2CB 18 1 -- OUT1 19 2 -- OUT2 21 - 5P49V5933: 22 0 -- OUT0_SEL_I2CB 23 1 -- OUT1 [all …]
|
/Linux-v5.10/include/linux/regulator/ |
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)
|
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-v5.10/Documentation/devicetree/bindings/mfd/ |
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, 12 with controllable parameters and dynamic voltage scaling capability. 17 - compatible: Should be one of the following: 18 - "maxim,max8998" for Maxim MAX8998 19 - "national,lp3974" or "ti,lp3974" for National/TI LP3974. [all …]
|
/Linux-v5.10/drivers/regulator/ |
D | fixed-helper.c | 1 // SPDX-License-Identifier: GPL-2.0 18 kfree(data->cfg.supply_name); in regulator_fixed_release() 23 * regulator_register_fixed_name - register a no-op fixed regulator 28 * @uv: voltage in microvolts 39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on() 40 if (!data->cfg.supply_name) { in regulator_register_always_on() 45 data->cfg.microvolts = uv; in regulator_register_always_on() 46 data->cfg.enabled_at_boot = 1; in regulator_register_always_on() 47 data->cfg.init_data = &data->init_data; in regulator_register_always_on() 49 data->init_data.constraints.always_on = 1; in regulator_register_always_on() [all …]
|
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 49 ret = clk_prepare_enable(priv->enable_clock); in reg_clock_enable() 53 priv->clk_enable_counter++; in reg_clock_enable() 62 clk_disable_unprepare(priv->enable_clock); in reg_clock_disable() 63 priv->clk_enable_counter--; in reg_clock_disable() 72 return priv->clk_enable_counter > 0; in reg_clock_is_enabled() 77 * of_get_fixed_voltage_config - extract fixed_voltage_config structure info 90 struct device_node *np = dev->of_node; in of_get_fixed_voltage_config() [all …]
|
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 …]
|
/Linux-v5.10/include/linux/ |
D | pm_opp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2009-2010 Texas Instruments Incorporated. 30 * struct dev_pm_opp_supply - Power supply voltage/current values 31 * @u_volt: Target voltage in microvolts corresponding to this OPP 32 * @u_volt_min: Minimum voltage in microvolts corresponding to this OPP 33 * @u_volt_max: Maximum voltage in microvolts corresponding to this OPP 36 * This structure stores the voltage/current values for a single power supply. 46 * struct dev_pm_opp_icc_bw - Interconnect bandwidth values 58 * struct dev_pm_opp_info - OPP freq/voltage/current values 60 * @supplies: Array of voltage/current values for all power supplies [all …]
|
/Linux-v5.10/drivers/hwmon/ |
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-v5.10/arch/arm64/boot/dts/nvidia/ |
D | tegra210-p2371-2180.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra210-p2180.dtsi" 5 #include "tegra210-p2597.dtsi" 9 compatible = "nvidia,p2371-2180", "nvidia,tegra210"; 14 avdd-pll-uerefe-supply = <&avdd_1v05_pll>; 15 hvddio-pex-supply = <&vdd_1v8>; 16 dvddio-pex-supply = <&vdd_pex_1v05>; 17 dvdd-pex-pll-supply = <&vdd_pex_1v05>; 18 hvdd-pex-pll-e-supply = <&vdd_1v8>; [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/input/ |
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 - const: allwinner,sun50i-a64-lradc [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/regulator/ |
D | max8952.txt | 1 Maxim MAX8952 voltage regulator 4 - compatible: must be equal to "maxim,max8952" 5 - reg: I2C slave address, usually 0x60 6 - max8952,dvs-mode-microvolt: array of 4 integer values defining DVS voltages 7 in microvolts. All values must be from range <770000, 1400000> 8 - any required generic properties defined in regulator.txt 11 - max8952,vid-gpios: array of two GPIO pins used for DVS voltage selection 12 - max8952,en-gpio: GPIO used to control enable status of regulator 13 - max8952,default-mode: index of default DVS voltage, from <0, 3> range 14 - max8952,sync-freq: sync frequency, must be one of following values: [all …]
|
D | pwm-regulator.txt | 6 Voltage Table: When in this mode, a voltage table (See below) of 7 predefined voltage <=> duty-cycle values must be 10 Intermediary duty-cycle values which would normally 11 allow finer grained voltage selection are ignored and 13 the user if the assumptions made in continuous-voltage 16 Continuous Voltage: This mode uses the regulator's maximum and minimum 18 regulator-{min,max}-microvolt properties to calculate 19 appropriate duty-cycle values. This allows for a much 21 voltage-table mode above. This solution does make an 22 assumption that a %50 duty-cycle value will cause the [all …]
|
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 …]
|
D | regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Voltage/Current Regulators 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 14 regulator-name: 18 regulator-min-microvolt: 19 description: smallest voltage consumers may set 21 regulator-max-microvolt: [all …]
|
/Linux-v5.10/Documentation/hwmon/ |
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 …]
|
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 :doc:`/i2c/instantiating-devices` for details. 27 ------------- 30 is read-write, all other attributes are read-only. 32 in0_input Measured voltage in microvolts.
|
/Linux-v5.10/arch/x86/platform/intel-mid/device_libs/ |
D | platform_bcm43xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <asm/intel-mid.h> 17 #define WLAN_SFI_GPIO_IRQ_NAME "WLAN-interrupt" 18 #define WLAN_SFI_GPIO_ENABLE_NAME "WLAN-enable" 36 .supply_name = "bcm43xx-vmmc-regulator", 39 * real voltage and signaling are still 1.8V. 41 .microvolts = 2000000, /* 1.8V */ 48 .name = "reg-fixed-voltage", 56 .dev_id = "reg-fixed-voltage.0", 58 GPIO_LOOKUP("0000:00:0c.0", -1, NULL, GPIO_ACTIVE_LOW), [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/ |
D | battery.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 <sre@kernel.org> 14 In smart batteries, these are typically stored in non-volatile memory 16 no appropriate non-volatile memory, or it is unprogrammed/incorrect. 27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle. 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery 34 over-voltage-threshold-microvolt: [all …]
|
/Linux-v5.10/drivers/power/supply/ |
D | power_supply_hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * power_supply_hwmon.c - power supply hwmon support. 33 return -EINVAL; in power_supply_hwmon_in_to_property() 47 return -EINVAL; in power_supply_hwmon_curr_to_property() 81 return -EINVAL; in power_supply_hwmon_temp_to_property() 96 return -EINVAL; in power_supply_hwmon_to_property() 128 for (i = 0; i < attr_list->n_attrs; ++i) { in power_supply_hwmon_has_input() 130 attr_list->attrs[i], channel); in power_supply_hwmon_has_input() 132 if (prop >= 0 && test_bit(prop, psyhw->props)) in power_supply_hwmon_has_input() 173 if (prop < 0 || !test_bit(prop, psyhw->props)) in power_supply_hwmon_is_visible() [all …]
|