Skip to content

Commit 4d37847

Browse files
lweiss-fairphoneandersson
authored andcommitted
arm64: dts: qcom: sm7225-fairphone-fp4: Add PMK8003 thermals
Configure the thermals for the XO_THERM thermistor connected to the PMK8003 (which is called PMK8350 in software). The ADC configuration for PMK8350_ADC7_AMUX_THM1_100K_PU has already been added in the past. The trip points can really only be considered as placeholders, more configuration with cooling etc. can be added later. Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Luca Weiss <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 8100806 commit 4d37847

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,18 @@
136136
};
137137
};
138138
};
139+
140+
xo-thermal {
141+
thermal-sensors = <&pmk8350_adc_tm 0>;
142+
143+
trips {
144+
active-config0 {
145+
temperature = <125000>;
146+
hysteresis = <1000>;
147+
type = "passive";
148+
};
149+
};
150+
};
139151
};
140152
};
141153

@@ -712,6 +724,17 @@
712724
status = "okay";
713725
};
714726

727+
&pmk8350_adc_tm {
728+
status = "okay";
729+
730+
xo-therm@0 {
731+
reg = <0>;
732+
io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>;
733+
qcom,hw-settle-time-us = <200>;
734+
qcom,ratiometric;
735+
};
736+
};
737+
715738
&pmk8350_rtc {
716739
status = "okay";
717740
};

0 commit comments

Comments
 (0)