/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adi,adm1275.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Krzysztof Kozlowski <krzk@kernel.org> 15 that offer digital current, voltage, and power monitoring using an on-chip, 16 12-bit analog-to-digital converter (ADC), communicated through a PMBus 25 - adi,adm1075 26 - adi,adm1272 27 - adi,adm1275 28 - adi,adm1276 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
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 20 - $ref: power-supply.yaml# 25 - ti,bq25980 26 - ti,bq25975 27 - ti,bq25960 32 ti,watchdog-timeout-ms: [all …]
|
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 …]
|
/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 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> 75 int ocv[UG3105_MOV_AVG_WINDOW]; /* micro-volt */ 76 int intern_res[UG3105_MOV_AVG_WINDOW]; /* milli-ohm */ [all …]
|
H A D | sc27xx_fuel_gauge.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/nvmem-consumer.h> 68 /* micro Ohms */ 139 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->cur_1000ma_adc); in sc27xx_fgu_adc_to_current() 144 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc); in sc27xx_fgu_adc_to_voltage() 149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc() 156 ret = regmap_read(data->regmap, in sc27xx_fgu_is_first_poweron() 157 data->base + SC27XX_FGU_USER_AREA_STATUS, &status); in sc27xx_fgu_is_first_poweron() 184 ret = regmap_update_bits(data->regmap, in sc27xx_fgu_save_boot_mode() 185 data->base + SC27XX_FGU_USER_AREA_CLEAR, in sc27xx_fgu_save_boot_mode() [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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | maxim,max8997.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 15 motor driver, flash LED driver and Micro-USB Interface Controller. 22 const: maxim,max8997-pmic 24 charger-supply: 30 - description: irq1 interrupt 31 - description: alert interrupt 33 max8997,pmic-buck1-dvs-voltage: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-lm3692x.txt | 1 * Texas Instruments - LM3692x Highly Efficient White LED Driver 3 The LM3692x is an ultra-compact, highly efficient, 4 white-LED driver designed for LCD display backlighting. 11 - compatible: 14 - reg : I2C slave address 15 - #address-cells : 1 16 - #size-cells : 0 19 - enable-gpios : gpio pin to enable/disable the device. 20 - vled-supply : LED supply 21 - ti,ovp-microvolt: Overvoltage protection in [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | corsair-psu.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 3 Kernel driver corsair-psu 37 ----------- 41 These power supplies provide access to a micro-controller with 2 attached 42 temperature sensors, 1 fan rpm sensor, 4 sensors for volt levels, 4 sensors for 43 power usage and 4 sensors for current levels and additional non-sensor information 47 ------------- 81 ----------- 83 It is an USB HID device, so it is auto-detected, supports hot-swapping and 93 ---------------
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/inc/ |
H A D | smu_v13_0_pptable.h | 2 * Copyright 2020 Advanced Micro Devices, Inc. 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
|
H A D | smu_v11_0_pptable.h | 2 * Copyright 2018 Advanced Micro Devices, Inc. 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
|
H A D | smu_v13_0_7_pptable.h | 2 * Copyright 2022 Advanced Micro Devices, Inc. 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
|
H A D | smu_v11_0_7_pptable.h | 2 * Copyright 2020 Advanced Micro Devices, Inc. 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
|
/openbmc/linux/drivers/gpu/drm/amd/pm/inc/ |
H A D | smu_v13_0_0_pptable.h | 2 * Copyright 2021 Advanced Micro Devices, Inc. 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
|
/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 …]
|
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Texas Instruments Incorporated. 26 * The root of the list of all opp-tables. All opp_table structures branch off 45 mutex_lock(&opp_table->lock); in _find_opp_dev() 46 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev() 47 if (opp_dev->dev == dev) { in _find_opp_dev() 52 mutex_unlock(&opp_table->lock); in _find_opp_dev() 67 return ERR_PTR(-ENODEV); in _find_opp_table_unlocked() 71 * _find_opp_table() - find opp_table struct using device pointer 76 * Return: pointer to 'struct opp_table' if found, otherwise -ENODEV or [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | twl4030-madc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * TWL4030 MADC module driver-This driver monitors the real time 8 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 9 * J Keerthy <j-keerthy@ti.com> 11 * Based on twl4030-madc.c 119 * struct twl4030_madc_request - madc request packet for channel conversion 154 * struct twl4030_madc_data - a container for madc info 159 * @use_second_irq: IRQ selection (main or co-processor) 183 req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1; in twl4030_madc_read() 185 req.channels = BIT(chan->channel); in twl4030_madc_read() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/ |
H A D | dce110_timing_generator_v.c | 2 * Copyright 2017 Advanced Micro Devices, Inc. 42 tg->ctx->logger 64 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc() 69 dm_write_reg(tg->ctx, mmCRTCV_MASTER_UPDATE_MODE, value); in dce110_timing_generator_v_enable_crtc() 74 dm_write_reg(tg->ctx, in dce110_timing_generator_v_enable_crtc() 84 value = dm_read_reg(tg->ctx, in dce110_timing_generator_v_disable_crtc() 90 dm_write_reg(tg->ctx, in dce110_timing_generator_v_disable_crtc() 94 * tg->funcs->disable_stereo(tg); in dce110_timing_generator_v_disable_crtc() 102 uint32_t value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_v_blank_crtc() 116 dm_write_reg(tg->ctx, addr, value); in dce110_timing_generator_v_blank_crtc() [all …]
|
H A D | dce110_timing_generator.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 48 #define CRTC_REG(reg) (reg + tg110->offsets.crtc) 49 #define DCP_REG(reg) (reg + tg110->offsets.dcp) 69 if (timing->flags.INTERLACE == 1) { in dce110_timing_generator_apply_front_porch_workaround() 70 if (timing->v_front_porch < 2) in dce110_timing_generator_apply_front_porch_workaround() 71 timing->v_front_porch = 2; in dce110_timing_generator_apply_front_porch_workaround() 73 if (timing->v_front_porch < 1) in dce110_timing_generator_apply_front_porch_workaround() 74 timing->v_front_porch = 1; in dce110_timing_generator_apply_front_porch_workaround() 100 value = dm_read_reg(tg->ctx, addr); in dce110_timing_generator_is_in_vertical_blank() 113 regval = dm_read_reg(tg->ctx, address); in dce110_timing_generator_set_early_control() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | ti-abb-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2012-2013 Texas Instruments, Inc. 27 * FAST_OPP: sets ABB LDO to Forward Body-Bias 28 * SLOW_OPP: sets ABB LDO to Reverse Body-Bias 35 * struct ti_abb_info - ABB information per voltage setting 48 * struct ti_abb_reg - Register description for ABB block 51 * @sr2_wtcnt_value_mask: setup register- sr2_wtcnt_value mask 52 * @fbb_sel_mask: setup register- FBB sel mask 53 * @rbb_sel_mask: setup register- RBB sel mask 54 * @sr2_en_mask: setup register- enable mask [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | adt7475.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * adt7475 - Thermal sensor driver for the ADT7475 chip and derivatives 4 * Copyright (C) 2007-2008, Advanced Micro Devices, Inc. 17 #include <linux/hwmon-sysfs.h> 18 #include <linux/hwmon-vid.h> 36 * These are unique identifiers for the sysfs functions - unlike the 232 if (!(data->config5 & CONFIG5_TWOSCOMP)) { in temp2reg() 233 val = clamp_val(val, -64000, 191000); in temp2reg() 236 val = clamp_val(val, -128000, 127000); in temp2reg() 237 if (val < -500) in temp2reg() [all …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | adm1275.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller 116 [0] = { 27169, 0, -1 }, /* voltage */ 117 [1] = { 806, 20475, -1 }, /* current, irange25 */ 118 [2] = { 404, 20475, -1 }, /* current, irange50 */ 119 [3] = { 8549, 0, -1 }, /* power, irange25 */ 120 [4] = { 4279, 0, -1 }, /* power, irange50 */ 124 [0] = { 6770, 0, -2 }, /* voltage, vrange 60V */ 125 [1] = { 4062, 0, -2 }, /* voltage, vrange 100V */ 126 [2] = { 1326, 20480, -1 }, /* current, vsense range 15mV */ [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-facebook-bletchley.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/usb/pd.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/i2c/i2c.h> 14 compatible = "facebook,bletchley-bmc", "aspeed,ast2600"; 29 iio-hwmon { [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce120/ |
H A D | dce120_timing_generator.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 43 generic_reg_update_soc15(tg110->base.ctx, tg110->offsets.crtc, reg_name, n, __VA_ARGS__) 46 generic_reg_set_soc15(tg110->base.ctx, tg110->offsets.crtc, reg_name, n, __VA_ARGS__) 91 tg->ctx, in dce120_timing_generator_is_in_vertical_blank() 93 tg110->offsets.crtc); in dce120_timing_generator_is_in_vertical_blank() 106 uint32_t interlace_factor = timing->flags.INTERLACE ? 2 : 1; in dce120_timing_generator_validate_timing() 108 (timing->v_total - timing->v_addressable - in dce120_timing_generator_validate_timing() 109 timing->v_border_top - timing->v_border_bottom) * in dce120_timing_generator_validate_timing() 120 if (v_blank < tg110->min_v_blank || in dce120_timing_generator_validate_timing() 121 timing->h_sync_width < tg110->min_h_sync_width || in dce120_timing_generator_validate_timing() [all …]
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos4412-midas.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 12 /dts-v1/; 14 #include "exynos4412-ppmu-common.dtsi" 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/input/input.h> 18 #include <dt-bindings/interrupt-controller/irq.h> 19 #include <dt-bindings/clock/maxim,max77686.h> 20 #include "exynos-pinctrl.h" 34 stdout-path = &serial_2; 38 compatible = "samsung,secure-firmware"; [all …]
|