From patchwork Sat Nov 9 23:04:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sota4Ever X-Patchwork-Id: 13869729 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 BB877D5E386 for ; Sat, 9 Nov 2024 23:08:06 +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=lYmMJjvbdbMxz8rStxEESpsIZqDsIf4GaLtpKhT3xmU=; b=DlCUrZzmW8BB/wBrB0iVrDiPdH rcP/Q3Lsjm/Dm6/LjmG8ROtEqbx790dgs1uZIBdJcCrQyUgaNMgD6zjMgilKtDWJZLKFVwqwfyh5g OnJGCpFY416a+uiYF1jDOqE47YyWxOPdGQwYrDFMKf5diCAfwg5oK+GZ7Yk5NTYUl/gBT8Vi/n9wQ 7o6ZMQ0/vQGXVcE8Rcbu2LeUk5zjtwoL3dzLSmQ/SfJt6YRUPCzi1J71FBoRseETE6BOpAn7C3ZfP eGkLwR/WlE2JXQUVel550fx4ruVS7MM97AngNMTGWhnTGiJhmd7DiaClfm/RUIF4tJuDfUFR+Uonx BVJCy3+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9uYc-0000000E5lX-46Iv; Sat, 09 Nov 2024 23:07:54 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9uVC-0000000E5UF-1n2K for linux-arm-kernel@lists.infradead.org; Sat, 09 Nov 2024 23:04:23 +0000 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2e2eb9dde40so2726995a91.0 for ; Sat, 09 Nov 2024 15:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731193461; x=1731798261; 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=lYmMJjvbdbMxz8rStxEESpsIZqDsIf4GaLtpKhT3xmU=; b=QMjcpcKZnpt9CbDYUglGJwCLVep+WBVx8JEDNa8vo6MmK+MosCxeebRkfl+Bvlm0yJ a3tDFW1Uhqu6Eojua39Tgkp1UdAn2dBvTkaWRD4mDSx/qJyaiNESFayFnDUa8trDzVr7 wK2iHwO+2n+TLveHJRlYoS4hxASj2o9rtdLcup0/BJTXTGwdh5R4Ya2zzjZmeou5Y1wB odHupTSofoD5UhCnyNv6O7TdPLmHpHGIcttNMZ0TXX7malDQOe3revLvwDEdm5EfoSEl z7AWLdrwBi0f7yqgBBTHeq0Dz5Hc3M78nlR4N1ZDnCuqGaScWFNJqzgiBwRrgFFbujBK YEjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731193461; x=1731798261; 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=lYmMJjvbdbMxz8rStxEESpsIZqDsIf4GaLtpKhT3xmU=; b=JtSG56KFl17cnyXdZIleQ5xD8JetMUxF5QshWrRYqUajqCetViq19S4+nnHgSunzXo 224ZCIz3+bV6cvPk2wFyLGyrvC/e8Z4wOC2O2f8eALP1/DkJcSAqM7PUhluqeV4aL/mS yKEgKhqNDsd68ZfxDMSyftqyfSaPum6/GNmTlz3QWDeInztOjYq2VtE8PBKZJVceBlcp bJ97nySjfY16vG4rKIaeWh7bqsuScoshAbU7HVlWOZHJj9wC/TeeHx2gFZ2K/UjCs132 d9JPna8kuUUWs7uhQ/DQ9yXM5Zii4YKzbGZwnTMa3HtS/f8ezIcgba/yNduhgSYNo6+M kkdQ== X-Gm-Message-State: AOJu0Yy3uyfUEao5LkzYHi3Z7Pd+0fQDfngRMRWjqWA8RX7XgcCUwM6m sIeHxBror6ySsMgvU0fJPdQeYfP8gFHhWvQoGPcQFBN50LB8Zpzh X-Google-Smtp-Source: AGHT+IEdhygKeNmzJW8T1zwRO5o8DvBEr2FpAArw4f90hx5sT0afqZ0tNow5Q6uEwXVNKfM+fLpq9g== X-Received: by 2002:a17:90b:2ec5:b0:2da:802d:1f95 with SMTP id 98e67ed59e1d1-2e9b1655967mr10350563a91.5.1731193461407; Sat, 09 Nov 2024 15:04:21 -0800 (PST) Received: from localhost.localdomain ([38.44.237.182]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9a5feb50bsm5847991a91.53.2024.11.09.15.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Nov 2024 15:04:21 -0800 (PST) From: Sota4Ever 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 Subject: [PATCH v1 1/2] dt-bindings: arm: samsung: Add compatible for Samsung Galaxy S20 FE (SM-G780F) Date: Sat, 9 Nov 2024 23:04:01 +0000 Message-Id: <20241109230402.831-2-wachiturroxd150@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241109230402.831-1-wachiturroxd150@gmail.com> References: <20241109230402.831-1-wachiturroxd150@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241109_150422_486781_5275A1B8 X-CRM114-Status: GOOD ( 10.13 ) 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 Add binding for the Samsung Galaxy S20 FE (SM-G780F) board, which is based on the Samsung Exynos990 SoC. Signed-off-by: Sota4Ever --- .../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 b5ba5ffc3..168e77375 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml @@ -240,6 +240,7 @@ properties: items: - enum: - samsung,c1s # Samsung Galaxy Note20 5G (SM-N981B) + - samsung,r8s # Samsung Galaxy S20 FE (SM-G780F) - const: samsung,exynos990 - description: Exynos Auto v9 based boards From patchwork Sat Nov 9 23:04:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sota4Ever X-Patchwork-Id: 13869730 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 6D525D5E388 for ; Sat, 9 Nov 2024 23:09: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=h0TAscultBWfpxXBV9mGtO8Oc58VDQvYlCayV4b4ArM=; b=Dw7D8U2XJTBUGiQB4mwq1+AUaa iPqmxaUMQfxmRhLHCqriYEV2GhRvuY+KH3dQGgSzWsg+ei71/nbruQGRRDkTEyL2IbCwnX+Yq5tdn 2CalZaDUg9MJh2dlY89v7g4D0jaHzbROdepnichGKT3UlsU/beOoTZK6bTqe7fpSYub6sMuq3AtmS rKl6jRJfwjFgo+9MlIUHUL8Lk8KKJriyVqt+oMtCsWyXgTppIMpagj6+Gceq1TiD99ORe1fO59NwY ShLuyKkmK1qCVAgmzS1W6EitthFR3aAf+Fiogn3NrcOC046g+ey2hjXyMLVzVuCqlMp8y35HkK65v TLSGeLlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9uaL-0000000E62u-1gHz; Sat, 09 Nov 2024 23:09:41 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9uVF-0000000E5Ua-3IGt for linux-arm-kernel@lists.infradead.org; Sat, 09 Nov 2024 23:04:26 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-20c805a0753so33236935ad.0 for ; Sat, 09 Nov 2024 15:04:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731193465; x=1731798265; 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=h0TAscultBWfpxXBV9mGtO8Oc58VDQvYlCayV4b4ArM=; b=P4beboGhiyOaHZPNVQX5hWeX/IGtqJ9xBLtLJEwqaEOWBshj85QxIew1k1q+HfJ7gz x4yb3hlnghK29xe/9hXzS56FNZntB5x2irvmLBdN/+V4V0XZ1UsCgDz6/Jgz71HjeLgt bEQP+h5VcGKdw3/x2UP0lMEN4qBa8g2BDW9vYbUmIYon0MRJFrKi7vfridaZvkfxHCwp 7DTzgwU3IJufRdw2DQQO58RxwBwYP6zkbOR8BEmmzAouu5ufBKVK1Uv46Vxi+SNsFT4j k15Pnoyk+7rlXDWUz4nn0sA2UJUhE/maONV1sG62GV/FJi5RH2o/20UCgBu0TGL8hi5I PSIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731193465; x=1731798265; 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=h0TAscultBWfpxXBV9mGtO8Oc58VDQvYlCayV4b4ArM=; b=osZ8fW04lRiUcx4JJEHD/ojtSa4FWXh/Cpx3LM7diz970U7vEMvOz8IFM4Q4G/vOCO IOQefw0CykwXxVkkYIZTAchfkkr89etZsPLUDQOKVsIz21DyCuCJe8ofsqQ+ZdiPx6jZ rtxMBo4X9jSZF38TvlLQIKAL5Kgz7VLVWuMdeE6p6UC6+oE0AQSiMU0mZ6hR3UV3NxxO l61VOhmjws0vENbVKZrL0bdlA4smKRlpDLd04ICHRmnqVsLOdlE4sQ/pfjYtkFc2ncs0 YKTfIRAAw+0+WXcQ2RzDYtb14Hi1rwlm7q2F+/ddHUN/qm3mmRVknF01QPoejhIYCVch MQTQ== X-Gm-Message-State: AOJu0YzCpFN0hlXoYSJMFD4rAWSjFYC3Z6PjzgNfxsqJQKU7B+wqiLju GstpDJKll8PGVMn8EbwdR7FWpiqsidHm697cR77cxx8JyCV8GYqW X-Google-Smtp-Source: AGHT+IEEwko2sZK8zp7cWYH3ediZKHQGh64tWJ48vZuXxcd/8ql8CRgM/uW3JOJAL4MckDlVfhYSxg== X-Received: by 2002:a17:903:1cd:b0:205:8bad:171c with SMTP id d9443c01a7336-21183cd15bfmr90934925ad.12.1731193464741; Sat, 09 Nov 2024 15:04:24 -0800 (PST) Received: from localhost.localdomain ([38.44.237.182]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9a5feb50bsm5847991a91.53.2024.11.09.15.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Nov 2024 15:04:24 -0800 (PST) From: Sota4Ever 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 Subject: [PATCH v1 2/2] arm64: dts: Add initial support for Samsung Galaxy S20 FE (r8s) Date: Sat, 9 Nov 2024 23:04:02 +0000 Message-Id: <20241109230402.831-3-wachiturroxd150@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241109230402.831-1-wachiturroxd150@gmail.com> References: <20241109230402.831-1-wachiturroxd150@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241109_150425_846201_A7EA318C X-CRM114-Status: GOOD ( 15.98 ) 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 Add initial support for the Samsung Galaxy S20 FE (r8s/SM-G780F) device. Its launch was in 2020 and also based on the Exynos 990 SoC. It is only configured with 6GB of RAM, although storage options may differ. This device tree adds support for the following: - SimpleFB - 6GB RAM - Buttons Signed-off-by: Sota4Ever --- arch/arm64/boot/dts/exynos/Makefile | 1 + arch/arm64/boot/dts/exynos/exynos990-r8s.dts | 115 +++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos990-r8s.dts diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index 7a934499b..948a2c6cb 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-r8s.dtb \ exynosautov9-sadk.dtb \ exynosautov920-sadk.dtb diff --git a/arch/arm64/boot/dts/exynos/exynos990-r8s.dts b/arch/arm64/boot/dts/exynos/exynos990-r8s.dts new file mode 100644 index 000000000..6d0b5f715 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos990-r8s.dts @@ -0,0 +1,115 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Galaxy S20 FE (r8s/SM-G780F) device tree source + * + * Copyright (c) 2024, Sota4Ever + */ + +/dts-v1/; +#include "exynos990.dtsi" +#include +#include +#include + +/ { + model = "Samsung Galaxy S20 FE"; + compatible = "samsung,r8s", "samsung,exynos990"; + + #address-cells = <2>; + #size-cells = <2>; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer0: framebuffer@f1000000 { + compatible = "simple-framebuffer"; + reg = <0 0xf1000000 0 (1080 * 2400 * 4)>; + width = <1080>; + height = <2400>; + stride = <(1080 * 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 - last block */ + <0x08 0x80000000 0x0 0xc0000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + cont_splash_mem: framebuffer@f1000000 { + reg = <0 0xf1000000 0 0x13c6800>; + 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 = ; + }; +};