]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: add initial support for Samsung Galaxy S20 FE
authorEric Gonçalves <ghatto404@gmail.com>
Fri, 15 Aug 2025 15:14:26 +0000 (15:14 +0000)
committerBjorn Andersson <andersson@kernel.org>
Mon, 1 Sep 2025 18:03:33 +0000 (13:03 -0500)
Add new device support for the Samsung Galaxy S20 FE 4G/5G
 (SM-G980/SM-G981B) phone

What works:
- SimpleFB
- Pstore/ramoops

Signed-off-by: Eric Gonçalves <ghatto404@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250815151426.32023-3-ghatto404@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/Makefile
arch/arm64/boot/dts/qcom/sm8250-samsung-r8q.dts [new file with mode: 0644]

index 4d449eb87a2076e41cb24e8e9fe183a4ac8fc52e..0383b888cce0108d7d71fb0737d767da33b94927 100644 (file)
@@ -273,6 +273,7 @@ dtb-$(CONFIG_ARCH_QCOM)     += sm8150-sony-xperia-kumano-bahamut.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sm8150-sony-xperia-kumano-griffin.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sm8250-hdk.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sm8250-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM)        += sm8250-samsung-r8q.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sm8250-sony-xperia-edo-pdx203.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sm8250-sony-xperia-edo-pdx206.dtb
 dtb-$(CONFIG_ARCH_QCOM)        += sm8250-xiaomi-elish-boe.dtb
diff --git a/arch/arm64/boot/dts/qcom/sm8250-samsung-r8q.dts b/arch/arm64/boot/dts/qcom/sm8250-samsung-r8q.dts
new file mode 100644 (file)
index 0000000..2fb6108
--- /dev/null
@@ -0,0 +1,47 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+/dts-v1/;
+
+#include "sm8250.dtsi"
+
+/ {
+       model = "Samsung Galaxy S20 FE";
+       compatible = "samsung,r8q", "qcom,sm8250";
+       chassis-type = "handset";
+
+       chosen {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               framebuffer: framebuffer@9c000000 {
+                       compatible = "simple-framebuffer";
+                       reg = <0x0 0x9c000000 0x0 (1080 * 2400 * 4)>;
+                       width = <1080>;
+                       height = <2400>;
+                       stride = <(1080 * 4)>;
+                       format = "a8r8g8b8";
+               };
+       };
+
+       reserved-memory {
+               cont_splash_mem: memory@9c000000 {
+                       reg = <0x0 0x9c000000 0x0 (1080 * 2400 * 4)>;
+                       no-map;
+               };
+
+               ramoops@9fa00000 {
+                       compatible = "ramoops";
+                       reg = <0x0 0x9fa00000 0x0 0x100000>;
+                       record-size = <0x4000>;
+                       console-size = <0x40000>;
+                       pmsg-size = <0x40000>;
+                       ecc-size = <16>;
+                       no-map;
+               };
+       };
+};
+
+&tlmm {
+       gpio-reserved-ranges = <40 4>; /* I2C (not linked to anything) */
+};