From patchwork Tue Oct 15 21:02:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Belwon X-Patchwork-Id: 13837112 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 669F0D1F9D4 for ; Tue, 15 Oct 2024 21:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZWHVbGV4/CvETPi7F5wb6gyfebLSv7xXbI05eNR9bq0=; b=lAR+wD81YJfHX0p7/ZQ2TeA+35 V1xDckpjrX+0rgRXbnGuE8wbV6SpAXOuCELvkz1903LEEpiOXhgAXQQwptt3Xq24+PqhPDYFfoZOU c9eH2+bwSoQTTCV/9HuRiKxFMDwGnsDf+pxHNYXHomJwRRghiziiiH8chxIUvFwJ67/E8QPUM5MqV OarDzMXZtvI5Rrrr/0XfLowq8BDqN8O2kOSwGKJWgEfld3rjZfGUi/D3ZIIRlPhN1ku3M4gK/c+nJ Q4TCuGj+dVl4Xt7dBmS2WgXt512QMpdiMfHTyMAaTxtDrUpFkeVP9r73zht137OqpXJtSiGCQ77Uy ABNYxACg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0oqL-00000009bSB-3DeL; Tue, 15 Oct 2024 21:12:37 +0000 Received: from out-02.smtp.spacemail.com ([63.250.43.87]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0ogf-00000009ZNo-0eTv for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 21:02:38 +0000 Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4XSmkz4Vr6z4wgv; Tue, 15 Oct 2024 21:02:35 +0000 (UTC) Received: from igor-systemproductname.lan (83.8.240.202.ipv4.supernova.orange.pl [83.8.240.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.spacemail.com (Postfix) with ESMTPSA id 4XSmkr1ZySz8sWP; Tue, 15 Oct 2024 21:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1729026150; bh=0Qt8gNwABafYX/vJxNTD5ciOd6WwHnuIS++unVicsvQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jH1854NdV9UFB0AcusjtXZpNQ0uJwGAbaaGC4E/Is+AKIUkvVUTtDjyyE70vpdQw1 ltpWmpq44llNXjDEI6b/yvU8S3Qgujhk0bk4BKbXLIGHpuVYo9IwHwIIYgrCmZY0Kk iLs73tUTnAzGKVpmA650UcBVW7BONp4+aisqj1oSnVUzItWqEZHDe0JaCgoOkDl7wE fi1507m/UcTXlb8k4TSYIS43hFGutrMH29wjGDqXeXxjU+GZZ0TJmPJs8CS6HpEH5p wofVqmZiWGzB0/LSc8VYmapeJiM9XwB3FqHW+oEJjo8JyYWM2yEJC3h5RBkWY6b5Vv qF0bJmjXXkd6A== From: Igor Belwon To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , David Wronek , Sibi Sankar , Ivaylo Ivanov Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] arm64: dts: exynos: Add initial support for Samsung Galaxy Note20 5G (c1s) Date: Tue, 15 Oct 2024 23:02:05 +0200 Message-ID: <20241015210205.963931-7-igor.belwon@mentallysanemainliners.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241015210205.963931-1-igor.belwon@mentallysanemainliners.org> References: <20241015210205.963931-1-igor.belwon@mentallysanemainliners.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_140237_279912_B104CA61 X-CRM114-Status: GOOD ( 15.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add initial support for the Samsung Galaxy Note20 5G (c1s/SM-N981B) phone. It was launched in 2020, and it's based on the Exynos 990 SoC. It has only one configuration with 8GB of RAM, albeit storage options may differ. This device tree adds support for the following: - SimpleFB - 8GB RAM - Buttons Signed-off-by: Igor Belwon --- arch/arm64/boot/dts/exynos/Makefile | 1 + arch/arm64/boot/dts/exynos/exynos990-c1s.dts | 66 ++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos990-c1s.dts diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index 18f5a3eed523..7a934499b235 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -8,5 +8,6 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos7885-jackpotlte.dtb \ exynos850-e850-96.dtb \ exynos8895-dreamlte.dtb \ + exynos990-c1s.dtb \ exynosautov9-sadk.dtb \ exynosautov920-sadk.dtb diff --git a/arch/arm64/boot/dts/exynos/exynos990-c1s.dts b/arch/arm64/boot/dts/exynos/exynos990-c1s.dts new file mode 100644 index 000000000000..e57339357dc6 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos990-c1s.dts @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Galaxy Note20 5G (c1s/SM-N981B) device tree source + * + * Copyright (c) 2024, Igor Belwon + */ + +/dts-v1/; +#include "exynos990.dtsi" +#include +#include +#include + +/ { + model = "Samsung Galaxy Note20"; + compatible = "samsung,c1s", "samsung,exynos990"; + + #address-cells = <2>; + #size-cells = <2>; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer0: framebuffer@f1000000 { + compatible = "simple-framebuffer"; + reg = <0 0xf1000000 0 (1080 * 2400 * 4)>; + width = <1080>; + height = <2400>; + stride = <(1080 * 4)>; + format = "a8r8g8b8"; + }; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x0 0x3ab00000>, + /* Memory hole */ + <0x0 0xc1200000 0x0 0x1ee00000>, + /* Memory hole */ + <0x0 0xe1900000 0x0 0x1e700000>, + /* Memory hole - last block */ + <0x8 0x80000000 0x1 0x7ec00000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + cont_splash_mem: framebuffer@f1000000 { + reg = <0 0xf1000000 0 0x13c6800>; + no-map; + }; + + abox_reserved: audio@f7fb0000 { + reg = <0 0xf7fb0000 0 0x2a50000>; + no-map; + }; + }; +}; + +&oscclk { + clock-frequency = <26000000>; +};