Home
last modified time | relevance | path

Searched +full:temperature +full:- +full:lookup +full:- +full:table (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.14.4/Documentation/devicetree/bindings/thermal/
Dgeneric-adc-thermal.yaml1 # 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 <[email protected]>
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-6.14.4/drivers/ntb/hw/idt/
Dntb_hw_idt.h7 * Copyright (C) 2016-2018 T-Platforms JSC All Rights Reserved.
36 * IDT PCIe-switch NTB Linux driver
39 * Serge Semin <[email protected]>, <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 …]
Dntb_hw_idt.c7 * Copyright (C) 2016-2018 T-Platforms JSC All Rights Reserved.
36 * IDT PCIe-switch NTB Linux driver
39 * Serge Semin <[email protected]>, <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 …]
/linux-6.14.4/drivers/thermal/
Dthermal-generic-adc.c1 // 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 …]
DKconfig1 # 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
47 Say Y to add a debugfs-based thermal core testing facility.
53 int "Emergency poweroff delay in milli-seconds"
130 Select this if you want to control temperature based on
145 bool "Fair-share thermal governor"
147 Enable this to manage platform thermals using fair-share governor.
161 Say 'Y' here if you want to use two point temperature regulation
236 directory to support temperature emulation. With emulation sysfs node,
[all …]
Dk3_j72xx_bandgap.c1 // 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 …]
/linux-6.14.4/Documentation/hwmon/
Dmax31760.rst1 .. 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 …]
Dntc_thermistor.rst23 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 …]
Dlm63.rst45 -----------
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 …]
Dlm93.rst10 Addresses scanned: I2C 0x2c-0x2e
18 Addresses scanned: I2C 0x2c-0x2e
24 - Mark M. Hoffman <[email protected]>
25 - Ported to 2.6 by Eric J. Bowersox <[email protected]>
26 - Adapted to 2.6.20 by Carsten Emde <[email protected]>
27 - Modified for mainline integration by Hans J. Koch <[email protected]>
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-6.14.4/include/linux/iio/adc/
Dqcom-vadc-common.h1 /* 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-6.14.4/Documentation/devicetree/bindings/power/supply/
Dbattery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <[email protected]>
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-6.14.4/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu_helper.c38 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-6.14.4/arch/arm/boot/dts/nxp/imx/
Dimx6dl-victgo.dts1 // 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 …]
Dimx6dl-plym2m.dts1 // 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 = <&reg_12v0>;
[all …]
Dimx6dl-prtvt7.dts1 // 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 …]
/linux-6.14.4/drivers/hwmon/
Dlm63.c1 // 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 <[email protected]>
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-6.14.4/drivers/net/wireless/broadcom/b43/
Dphy_a.h1 /* 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-6.14.4/arch/arm64/boot/dts/mediatek/
Dmt8186-corsola-starmie.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
6 /dts-v1/;
7 #include "mt8186-corsola.dtsi"
10 en_pp6000_mipi_disp_150ma: en-pp6000-mipi-disp-150ma {
11 compatible = "regulator-fixed";
12 regulator-name = "en_pp6000_mipi_disp_150ma";
14 enable-active-high;
15 pinctrl-names = "default";
16 pinctrl-0 = <&en_pp6000_mipi_disp_150ma_fixed_pins>;
21 * with 6V module for enabling panel, re-using eDP GPIOs.
[all …]
Dmt8395-kontron-3-5-sbc-i1200.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 /dts-v1/;
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/leds/common.h>
15 #include <dt-bindings/pinctrl/mt8195-pinfunc.h>
16 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
17 #include <dt-bindings/spmi/spmi.h>
20 model = "Kontron 3.5\"-SBC-i1200";
21 compatible = "kontron,3-5-sbc-i1200", "mediatek,mt8395", "mediatek,mt8195";
[all …]
/linux-6.14.4/arch/arm/boot/dts/rockchip/
Drv1109-relfor-saib.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/input/input.h>
16 gpio-keys {
17 compatible = "gpio-keys";
23 linux,input-type = <1>;
27 ir_receiver: ir-receiver {
28 compatible = "gpio-ir-receiver";
30 pinctrl-names = "default";
[all …]
/linux-6.14.4/drivers/gpu/drm/radeon/
Dpptable.h35 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-6.14.4/drivers/gpu/drm/amd/include/
Dpptable.h35 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 …]
/linux-6.14.4/drivers/staging/rtl8723bs/hal/
DHalPhyRf.c1 // 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-6.14.4/drivers/iio/adc/
Dcpcap-adc.c1 // 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 …]

12