From patchwork Tue Sep 3 12:44:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13788695 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 DACE5CD342D for ; Tue, 3 Sep 2024 12:57:07 +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=G/FjRZEf2VlqEHZp9Pt3WFUwWueUkmpeqTpDvDRxrBY=; b=RKEcqMDaRSIokORW23vH9mhb+L CahKkvOuoBdBSzvA685LvQPwD7dAp81Dt/0r3iQjpqtFvlh4wquQRex0RNCVEtIaqkW2BPvz8VSfu WJm7a19dpw2GYlSkztRooyNJLQrc7BYzth5XDxIE9HYeXvJJVL8Oh1yp8jOa5QtE4uMW6thcqLmX1 IYk9f4KlT0eL/JJqcsqt8lGsCdnERsQGDsh+yKEdyurQ68KwyucwktyfuQYIRqcQYwnvDB8l9jeWg dU/ihmq0MVZVu1JC+0SPLnGu2SVykRnES1TBAvlCzUNqX5oDOd4u1az3Xky6eIFH2B1+OI6sTZcvs Q0uW/n1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slT5d-00000000GUF-1cLC; Tue, 03 Sep 2024 12:56:57 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slStt-00000000Dir-1KkN for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 12:44:52 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5c26852af8fso1526845a12.2 for ; Tue, 03 Sep 2024 05:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725367488; x=1725972288; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G/FjRZEf2VlqEHZp9Pt3WFUwWueUkmpeqTpDvDRxrBY=; b=ZrbzCzqwKX6l19gv1ZfRMfPQHSFKBB/YpgDeEp5iQD4Oa9I1qF7ZtnaAshw3dkL7Nw UY1GsoY3fWLPijrwI6V/iu8fOuhNCsB70iXkMNrxeOkdufqYXI8x+zwRSxclX0td0ji/ bIhokq6elSBwT87A1cBBZSh4ppHVoAq4WY7IQ4Xo3xrcVf9WCVLnLoVOoXMkGNZOPqhi t8WHz1OVy9zNNyxJxTX6gUgIOeBvGsO3qhPlJmOSP0pko5X3waNYca8RsD8bx8+WXOd3 lgHlNPJDhjHWjDMXgf/BVteULe3IuQ3HAl2r60mZWG8Zk/4EfMGaN5nKzPNgyqVIoN1D VIAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725367488; x=1725972288; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G/FjRZEf2VlqEHZp9Pt3WFUwWueUkmpeqTpDvDRxrBY=; b=oNbRP1IhYNZScpqAJ/chDN8OXvLO6nT12rytX7nBKvapVcZxv57cv6qPJ5JKaKWdtX 6a+pYHky5Y3R3d5PY5++IED/ndD12ks/NG3lx7ssx9x0PMtHYRFYjpciIXm3eK/1h3wy FVbzDJKbdjeVcAp7GlNOtHlfDmQrqK5PIFnLltF9d4Q0t2SHDLu/sayv67jufDq/PVal iC90aRPtLzDLlDknFxCFX+TQGeXuW/Vx4aDZWJA6l3eiKwebLcRh/v2vdcTZMq/oJzh9 GXh5SkinfyiGHoiY/FRUfNaSnCeumQxc/xCEfpmsJAevRGuz5N9K1a8qnJpQQE1qLeyu wRoQ== X-Forwarded-Encrypted: i=1; AJvYcCUq29iNkDX1/08mz/YJBAvA4lEOjR8LF7F1W5GIGPLw/UOw4RbAL4R1u8r4/MRYc0PQ0Go1ypfcWNyazRt4phfV@lists.infradead.org X-Gm-Message-State: AOJu0Ywydgrij2cx9xt5CU9pIpGQ/wZJSd8UyZvv7GMx44CMsYqPhhne aM14WnrWoJaXlMwm+1x6dk7DIi3DlYaFre3acAcjLhsH8zsVwjA0 X-Google-Smtp-Source: AGHT+IHOrQNoNTwqqmp+4lVnEeHdowsq4Cd98jmaSK0Cxumej5nFh4tllkwKK2LzQHTIH2QW6XFknA== X-Received: by 2002:a17:906:fe4c:b0:a80:d913:be07 with SMTP id a640c23a62f3a-a897f930bb1mr1474876766b.36.1725367487553; Tue, 03 Sep 2024 05:44:47 -0700 (PDT) Received: from ivaylo-desktop.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8989223199sm678461566b.219.2024.09.03.05.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 05:44:46 -0700 (PDT) From: Ivaylo Ivanov To: Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Sylwester Nawrocki , Linus Walleij , Rob Herring Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 10/10] arm64: dts: exynos: Add initial support for Samsung Galaxy S8 Date: Tue, 3 Sep 2024 15:44:29 +0300 Message-Id: <20240903124429.107076-11-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240903124429.107076-1-ivo.ivanov.ivanov1@gmail.com> References: <20240903124429.107076-1-ivo.ivanov.ivanov1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240903_054449_490528_A724EA85 X-CRM114-Status: GOOD ( 16.73 ) 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 Samsung Galaxy S8 (SM-G950F), codenamed dreamlte, is a mobile phone from 2017. It features 4GB RAM, 64GB UFS 2.1, Exynos 8895 SoC and a 1440x2960 Super AMOLED display. This initial device tree enables SimpleFB, PSTORE and GPIO keys. Signed-off-by: Ivaylo Ivanov --- arch/arm64/boot/dts/exynos/Makefile | 1 + .../boot/dts/exynos/exynos8895-dreamlte.dts | 126 ++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index d7f2191c2..18f5a3eed 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -7,5 +7,6 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos7-espresso.dtb \ exynos7885-jackpotlte.dtb \ exynos850-e850-96.dtb \ + exynos8895-dreamlte.dtb \ exynosautov9-sadk.dtb \ exynosautov920-sadk.dtb diff --git a/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts b/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts new file mode 100644 index 000000000..f123e26be --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts @@ -0,0 +1,126 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Galaxy S8 (dreamlte/SM-G950F) device tree source + * + * Copyright (c) 2024, Ivaylo Ivanov + */ + +/dts-v1/; +#include "exynos8895.dtsi" +#include +#include +#include + +/ { + model = "Samsung Galaxy S8 (SM-G950F)"; + compatible = "samsung,dreamlte", "samsung,exynos8895"; + chassis-type = "handset"; + + chosen { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + framebuffer0: framebuffer@cc000000 { + compatible = "simple-framebuffer"; + reg = <0 0xcc000000 (1440 * 2960 * 4)>; + width = <1440>; + height = <2960>; + stride = <(1440 * 4)>; + format = "a8r8g8b8"; + }; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x3c800000>, + <0x0 0xc0000000 0x40000000>, + <0x8 0x80000000 0x80000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + ramoops@92000000 { + compatible = "ramoops"; + reg = <0 0x92000000 0x8000>; + record-size = <0x4000>; + console-size = <0x4000>; + }; + + continuous_splash: framebuffer@cc000000 { + reg = <0 0xcc000000 (1440 * 2960 * 4)>; + no-map; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&key_volup &key_voldown &key_power &key_wink>; + pinctrl-names = "default"; + + volup-key { + label = "Volume Up"; + linux,code = ; + gpios = <&gpa0 3 GPIO_ACTIVE_LOW>; + }; + + voldown-key { + label = "Volume Down"; + linux,code = ; + gpios = <&gpa0 4 GPIO_ACTIVE_LOW>; + }; + + power-key { + label = "Power"; + linux,code = ; + gpios = <&gpa2 4 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + /* Typically used for Bixby. Map it as a camera button for now */ + wink-key { + label = "Camera"; + linux,code = ; + gpios = <&gpa0 6 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + }; +}; + +&oscclk { + clock-frequency = <26000000>; +}; + +&pinctrl_alive { + key_volup: key-volup { + samsung,pins = "gpa0-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_voldown: key-voldown { + samsung,pins = "gpa0-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_power: key-power { + samsung,pins = "gpa2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_wink: key-wink { + samsung,pins = "gpa0-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +};