Merge "defconfig: msm: Enable TSENS driver for Kona"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
a3d9530ab5
358
arch/arm64/boot/dts/qcom/kona-thermal.dtsi
Normal file
358
arch/arm64/boot/dts/qcom/kona-thermal.dtsi
Normal file
@@ -0,0 +1,358 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/thermal/thermal.h>
|
||||||
|
|
||||||
|
&thermal_zones {
|
||||||
|
aoss0-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
thermal-sensors = <&tsens0 0>;
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-0-0-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
thermal-sensors = <&tsens0 1>;
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-0-1-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
thermal-sensors = <&tsens0 2>;
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-0-2-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
thermal-sensors = <&tsens0 3>;
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-0-3-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 4>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpuss-0-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 5>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpuss-1-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 6>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-0-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 7>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-1-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 8>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-2-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 9>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-3-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 10>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-4-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 11>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-5-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 12>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-6-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 13>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-1-7-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 14>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gpuss-0-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens0 15>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
aoss-1-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 0>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cwlan-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 1>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
video-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 2>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ddr-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 3>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
q6-hvx-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 4>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
camera-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 5>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cmpss-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 6>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
npu-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&tsens1 7>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gpuss-1-usr {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-governor = "user_space";
|
||||||
|
thermal-sensors = <&tsens1 8>;
|
||||||
|
trips {
|
||||||
|
active-config0 {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <1000>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -1969,6 +1969,28 @@
|
|||||||
status = "ok";
|
status = "ok";
|
||||||
qcom,firmware-name = "slpi";
|
qcom,firmware-name = "slpi";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tsens0: tsens@c222000 {
|
||||||
|
compatible = "qcom,tsens24xx";
|
||||||
|
reg = <0xc222000 0x4>,
|
||||||
|
<0xc263000 0x1ff>;
|
||||||
|
reg-names = "tsens_srot_physical",
|
||||||
|
"tsens_tm_physical";
|
||||||
|
interrupts = <0 506 0>, <0 508 0>;
|
||||||
|
interrupt-names = "tsens-upper-lower", "tsens-critical";
|
||||||
|
#thermal-sensor-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
tsens1: tsens@c223000 {
|
||||||
|
compatible = "qcom,tsens24xx";
|
||||||
|
reg = <0xc223000 0x4>,
|
||||||
|
<0xc265000 0x1ff>;
|
||||||
|
reg-names = "tsens_srot_physical",
|
||||||
|
"tsens_tm_physical";
|
||||||
|
interrupts = <0 507 0>, <0 509 0>;
|
||||||
|
interrupt-names = "tsens-upper-lower", "tsens-critical";
|
||||||
|
#thermal-sensor-cells = <1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "kona-bus.dtsi"
|
#include "kona-bus.dtsi"
|
||||||
@@ -1989,4 +2011,5 @@
|
|||||||
|
|
||||||
#include "kona-camera.dtsi"
|
#include "kona-camera.dtsi"
|
||||||
#include "kona-qupv3.dtsi"
|
#include "kona-qupv3.dtsi"
|
||||||
|
#include "kona-thermal.dtsi"
|
||||||
|
|
||||||
|
|||||||
@@ -308,6 +308,7 @@ CONFIG_THERMAL_GOV_USER_SPACE=y
|
|||||||
CONFIG_THERMAL_GOV_LOW_LIMITS=y
|
CONFIG_THERMAL_GOV_LOW_LIMITS=y
|
||||||
CONFIG_DEVFREQ_THERMAL=y
|
CONFIG_DEVFREQ_THERMAL=y
|
||||||
CONFIG_QCOM_SPMI_TEMP_ALARM=y
|
CONFIG_QCOM_SPMI_TEMP_ALARM=y
|
||||||
|
CONFIG_THERMAL_TSENS=y
|
||||||
CONFIG_QTI_VIRTUAL_SENSOR=y
|
CONFIG_QTI_VIRTUAL_SENSOR=y
|
||||||
CONFIG_QTI_QMI_SENSOR=y
|
CONFIG_QTI_QMI_SENSOR=y
|
||||||
CONFIG_QTI_BCL_PMIC5=y
|
CONFIG_QTI_BCL_PMIC5=y
|
||||||
|
|||||||
1
arch/arm64/configs/vendor/kona_defconfig
vendored
1
arch/arm64/configs/vendor/kona_defconfig
vendored
@@ -316,6 +316,7 @@ CONFIG_THERMAL_GOV_USER_SPACE=y
|
|||||||
CONFIG_THERMAL_GOV_LOW_LIMITS=y
|
CONFIG_THERMAL_GOV_LOW_LIMITS=y
|
||||||
CONFIG_DEVFREQ_THERMAL=y
|
CONFIG_DEVFREQ_THERMAL=y
|
||||||
CONFIG_QCOM_SPMI_TEMP_ALARM=y
|
CONFIG_QCOM_SPMI_TEMP_ALARM=y
|
||||||
|
CONFIG_THERMAL_TSENS=y
|
||||||
CONFIG_QTI_VIRTUAL_SENSOR=y
|
CONFIG_QTI_VIRTUAL_SENSOR=y
|
||||||
CONFIG_QTI_QMI_SENSOR=y
|
CONFIG_QTI_QMI_SENSOR=y
|
||||||
CONFIG_QTI_BCL_PMIC5=y
|
CONFIG_QTI_BCL_PMIC5=y
|
||||||
|
|||||||
Reference in New Issue
Block a user