Skip to contentSkip to conversation

OnePlus 5/5T support

PATCH Applied Jami Kettunen 2 participants 4 messages Apr 6, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Add device trees for OnePlus 5 (cheeseburger) and 5T (dumpling) MSM8998 SoC smartphones.

v2:
-License DT under BSD-3-Clause instead of GPL-2.0
-Drop MSS remoteproc node in favor of disabling it by default (see patch 2/2) -Shorten and move Wi-Fi disable comment inside wifi node

Jami Kettunen (2):
arm64: dts: qcom: Add support for OnePlus 5/5T
arm64: dts: qcom: msm8998: Disable MSS remoteproc by default

 arch/arm64/boot/dts/qcom/Makefile             |   2 +
 .../boot/dts/qcom/msm8998-clamshell.dtsi      |   4 +
 arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi     |   4 +
 .../dts/qcom/msm8998-oneplus-cheeseburger.dts |  42 ++
 .../boot/dts/qcom/msm8998-oneplus-common.dtsi | 514 ++++++++++++++++++
 .../dts/qcom/msm8998-oneplus-dumpling.dts     |  25 +
 arch/arm64/boot/dts/qcom/msm8998.dtsi         |   2 +
 7 files changed, 593 insertions(+)
#1 lore raw

PATCH v2 1/2 arm64: dts: qcom: Add support for OnePlus 5/5T

Add device trees for OnePlus 5 (cheeseburger) and 5T (dumpling) MSM8998 SoC smartphones with initial support included for:

- UFS internal storage
- USB peripheral mode
- Display
- Touch
- Bluetooth
- Hall effect sensor
- Power and volume buttons
- Capacitive keypad button backlight (on cheeseburger)

---
 arch/arm64/boot/dts/qcom/Makefile             |   2 +
 .../dts/qcom/msm8998-oneplus-cheeseburger.dts |  42 ++
 .../boot/dts/qcom/msm8998-oneplus-common.dtsi | 514 ++++++++++++++++++
 .../dts/qcom/msm8998-oneplus-dumpling.dts     |  25 +
 4 files changed, 583 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8998-oneplus-cheeseburger.dts
 create mode 100644 arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/msm8998-oneplus-dumpling.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
index 549a7a2151d4..1beb73f564f7 100644
@@ -27,6 +27,8 @@ dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-asus-novago-tp370ql.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-hp-envy-x2.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-lenovo-miix-630.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-oneplus-cheeseburger.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-oneplus-dumpling.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qcs404-evb-1000.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qcs404-evb-4000.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qrb5165-rb5.dtb
arch/arm64/boot/dts/qcom/msm8998-oneplus-cheeseburger.dts new file +42 -0

42 lines not on this page · raw message

arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi new file +514 -0

514 lines not on this page · raw message

arch/arm64/boot/dts/qcom/msm8998-oneplus-dumpling.dts new file +25 -0
new file mode 100644
index 000000000000..544b9b0ae44b
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * OnePlus 5T (dumpling) device tree
+ *
+ * Copyright (c) 2021, Jami Kettunen <[email protected]>
+ */
+
+#include "msm8998-oneplus-common.dtsi"
+
+/ {
+	model = "OnePlus 5T";
+	compatible = "oneplus,dumpling", "qcom,msm8998";
+	/* Required for bootloader to select correct board */
+	qcom,board-id = <8 0 17801 43>;
+};
+
+/* Update the screen height values from 1920 to 2160 on the 5T */
+&framebuffer0 {
+	height = <2160>;
+};
+
+/* Adjust digitizer area height to match the 5T's taller panel */
+&rmi4_f12 {
+	touchscreen-y-mm = <137>;
+};
Signature · 1 line
2.31.1
#2 lore raw

Re: [PATCH v2 1/2] arm64: dts: qcom: Add support for OnePlus 5/5T

This series was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This series was applied to qcom/linux.git (refs/heads/for-next):

Quoted 12 lines · On Tue, 6 Apr 2021 04:07:07 +0300 you wrote:

Add device trees for OnePlus 5 (cheeseburger) and 5T (dumpling) MSM8998 SoC smartphones with initial support included for:

- UFS internal storage
- USB peripheral mode
- Display
- Touch
- Bluetooth
- Hall effect sensor
- Power and volume buttons
- Capacitive keypad button backlight (on cheeseburger)

Quoted 1 line

[...]

Here is the summary with links:
- [v2,1/2] arm64: dts: qcom: Add support for OnePlus 5/5T

    https://git.kernel.org/qcom/c/47498916afea
  - [2/2] arm64: dts: qcom: msm8998: Disable MSS remoteproc by default
    https://git.kernel.org/qcom/c/03041cd25d98

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

#3 lore raw

PATCH 2/2 arm64: dts: qcom: msm8998: Disable MSS remoteproc by default

In reply to Jami Kettunen

This was already the case for ADSP and SLPI remoteprocs & doesn't affect existing boards where it has been re-enabled.

---
 arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi | 4 ++++
 arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi       | 4 ++++
 arch/arm64/boot/dts/qcom/msm8998.dtsi           | 2 ++
 3 files changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi +4 -0
index b500f24d47bc..125d7923d713 100644
@@ -281,6 +281,10 @@ vreg_lvs2a_1p8: lvs2 {
 	};
 };
 
+&remoteproc_mss {
+	status = "okay";
+};
+
 &tlmm {
 	gpio-reserved-ranges = <0 4>, <81 4>;
 
arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi +4 -0
index c1ef0c71d5f5..a1d15eab8553 100644
@@ -328,6 +328,10 @@ &remoteproc_adsp {
 	status = "okay";
 };
 
+&remoteproc_mss {
+	status = "okay";
+};
+
 &remoteproc_slpi {
 	status = "okay";
 };
arch/arm64/boot/dts/qcom/msm8998.dtsi +2 -0
index 1f2e93aa6553..e9d3ce29937c 100644
@@ -1398,6 +1398,8 @@ remoteproc_mss: remoteproc@4080000 {
 					<&rpmpd MSM8998_VDDMX>;
 			power-domain-names = "cx", "mx";
 
+			status = "disabled";
+
 			mba {
 				memory-region = <&mba_mem>;
 			};
Signature · 1 line
2.31.1