Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: dts: qcom: pm8953: Add thermal zone

Define the themal zones using the temperature values found in the
downstream 4.9 sources so that the spmi-temp-alarm driver becomes
active.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230625-pm8953-thermal-v1-1-2b4247d2f769@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
519c47ac 6d5872f2

+32 -1
+32 -1
arch/arm64/boot/dts/qcom/pm8953.dtsi
··· 6 6 #include <dt-bindings/input/linux-event-codes.h> 7 7 #include <dt-bindings/spmi/spmi.h> 8 8 9 + / { 10 + thermal-zones { 11 + pm8953-thermal { 12 + polling-delay-passive = <0>; 13 + polling-delay = <0>; 14 + 15 + thermal-sensors = <&pm8953_temp>; 16 + 17 + trips { 18 + trip0 { 19 + temperature = <105000>; 20 + hysteresis = <0>; 21 + type = "passive"; 22 + }; 23 + 24 + trip1 { 25 + temperature = <125000>; 26 + hysteresis = <0>; 27 + type = "hot"; 28 + }; 29 + 30 + trip2 { 31 + temperature = <145000>; 32 + hysteresis = <0>; 33 + type = "critical"; 34 + }; 35 + }; 36 + }; 37 + }; 38 + }; 39 + 9 40 &spmi_bus { 10 41 pmic@0 { 11 42 compatible = "qcom,pm8953", "qcom,spmi-pmic"; ··· 67 36 }; 68 37 }; 69 38 70 - temp-alarm@2400 { 39 + pm8953_temp: temp-alarm@2400 { 71 40 compatible = "qcom,spmi-temp-alarm"; 72 41 reg = <0x2400>; 73 42 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;