/openbmc/linux/drivers/soc/tegra/fuse/ |
H A D | fuse-tegra30.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2013-2022, NVIDIA CORPORATION. All rights reserved. 11 #include <linux/nvmem-consumer.h> 12 #include <linux/nvmem-provider.h> 44 if (WARN_ON(!fuse->base)) in tegra30_fuse_read_early() 47 return readl_relaxed(fuse->base + FUSE_BEGIN + offset); in tegra30_fuse_read_early() 55 err = pm_runtime_resume_and_get(fuse->dev); in tegra30_fuse_read() 59 value = readl_relaxed(fuse->base + FUSE_BEGIN + offset); in tegra30_fuse_read() 61 pm_runtime_put(fuse->dev); in tegra30_fuse_read() 90 fuse->read_early = tegra30_fuse_read_early; in tegra30_fuse_init() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/thermal/ |
H A D | allwinner,sun8i-a83t-ths.yaml | 1 # 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 …]
|
H A D | mediatek-thermal.txt | 1 * 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,mt7981-thermal", "mediatek,mt7986-thermal" : For MT7981 SoC 17 - "mediatek,mt7986-thermal" : For MT7986 SoC [all …]
|
H A D | qoriq-thermal.yaml | 1 # 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 …]
|
H A D | sprd-thermal.yaml | 1 # 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 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 …]
|
H A D | qcom-spmi-adc-tm-hc.yaml | 1 # 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 …]
|
H A D | mediatek,lvts-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/mediatek,lvts-thermal.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek SoC Low Voltage Thermal Sensor (LVTS) 10 - Balsam CHIHI <bchihi@baylibre.com> 13 LVTS is a thermal management architecture composed of three subsystems, 14 a Sensing device - Thermal Sensing Micro Circuit Unit (TSMCU), 15 a Converter - Low Voltage Thermal Sensor converter (LVTS), and 21 - mediatek,mt8192-lvts-ap [all …]
|
H A D | qcom-tsens.yaml | 1 # 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 …]
|
H A D | imx-thermal.yaml | 1 # 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 10 - Shawn Guo <shawnguo@kernel.org> 11 - Anson Huang <Anson.Huang@nxp.com> 16 - enum: 17 - fsl,imx6q-tempmon 18 - fsl,imx6sx-tempmon [all …]
|
H A D | qcom-spmi-adc-tm5.yaml | 1 # 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 16 - qcom,adc-tm7 # Incomplete / subject to change 24 "#thermal-sensor-cells": [all …]
|
H A D | socionext,uniphier-thermal.yaml | 1 # 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 …]
|
H A D | imx8mm-thermal.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP i.MX8M Mini Thermal 10 - Anson Huang <Anson.Huang@nxp.com> 22 - enum: 23 - fsl,imx8mm-tmu 24 - fsl,imx8mp-tmu 25 - items: [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | amlogic_thermal.c | 1 // 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 27 #include <linux/thermal.h> 68 * @A: calibration parameters 69 * @B: calibration parameters 70 * @m: calibration parameters [all …]
|
H A D | dove_thermal.c | 1 // 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 …]
|
H A D | sun8i_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Thermal sensor driver for Allwinner SOC 16 #include <linux/nvmem-consumer.h> 22 #include <linux/thermal.h> 95 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); in sun8i_ths_calc_temp() 102 return -1191 * reg / 10 + 223000; in sun50i_h5_calc_temp() 104 return -1452 * reg / 10 + 259000; in sun50i_h5_calc_temp() 106 return -1590 * reg / 10 + 276000; in sun50i_h5_calc_temp() 112 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp() 115 regmap_read(tmdev->regmap, tmdev->chip->temp_data_base + in sun8i_ths_get_temp() [all …]
|
H A D | qoriq_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/thermal.h> 69 * Thermal zone data 85 return container_of(s, struct qoriq_tmu_data, sensor[s->id]); in qoriq_sensor_to_data() 113 regmap_read(qdata->regmap, REGS_TMR, &val); in tmu_get_temp() 115 return -EAGAIN; in tmu_get_temp() 117 if (regmap_read_poll_timeout(qdata->regmap, in tmu_get_temp() 118 REGS_TRITSR(qsensor->id), in tmu_get_temp() 123 return -ENODATA; in tmu_get_temp() 125 if (qdata->ver == TMU_VER1) { in tmu_get_temp() [all …]
|
H A D | rzg2l_thermal.c | 1 // 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() 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() 139 return readl_poll_timeout(priv->base + TSU_SS, reg_val, in rzg2l_thermal_init() [all …]
|
H A D | sprd_thermal.c | 1 // 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 …]
|
/openbmc/linux/drivers/thermal/mediatek/ |
H A D | auxadc_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/nvmem-consumer.h> 21 #include <linux/thermal.h> 36 /* Thermal Controller Registers */ 93 /* MT8173 thermal sensors */ 115 /* The calibration coefficient of sensor */ 119 #define MT8173_TEMP_MIN -20000 123 * Layout of the fuses providing the calibration data 125 * MT8183 has 6 sensors and needs 6 VTS calibration data. 126 * MT8173 has 5 sensors and needs 5 VTS calibration data. [all …]
|
H A D | lvts_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/clk-provider.h> 15 #include <linux/nvmem-consumer.h> 19 #include <linux/thermal.h> 20 #include <dt-bindings/thermal/mediatek,lvts-thermal.h> 83 #define LVTS_COEFF_A -250460 129 u32 calibration[LVTS_SENSOR_MAX]; member 206 lvts_td->dom_dentry = debugfs_create_dir(dev_name(dev), NULL); in lvts_debugfs_init() 207 if (IS_ERR(lvts_td->dom_dentry)) in lvts_debugfs_init() 210 for (i = 0; i < lvts_td->num_lvts_ctrl; i++) { in lvts_debugfs_init() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/nvmem/ |
H A D | sunplus,sp7021-ocotp.yaml | 1 # 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 …]
|
/openbmc/linux/drivers/thermal/st/ |
H A D | st_thermal.c | 1 // 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 …]
|
/openbmc/linux/Documentation/admin-guide/thermal/ |
H A D | intel_powerclamp.rst | 6 - 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 …]
|
/openbmc/u-boot/drivers/power/ |
H A D | exynos-tmu.c | 6 * EXYNOS - Thermal Management Unit 17 * MA 02111-1307 USA 50 /* Tmeperature threshold values for various thermal events */ 64 /* Pre-defined values and thresholds for calibration of current temperature */ 66 /* pre-defined temperature thresholds */ 68 /* pre-defined efuse range minimum value */ 70 /* pre-defined efuse value for temperature calibration */ 72 /* pre-defined efuse range maximum value */ 84 /* pre-defined values for calibration and thresholds */ 86 /* value required for triminfo_25 calibration */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/soc/mediatek/ |
H A D | mtk-svs.yaml | 1 # 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 …]
|