From patchwork Fri Sep 20 15:45:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13808604 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 7F28BCF9C55 for ; Fri, 20 Sep 2024 15:57:52 +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=oOIysbZqVm4Kknw5BnD1Y7WRyTq4GEatzBCOcYtP3fM=; b=v/gU3uJYijlEzQnmlqrOuWURqI xdAFliKL9JI8JHhbMAysGSfETYqfaoeE+Z+T5QRekU6QMSLjN/1j28kI8z2fNbJ5yT4mLWkF+UJzV Lkn1dTXy05sVBeeHHRmf1PgpCZ9ETEkSmXgqK9j+hPYhZQcyQl7xuxo1y5rHZR/D4L49oTXLuUyMY McJPeiRV/SNeUDRRnxBsqAzg8Drdei3P/2H6/SCLFSCWIvAju1CioMVpf0okzEMUrR2rEL3mudkru H1zn+lLZFcUK1oDGrpbIu9rWPLWc+5YZDUReqFrgUvqd9LEfcV2OjCUiNNave9/tW5cX+nBxiS6bX aNUiSrpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srg0r-0000000CWnb-1Nun; Fri, 20 Sep 2024 15:57:41 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srfp5-0000000CUs0-15PO for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2024 15:45:32 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3780c8d689aso1421615f8f.0 for ; Fri, 20 Sep 2024 08:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726847129; x=1727451929; 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=oOIysbZqVm4Kknw5BnD1Y7WRyTq4GEatzBCOcYtP3fM=; b=DV8IFmQ6kklSydqt3Lbif5AZi1+P/4CZdAb4n6R94C2eMhZFUspn4pkiEtF8KE2xb1 yIXEheqB4lSxN5eOO+58HwRd/hnmICpXuZPrf2PK0A+0vzOaAVSfThGiN6VOV8GK8g4O 16rm6/5bd0mOwu91J1rl68HMnfBUmll27gn81bT/P/VkTxuSDIUeVFGodzZ/oRc0a9BO 1Po3oV8NaFhHc3rgI7WxmldbIPIiWoNJrr+md/jsyeQgebB4M3RQ3XN1pYpHcdWXlkms WOwiUXbnbkjmB/rbtOoeiHLN2pUe84QjHsU2FPwKbPyXAIVfuHD2lNKwX/szRG0MNHdb ITeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726847129; x=1727451929; 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=oOIysbZqVm4Kknw5BnD1Y7WRyTq4GEatzBCOcYtP3fM=; b=W3Ph9ks2nAVINgfi5fiXcomJaq5gvbUovOZivS2djGkw7DTXG90PuKAGnF0m+J7kvA hUPl0DtMHfrELZBvf/jVQzzZgqZrKn++FiYzqvLr4bRVfQVO3DoYn4+y7conPnD+ami+ 1Auc+DSFint5XM75b0m6GcEjwQz6qkdhI+4YPOcKmURXlqsaYH5vfF2B7G7jCM6B8qiq w1C39DWTKQrtGCwYTQMpNWToH+p1m3TjYzNvvkayfDKG2UqU15C1WUH2r36ewRSlGhUQ M7x9PPsjPjhUIQWrN1ZQIvg1Su7RwXK97ju3sALijeZXEaujjgiEoY/iwpYFXxx70tfj Jfig== X-Forwarded-Encrypted: i=1; AJvYcCV/jnZcnomZvEIZavCeNfShx5UtpLguJ/pwHKBJkw7mDVOaxqAt2Ov2bPgsp3MpAXMFuM/uwmDPJFpYevtwmgZD@lists.infradead.org X-Gm-Message-State: AOJu0YxJcsdFL5ic9ylrTKma8xhL7LO8XiJYZLamCAw2iL/T0eRPukuh mc+Osfs8Wru9dGEV3W39RZx5i2dScAuCSp1pSDlaRtsDAGEO4nYg X-Google-Smtp-Source: AGHT+IETBP2AaEONrwI0HxkCkvig+/9J7ZpRz916tH/E9yl+ZZFD/Uzbyv+wuRzoGJDjzO8AFHFYKg== X-Received: by 2002:adf:fb83:0:b0:374:c142:80e7 with SMTP id ffacd0b85a97d-37a4312aa35mr2034620f8f.1.1726847129277; Fri, 20 Sep 2024 08:45:29 -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 ffacd0b85a97d-378e780defdsm17772839f8f.115.2024.09.20.08.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 08:45:28 -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 v5 10/10] arm64: dts: exynos: Add initial support for Samsung Galaxy S8 Date: Fri, 20 Sep 2024 18:45:08 +0300 Message-Id: <20240920154508.1618410-11-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240920154508.1618410-1-ivo.ivanov.ivanov1@gmail.com> References: <20240920154508.1618410-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-20240920_084531_327776_E36A894E X-CRM114-Status: GOOD ( 15.84 ) 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..3a376ab2b --- /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; + + framebuffer: 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>; + }; + + cont_splash_mem: framebuffer@cc000000 { + reg = <0 0xcc000000 (1440 * 2960 * 4)>; + no-map; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&key_power &key_voldown &key_volup &key_wink>; + 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>; + }; + + /* 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_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 = ; + }; + + key_wink: key-wink-pins { + samsung,pins = "gpa0-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +};