From 55b8b9924a74f9ddb1e7ef58c6f546130c88b81e Mon Sep 17 00:00:00 2001 From: David Collins Date: Wed, 5 Feb 2020 15:17:44 -0800 Subject: [PATCH] ARM: dts: qcom: specify ADC channels for Lahaina PMIC temp-alarm devices Specify the PMK8350 VADC PMIC ADC channel associated with each PMIC temperature alarm device. This allows the exact PMIC die temperature to be reported instead of a coarse approximation based upon the over-temperature state register value. Change-Id: I09c94f776eb6e6bd2ba8d7412a187462e5b8e958 --- qcom/lahaina-pmic-overlay.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qcom/lahaina-pmic-overlay.dtsi b/qcom/lahaina-pmic-overlay.dtsi index 17377c8a7443..a09b2efcfabd 100644 --- a/qcom/lahaina-pmic-overlay.dtsi +++ b/qcom/lahaina-pmic-overlay.dtsi @@ -318,6 +318,26 @@ }; }; +&pm8350_tz { + io-channels = <&pmk8350_vadc PM8350_ADC7_DIE_TEMP>; + io-channel-names = "thermal"; +}; + +&pm8350b_tz { + io-channels = <&pmk8350_vadc PM8350B_ADC7_DIE_TEMP>; + io-channel-names = "thermal"; +}; + +&pmr735a_tz { + io-channels = <&pmk8350_vadc PMR735A_ADC7_DIE_TEMP>; + io-channel-names = "thermal"; +}; + +&pmr735b_tz { + io-channels = <&pmk8350_vadc PMR735B_ADC7_DIE_TEMP>; + io-channel-names = "thermal"; +}; + &pmk8350_adc_tm { io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM1_100K_PU>, <&pmk8350_vadc PM8350_ADC7_AMUX_THM2_100K_PU>,