Home
last modified time | relevance | path

Searched +full:thermal +full:- +full:calibration (Results 1 – 25 of 103) sorted by relevance

12345

/Linux-v6.1/drivers/soc/tegra/fuse/
Dfuse-tegra30.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2022, NVIDIA CORPORATION. All rights reserved.
11 #include <linux/nvmem-consumer.h>
45 if (WARN_ON(!fuse->base)) in tegra30_fuse_read_early()
48 return readl_relaxed(fuse->base + FUSE_BEGIN + offset); in tegra30_fuse_read_early()
56 err = pm_runtime_resume_and_get(fuse->dev); in tegra30_fuse_read()
60 value = readl_relaxed(fuse->base + FUSE_BEGIN + offset); in tegra30_fuse_read()
62 pm_runtime_put(fuse->dev); in tegra30_fuse_read()
91 fuse->read_early = tegra30_fuse_read_early; in tegra30_fuse_init()
92 fuse->read = tegra30_fuse_read; in tegra30_fuse_init()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/thermal/
Dallwinner,sun8i-a83t-ths.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/thermal/allwinner,sun8i-a83t-ths.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner SUN8I Thermal Controller
10 - Vasily Khoruzhick <anarsoul@gmail.com>
11 - Yangtao Li <tiny.windzz@gmail.com>
16 - allwinner,sun8i-a83t-ths
17 - allwinner,sun8i-h3-ths
18 - allwinner,sun8i-r40-ths
[all …]
Dmediatek-thermal.txt1 * Mediatek Thermal
3 This describes the device tree binding for the Mediatek thermal controller
4 which measures the on-SoC temperatures. This device does not have its own ADC,
11 - compatible:
12 - "mediatek,mt8173-thermal" : For MT8173 family of SoCs
13 - "mediatek,mt2701-thermal" : For MT2701 family of SoCs
14 - "mediatek,mt2712-thermal" : For MT2712 family of SoCs
15 - "mediatek,mt7622-thermal" : For MT7622 SoC
16 - "mediatek,mt8183-thermal" : For MT8183 family of SoCs
17 - "mediatek,mt8516-thermal", "mediatek,mt2701-thermal : For MT8516 family of SoCs
[all …]
Dqoriq-thermal.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/qoriq-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs
10 - Anson Huang <Anson.Huang@nxp.com>
19 ---------- -----
22 - fsl,qoriq-tmu
23 - fsl,imx8mq-tmu
31 fsl,tmu-range:
[all …]
Dqcom-spmi-adc-tm-hc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm's SPMI PMIC ADC HC Thermal Monitoring
9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
13 const: qcom,spmi-adc-tm-hc
21 "#thermal-sensor-cells":
24 Number of cells required to uniquely identify the thermal sensors. Since
27 "#address-cells":
[all …]
Dsprd-thermal.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/sprd-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Spreadtrum thermal sensor controller bindings
10 - Orson Zhai <orsonzhai@gmail.com>
11 - Baolin Wang <baolin.wang7@gmail.com>
12 - Chunyan Zhang <zhang.lyra@gmail.com>
16 const: sprd,ums512-thermal
24 clock-names:
[all …]
Dimx-thermal.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/imx-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NXP i.MX Thermal Binding
10 - Shawn Guo <shawnguo@kernel.org>
11 - Anson Huang <Anson.Huang@nxp.com>
16 - fsl,imx6q-tempmon
17 - fsl,imx6sx-tempmon
18 - fsl,imx7d-tempmon
[all …]
Dqcom-spmi-adc-tm5.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm5.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm's SPMI PMIC ADC Thermal Monitoring
9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
14 - qcom,spmi-adc-tm5
15 - qcom,spmi-adc-tm5-gen2
23 "#thermal-sensor-cells":
26 Number of cells required to uniquely identify the thermal sensors. Since
[all …]
Dsocionext,uniphier-thermal.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/socionext,uniphier-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Socionext UniPhier thermal monitor
10 This describes the devicetree bindings for thermal monitor supported by
15 - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
20 - socionext,uniphier-pxs2-thermal
21 - socionext,uniphier-ld20-thermal
22 - socionext,uniphier-pxs3-thermal
[all …]
Dqcom-tsens.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 ---
5 $id: http://devicetree.org/schemas/thermal/qcom-tsens.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Amit Kucheria <amitk@kernel.org>
22 - description: msm8960 TSENS based
24 - enum:
25 - qcom,ipq8064-tsens
26 - qcom,msm8960-tsens
28 - description: v0.1 of TSENS
[all …]
/Linux-v6.1/drivers/thermal/
Damlogic_thermal.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Amlogic Thermal Sensor Driver
10 * U = ---------, Uptat = ---------
13 * Temperature = A * ( Uptat + u_efuse / 2^16 )- B
15 * A B m n : calibration parameters
16 * u_efuse : fused calibration value, it's a signed 16 bits value
29 #include <linux/thermal.h>
71 * @A: calibration parameters
72 * @B: calibration parameters
73 * @m: calibration parameters
[all …]
Dmtk_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/nvmem-consumer.h>
22 #include <linux/thermal.h>
36 /* Thermal Controller Registers */
93 /* MT8173 thermal sensors */
115 /* The calibration coefficient of sensor */
119 * Layout of the fuses providing the calibration data
121 * MT8183 has 6 sensors and needs 6 VTS calibration data.
122 * MT8173 has 5 sensors and needs 5 VTS calibration data.
123 * MT2701 has 3 sensors and needs 3 VTS calibration data.
[all …]
Ddove_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Dove thermal sensor driver
14 #include <linux/thermal.h>
19 /* Dove Thermal Manager Control and Status Register */
32 /* Dove Thermal Diode Control 1 Register */
36 /* Dove Thermal Sensor Dev Structure */
48 reg = readl_relaxed(priv->control); in dove_init_sensor()
54 /* Reference calibration value */ in dove_init_sensor()
58 /* Set the high level reference for calibration */ in dove_init_sensor()
61 writel(reg, priv->control); in dove_init_sensor()
[all …]
Dsun8i_thermal.c1 // SPDX-License-Identifier: GPL-2.0
3 * Thermal sensor driver for Allwinner SOC
16 #include <linux/nvmem-consumer.h>
22 #include <linux/thermal.h>
97 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); in sun8i_ths_calc_temp()
104 return -1191 * reg / 10 + 223000; in sun50i_h5_calc_temp()
106 return -1452 * reg / 10 + 259000; in sun50i_h5_calc_temp()
108 return -1590 * reg / 10 + 276000; in sun50i_h5_calc_temp()
113 struct tsensor *s = tz->devdata; in sun8i_ths_get_temp()
114 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp()
[all …]
Dqoriq_thermal.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/thermal.h>
67 * Thermal zone data
82 return container_of(s, struct qoriq_tmu_data, sensor[s->id]); in qoriq_sensor_to_data()
87 struct qoriq_sensor *qsensor = tz->devdata; in tmu_get_temp()
109 if (regmap_read_poll_timeout(qdata->regmap, in tmu_get_temp()
110 REGS_TRITSR(qsensor->id), in tmu_get_temp()
115 return -ENODATA; in tmu_get_temp()
117 if (qdata->ver == TMU_VER1) in tmu_get_temp()
134 if (qdata->ver == TMU_VER1) { in qoriq_tmu_register_tmu_zone()
[all …]
Drzg2l_thermal.c1 // SPDX-License-Identifier: GPL-2.0
3 * Renesas RZ/G2L TSU Thermal Sensor Driver
17 #include <linux/thermal.h>
24 /* default calibration values, if FUSE values are missing */
67 return ioread32(priv->base + reg); in rzg2l_thermal_read()
73 iowrite32(data, priv->base + reg); in rzg2l_thermal_write()
78 struct rzg2l_thermal_priv *priv = tz->devdata; in rzg2l_thermal_get_temp()
107 * where calib0 and calib1 are the calibration values. in rzg2l_thermal_get_temp()
109 val = ((dsensor - priv->calib1) * (MCELSIUS(165) / in rzg2l_thermal_get_temp()
110 (priv->calib0 - priv->calib1))) - MCELSIUS(40); in rzg2l_thermal_get_temp()
[all …]
Dsprd_thermal.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/nvmem-consumer.h>
12 #include <linux/thermal.h>
57 /* thermal sensor calibration parameters */
58 #define SPRD_THM_TEMP_LOW -40000
139 return -EINVAL; in sprd_thm_cal_read()
154 * According to thermal datasheet, the default calibration offset is 64, in sprd_thm_sensor_calibration()
163 ratio += thm->ratio_sign * thm->ratio_off; in sprd_thm_sensor_calibration()
167 * calibration value of thermal from efuse, then calibrate the real in sprd_thm_sensor_calibration()
170 * b_cal = b + (dt_offset - 64) * 500. in sprd_thm_sensor_calibration()
[all …]
Drcar_gen3_thermal.c1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Gen3 THS thermal sensor driver
18 #include <linux/thermal.h>
72 /* Structure for thermal temperature calculation */
98 return ioread32(tsc->base + reg); in rcar_gen3_thermal_read()
104 iowrite32(data, tsc->base + reg); in rcar_gen3_thermal_write()
110 * [reg] = [temp] * a + b => [temp] = ([reg] - b) / a
133 #define TJ_3 -41
145 tsc->tj_t = (FIXPT_INT((priv->ptat[1] - priv->ptat[2]) * (ths_tj_1 - TJ_3)) in rcar_gen3_thermal_calc_coefs()
146 / (priv->ptat[0] - priv->ptat[2])) + FIXPT_INT(TJ_3); in rcar_gen3_thermal_calc_coefs()
[all …]
/Linux-v6.1/Documentation/driver-api/thermal/
Dintel_powerclamp.rst6 - Arjan van de Ven <arjan@linux.intel.com>
7 - Jacob Pan <jacob.jun.pan@linux.intel.com>
12 - Goals and Objectives
15 - Idle Injection
16 - Calibration
19 - Effectiveness and Limitations
20 - Power vs Performance
21 - Scalability
22 - Calibration
23 - Comparison with Alternative Techniques
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/nvmem/
Dsunplus,sp7021-ocotp.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/nvmem/sunplus,sp7021-ocotp.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: On-Chip OTP Memory for Sunplus SP7021
11 - Vincent Shih <vincent.sunplus@gmail.com>
14 - $ref: "nvmem.yaml#"
18 const: sunplus,sp7021-ocotp
23 reg-names:
25 - const: hb_gpio
[all …]
/Linux-v6.1/drivers/thermal/st/
Dst_thermal.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ST Thermal Sensor Driver core routines
6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited
16 /* The Thermal Framework expects millidegrees */
25 struct device *dev = sensor->dev; in st_thermal_alloc_regfields()
26 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields()
27 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields()
29 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
32 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
35 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
[all …]
Dst_thermal.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * ST Thermal Sensor Driver for STi series of SoCs
6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited
15 #include <linux/thermal.h>
28 /* Thermal sensor power states */
37 * Description of private thermal sensor ops.
42 * @do_memmap_regmap: Memory map the thermal register space and init regmap
55 * Description of thermal driver compatible data.
59 * @ops: Pointer to private thermal ops for a sensor.
60 * @calibration_val: Default calibration value to be written to the DCORRECT
Dstm_thermal.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
9 #include <linux/clk-provider.h>
20 #include <linux/thermal.h>
106 dev_dbg(sensor->dev, "low:%d high:%d\n", sensor->low_temp_enabled, in stm_enable_irq()
107 sensor->high_temp_enabled); in stm_enable_irq()
110 value = readl_relaxed(sensor->base + DTS_ITENR_OFFSET); in stm_enable_irq()
113 if (sensor->low_temp_enabled) in stm_enable_irq()
116 if (sensor->high_temp_enabled) in stm_enable_irq()
120 writel_relaxed(value, sensor->base + DTS_ITENR_OFFSET); in stm_enable_irq()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/soc/mediatek/
Dmtk-svs.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/soc/mediatek/mtk-svs.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Roger Lu <roger.lu@mediatek.com>
11 - Matthias Brugger <matthias.bgg@gmail.com>
12 - Kevin Hilman <khilman@kernel.org>
24 - mediatek,mt8183-svs
25 - mediatek,mt8192-svs
38 clock-names:
[all …]
/Linux-v6.1/drivers/thermal/tegra/
Dtegra30-tsensor.c1 // SPDX-License-Identifier: GPL-2.0
3 * Tegra30 SoC Thermal Sensor driver
9 * Copyright (C) 2021 GRATE-DRIVER project
26 #include <linux/thermal.h>
96 err = reset_control_assert(ts->rst); in tegra_tsensor_hw_enable()
98 dev_err(ts->dev, "failed to assert hardware reset: %d\n", err); in tegra_tsensor_hw_enable()
102 err = clk_prepare_enable(ts->clk); in tegra_tsensor_hw_enable()
104 dev_err(ts->dev, "failed to enable clock: %d\n", err); in tegra_tsensor_hw_enable()
110 err = reset_control_deassert(ts->rst); in tegra_tsensor_hw_enable()
112 dev_err(ts->dev, "failed to deassert hardware reset: %d\n", err); in tegra_tsensor_hw_enable()
[all …]

12345