/openbmc/linux/Documentation/devicetree/bindings/thermal/ |
H A D | generic-adc-thermal.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/thermal/generic-adc-thermal.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Laxman Dewangan <ldewangan@nvidia.com> 16 temperature using voltage-temperature lookup table. 20 const: generic-adc-thermal 22 '#thermal-sensor-cells': 25 io-channels: 28 io-channel-names: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/pmbus/ |
H A D | max31785.txt | 9 - compatible : One of "maxim,max31785" or "maxim,max31785a" 10 - reg : I2C address, one of 0x52, 0x53, 0x54, 0x55. 11 - #address-cells : Must be 1 12 - #size-cells : Must be 0 13 - #thermal-sensor-cells : Should be 1. The device supports: 14 - One internal sensor 15 - Four external I2C digital sensors 16 - Six external thermal diodes 19 - use-stored-presence : Do not treat the devicetree description as canon for 27 ---- [all …]
|
/openbmc/linux/drivers/ntb/hw/idt/ |
H A D | ntb_hw_idt.h | 7 * Copyright (C) 2016-2018 T-Platforms JSC All Rights Reserved. 36 * IDT PCIe-switch NTB Linux driver 39 * Serge Semin <fancer.lancer@gmail.com>, <Sergey.Semin@t-platforms.ru> 55 * the supported IDT PCIe-switches 66 * IDT PCIe-switches device IDs 78 * NT-function Configuration Space registers 79 * NOTE 1) The IDT PCIe-switch internal data is little-endian 83 * with byte-enables corresponding to their native size or 86 * So to simplify the driver code, there is only DWORD-sized read/write 107 /* IDT Proprietary NT-port-specific registers */ [all …]
|
H A D | ntb_hw_idt.c | 7 * Copyright (C) 2016-2018 T-Platforms JSC All Rights Reserved. 36 * IDT PCIe-switch NTB Linux driver 39 * Serge Semin <fancer.lancer@gmail.com>, <Sergey.Semin@t-platforms.ru> 59 #include <linux/hwmon-sysfs.h> 65 #define NTB_DESC "IDT PCI-E Non-Transparent Bridge Driver" 72 MODULE_AUTHOR("T-platforms"); 75 * NT Endpoint registers table simplifying a loop access to the functionally 98 * NT Endpoint ports data table with the corresponding pcie command, link 99 * status, control and BAR-related registers 241 * IDT PCIe-switch partitions table with the corresponding control, status [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | thermal-generic-adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 if (!gti->lookup_table) in gadc_thermal_adc_to_temp() 34 for (i = 0; i < gti->nlookup_table; i++) { in gadc_thermal_adc_to_temp() 35 if (val >= gti->lookup_table[2 * i + 1]) in gadc_thermal_adc_to_temp() 40 temp = gti->lookup_table[0]; in gadc_thermal_adc_to_temp() 41 } else if (i >= gti->nlookup_table) { in gadc_thermal_adc_to_temp() 42 temp = gti->lookup_table[2 * (gti->nlookup_table - 1)]; in gadc_thermal_adc_to_temp() 44 adc_hi = gti->lookup_table[2 * i - 1]; in gadc_thermal_adc_to_temp() 45 adc_lo = gti->lookup_table[2 * i + 1]; in gadc_thermal_adc_to_temp() 47 temp_hi = gti->lookup_table[2 * i - 2]; in gadc_thermal_adc_to_temp() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 Each thermal zone contains its own temperature, trip points, 25 zones discovery, temperature readings and events such as 37 int "Emergency poweroff delay in milli-seconds" 129 Select this if you want to control temperature based on 144 bool "Fair-share thermal governor" 146 Enable this to manage platform thermals using fair-share governor. 160 Say 'Y' here if you want to use two point temperature regulation 226 directory to support temperature emulation. With emulation sysfs node, 227 user can manually input temperature and test the different trip [all …]
|
H A D | k3_j72xx_bandgap.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * TI Bandgap temperature sensor driver for J72XX SoC Family 5 * Copyright (C) 2021 Texas Instruments Incorporated - http://www.ti.com/ 63 static void init_table(int factors_size, int *table, const s64 *factors) in init_table() argument 68 table[i] = compute_value(i, factors, factors_size, in init_table() 73 * struct err_values - structure containing error/reference values 74 * @refs: reference error values for -40C, 30C, 125C & 150C 75 * @errs: Actual error values for -40C, 30C, 125C & 150C read from the efuse 90 idx1 = err_vals->refs[seg]; in create_table_segments() 92 idx2 = err_vals->refs[seg + 1]; in create_table_segments() [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | max31760.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 19 ----------- 21 The MAX31760 integrates temperature sensing along with precision PWM fan 22 control. It accurately measures its local die temperature and the remote 23 temperature of a discrete diode-connected transistor, such as a 2N3906, 25 and other ASICs. Multiple temperature thresholds, such as local 27 I2C-compatible interface. Fan speed is controlled based on the temperature 28 reading as an index to a 48-byte lookup table (LUT) containing 29 user-programmed PWM values. The flexible LUT-based architecture enables 30 the user to program a smooth nonlinear fan speed vs. temperature transfer [all …]
|
H A D | ntc_thermistor.rst | 23 tables; e.g., NCP15WL333 support is added by the table ncpXXwl333. 30 ----------- 32 The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor 33 that requires users to provide the resistance and lookup the corresponding 34 compensation table to get the temperature input. 36 The NTC driver provides lookup tables with a linear approximation function 52 +----+-----------------------[read_uV] 56 -+- (ground) 58 2. connect = NTC_CONNECTED_POSITIVE, pullup_ohm = 0 (not-connected):: 64 +----------------------------[read_uV] [all …]
|
H A D | lm63.rst | 45 ----------- 47 The LM63 is a digital temperature sensor with integrated fan monitoring 53 - No low limit for local temperature. 54 - No critical limit for local temperature. 55 - Critical limit for remote temperature can be changed only once. We 56 will consider that the critical limit is read-only. 63 All temperature values are given in degrees Celsius. Resolution is 1.0 64 degree for the local temperature, 0.125 degree for the remote temperature. 67 store the value in an 8-bit register and have a selectable clock divider 68 to make sure that the result will fit in the register, the LM63 uses 16-bit [all …]
|
H A D | lm93.rst | 10 Addresses scanned: I2C 0x2c-0x2e 18 Addresses scanned: I2C 0x2c-0x2e 24 - Mark M. Hoffman <mhoffman@lightlink.com> 25 - Ported to 2.6 by Eric J. Bowersox <ericb@aspsys.com> 26 - Adapted to 2.6.20 by Carsten Emde <ce@osadl.org> 27 - Modified for mainline integration by Hans J. Koch <hjk@hansjkoch.de> 30 ----------------- 33 Set to non-zero to force some initializations (default is 0). 38 Configures in7 and in8 limit type, where 0 means absolute and non-zero 54 -------------------- [all …]
|
/openbmc/linux/include/linux/iio/adc/ |
H A D | qcom-vadc-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 /* Max ADC code represents full-scale range of 1.8V */ 35 /* Default decimation - 1024 for rev2, 840 for pmic5 */ 48 #define PMI_CHG_SCALE_1 -138890 69 * struct vadc_linear_graph - Represent ADC characteristics. 84 * enum vadc_scale_fn_type - Scaling function to convert ADC code to 87 * SCALE_THERM_100K_PULLUP: Returns temperature in millidegC. 88 * Uses a mapping table with 100K pullup. 94 * SCALE_HW_CALIB_THERM_100K_PULLUP: Returns temperature in millidegC using 95 * lookup table. The hardware applies offset/slope to adc code. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A 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 device-chemistry: [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | smu_helper.c | 38 return (uint8_t) ((6200 - (vddc * VOLTAGE_SCALE)) / 25); in convert_to_vid() 43 return (uint16_t) ((6200 - (vid * 25)) / VOLTAGE_SCALE); in convert_to_vddc() 53 uint32_t *table; in phm_copy_clock_limits_array() local 56 table = kzalloc(array_size, GFP_KERNEL); in phm_copy_clock_limits_array() 57 if (NULL == table) in phm_copy_clock_limits_array() 58 return -ENOMEM; in phm_copy_clock_limits_array() 61 table[i] = le32_to_cpu(pptable_array[i]); in phm_copy_clock_limits_array() 63 *pptable_info_array = table; in phm_copy_clock_limits_array() 75 uint32_t *table; in phm_copy_overdrive_settings_limits_array() local 78 table = kzalloc(array_size, GFP_KERNEL); in phm_copy_overdrive_settings_limits_array() [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6dl-victgo.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 /dts-v1/; 9 #include "imx6qdl-vicut1.dtsi" 15 gpio-keys { 16 compatible = "gpio-keys"; 17 pinctrl-names = "default"; 18 pinctrl-0 = <&pinctrl_gpiokeys>; 21 key-power { 25 wakeup-source; 28 key-enter { [all …]
|
H A D | imx6dl-plym2m.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/leds/common.h> 17 stdout-path = &uart4; 21 compatible = "pwm-backlight"; 23 brightness-levels = <0 1000>; 24 num-interpolated-steps = <20>; 25 default-brightness-level = <19>; 26 power-supply = <®_12v0>; [all …]
|
H A D | imx6dl-prtvt7.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 8 #include "imx6qdl-prti6q.dtsi" 9 #include <dt-bindings/display/sdtv-standards.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/sound/fsl-imx-audmux.h> 23 backlight_lcd: backlight-lcd { 24 compatible = "pwm-backlight"; 26 brightness-levels = <0 20 81 248 1000>; [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_a.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #define B43_PHY_VERSION_OFDM B43_PHY_OFDM(0x00) /* Versioning register for A-PHY */ 30 #define B43_PHY_OTABLECTL B43_PHY_OFDM(0x72) /* OFDM table control (see below) */ 31 #define B43_PHY_OTABLEOFF 0x03FF /* OFDM table offset (see below) */ 32 #define B43_PHY_OTABLENR 0xFC00 /* OFDM table number (see below) */ 34 #define B43_PHY_OTABLEI B43_PHY_OFDM(0x73) /* OFDM table data I */ 35 #define B43_PHY_OTABLEQ B43_PHY_OFDM(0x74) /* OFDM table data Q */ 39 #define B43_PHY_A_TEMP_SENSE B43_PHY_OFDM(0x7C) /* A PHY temperature sense */ 60 #define B43_PHY_TSSIP_LTBASE B43_PHY_OFDM(0x380) /* TSSI power lookup table base */ 61 #define B43_PHY_DC_LTBASE B43_PHY_OFDM(0x3A0) /* DC lookup table base */ [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | lm63.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * lm63.c - driver for the National Semiconductor LM63 temperature sensor 5 * Copyright (C) 2004-2008 Jean Delvare <jdelvare@suse.de> 16 * - No low limit for local temperature. 17 * - No critical limit for local temperature. 18 * - Critical limit for remote temperature can be changed only once. We 19 * will consider that the critical limit is read-only. 32 #include <linux/hwmon-sysfs.h> 102 * For tachometer counts, the LM63 uses 16-bit values. 103 * For local temperature and high limit, remote critical limit and hysteresis [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | pptable.h | 35 UCHAR ucFanMinRPM; // Fan Minimum RPM (hundreds) -- for display purposes only. 36 UCHAR ucFanMaxRPM; // Fan Maximum RPM (hundreds) -- for display purposes only. 37 UCHAR ucReserved; // ---- 77 UCHAR ucClockStateIndices[1]; // variable-sized 83 …UCHAR ucFanTableFormat; // Change this if the table format changes or version cha… 84 UCHAR ucTHyst; // Temperature hysteresis. Integer. 85 …USHORT usTMin; // The temperature, in 0.01 centigrades, below which we j… 86 USHORT usTMed; // The middle temperature where we change slopes. 96 USHORT usTMax; // The max temperature 135 …GOTO_BOOT_ON_ALERT 0x2000 // Go to boot state on alerts, e.g. on an AC->DC transition. [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/include/ |
H A D | pptable.h | 35 UCHAR ucFanMinRPM; // Fan Minimum RPM (hundreds) -- for display purposes only. 36 UCHAR ucFanMaxRPM; // Fan Maximum RPM (hundreds) -- for display purposes only. 37 UCHAR ucReserved; // ---- 81 UCHAR ucClockStateIndices[]; // variable-sized 87 …UCHAR ucFanTableFormat; // Change this if the table format changes or version cha… 88 UCHAR ucTHyst; // Temperature hysteresis. Integer. 89 …USHORT usTMin; // The temperature, in 0.01 centigrades, below which we j… 90 USHORT usTMed; // The middle temperature where we change slopes. 100 USHORT usTMax; // The max temperature 158 …GOTO_BOOT_ON_ALERT 0x2000 // Go to boot state on alerts, e.g. on an AC->DC transition. [all …]
|
/openbmc/linux/drivers/staging/rtl8723bs/hal/ |
H A D | HalPhyRf.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 19 /* delta of temperature between two TxPowerTracking watch dogs. */ 21 /* NOTE: If Tx BB swing or Tx scaling is varified during run-time, still */ 26 struct hal_com_data *pHalData = GET_HAL_DATA(pDM_Odm->Adapter); in ODM_ClearTxPowerTrackingState() 29 pDM_Odm->BbSwingIdxCckBase = pDM_Odm->DefaultCckIndex; in ODM_ClearTxPowerTrackingState() 30 pDM_Odm->BbSwingIdxCck = pDM_Odm->DefaultCckIndex; in ODM_ClearTxPowerTrackingState() 31 pDM_Odm->RFCalibrateInfo.CCK_index = 0; in ODM_ClearTxPowerTrackingState() 34 pDM_Odm->BbSwingIdxOfdmBase[p] = pDM_Odm->DefaultOfdmIndex; in ODM_ClearTxPowerTrackingState() 35 pDM_Odm->BbSwingIdxOfdm[p] = pDM_Odm->DefaultOfdmIndex; in ODM_ClearTxPowerTrackingState() [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | cpcap-adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2009-2010 Motorola, Inc. 27 #include <linux/mfd/motorola-cpcap.h> 86 * struct cpcap_adc_ato - timing settings for cpcap adc 103 * struct cpcap_adc - cpcap adc device driver data 125 * enum cpcap_adc_channel - cpcap adc channels 129 CPCAP_ADC_AD0, /* Battery temperature */ 132 CPCAP_ADC_AD3, /* Die temperature when charging */ 156 * enum cpcap_adc_timing - cpcap adc timing options 168 * struct cpcap_adc_phasing_tbl - cpcap phasing table [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | bq25890_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 113 char name[28]; /* "bq25890-charger-%d" */ 272 * Most of the val -> idx conversions can be computed, given the minimum, 274 * lookup tables. 288 /* lookup tables */ 294 /* Thermal Regulation Threshold lookup table, in degrees Celsius */ 299 /* Boost mode current limit lookup table, in uA */ 306 /* NTC 10K temperature lookup table in tenths of a degree */ 322 0, -10, -20, -30, -40, -60, -70, -80, 323 -90, -10, -120, -140, -150, -170, -190, -210, [all …]
|
H A D | smb347-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #include <dt-bindings/power/summit,smb347-charger.h> 26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1 28 /* Use default factory programmed value for hard/soft temperature limit */ 29 #define SMB3XX_TEMP_USE_DEFAULT -273 34 * reloaded from non-volatile registers after POR. 136 * struct smb347_charger - smb347 charger instance 149 * @pre_charge_current: current (in uA) to use in pre-charging phase 153 * pre-charge to fast charge mode 157 * @chip_temp_threshold: die temperature where device starts limiting charge [all …]
|