arm64: dts: qcom: sc7180: Add CoachZ rev3
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 22 Mar 2021 16:46:35 +0000 (09:46 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 May 2021 17:12:10 +0000 (12:12 -0500)
CoachZ rev3 uses a 100k NTC thermistor for the charger temperatures,
instead of the 47k NTC that is stuffed in earlier revisions. Add .dts
files for rev3.

The 47k NTC currently isn't supported by the PM6150 ADC driver.
Disable the charger thermal zone for rev1 and rev2 to avoid the use
of bogus temperature values.

This also gets rid of the explicit DT files for rev2 and handles
rev2 in the rev1 .dts instead. There was some back and forth
downstream involving the 'dmic_clk_en' pin, after that was sorted
out the DT for rev1 and rev2 is the same.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20210322094628.v4.3.I95b8a63103b77cab6a7cf9c150f0541db57fda98@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/Makefile
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1-lte.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2-lte.dts [deleted file]
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2.dts [deleted file]
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3-lte.dts [new file with mode: 0644]
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3.dts [new file with mode: 0644]

index 67d04a8ebeaff9f0e19bbff1a75a521e672891d5..7f2d6e83b158523090ddfef011ca5e19516f60e3 100644 (file)
@@ -37,8 +37,8 @@ dtb-$(CONFIG_ARCH_QCOM)       += qrb5165-rb5.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sc7180-idp.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-coachz-r1.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-coachz-r1-lte.dtb
-dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-coachz-r2.dtb
-dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-coachz-r2-lte.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-coachz-r3.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-coachz-r3-lte.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-lazor-r0.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-lazor-r1.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sc7180-trogdor-lazor-r1-kb.dtb
index 533c048903ea10fb594ff115e4b2b1818f5578e2..82dc00cc7fb9e124018096935b8a08ef88c27d19 100644 (file)
@@ -9,8 +9,8 @@
 #include "sc7180-trogdor-lte-sku.dtsi"
 
 / {
-       model = "Google CoachZ (rev1) with LTE";
-       compatible = "google,coachz-rev1-sku0", "qcom,sc7180";
+       model = "Google CoachZ (rev1 - 2) with LTE";
+       compatible = "google,coachz-rev1-sku0", "google,coachz-rev2-sku0", "qcom,sc7180";
 };
 
 &cros_ec_proximity {
index 1b1dbdb2a82f2d301888a060cf18c61230ff29ed..28812334ed04b13e06a4c899c4e1c71bf39eeec6 100644 (file)
 #include "sc7180-trogdor-coachz.dtsi"
 
 / {
-       model = "Google CoachZ (rev1)";
-       compatible = "google,coachz-rev1", "qcom,sc7180";
+       model = "Google CoachZ (rev1 - 2)";
+       compatible = "google,coachz-rev1", "google,coachz-rev2", "qcom,sc7180";
+};
+
+/*
+ * CoachZ rev1 is stuffed with a 47k NTC as charger thermistor which currently
+ * is not supported by the PM6150 ADC driver. Disable the charger thermal zone
+ * to avoid using bogus temperature values.
+ */
+&charger_thermal {
+       status = "disabled";
 };
 
 &tlmm {
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2-lte.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2-lte.dts
deleted file mode 100644 (file)
index 6e77458..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Google CoachZ board device tree source
- *
- * Copyright 2020 Google LLC.
- */
-
-#include "sc7180-trogdor-coachz-r2.dts"
-#include "sc7180-trogdor-lte-sku.dtsi"
-
-/ {
-       model = "Google CoachZ (rev2+) with LTE";
-       compatible = "google,coachz-sku0", "qcom,sc7180";
-};
-
-&cros_ec_proximity {
-       label = "proximity-wifi-lte";
-};
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2.dts
deleted file mode 100644 (file)
index 4f69b6b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Google CoachZ board device tree source
- *
- * Copyright 2020 Google LLC.
- */
-
-/dts-v1/;
-
-#include "sc7180-trogdor-coachz.dtsi"
-
-/ {
-       model = "Google CoachZ (rev2+)";
-       compatible = "google,coachz", "qcom,sc7180";
-};
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3-lte.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3-lte.dts
new file mode 100644 (file)
index 0000000..d234090
--- /dev/null
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Google CoachZ board device tree source
+ *
+ * Copyright 2021 Google LLC.
+ */
+
+#include "sc7180-trogdor-coachz-r3.dts"
+#include "sc7180-trogdor-lte-sku.dtsi"
+
+/ {
+       model = "Google CoachZ (rev3+) with LTE";
+       compatible = "google,coachz-sku0", "qcom,sc7180";
+};
+
+&cros_ec_proximity {
+       label = "proximity-wifi-lte";
+};
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3.dts
new file mode 100644 (file)
index 0000000..a02d2d5
--- /dev/null
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Google CoachZ board device tree source
+ *
+ * Copyright 2021 Google LLC.
+ */
+
+/dts-v1/;
+
+#include "sc7180-trogdor-coachz.dtsi"
+
+/ {
+       model = "Google CoachZ (rev3+)";
+       compatible = "google,coachz", "qcom,sc7180";
+};