/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. 18 $ref: thermal-sensor.yaml# 22 const: generic-adc-thermal 24 '#thermal-sensor-cells': 27 io-channels: [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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[]; // 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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
H A D | power_supply_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include <linux/fixp-arith.h> 27 #include "samsung-sdi-battery.h" 48 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 52 if (supply->supplied_from) { in __power_supply_is_supplied_by() 53 if (!supplier->desc->name) in __power_supply_is_supplied_by() 55 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by() 56 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 59 if (!supply->desc->name) in __power_supply_is_supplied_by() 61 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by() [all …]
|
H A D | da9052-battery.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 /* Lookup table for voltage vs capacity */ 53 /* For temperature 10 degree Celsius */ 90 /* For temperature 25 degree Celsius */ 127 /* For temperature 40 degree Celsius */ 190 if (bat->status == POWER_SUPPLY_STATUS_DISCHARGING) in da9052_read_chgend_current() 191 return -EINVAL; in da9052_read_chgend_current() 193 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_END_REG); in da9052_read_chgend_current() 206 if (bat->status == POWER_SUPPLY_STATUS_DISCHARGING) in da9052_read_chg_current() 207 return -EINVAL; in da9052_read_chg_current() [all …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8195-cherry.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/spmi/spmi.h> 25 backlight_lcd0: backlight-lcd0 { 26 compatible = "pwm-backlight"; 27 brightness-levels = <0 1023>; 28 default-brightness-level = <576>; 29 enable-gpios = <&pio 82 GPIO_ACTIVE_HIGH>; 30 num-interpolated-steps = <1023>; 32 power-supply = <&ppvar_sys>; [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | dm.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2010 Realtek Corporation.*/ 17 0x081, /* 0, -12.0dB */ 18 0x088, /* 1, -11.5dB */ 19 0x090, /* 2, -11.0dB */ 20 0x099, /* 3, -10.5dB */ 21 0x0A2, /* 4, -10.0dB */ 22 0x0AC, /* 5, -9.5dB */ 23 0x0B6, /* 6, -9.0dB */ 24 0x0C0, /* 7, -8.5dB */ [all …]
|
/linux/Documentation/firmware-guide/acpi/ |
H A D | enumeration.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 that are accessed through memory-mapped registers. 15 In order to support this and re-use the existing drivers as much as 18 - Devices that have no bus connector resource are represented as 21 - Devices behind real busses where there is a connector resource 34 This means that when ACPI_HANDLE(dev) returns non-NULL the device was 36 device-specific configuration. There is an example of this below. 43 for the device and add supported ACPI IDs. If this same IP-block is used on 44 some other non-ACPI platform, the driver might work out of the box or needs 164 FixedDMA resource array, "rx" means the second entry. The table below shows a [all …]
|
/linux/drivers/clk/tegra/ |
H A D | clk-dfll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * clk-dfll.c - Tegra DFLL clock source common code 5 * Copyright (C) 2012-2019 NVIDIA Corporation. All rights reserved. 12 * "CL-DVFS". To try to avoid confusion, this code refers to them 18 * DFLL can be operated in either open-loop mode or closed-loop mode. 19 * In open-loop mode, the DFLL generates an output clock appropriate 20 * to the supply voltage. In closed-loop mode, when configured with a 27 * performance-measurement code and any code that relies on the CPU 32 #include <linux/clk-provider.h> 49 #include "clk-dfll.h" [all …]
|