Home
last modified time | relevance | path

Searched +full:msm8916 +full:- +full:tsens (Results 1 – 3 of 3) sorted by relevance

/linux-5.10/Documentation/devicetree/bindings/thermal/
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#
8 title: QCOM SoC Temperature Sensor (TSENS)
11 - Amit Kucheria <amitk@kernel.org>
14 QCOM SoCs have TSENS IP to allow temperature measurement. There are currently
22 - description: v0.1 of TSENS
24 - enum:
25 - qcom,msm8916-tsens
[all …]
/linux-5.10/arch/arm64/boot/dts/qcom/
Dmsm8916.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
6 #include <dt-bindings/arm/coresight-cti-dt.h>
7 #include <dt-bindings/clock/qcom,gcc-msm8916.h>
8 #include <dt-bindings/clock/qcom,rpmcc.h>
9 #include <dt-bindings/interconnect/qcom,msm8916.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/reset/qcom,gcc-msm8916.h>
12 #include <dt-bindings/thermal/thermal.h>
15 interrupt-parent = <&intc>;
[all …]
/linux-5.10/drivers/thermal/qcom/
Dtsens.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/nvmem-consumer.h>
20 #include "tsens.h"
23 * struct tsens_irq_data - IRQ status and temperature violations
74 * and offset values are derived from tz->tzp->slope and tz->tzp->offset
83 for (i = 0; i < priv->num_sensors; i++) { in compute_intercept_slope()
84 dev_dbg(priv->dev, in compute_intercept_slope()
85 "%s: sensor%d - data_point1:%#x data_point2:%#x\n", in compute_intercept_slope()
88 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
91 * slope (m) = adc_code2 - adc_code1 (y2 - y1)/ in compute_intercept_slope()
[all …]