/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | maxim,max17042.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 18 - maxim,max17042 19 - maxim,max17047 20 - maxim,max17050 21 - maxim,max17055 22 - maxim,max77849-battery [all …]
|
H A D | bq25980.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Andrew Davis <afd@ti.com> 15 for use in high-power density portable electronics. These inductorless 16 switching chargers can provide over 97% efficiency by making use of the 20 - $ref: power-supply.yaml# 25 - ti,bq25980 26 - ti,bq25975 27 - ti,bq25960 [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | abituguru-datasheet.rst | 14 Olle Sandberg <ollebull@gmail.com>, 2005-05-25 27 Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-2006 33 As far as known the uGuru is always placed at and using the (ISA) I/O-ports 34 0xE0 and 0xE4, so we don't have to scan any port-range, just check what the two 35 ports are holding for detection. We will refer to 0xE0 as CMD (command-port) 39 present. We have to check for two different values at data-port, because 41 later on attached again data-port will hold 0x08, more about this later. 57 ---------- 82 ----------- 101 ---------------------------------------------- [all …]
|
H A D | gl518sm.rst | 21 - Frodo Looijaard <frodol@dds.nl>, 22 - Kyösti Mälkki <kmalkki@cc.hut.fi> 23 - Hong-Gunn Chew <hglinux@gunnet.org> 24 - Jean Delvare <jdelvare@suse.de> 27 ----------- 44 temperature is above the over temperature limit, and has not yet dropped 46 situation. Measurements are guaranteed between -10 degrees and +110 47 degrees, with a accuracy of +/-3 degrees. 62 measures voltages between 0.000 and 5.865 volt, with a resolution of 0.023 63 volt. The other inputs measure voltages between 0.000 and 4.845 volt, with [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | ug3105_battery.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Note the uG3105 is not a full-featured autonomous fuel-gauge. Instead it is 7 * its coulomb-counter before it can wrap (must be read every 400 seconds!). 9 * Since Linux does not monitor coulomb-counter changes while the device 20 * the actual capacity of the battery over reboots 23 * and then use total_coulomb_count to report energy_now over time, resetting 25 * readings, esp. in the 30-70% range and allow userspace to estimate time 28 * capacity during run-time ? 32 * in a total_coulomb_count increase of 3277 units with a 5 milli-ohm sense R. 37 #include <linux/devm-helpers.h> [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | da9055-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 71 struct da9055_volt_reg volt; member 85 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode() 88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode() 92 switch ((ret & info->mode.mask) >> info->mode.shift) { in da9055_buck_get_mode() 111 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode() 116 val = DA9055_BUCK_MODE_SYNC << info->mode.shift; in da9055_buck_set_mode() 119 val = DA9055_BUCK_MODE_AUTO << info->mode.shift; in da9055_buck_set_mode() 122 val = DA9055_BUCK_MODE_SLEEP << info->mode.shift; in da9055_buck_set_mode() 126 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode() [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | sram243x.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mach-omap2/sram243x.S 9 * Richard Woodruff <r-woodruff2@ti.com> 31 stmfd sp!, {r0 - r12, lr} @ save registers on stack 39 str r3, [r2] @ go to L1-freq operation 62 mov r9, #0x0 @ shift back to L0-voltage 67 str r3, [r2] @ go to L0-freq operation 82 ldmfd sp!, {r0 - r12, pc} @ restore regs and return 97 ldr r4, omap243x_sdi_prcm_voltctrl @ get addr of volt ctrl. 101 orr r5, r5, r9 @ bulld value for L0/L1-volt operation. [all …]
|
H A D | sram242x.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mach-omap2/sram242x.S 9 * Richard Woodruff <r-woodruff2@ti.com> 31 stmfd sp!, {r0 - r12, lr} @ save registers on stack 39 str r3, [r2] @ go to L1-freq operation 62 mov r9, #0x0 @ shift back to L0-voltage 67 str r3, [r2] @ go to L0-freq operation 82 ldmfd sp!, {r0 - r12, pc} @ restore regs and return 97 ldr r4, omap242x_sdi_prcm_voltctrl @ get addr of volt ctrl. 101 orr r5, r5, r9 @ bulld value for L0/L1-volt operation. [all …]
|
/openbmc/u-boot/drivers/power/ |
H A D | axp209.c | 1 // SPDX-License-Identifier: GPL-2.0+ 29 return (mvolt - min) / div; in axp209_mvolt_to_cfg() 47 /* Do we really need to be this gentle? It has built-in voltage slope */ in axp_set_dcdc2() 53 current--; in axp_set_dcdc2() 129 * voltages over 1.9 volt. As a workaround, we enable LDO3 in axp_set_aldo3() 138 rc = pmic_bus_write(AXP209_LDO3_VOLTAGE, 0x0); /* 0.7 Volt */ in axp_set_aldo3() 148 if (mvolt == -1) { in axp_set_aldo3() 176 for (cfg = 15; vindex[cfg] > mvolt && cfg > 0; cfg--); in axp_set_aldo4() 204 return -EINVAL; in axp_init() 214 * Turn off LDOIO regulators / tri-state GPIO pins, when rebooting in axp_init()
|
/openbmc/linux/drivers/hwmon/ |
H A D | abituguru.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * abituguru.c Copyright (c) 2005-2006 Hans de Goede <hdegoede@redhat.com> 23 #include <linux/hwmon-sysfs.h> 29 #define ABIT_UGURU_SENSOR_BANK1 0x21 /* 16x volt and temp */ 43 #define ABIT_UGURU_TEMP_HIGH_ALARM_ENABLE 0x01 /* temp over warn */ 44 #define ABIT_UGURU_VOLT_HIGH_ALARM_ENABLE 0x02 /* volt over max */ 45 #define ABIT_UGURU_VOLT_LOW_ALARM_ENABLE 0x04 /* volt under min */ 46 #define ABIT_UGURU_TEMP_HIGH_ALARM_FLAG 0x10 /* temp is over warn */ 47 #define ABIT_UGURU_VOLT_HIGH_ALARM_FLAG 0x20 /* volt is over max */ 48 #define ABIT_UGURU_VOLT_LOW_ALARM_FLAG 0x40 /* volt is under min */ [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8916-samsung-gt5-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8916-pm8916.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 18 stdout-path = "serial0"; 21 reserved-memory { 23 tz-apps@85500000 { 25 no-map; [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/inc/ |
H A D | smu_v13_0_pptable.h | 37 // SMU_13_0_PP_THERMALCONTROLLER - Thermal Controller Type 72 …TO_UV_ENGINE = 1 << SMU_13_0_ODCAP_AUTO_UV_ENGINE, //Auto Under Volt GFXCLK feature 73 …TO_OC_ENGINE = 1 << SMU_13_0_ODCAP_AUTO_OC_ENGINE, //Auto Over Clock GFXCLK feature 74 …AUTO_OC_MEMORY = 1 << SMU_13_0_ODCAP_AUTO_OC_MEMORY, //Auto Over Clock MCLK feature
|
H A D | smu_v11_0_pptable.h | 37 // SMU_11_0_PP_THERMALCONTROLLER - Thermal Controller Type 72 …TO_UV_ENGINE = 1 << SMU_11_0_ODCAP_AUTO_UV_ENGINE, //Auto Under Volt GFXCLK feature 73 …TO_OC_ENGINE = 1 << SMU_11_0_ODCAP_AUTO_OC_ENGINE, //Auto Over Clock GFXCLK feature 74 …AUTO_OC_MEMORY = 1 << SMU_11_0_ODCAP_AUTO_OC_MEMORY, //Auto Over Clock MCLK feature
|
H A D | smu_v13_0_7_pptable.h | 37 // SMU_13_0_7_PP_THERMALCONTROLLER - Thermal Controller Type 74 …V_ENGINE = 1 << SMU_13_0_7_ODCAP_AUTO_UV_ENGINE, //Auto Under Volt GFXCLK feature 75 …C_ENGINE = 1 << SMU_13_0_7_ODCAP_AUTO_OC_ENGINE, //Auto Over Clock GFXCLK feature 76 …_OC_MEMORY = 1 << SMU_13_0_7_ODCAP_AUTO_OC_MEMORY, //Auto Over Clock MCLK feature
|
H A D | smu_v11_0_7_pptable.h | 37 // SMU_11_0_7_PP_THERMALCONTROLLER - Thermal Controller Type 75 …UV_ENGINE = 1 << SMU_11_0_7_ODCAP_AUTO_UV_ENGINE, //Auto Under Volt GFXCLK feature 76 …OC_ENGINE = 1 << SMU_11_0_7_ODCAP_AUTO_OC_ENGINE, //Auto Over Clock GFXCLK feature 77 …O_OC_MEMORY = 1 << SMU_11_0_7_ODCAP_AUTO_OC_MEMORY, //Auto Over Clock MCLK feature
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
H A D | spl_power_init.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <asm/arch/imx-regs.h> 24 * mxs_power_clock2xtal() - Switch CPU core clock source to 24MHz XTAL 39 &clkctrl_regs->hw_clkctrl_clkseq_set); in mxs_power_clock2xtal() 43 * mxs_power_clock2pll() - Switch CPU core clock source to PLL 46 * to PLL. This can only be called once the PLL has re-locked and once 63 setbits_le32(&clkctrl_regs->hw_clkctrl_pll0ctrl0, in mxs_power_clock2pll() 71 setbits_le32(&clkctrl_regs->hw_clkctrl_clkseq, in mxs_power_clock2pll() 76 * mxs_power_set_auto_restart() - Set the auto-restart bit 87 debug("SPL: Setting auto-restart bit\n"); in mxs_power_set_auto_restart() [all …]
|
/openbmc/linux/drivers/devfreq/ |
H A D | mtk-cci-devfreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 41 const struct mtk_ccifreq_platform_data *soc_data = drv->soc_data; in mtk_ccifreq_set_voltage() 42 struct device *dev = drv->dev; in mtk_ccifreq_set_voltage() 44 int retry_max = drv->vtrack_max; in mtk_ccifreq_set_voltage() 46 if (!drv->sram_reg) { in mtk_ccifreq_set_voltage() 47 ret = regulator_set_voltage(drv->proc_reg, new_voltage, in mtk_ccifreq_set_voltage() 48 drv->soc_data->proc_max_volt); in mtk_ccifreq_set_voltage() 52 pre_voltage = regulator_get_voltage(drv->proc_reg); in mtk_ccifreq_set_voltage() 58 pre_vsram = regulator_get_voltage(drv->sram_reg); in mtk_ccifreq_set_voltage() 64 new_vsram = clamp(new_voltage + soc_data->min_volt_shift, in mtk_ccifreq_set_voltage() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/inc/ |
H A D | smu_v13_0_0_pptable.h | 37 // SMU_13_0_0_PP_THERMALCONTROLLER - Thermal Controller Type 74 …V_ENGINE = 1 << SMU_13_0_0_ODCAP_AUTO_UV_ENGINE, //Auto Under Volt GFXCLK feature 75 …C_ENGINE = 1 << SMU_13_0_0_ODCAP_AUTO_OC_ENGINE, //Auto Over Clock GFXCLK feature 76 …_OC_MEMORY = 1 << SMU_13_0_0_ODCAP_AUTO_OC_MEMORY, //Auto Over Clock MCLK feature
|
/openbmc/linux/drivers/opp/ |
H A D | of.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Texas Instruments Incorporated. 34 /* "operating-points-v2" can be an array for power domain providers */ in _opp_of_get_opp_desc_node() 35 return of_parse_phandle(np, "operating-points-v2", index); in _opp_of_get_opp_desc_node() 41 return _opp_of_get_opp_desc_node(dev->of_node, 0); in dev_pm_opp_of_get_opp_desc_node() 50 np = _opp_of_get_opp_desc_node(dev->of_node, index); in _managed_opp() 55 if (opp_table->np == np) { in _managed_opp() 58 * so will have same node-pointer, np. in _managed_opp() 61 * OPP table contains a "opp-shared" property. in _managed_opp() 63 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in _managed_opp() [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | Circuit.v1_8_1.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 37 "description": "The available OEM-specific actions for this resource.", 38 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 46 …"longDescription": "This action shall control the state of the circuit breaker or over-current pro… 55 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 71 "format": "uri-reference", 86 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 101 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" [all …]
|
H A D | PowerDistribution.v1_4_0.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 31 "description": "The available OEM-specific actions for this resource.", 32 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 40 …"longDescription": "This Redfish Specification-described type shall contain links to resources tha… 42 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 66 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count" 84 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count" 89 …operties contained in this object shall conform to the Redfish Specification-described requirement… [all …]
|
H A D | Power.v1_7_3.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 31 "description": "The available OEM-specific actions for this resource.", 32 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 43 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 85 …"longDescription": "This property shall contain the value, in volt units, of the maximum line inpu… 108 …"longDescription": "This property shall contain the value, in volt units, of the minimum line inpu… 120 …operties contained in this object shall conform to the Redfish Specification-described requirement… 174 "ACLowLine": "100-127V AC input.", [all …]
|
/openbmc/linux/drivers/video/backlight/ |
H A D | sky81452-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sky81452-backlight.c SKY81452 backlight driver 40 #define SKY81452_DEFAULT_NAME "lcd-backlight" 44 * struct sky81452_bl_platform_data - backlight platform data 46 * If it is not defined, default name is lcd-backlight. 71 dev_get_platdata(bd->dev.parent); in sky81452_bl_update_status() 72 const unsigned int brightness = (unsigned int)bd->props.brightness; in sky81452_bl_update_status() 77 ret = regmap_write(regmap, SKY81452_REG0, brightness - 1); in sky81452_bl_update_status() 82 pdata->enable << CTZ(SKY81452_EN)); in sky81452_bl_update_status() 119 reg = !strcmp(attr->attr.name, "open") ? SKY81452_REG5 : SKY81452_REG4; in sky81452_bl_show_open_short() [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/ |
H A D | Power.v1_7_3.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 31 "description": "The available OEM-specific actions for this resource.", 32 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 43 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 85 …"longDescription": "This property shall contain the value, in volt units, of the maximum line inpu… 108 …"longDescription": "This property shall contain the value, in volt units, of the minimum line inpu… 120 …operties contained in this object shall conform to the Redfish Specification-described requirement… 174 "ACLowLine": "100-127V AC input.", [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | mediatek-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Pi-Cheng Chen <pi-cheng.chen@linaro.org> 33 * 100mV < Vsram - Vproc < 200mV 71 if (cpumask_test_cpu(cpu, &info->cpus)) in mtk_cpu_dvfs_info_lookup() 81 const struct mtk_cpufreq_platform_data *soc_data = info->soc_data; in mtk_cpufreq_voltage_tracking() 82 struct regulator *proc_reg = info->proc_reg; in mtk_cpufreq_voltage_tracking() 83 struct regulator *sram_reg = info->sram_reg; in mtk_cpufreq_voltage_tracking() 85 int retry = info->vtrack_max; in mtk_cpufreq_voltage_tracking() 89 dev_err(info->cpu_dev, in mtk_cpufreq_voltage_tracking() 96 dev_err(info->cpu_dev, "invalid Vsram value: %d\n", pre_vsram); in mtk_cpufreq_voltage_tracking() [all …]
|