/linux/Documentation/devicetree/bindings/iio/afe/ |
H A D | temperature-transducer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/temperature-transducer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Temperature Transducer 10 - Liam Beguin <liambeguin@gmail.com> 13 A temperature transducer is a device that converts a thermal quantity 14 into any other physical quantity. This binding applies to temperature to 15 voltage (like the LTC2997), and temperature to current (like the AD590) 19 When an io-channel measures the output voltage of a temperature analog front [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | baikal,bt1-pvt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/hwmon/baikal,bt1-pvt.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Baikal-T1 PVT Sensor 11 - Serge Semin <fancer.lancer@gmail.com> 14 Baikal-T1 SoC provides an embedded process, voltage and temperature 15 sensor to monitor an internal SoC environment (chip temperature, supply 17 which may cause the system instability and even damages. The IP-block 19 control wrapper, which provides a MMIO registers-based access to the [all …]
|
/linux/drivers/thermal/qcom/ |
H A D | tsens.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/nvmem-consumer.h> 26 * struct tsens_irq_data - IRQ status and temperature violations 28 * @up_thresh: upper threshold temperature value 32 * @low_thresh: lower threshold temperature value 36 * @crit_thresh: critical threshold temperature value 40 * Structure containing data about temperature threshold settings and 81 if (priv->num_sensors > MAX_SENSORS) in tsens_read_calibration() 82 return -EINVAL; in tsens_read_calibration() 88 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &mode); in tsens_read_calibration() [all …]
|
/linux/arch/arm/boot/dts/amlogic/ |
H A D | meson8b.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 #include <dt-bindings/clock/meson8-ddr-clkc.h> 8 #include <dt-bindings/clock/meson8b-clkc.h> 9 #include <dt-bindings/gpio/meson8b-gpio.h> 10 #include <dt-bindings/power/meson8-power.h> 11 #include <dt-bindings/reset/amlogic,meson8b-reset.h> 12 #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h> 13 #include <dt-bindings/thermal/thermal.h> 18 #address-cells = <1>; 19 #size-cells = <0>; [all …]
|
H A D | meson8.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 6 #include <dt-bindings/clock/meson8-ddr-clkc.h> 7 #include <dt-bindings/clock/meson8b-clkc.h> 8 #include <dt-bindings/gpio/meson8-gpio.h> 9 #include <dt-bindings/power/meson8-power.h> 10 #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h> 11 #include <dt-bindings/reset/amlogic,meson8b-reset.h> 12 #include <dt-bindings/thermal/thermal.h> 20 #address-cells = <1>; 21 #size-cells = <0>; [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos4210.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. 7 * Copyright (c) 2010-2011 Linaro Ltd. 20 #include "exynos4-cpu-thermal.dtsi" 31 bus_acp: bus-acp { 32 compatible = "samsung,exynos-bus"; 34 clock-names = "bus"; 35 operating-points-v2 = <&bus_acp_opp_table>; 38 bus_acp_opp_table: opp-table { 39 compatible = "operating-points-v2"; [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3368.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/rk3368-cru.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/power/rk3368-power.h> 12 #include <dt-bindings/soc/rockchip,boot-mode.h> 13 #include <dt-bindings/thermal/thermal.h> 17 interrupt-parent = <&gic>; [all …]
|
/linux/drivers/thermal/tegra/ |
H A D | soctherm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2014 - 2018, NVIDIA CORPORATION. All rights reserved. 34 #include <dt-bindings/thermal/tegra124-soctherm.h> 197 #define REG_GET_MASK(r, m) (((r) & (m)) >> (ffs(m) - 1)) 200 (((v) & (m >> (ffs(m) - 1))) << (ffs(m) - 1))) 203 #define THROT_DEPTH_DIVIDEND(depth) ((256 * (100 - (depth)) / 100) - 1) 205 /* gk20a nv_therm interface N:3 Mapping. Levels defined in tegra124-soctherm.h 212 #define THROT_LEVEL_TO_DEPTH(level) ((0x1 << (level)) - 1) 214 /* get THROT_PSKIP_xxx offset per LIGHT/HEAVY throt and CPU/GPU dev */ 221 /* get THROT_xxx_CTRL offset per LIGHT/HEAVY throt */ [all …]
|
/linux/drivers/thermal/ |
H A D | amlogic_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Register value to celsius temperature formulas: 10 * U = ---------, uptat = --------- 13 * Temperature = A * ( uptat + u_efuse / 2^16 )- B 84 * @u_efuse_off: register offset to read fused calibration value 106 * Calculate a temperature value from a temperature code. 107 * The unit of the temperature is degree milliCelsius. 113 pdata->data->calibration_parameters; in amlogic_thermal_code_to_millicelsius() 117 uefuse = pdata->trim_info & TSENSOR_TRIM_SIGN_MASK ? in amlogic_thermal_code_to_millicelsius() 118 ~(pdata->trim_info & TSENSOR_TRIM_TEMP_MASK) + 1 : in amlogic_thermal_code_to_millicelsius() [all …]
|
/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3288.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/interrupt-controller/arm-gic.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/clock/rk3288-cru.h> 8 #include <dt-bindings/power/rk3288-power.h> 9 #include <dt-bindings/thermal/thermal.h> 10 #include <dt-bindings/soc/rockchip,boot-mode.h> 13 #address-cells = <2>; [all …]
|
/linux/drivers/iio/afe/ |
H A D | iio-rescale.c | 1 // SPDX-License-Identifier: GPL-2.0 33 *val *= rescale->numerator; in rescale_process_scale() 34 if (rescale->denominator == 1) in rescale_process_scale() 36 *val2 = rescale->denominator; in rescale_process_scale() 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale() 53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale() 54 tmp *= rescale->numerator; in rescale_process_scale() 82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale() 86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale() [all …]
|
/linux/drivers/iio/pressure/ |
H A D | dps310.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * The DPS310 is a barometric pressure and temperature sensor. 5 * Currently only reading a single temperature is supported by 10 * Temperature calculation: 14 * - Optionally support the FIFO 119 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 125 * Calculate temperature calibration coefficients c0 and c1. The in dps310_get_coefs() 126 * numbers are 12-bit 2's complement numbers. in dps310_get_coefs() 129 data->c0 = sign_extend32(c0, 11); in dps310_get_coefs() 132 data->c1 = sign_extend32(c1, 11); in dps310_get_coefs() [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc8180x.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2020-2023, Linaro Limited 7 #include <dt-bindings/clock/qcom,dispcc-sm8250.h> 8 #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 9 #include <dt-bindings/clock/qcom,gcc-sc8180x.h> 10 #include <dt-bindings/clock/qcom,gpucc-sm8150.h> 11 #include <dt-bindings/clock/qcom,rpmh.h> 12 #include <dt-bindings/interconnect/qcom,icc.h> 13 #include <dt-bindings/interconnect/qcom,osm-l3.h> [all …]
|
H A D | sm8150.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 7 #include <dt-bindings/dma/qcom-gpi.h> 8 #include <dt-bindings/firmware/qcom,scm.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/phy/phy-qcom-qmp.h> 11 #include <dt-bindings/power/qcom-rpmpd.h> 12 #include <dt-bindings/soc/qcom,rpmh-rsc.h> 13 #include <dt-bindings/clock/qcom,rpmh.h> 14 #include <dt-bindings/clock/qcom,dispcc-sm8150.h> [all …]
|
H A D | sdm845.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/clock/qcom,camcc-sdm845.h> 9 #include <dt-bindings/clock/qcom,dispcc-sdm845.h> 10 #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 11 #include <dt-bindings/clock/qcom,gcc-sdm845.h> 12 #include <dt-bindings/clock/qcom,gpucc-sdm845.h> 13 #include <dt-bindings/clock/qcom,lpass-sdm845.h> 14 #include <dt-bindings/clock/qcom,rpmh.h> 15 #include <dt-bindings/clock/qcom,videocc-sdm845.h> 16 #include <dt-bindings/dma/qcom-gpi.h> [all …]
|
/linux/include/soc/tegra/ |
H A D | bpmp-abi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved. 66 * A well-defined subset of the MRQ messages that the CPU sends to the 130 * -BPMP_EBADMSG and ignore the request. 144 …* | -------------------- | ------------------------------------ | --------------------------------… 223 * calculated by BPMP, -BPMP_EBADMSG will be returned and the request will 402 * @defgroup CC3 Auto-CC3 457 * mrq_ping_request challenge left shifted by 1 with the carry-bit 548 * The BPMP firmware implements a pseudo-filesystem called 637 * |-------------------|-------| [all …]
|
/linux/drivers/hwmon/ |
H A D | bt1-pvt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Baikal-T1 Process, Voltage, Temperature sensor driver 18 #include <linux/hwmon-sysfs.h> 34 #include "bt1-pvt.h" 42 PVT_SENSOR_INFO(0, "CPU Core Temperature", hwmon_temp, TEMP, TTHRES), 44 PVT_SENSOR_INFO(1, "CPU Core Low-Vt", hwmon_in, LVT, LTHRES), 45 PVT_SENSOR_INFO(2, "CPU Core High-Vt", hwmon_in, HVT, HTHRES), 46 PVT_SENSOR_INFO(3, "CPU Core Standard-Vt", hwmon_in, SVT, STHRES), 50 * The original translation formulae of the temperature (in degrees of Celsius) 51 * to PVT data and vice-versa are following: [all …]
|
/linux/drivers/iio/adc/ |
H A D | meson_saradc.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/clk-provider.h> 16 #include <linux/nvmem-consumer.h> 96 (8 + (((_chan) - 2) * 3)) 153 * and u-boot source served as reference). These only seem to be relevant on 177 /* temperature sensor calibration information in eFuse */ 384 for (i = 0; i < indio_dev->num_channels; i++) in find_channel_by_num() 385 if (indio_dev->channels[i].channel == num) in find_channel_by_num() 386 return &indio_dev->channels[i]; in find_channel_by_num() 395 regmap_read(priv->regmap, MESON_SAR_ADC_REG0, ®val); in meson_sar_adc_get_fifo_count() [all …]
|