arm64: dts: qcom: Add support for remaining Sony Kitakami boards
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Mon, 18 Jan 2021 16:24:21 +0000 (17:24 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 25 Jan 2021 18:45:11 +0000 (12:45 -0600)
This patch adds support for the following Xperias:

* Z3+ [aka Z4 in some regions] (Ivy)
* Z4 Tablet (Karin)
* Z4 Tablet Wi-Fi (Karin_windy) [APQ8094]
* Z5 Compact (Suzuran)
* Z5 Premium (Satsuki)

These devices are very similar in terms of hardware, with main
differences being display panels.

While at it, update comments describing hardware used:
SMB charger seems to not be used after all, PMI8994 charger
is in use instead.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210118162432.107275-1-konrad.dybcio@somainline.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/Makefile
arch/arm64/boot/dts/qcom/apq8094-sony-xperia-kitakami-karin_windy.dts [new file with mode: 0644]
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-ivy.dts [new file with mode: 0644]
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-karin.dts [new file with mode: 0644]
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-satsuki.dts [new file with mode: 0644]
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-suzuran.dts [new file with mode: 0644]
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami.dtsi

index b5d8673..59455db 100644 (file)
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_QCOM)        += apq8016-sbc.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += apq8094-sony-xperia-kitakami-karin_windy.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += apq8096-db820c.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += apq8096-ifc6640.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += ipq6018-cp01-c1.dtb
@@ -14,7 +15,11 @@ dtb-$(CONFIG_ARCH_QCOM)      += msm8992-msft-lumia-talkman.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += msm8992-xiaomi-libra.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += msm8994-angler-rev-101.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += msm8994-msft-lumia-cityman.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += msm8994-sony-xperia-kitakami-ivy.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += msm8994-sony-xperia-kitakami-karin.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += msm8994-sony-xperia-kitakami-satsuki.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += msm8994-sony-xperia-kitakami-sumire.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += msm8994-sony-xperia-kitakami-suzuran.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += msm8996-mtp.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += msm8998-asus-novago-tp370ql.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += msm8998-hp-envy-x2.dtb
diff --git a/arch/arm64/boot/dts/qcom/apq8094-sony-xperia-kitakami-karin_windy.dts b/arch/arm64/boot/dts/qcom/apq8094-sony-xperia-kitakami-karin_windy.dts
new file mode 100644 (file)
index 0000000..6049745
--- /dev/null
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org>
+ */
+
+/dts-v1/;
+
+/* As the names may imply, there is quite a bunch of duplication there. */
+#include "msm8994-sony-xperia-kitakami-karin.dts"
+
+/ {
+       model = "Sony Xperia Z4 Tablet (Wi-Fi)";
+       compatible = "sony,karin_windy", "qcom,apq8094";
+
+       /*
+        * This model uses the APQ variant of MSM8994 (APQ8094).
+        * The v1/v2/v2.1 story (from kitakami.dtsi) also applies here.
+        */
+       qcom,msm-id = <253 0x20000>, <253 0x20001>;
+};
diff --git a/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-ivy.dts b/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-ivy.dts
new file mode 100644 (file)
index 0000000..4c7a909
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org>
+ */
+
+/dts-v1/;
+
+#include "msm8994-sony-xperia-kitakami.dtsi"
+
+/ {
+       model = "Sony Xperia Z3+/Z4";
+       compatible = "sony,ivy-row", "qcom,msm8994";
+};
diff --git a/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-karin.dts b/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-karin.dts
new file mode 100644 (file)
index 0000000..7e65786
--- /dev/null
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org>
+ */
+
+/dts-v1/;
+
+#include "msm8994-sony-xperia-kitakami.dtsi"
+
+/ {
+       model = "Sony Xperia Z4 Tablet (LTE)";
+       compatible = "sony,karin-row", "qcom,msm8994";
+};
+
+&blsp_i2c5 {
+       /*
+        * TI LP8557 backlight driver @ 2c
+        * AD AD7146 touch controller @ 2f
+        * sii8620 HDMI/MHL bridge @ 72 (kitakami-common)
+        */
+};
diff --git a/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-satsuki.dts b/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-satsuki.dts
new file mode 100644 (file)
index 0000000..1081fe6
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org>
+ */
+
+/dts-v1/;
+
+#include "msm8994-sony-xperia-kitakami.dtsi"
+
+/ {
+       model = "Sony Xperia Z5 Premium";
+       compatible = "sony,satsuki-row", "qcom,msm8994";
+};
diff --git a/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-suzuran.dts b/arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-suzuran.dts
new file mode 100644 (file)
index 0000000..2c670ab
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org>
+ */
+
+/dts-v1/;
+
+#include "msm8994-sony-xperia-kitakami.dtsi"
+
+/ {
+       model = "Sony Xperia Z5 Compact";
+       compatible = "sony,suzuran-row", "qcom,msm8994";
+};
index 791f254..71d7187 100644 (file)
 
 / {
        /* required for bootloader to select correct board */
-       qcom,msm-id = <0xcf 0x20001>;
+
+       /*
+        * We support MSM8994 v2 (0x20000) and v2.1 (0x20001).
+        * The V1 chip (0x0 and 0x10000) is significantly different
+        * and requires driver-side changes (including CPR, be warned!!).
+        * Besides that, it's very rare.
+        */
+       qcom,msm-id = <207 0x20000>, <207 0x20001>;
+       /* We only use pm8994+pmi8994. */
        qcom,pmic-id = <0x10009 0x1000a 0x00 0x00>;
+       /* This property is shared across all kitakami devices. */
        qcom,board-id = <8 0>;
 
        /* Kitakami firmware doesn't support PSCI */
 &blsp_i2c2 {
        status = "okay";
 
-       /* NXP NFC */
+       /* NXP PN547 NFC */
 };
 
 &blsp_i2c4 {
 &blsp_i2c5 {
        status = "okay";
 
-       /* SMB1357 charger and sii8620 HDMI/MHL bridge */
+       /* sii8620 HDMI/MHL bridge */
 };
 
 &blsp_i2c6 {