From patchwork Mon Oct 28 09:22:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853206 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BD041D8DFB; Mon, 28 Oct 2024 09:23:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730107389; cv=none; b=YnyhN7rtH0J79YX5O4P1RiNf5wE6oR0yJZ1DD/+8M6y8kgSBZuhPbxOvSrxlzG6rVyF6MWAQwii3UEH7dPh2KaJYS3i5Vu//jfcHNCbXzy5jkErcu4CabfQFr3pxG4xxOMVWijeD5pd0mSXnU0fciNg3kPO9iEn4gnHwwIDkDX8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730107389; c=relaxed/simple; bh=ShfgFHwS78Olczun65h5zSWaB5ZD0TN0sWlkrX9dkIg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=imazmPprMbpvWq2a/60inqcSTtnxGWXRDht8T7oY7h7ebibRqQB0jzM1tHOjQlBmFd/yZ4tvhP6SqKUqJ/KtucCuI7fFXfBAvbecsTInbXIAsz8kAmOQLEAQH9vW2GUGDT7A/zAcZHmxsaoKSgASAufv9IXMOmYeTWo1EM0Ye9o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MBhmVxPU; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MBhmVxPU" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-539d9fffea1so3771366e87.2; Mon, 28 Oct 2024 02:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107386; x=1730712186; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BRMz3tNgfToq92lnj2PahqWle5KJcXYV1IdUg20MVZM=; b=MBhmVxPUZ0zXOwcG5EgQpQreJUcyqjZ4iOxfH7ZzQGAxJCgQGK6gSjvr0XRovK+eVr 8w3cS/ok2/QMUOJa9MMcJ3064sKjcn8FyvbpXO9mMH+AQv2Q+xOw2FC6UQry3u+t1O7D NkW6bXb5yY/hltQ8u9f/C5UXxWy35nHoHTJ01wrBTGl5B8DeHt4aZ9nT+6INbSV4ZI+E IKT//veOP750nPtcFWt7VdjZ4IiXPIb/FiOgbIsB4YsG2whzoW6R+NdEizh1x+2tJ4HW vOKwfKyI7jY3UIvVVr5FIyK689Gqic3y3HhgC9fr4GGUvCd8sW2yfwpo6E9l/QGUXHAz JfIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107386; x=1730712186; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BRMz3tNgfToq92lnj2PahqWle5KJcXYV1IdUg20MVZM=; b=nA6gANq3hlkFYe3EaM5QL61EUAfC+ooJWKIIfAVWTBFdMCDroB4dpnD6H96SWQoTJ5 XDSUhyhW+65YsA4OobGSawLJZP3nSMZphhLks3qQndFg3AWRuqIiFNs4xP4t+LVOs8Xh VQLqOiC8pBrmW97DtwIz9gsizuVLlKCP/NwWDhDKEkG1l/OAYdZANmJ+ykxJDKjSiqPs 36nud67l97PqYziK7P8pSwACTI3hD1/WOCxzW+5l2v2cR56PGXc7g0y8lT0gGTPscPiX hI/QSPVbVrwNia4VinCqRUvcVeZRMfGZjuL5aPw3TXrjSo8PSUu96Ugd0R2+9Pxnu7kw kfDg== X-Forwarded-Encrypted: i=1; AJvYcCVJvhQox939jdrlS2mSjh/Ajs1kcRv1Iio/3kZ/X72yyXhDNUITVhBYD+xlHXCroXX7y+ktfWbreR+6@vger.kernel.org, AJvYcCVTY3MXg8z7dvd622tEOpUBn5YE6Z/nmx9AHtKj6ceN+R9uPzqMplBGzl6OgfjAeizF+USq6duoOLk1056V@vger.kernel.org, AJvYcCX3lVenqKKm2DdVa4SbzDd1xQFYIZwyh7Uy+z6IKflpHPFG7MC53BTZ5xqXSu4NhfusMafVmundx4Hfic1ondrfi5g=@vger.kernel.org X-Gm-Message-State: AOJu0Yz10QGzOM1eWZj6OYXTDm7njlYfEn6VIPm7zI/5u3NAOvZ9Q9os 6i3PBthNtNK7DL9A5QC2sQuGc+K/qTkupOEkGi5naA9SNCp3Z7Gp X-Google-Smtp-Source: AGHT+IHIDVPj63vyJSF9ok7tlM6BrlOS6N90LreALW4rD7T3vrGO/usqjhkRosCLZthMGEjBsZcriA== X-Received: by 2002:a05:6512:3ca7:b0:539:e873:6e2 with SMTP id 2adb3069b0e04-53b348ec22cmr2446109e87.8.1730107385487; Mon, 28 Oct 2024 02:23:05 -0700 (PDT) Received: from [192.168.1.105] ([178.136.36.129]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53b2e1af331sm1043785e87.152.2024.10.28.02.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:23:05 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:38 +0200 Subject: [PATCH v4 10/10] arm64: dts: exynos: Add initial support for Samsung Galaxy S9 (SM-G960F) Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-10-6191f9d0c0f1@gmail.com> References: <20241028-exynos9810-v4-0-6191f9d0c0f1@gmail.com> In-Reply-To: <20241028-exynos9810-v4-0-6191f9d0c0f1@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Pieralisi , Alim Akhtar , Sylwester Nawrocki , Linus Walleij , Tomasz Figa , Will Deacon , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, Ivaylo Ivanov , Markuss Broks , Maksym Holovach X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730107370; l=4449; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=ShfgFHwS78Olczun65h5zSWaB5ZD0TN0sWlkrX9dkIg=; b=I6sGro/ueIxdUmYxPHqqK2ZGH2peavdq9gdyqPTF+KXSF4EQYCI98ZyfmGq8/HtDeiek6sx7H HuQEA3bqWOJBb9arbH2aRDLgbeLvTGjbUmWdEuvjaG7F7UwprgDZS5t X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= Samsung Galaxy S9 (SM-G960F), codenamed starlte, is a mobile phone released in 2017. It has 4GB of RAM, 64GB of UFS storage, Exynos9810 SoC and 1440x2960 Super AMOLED display. This initial device tree enables the framebuffer pre-initialised by bootloader and physical buttons of the device, with more support to come in the future. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- arch/arm64/boot/dts/exynos/Makefile | 1 + arch/arm64/boot/dts/exynos/exynos9810-starlte.dts | 119 ++++++++++++++++++++++ 2 files changed, 120 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index 7a934499b235892eef38cd926905e02f0ce08278..6760b3d59e819fb52bc8cf4dc6877a0b9db9ce47 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos7885-jackpotlte.dtb \ exynos850-e850-96.dtb \ exynos8895-dreamlte.dtb \ + exynos9810-starlte.dtb \ exynos990-c1s.dtb \ exynosautov9-sadk.dtb \ exynosautov920-sadk.dtb diff --git a/arch/arm64/boot/dts/exynos/exynos9810-starlte.dts b/arch/arm64/boot/dts/exynos/exynos9810-starlte.dts new file mode 100644 index 0000000000000000000000000000000000000000..fc0ddfee4cd63d2fc53cae3d7447f66d39c134e9 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos9810-starlte.dts @@ -0,0 +1,119 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Galaxy S9 (starlte/SM-G960F) device tree source + * + * Copyright (c) 2024 Markuss Broks + * Copyright (c) 2024 Maksym Holovach + */ + +/dts-v1/; +#include "exynos9810.dtsi" +#include +#include + +/ { + model = "Samsung Galaxy S9 (SM-G960F)"; + compatible = "samsung,starlte", "samsung,exynos9810"; + chassis-type = "handset"; + + chosen { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + framebuffer@cc000000 { + compatible = "simple-framebuffer"; + reg = <0x0 0xcc000000 (1440 * 2960 * 4)>; + width = <1440>; + height = <2960>; + stride = <(1440 * 4)>; + format = "a8r8g8b8"; + }; + }; + + 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>; + }; + + /* In stock firmware used for assistant. Map it as a camera button for now */ + wink-key { + label = "Camera"; + linux,code = ; + gpios = <&gpa0 6 GPIO_ACTIVE_LOW>; + }; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x3c800000>, + <0x0 0xc0000000 0x20000000>, + <0x0 0xe1900000 0x1e700000>, + <0x8 0x80000000 0x80000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + framebuffer@cc000000 { + reg = <0x0 0xcc000000 (1440 * 2960 * 4)>; + no-map; + }; + }; +}; + +&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 = ; + }; +};