Commit 4e787036 authored by Priyansh Jain's avatar Priyansh Jain Committed by Bjorn Andersson

arm64: dts: qcom: Enable tsens and thermal for sa8775p SoC

Add tsens and thermal devicetree node for sa8775p SoC.
Signed-off-by: default avatarPriyansh Jain <quic_priyjain@quicinc.com>
Link: https://lore.kernel.org/r/20230926085948.23046-3-quic_priyjain@quicinc.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent f19a9a34
...@@ -1915,6 +1915,50 @@ pdc: interrupt-controller@b220000 { ...@@ -1915,6 +1915,50 @@ pdc: interrupt-controller@b220000 {
interrupt-controller; interrupt-controller;
}; };
tsens2: thermal-sensor@c251000 {
compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2";
reg = <0x0 0x0c251000 0x0 0x1ff>,
<0x0 0x0c224000 0x0 0x8>;
interrupts = <GIC_SPI 572 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 609 IRQ_TYPE_LEVEL_HIGH>;
#qcom,sensors = <13>;
interrupt-names = "uplow", "critical";
#thermal-sensor-cells = <1>;
};
tsens3: thermal-sensor@c252000 {
compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2";
reg = <0x0 0x0c252000 0x0 0x1ff>,
<0x0 0x0c225000 0x0 0x8>;
interrupts = <GIC_SPI 573 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 610 IRQ_TYPE_LEVEL_HIGH>;
#qcom,sensors = <13>;
interrupt-names = "uplow", "critical";
#thermal-sensor-cells = <1>;
};
tsens0: thermal-sensor@c263000 {
compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2";
reg = <0x0 0x0c263000 0x0 0x1ff>,
<0x0 0x0c222000 0x0 0x8>;
interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
#qcom,sensors = <12>;
interrupt-names = "uplow", "critical";
#thermal-sensor-cells = <1>;
};
tsens1: thermal-sensor@c265000 {
compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2";
reg = <0x0 0x0c265000 0x0 0x1ff>,
<0x0 0x0c223000 0x0 0x8>;
interrupts = <GIC_SPI 507 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 509 IRQ_TYPE_LEVEL_HIGH>;
#qcom,sensors = <12>;
interrupt-names = "uplow", "critical";
#thermal-sensor-cells = <1>;
};
aoss_qmp: power-management@c300000 { aoss_qmp: power-management@c300000 {
compatible = "qcom,sa8775p-aoss-qmp", "qcom,aoss-qmp"; compatible = "qcom,sa8775p-aoss-qmp", "qcom,aoss-qmp";
reg = <0x0 0x0c300000 0x0 0x400>; reg = <0x0 0x0c300000 0x0 0x400>;
...@@ -2411,6 +2455,1058 @@ ethernet0: ethernet@23040000 { ...@@ -2411,6 +2455,1058 @@ ethernet0: ethernet@23040000 {
}; };
}; };
thermal-zones {
aoss-0-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens0 0>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-0-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens0 1>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-1-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens0 2>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-2-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens0 3>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-3-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens0 4>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
gpuss-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens0 5>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
gpuss-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens0 6>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
gpuss-2-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens0 7>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
audio-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens0 8>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
camss-0-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens0 9>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
pcie-0-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens0 10>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpuss-0-0-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens0 11>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
aoss-1-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens1 0>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-0-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens1 1>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-1-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens1 2>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-2-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens1 3>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-0-3-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens1 4>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
gpuss-3-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens1 5>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
gpuss-4-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens1 6>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
gpuss-5-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens1 7>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
video-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens1 8>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
camss-1-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens1 9>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
pcie-1-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens1 10>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpuss-0-1-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens1 11>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
aoss-2-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens2 0>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-0-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 1>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-1-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 2>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-2-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 3>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-3-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 4>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-0-0-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 5>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-0-1-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 6>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-0-2-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 7>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-1-0-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 8>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-1-1-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 9>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-1-2-0-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens2 10>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
ddrss-0-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens2 11>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpuss-1-0-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens2 12>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
aoss-3-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens3 0>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-0-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 1>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-1-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 2>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-2-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 3>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpu-1-3-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 4>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-0-0-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 5>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-0-1-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 6>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-0-2-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 7>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-1-0-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 8>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-1-1-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 9>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
nsp-1-2-1-thermal {
polling-delay-passive = <10>;
polling-delay = <0>;
thermal-sensors = <&tsens3 10>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
ddrss-1-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens3 11>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
cpuss-1-1-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&tsens3 12>;
trips {
trip-point0 {
temperature = <105000>;
hysteresis = <5000>;
type = "passive";
};
trip-point1 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
};
};
};
};
arch_timer: timer { arch_timer: timer {
compatible = "arm,armv8-timer"; compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment