From patchwork Wed Oct 16 15:47:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Belwon X-Patchwork-Id: 13838625 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 EDBDAD2A52C for ; Wed, 16 Oct 2024 15:58:38 +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=bfL0fOGcVa1Ph1z36VD+YVQuECvQMiPmUvEOpJOrEMU=; b=xb2ebe6IhnLcsjyUM/wmOBJ+6Z WCoANUB8+XNo8jKhsVD10+OZWdCMaji/EmwVjgRB40tPC4cYjriqwiGApPqneL/oA/3EsMYz1a+ai w6NceUabBSI3gk4TqQUGG8DfyV9IwYrhmtXmWpazyIcjA+Cmktaa71tBjJLzaQ+I00ucUOG13O+LK jVdbrzwZq7GuH/F6KN6TdRe2af+Krvk90eQKZAjhBLnZFjLiHux5Gk12hDLXdh2hoIpfBZp06AULd zmCAPjUCDOLIxqBIa84DW6AX9xJSm6GXkN8uqQ1Z6GPmCbyB76zJEV108HnM8dOgnnFFH/vYmG05a D4lmdoHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t16Ps-0000000CKqh-1dyB; Wed, 16 Oct 2024 15:58:28 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t16GW-0000000CIxe-3oVU for linux-arm-kernel@bombadil.infradead.org; Wed, 16 Oct 2024 15:48:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=bfL0fOGcVa1Ph1z36VD+YVQuECvQMiPmUvEOpJOrEMU=; b=KMK1+JGcTwwc1k27SuNwKBhLuo kwPlgqtCgGrWLbVQNgmDC0Rwq9qi9IjgV12z919teieAZowLVFC3whPr0brrPEJPzJZDL1j/nlMUc y4VtEKDHIEyOu72b9iP+pRPnrSqxyo7GDLAoMIcA64okY2bLbXA7H6DycNCVmNcLt5xjYY0+VNuAa SEEr+hlv02xPGfhJ3Fa9LbmFp0xwKYJ2yQari2siaDh//0Bi8iTOaDt4eE8yNZdYyhEd5ur2VY6xS HSvfETQ828QF+LoeCAIjobTPtRVceGpOA0zv+Dzjd2Bx6ZZAhAAcDm3qZX1zbgK5yV08IvC3htQcd 16H5YLyw==; Received: from out-03.smtp.spacemail.com ([63.250.43.88]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t16GP-00000006qPc-3Tu1 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 15:48:47 +0000 Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4XTFk16TJ0zGpTw; Wed, 16 Oct 2024 15:48:25 +0000 (UTC) Received: from igor-systemproductname.lan (83.8.245.91.ipv4.supernova.orange.pl [83.8.245.91]) (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 4XTFjt5Bmzz8sWQ; Wed, 16 Oct 2024 15:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1729093700; bh=NH28ZQ6WBAkjREDKetsC5rojQ5QjJjtGB0qjxwTEYq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X9nEvF5tggKPhI5dLt2YNBRHl7iZroG2SG+f9rn/SN0ZmSqS1hQRdogqqwyLnTvPq FNhAYUdwupWqrN7RgGzE/Lg6ba03c4JP0vKyujxuqWPe/WGqO/R1fSBYffcxwRrCp4 bTUzSaErMvrjVy8C3gdLNeabM6eX6Eg3svhGBBOElLmv2ed+J9d387Ppvjm0B1Nh6S HPbmPdAhmuG4hEs++MwYIP92JZMIIdQuviBio2XhH9fK0075r7lgNcT7zLBkOd27I4 YZDj5/aY0oclAsfrSjBmMIezEiEXpYfs+RyhPZ0CpaXmWVBAR8Y/B3ltNTxNrDfwQz iYQELa6H3WR+w== From: Igor Belwon To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Igor Belwon Subject: [PATCH v3 6/6] arm64: dts: exynos: Add initial support for Samsung Galaxy Note20 5G (c1s) Date: Wed, 16 Oct 2024 17:47:47 +0200 Message-ID: <20241016154747.64343-7-igor.belwon@mentallysanemainliners.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241016154747.64343-1-igor.belwon@mentallysanemainliners.org> References: <20241016154747.64343-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-20241016_164842_137354_87F32A0E X-CRM114-Status: GOOD ( 15.90 ) 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 | 115 +++++++++++++++++++ 2 files changed, 116 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..36a6f1377e92 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos990-c1s.dts @@ -0,0 +1,115 @@ +// 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; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&key_power &key_voldown &key_volup>; + pinctrl-names = "default"; + + power-key { + label = "Power"; + linux,code = ; + gpios = <&gpa2 4 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + voldown-key { + label = "Volume Down"; + linux,code = ; + gpios = <&gpa0 4 GPIO_ACTIVE_LOW>; + }; + + volup-key { + label = "Volume Up"; + linux,code = ; + gpios = <&gpa0 3 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&oscclk { + clock-frequency = <26000000>; +}; + +&pinctrl_alive { + key_power: key-power-pins { + samsung,pins = "gpa2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_voldown: key-voldown-pins { + samsung,pins = "gpa0-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_volup: key-volup-pins { + samsung,pins = "gpa0-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +};