arm64: dts: qcom: sc7180-trogdor: Delete ADC config for unused thermistors
authorMatthias Kaehlcke <mka@chromium.org>
Fri, 3 Sep 2021 19:22:19 +0000 (12:22 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 21 Sep 2021 22:37:06 +0000 (17:37 -0500)
The charger thermistor on Lazor, CoachZ rev1 and Pompom rev1+2 is
either the wrong part or not stuffed at all, the same is true for
the skin temperature thermistor on CoachZ rev1. The corresponding
thermal zones are already disabled for these devices, in addition
delete the ADC nodes of the thermistors.

For Lazor and CoachZ rev1 also disable the PM6150 ADC and thermal
monitor since none of the ADC channels is used.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210903122212.v2.1.I9777d0036ecbb749a4fb9ebb892f94c6e3a51772@changeid
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts

index 21b516e0694a4b59e5dead41e3bb84a5c4022253..8290d036044a1418f6cf2ca39d47ec0671ac2dbb 100644 (file)
        status = "disabled";
 };
 
+&pm6150_adc {
+       status = "disabled";
+
+       /delete-node/ skin-temp-thermistor@4e;
+       /delete-node/ charger-thermistor@4f;
+};
+
+&pm6150_adc_tm {
+       status = "disabled";
+
+       /delete-node/ charger-thermistor@0;
+       /delete-node/ skin-temp-thermistor@1;
+};
+
 /*
  * CoachZ rev1 is stuffed with a 47k NTC as thermistor for skin temperature,
  * which currently is not supported by the PM6150 ADC driver. Disable the
index 00535aaa43c98520dbe983c34516c0cae68ad3e9..86c9e750995fe0400ee1fb6fff33f4019e21b5ee 100644 (file)
@@ -54,6 +54,18 @@ ap_ts_pen_1v8: &i2c4 {
        compatible = "boe,nv133fhm-n62";
 };
 
+&pm6150_adc {
+       status = "disabled";
+
+       /delete-node/ charger-thermistor@4f;
+};
+
+&pm6150_adc_tm {
+       status = "disabled";
+
+       /delete-node/ charger-thermistor@0;
+};
+
 &trackpad {
        interrupts = <58 IRQ_TYPE_EDGE_FALLING>;
 };
index e122a6b481ffafc7058c417f1e0b1353bbc53373..76a130bad60ae518a18f10a2b1f1df556ab95f1e 100644 (file)
        status = "disabled";
 };
 
+&pm6150_adc {
+       /delete-node/ charger-thermistor@4f;
+};
+
+&pm6150_adc_tm {
+       /delete-node/ charger-thermistor@0;
+};
+
 &pp3300_hub {
        /* pp3300_l7c is used to power the USB hub */
        /delete-property/regulator-always-on;
index 4f32e6733f4c40b7a4e6cfeeea3532a3d6c02b3e..88cf2246c18a65a9078015cdc2a5f392b6fdcf70 100644 (file)
 &charger_thermal {
        status = "disabled";
 };
+
+&pm6150_adc {
+       /delete-node/ charger-thermistor@4f;
+};
+
+&pm6150_adc_tm {
+       /delete-node/ charger-thermistor@0;
+};