From patchwork Wed Aug 7 08:28:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13755999 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 7D42DC3DA7F for ; Wed, 7 Aug 2024 08:34:27 +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=MITnFzAhcXSHu7cXDX+waEWOqwPn85hNlSBixdf9qIs=; b=zM0HlI3s4EtOuSMGxZIdTi/zTM 5vC+LOUJI02q9zucfmjSUm8LoEX7uM/94/8JeW3Wb4CUULwCcBA8a9OZRal5H8l9jEOJY3lZpiBFk HwlFMT+i6z8QGtr5ePB39oHK1aBJdcY6JFSj/nGyCr/WdAstTcPE0xF/u3S3iPKyN5vxRHBDs8pNQ rcKqietfONDNvlURsM3FWW+6zqY2PNQQ4QKmaXQ1Ms6uWioB/zlpm8Y0gNo19qHAxvPPlB2rAn21K vZzkJLu4jk6QnZoE+yGbtpa7clr7jaeeIrRZgwWu7bX7rq6VEYWbC2bSjjYI/mnmjdN2m9Kg4pgIH yRxRJY6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbc7b-00000004OC5-0k4B; Wed, 07 Aug 2024 08:34:15 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbc2a-00000004MkZ-1osv for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 08:29:06 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-427fc97a88cso11307345e9.0 for ; Wed, 07 Aug 2024 01:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723019343; x=1723624143; 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=MITnFzAhcXSHu7cXDX+waEWOqwPn85hNlSBixdf9qIs=; b=VRy14PCVAH2CUayHWnEQD29oFolSxFmAfit68PD8GWxutNKHq+immlvG1NXJtG2h8a rII4AScHR+M/9MKdg+pNpgQ4ExlrNv0xZbMkYnhuZrthS914xC6rxugYHoOjazpa0sHn orqrR2zwXeiywWKyiP7E0KQvfiYvqP+obm6uuD8YmLnmHlAQfq+PEFs8G+y6ue/aNDaM YpcPEnE7gm/TGCdSazwrHmlC41WlM7vjWz8cC4arIc2rNK3kmLSnF2t4vX1DguB8onji 7bPKTG9MOuLSBZvGl8H7QCVIVvbkJDm4Lk9stJSpnLPJeDw4ZosGObhzSb6wPgTE4laP Sfbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723019343; x=1723624143; 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=MITnFzAhcXSHu7cXDX+waEWOqwPn85hNlSBixdf9qIs=; b=Lruyh05EtTMmMIBSDKLC4XHINHSTkwi6zChYAojAC2g7ADOFGP7lMqDqTi2pN5f/kZ 1Ftwr1M0vfyGy9SmYzkRRxGM8vJIyRPlIERRnt+DdicQLsnZYKcMdkDEkQk6SHwv/uWp 2WaCiKkmpbbShFGlJ/WBJRQio/cRbj8K0e5mBF38LPl549Tx3TMqUYR1nvRLXEeAs/T6 rksUsKiffcCRoirtlkPE4AysO5PmQgC9LfC9wzRYpblmcD4a2LaXk82c+p4j/dValVNy IZ+DN+6lU3dnsHghkYsNcDCNI9KOWQZrcW/tWn7ekclFkrssGAH7LIPRTKQ5A9FtFyiY vVKg== X-Forwarded-Encrypted: i=1; AJvYcCX9laDD/5o/3g3PTAe8QQ8ahwfjQfM0B6IShN2V5pizAHZIROLy+SEx6ir3HN00kIS//Ft4kC/3mI7kKmf/N9BeFUi4uGee1bfWbxTesBWQBalFxX0= X-Gm-Message-State: AOJu0Yw2nHQ10QpjLUJEbxbkggQO2QGgqxJn8pWXJ9g90s9fSDGY4HMO ofM4l0ZvtQK6GjWRTSMRdFzqD5IqYOozcYUlS9sl4/QZFhMcUa9X2/Ku5B6Z X-Google-Smtp-Source: AGHT+IEE+AqajD4fsqmHhGVEWaIEADU+aw3UXfH4k/RPjxH5Oqg4xDvGtVVk1LZLBX/ZNZG9OCKC/Q== X-Received: by 2002:a05:600c:a0b:b0:426:549b:dd7a with SMTP id 5b1f17b1804b1-428e6b93992mr107039125e9.36.1723019342877; Wed, 07 Aug 2024 01:29:02 -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 5b1f17b1804b1-4290579fb34sm18168505e9.14.2024.08.07.01.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 01:29:02 -0700 (PDT) From: ivo.ivanov.ivanov1@gmail.com 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 v1 10/10] arm64: dts: exynos: Add initial support for Samsung Galaxy S8 Date: Wed, 7 Aug 2024 11:28:42 +0300 Message-Id: <20240807082843.352937-11-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240807082843.352937-1-ivo.ivanov.ivanov1@gmail.com> References: <20240807082843.352937-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-20240807_012904_524797_A24113FD X-CRM114-Status: GOOD ( 16.00 ) 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 From: Ivaylo Ivanov 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..5c8351b99 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts @@ -0,0 +1,126 @@ +// SPDX-License-Identifier: 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 { + status= "okay"; + compatible = "simple-framebuffer"; + reg = <0x0 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 = <0x0 0xcc000000 (1440 * 2960 * 4)>; + no-map; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&key_volup &key_voldown &key_power &key_wink>; + + 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 = ; + }; +};