From patchwork Wed Oct 16 19:34:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umer Uddin X-Patchwork-Id: 13838816 Received: from out-02.smtp.spacemail.com (out-02.smtp.spacemail.com [63.250.43.87]) (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 65D9C215F45; Wed, 16 Oct 2024 19:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.250.43.87 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107318; cv=none; b=gMbleHR9N+TU/o6wKqTlvd/bNWx4SOQFoO2Z2HzdQzzSoLI32W5kqTrXPmNg2ZRKm1tcoHtwuyFMr7qSaPTZ6A2HxhhMJrbGDlrKEQ1Td/fO5+4HnNO0ja5Cco0zLVLE2eE8yLwj7Z90z50V3KD63vPz97T+gFyibNpxK9/WKXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107318; c=relaxed/simple; bh=ibgiACFyEQq5G9kXRK2fjIrJz1rMzfVtVv3tCBGH5FU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mE5yQ3UDKUkNi+kE0O30+XHAu7dqpYRYPWBoNk5anbuWimPqBaaMJveWxLZAMaMuc+Lf0IxCPvENTch6TBPPcvjIm1DpQ0+adNIofbvDmyIS2LEI7eJCovgJXoutWenZpMgtDyh/5LBiGx02bz2YS0cQfoIol1FBivUsFo2PYro= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org; spf=pass smtp.mailfrom=mentallysanemainliners.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b=OSuLD1kD; arc=none smtp.client-ip=63.250.43.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b="OSuLD1kD" Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4XTLlk1XlJz4wKg; Wed, 16 Oct 2024 19:35:14 +0000 (UTC) Received: from l-latitude7390.lan (host-80-41-166-50.as13285.net [80.41.166.50]) (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 4XTLlZ50LMz2x9B; Wed, 16 Oct 2024 19:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1729107309; bh=ibgiACFyEQq5G9kXRK2fjIrJz1rMzfVtVv3tCBGH5FU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OSuLD1kDMrASgNcwmczBs3aGKI0gsFiCLyss1RTzn4cdf9bB/DsCuvVpciyLbSoiL bXv0Pcv64fuUgBwqxAgHZqJmQh53U56AHzjaGJO1/0Oe9ygh72ap52zVUjFLGUGEro Qavd6rk5e6C8Et8Oax+cBdK6gIPEmKntkyDUlNn+U8ShgDjb3KXcQIbCljuLtxBu8E gEsC198p2610FO7oH3Nkb/p2FvqqiZ6AeCF9OC6IIdFnyzJoQMTTMyvz2XvSH1P9H6 DAIinVuDo3cylcuF8f0nMmrWpSvJmC3DyYCbjpV6V2D4e0HVSYohvQOaRCaaPxh8sz Sol5GtMr0HfXg== From: Umer Uddin To: Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, igor.belwon@mentallysanemainliners.org Subject: [PATCH v1 1/3] dt-bindings: arm: samsung: samsung-boards: Add bindings for SM-G981B board Date: Wed, 16 Oct 2024 20:34:49 +0100 Message-ID: <20241016193451.28897-2-umer.uddin@mentallysanemainliners.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241016193451.28897-1-umer.uddin@mentallysanemainliners.org> References: <20241016193451.28897-1-umer.uddin@mentallysanemainliners.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add devicetree bindings for Samsung S20 5G board. Signed-off-by: Umer Uddin --- .../devicetree/bindings/arm/samsung/samsung-boards.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml index d25a17e69..3dba0b283 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml @@ -234,6 +234,7 @@ properties: items: - enum: - samsung,c1s # Samsung Galaxy Note20 5G (SM-N981B) + - samsung,x1s # Samsung Galaxy S20 5G (SM-G981B) - const: samsung,exynos990 - description: Exynos Auto v9 based boards From patchwork Wed Oct 16 19:34:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umer Uddin X-Patchwork-Id: 13838817 Received: from out-02.smtp.spacemail.com (out-02.smtp.spacemail.com [63.250.43.87]) (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 E8B7A1865ED; Wed, 16 Oct 2024 19:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.250.43.87 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107319; cv=none; b=ff2K0NxRo8+jE/xrl77yzlrDaptRuRn2nAcP6+2BPfiX/c3CHaqTERbzc2g8Obql/ybMqCAitSDA0xQAvBIsWfgRGLTL5ohirTkMWdy9xFlvX6pkQPA4NGrGZ96UAmwda3TmFz6VU3O5IDTJQtHUkQcEEjXtGi7lG1SF0L3D0R0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107319; c=relaxed/simple; bh=8yhN42j7xnElwN+ncH8e+E+PtpPUKAUdWicv2+WBFD0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I05KJDOlfb2kEddzZHUtMUwfdrk6KTLAkfwHhbWkij1mnKkrdkx0sI5dapFYu5FW5NR6FqhwsSi/6Ov/Bp7NTcP1k6BG9vkWO9vG9+4UlN9DECrMFG87HeVnxCQTfjDpPEQl3TeUnru1i8qWjkswORwVAtdVcix3EREsfgeb6mw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org; spf=pass smtp.mailfrom=mentallysanemainliners.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b=FhTMLCVR; arc=none smtp.client-ip=63.250.43.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b="FhTMLCVR" Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4XTLlm6s2Mz4wL7; Wed, 16 Oct 2024 19:35:16 +0000 (UTC) Received: from l-latitude7390.lan (host-80-41-166-50.as13285.net [80.41.166.50]) (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 4XTLld4325z2x98; Wed, 16 Oct 2024 19:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1729107311; bh=8yhN42j7xnElwN+ncH8e+E+PtpPUKAUdWicv2+WBFD0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FhTMLCVRq5kfuZ91D3oSGny/ynakr0o1YKLbCGn105pmTqrNlkpYqoDsQsdmfOPnM l2Q67ZRc893slsRXlLzYz55KN8ZBXn5DpU5UFp3n8LGmiJEa5oNnHgqkG8kdSopMLp KR6tvw3yyuUB5jSteK54QHXjPIuK6hmp4aW5fhrmoR3G248vfbQ1G5McmWmCN6e6L5 MbFsm4jYLQJfJwp1VKQUvQIh2oPlO9sbY7UCEN5GEZY1sb8rFNXbtJPv8wokIO/QAW tSB5RRnrTtNc9z80TjWD/EiOc3sMfFyBholscHOzMBnL/VTUP5IrpcbpZ3FzcrBX6n F+cJbTFg8FNOw== From: Umer Uddin To: Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, igor.belwon@mentallysanemainliners.org Subject: [PATCH v1 2/3] arm64: dts: exynos: Add initial support for Samsung Galaxy S20 Series boards (hubble) Date: Wed, 16 Oct 2024 20:34:50 +0100 Message-ID: <20241016193451.28897-3-umer.uddin@mentallysanemainliners.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241016193451.28897-1-umer.uddin@mentallysanemainliners.org> References: <20241016193451.28897-1-umer.uddin@mentallysanemainliners.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add initial support for the Samsung Galaxy S20 Series (hubble) phones. They were launched in 2020, and are based on the Exynos 990 SoC. The devices have multiple RAM configurations, starting from 8GB going all the way up to 16GB for the S20 Ultra devices. This device tree adds support for the following: - SimpleFB - 8GB RAM (Any more will be mapped in device trees) - Buttons Signed-off-by: Umer Uddin --- .../dts/exynos/exynos990-hubble-common.dtsi | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos990-hubble-common.dtsi diff --git a/arch/arm64/boot/dts/exynos/exynos990-hubble-common.dtsi b/arch/arm64/boot/dts/exynos/exynos990-hubble-common.dtsi new file mode 100644 index 000000000..2c634e4bb --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos990-hubble-common.dtsi @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Galaxy S20 Series device tree source + * + * Copyright (c) 2024, Umer Uddin + */ + +/dts-v1/; +#include "exynos990.dtsi" +#include +#include +#include + +/ { + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer0: framebuffer@f1000000 { + compatible = "simple-framebuffer"; + reg = <0 0xf1000000 0 (1440 * 3200 * 4)>; + width = <1440>; + height = <3200>; + stride = <(1440 * 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 */ + <0x8 0x80000000 0x1 0x7ec00000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + cont_splash_mem: framebuffer@f1000000 { + reg = <0 0xf1000000 0 0x1194000>; + 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 = ; + }; +}; From patchwork Wed Oct 16 19:34:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umer Uddin X-Patchwork-Id: 13838818 Received: from out-02.smtp.spacemail.com (out-02.smtp.spacemail.com [63.250.43.87]) (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 CF442216A1D; Wed, 16 Oct 2024 19:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.250.43.87 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107322; cv=none; b=npNnFr1kLLHHP8uGepFT6yZHjawjmcRdIMyXwGiM/fQ7h4aVYvWLnfYwlgw8GpKPtXUdHZVqFpHu3ESD86xEIIFx6VXSMT/6T1FYSOKR1wvTanti8jRXRZ3Bs6TRm0xqjRdPQwTYj5vsLARrMZ/NYH2h5bMTe3b5Fd6/bQGA8Bc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107322; c=relaxed/simple; bh=vEV5MrcZqqP+/2M7VPWQb86a7NQ1R7xOy5iwcfrbp3s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EQLOxSGwVacc3wQ2d52A2UVmglQUPGRHO8EdJKWUYmM0cRAeaYKowkGvPJAZpeDwEiq//qsAU6F99JuaN0An2U8yLOQSPHqCRQCGkMhbI446YIRF8kuhcvMtY/5jCS3v1YfEbNjZ1X+SmZFPI4ihrcvfBe3sfD+21eGzkyEsFXI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org; spf=pass smtp.mailfrom=mentallysanemainliners.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b=hFuQPkp1; arc=none smtp.client-ip=63.250.43.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mentallysanemainliners.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mentallysanemainliners.org header.i=@mentallysanemainliners.org header.b="hFuQPkp1" Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4XTLlq4d3kz4wL9; Wed, 16 Oct 2024 19:35:19 +0000 (UTC) Received: from l-latitude7390.lan (host-80-41-166-50.as13285.net [80.41.166.50]) (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 4XTLlh1dvNz2x99; Wed, 16 Oct 2024 19:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1729107314; bh=vEV5MrcZqqP+/2M7VPWQb86a7NQ1R7xOy5iwcfrbp3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hFuQPkp1MbYdRxphIxV7Rx3HLXLGzpWmP41nrUq86tMnJiS7chn4/x0A/F29RpwB/ LftFEVA6tNRXJqoYnvW/3A8M+HLq1SAjNmKYSQ/WzWxtl9hCFAaU7FPxY41IJDosAO 1xmAS0NbHo9udmpJRgKZG4Neasv1hqWtZmRhojFrwMYeTKeyNceF6RjPeBcZtw1h2e ZpPGmXHUaYfSJLs6WRvAZPqZEaBuePysaKLrVQvsJ/h8upDPCWmxtYp15b6Nnamhxe jkm5i4g7U5GVAzReYWgJ9nC+vBw+uwA/rL39OSMd5Dmr+JvTtuwSyT9JBD4YQOCVaf t2Xb0ihENEsaA== From: Umer Uddin To: Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, igor.belwon@mentallysanemainliners.org Subject: [PATCH v1 3/3] arm64: dts: exynos: Add initial support for Samsung Galaxy S20 5G (x1s) Date: Wed, 16 Oct 2024 20:34:51 +0100 Message-ID: <20241016193451.28897-4-umer.uddin@mentallysanemainliners.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241016193451.28897-1-umer.uddin@mentallysanemainliners.org> References: <20241016193451.28897-1-umer.uddin@mentallysanemainliners.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add initial support for the Samsung Galaxy S20 5G (x1s/SM-G981B) phone. It was launched in 2020, and it's based on the Exynos 990 SoC. It has only one configuration with 12GB of RAM and 128GB of UFS 3.0 storage. This device tree adds support for the following: - SimpleFB - 12GB RAM - Buttons Signed-off-by: Umer Uddin --- arch/arm64/boot/dts/exynos/Makefile | 1 + arch/arm64/boot/dts/exynos/exynos990-x1s.dts | 23 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos990-x1s.dts diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index 7a934499b..deb8dc509 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -9,5 +9,6 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos850-e850-96.dtb \ exynos8895-dreamlte.dtb \ exynos990-c1s.dtb \ + exynos990-x1s.dtb \ exynosautov9-sadk.dtb \ exynosautov920-sadk.dtb diff --git a/arch/arm64/boot/dts/exynos/exynos990-x1s.dts b/arch/arm64/boot/dts/exynos/exynos990-x1s.dts new file mode 100644 index 000000000..f7b1afd0e --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos990-x1s.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Galaxy S20 5G (x1s/SM-G981B) device tree source + * + * Copyright (c) 2024, Umer Uddin + */ + +/dts-v1/; +#include "exynos990-hubble-common.dtsi" + +/ { + #address-cells = <2>; + #size-cells = <2>; + + model = "Samsung Galaxy S20 5G"; + compatible = "samsung,x1s", "samsung,exynos990"; + + memory@9fec00000 { + device_type = "memory"; + reg = <0x9 0xfec00000 0x0 0x01400000>, + <0xa 0x0 0x0 0xfe800000>; + }; +};