From nobody Sat Nov 23 02:05:21 2024 Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) (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 90AD776C61; Thu, 14 Nov 2024 14:37:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731595023; cv=none; b=X3GVgY+fsG9PLhm31TTElSy+xmeGuH8Sr9j3q/VuhAPaFDz5VZjaFZQ1ZcKo/C9j1BZrLqpyuHR+3MOhJ4LemkXtAiM4qTb2d2+LknaAHhl0hrUeoqq6Di8Ph3hRKmCPfdYbkTb+hNXhK1jRiNrn/0jeqFvr14irymUp+wXWDiA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731595023; c=relaxed/simple; bh=fKfznyVOD1Iu+UIYCwjYyeHj35rBR8SzkJmfoQKPDr8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JRjIsXTz0UOg7q5b8vUOEP9wda90zF1Ck8RqwPRk2Em5IdaXELxxrXkL71ZHDcdjJ5llQDmycoAJt2H5/5KVAeGBotF5X/09QQBSc4IdxxXUAEnpnQT4WezHdsU8rVOIG363musM4bUiAdsx4TaVURft8oS6bnqySyhaqKiAfTQ= 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=R6YnCjZk; arc=none smtp.client-ip=209.85.160.54 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="R6YnCjZk" Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-288642376bcso316199fac.1; Thu, 14 Nov 2024 06:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731595020; x=1732199820; darn=vger.kernel.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=LamMmHrHoISVxlDkxrXlCn20NYqsihYLKICdj17wsng=; b=R6YnCjZkYaJ3Ew9aVFi2yLbY6w0QA8v1/FcRAOxjNaWw02PDSKk+C8Ja+IJx3mX05k Zl5d1jdvoz1A/4SR1rYM/Tw2oeTt0pb6DS/gROGJOcd1Q+TEE/1Gyralychzl+iAV65w FPJqiaMvSEe3+I21Xcea8ZVf4EL5KKep5I5Cq7SQ4e0Cz+AKqPgVFyD4P6hTpCjiZ14M oeyVoFdm3lIp+X+ItFGz1veTdSJ2hthLFGC5ra8aVMb+CTnSqX6v/1noc+YXe++TXlaZ KIzxSmtwyXvRAwTIxUEiP1NJ+5y+Q7ICY9cNB2tiDmo+q2+hqotx1UKBuuY8zHKAzim5 qBjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731595020; x=1732199820; 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=LamMmHrHoISVxlDkxrXlCn20NYqsihYLKICdj17wsng=; b=gj310/MHFardGWc6o+824YCcuJ9kwN9Oiw6LWSNa9ZU8klzOjmgSqp2MP9xeNv/LZ/ BYT8TTdOmLXabjQMZKx9LvFeRwUc8rKqZRHvv3ReBCrBKRC6+PJY2QdxY4DJEyPkjjR7 RBYJDzo8GbqLS5u+pXtFrDeADzE2mjb4fEJayZdRcWunJYwrBA4OJKMy8zw16V9RsjcX TXyQBWOfaAzYHjSGaSWlPTRnyWEv3Nz46tJg3ICAuNJnQmMXZoN3blq15ErDWh9/B7ri lRFEQVq7NFWbwqfKnUxKLK6G/D3BLCBkoDN79benhz2ww2Y0HXpRkfwfqGRIJDCCVEn/ UImg== X-Forwarded-Encrypted: i=1; AJvYcCWRK6uWMl7JBmOkCo+XABaXoYvJtxT0WSUdD8lfr3uSSCkG7LTOdhejLf3c6olF1BBBtX06j1SGSin7@vger.kernel.org, AJvYcCWxoHA8J1xKGlsIhW19HxXYEmNIN2d2ldStDjrjIy2GVIZOWWrVUvaffxRtRzrH8gsB5/VS6SQqdZrf2SsKgLH3XH8=@vger.kernel.org, AJvYcCX4iueJd0sn240aEOe/gqFXBgyW792bxZ0oaTr5TKaC2gTfjhMBQzjSxA3D7TY8uQoGzWqWglE5oBc7+2V3@vger.kernel.org X-Gm-Message-State: AOJu0Yy5cRAqWjGVQp91mi3wu11QVKQXbE12tuBtLJ3Dm/YfHSx9ux3i WlLzGcWtInoe+UdZ8fnFlFfc2plrsjGLzK6i5bted/qRI0Qxp+Vd X-Google-Smtp-Source: AGHT+IFsQik4tjBSI2mRjcpS5ABfhYDsS9jNEFlH4iamdiDIl0ypAeAwQjngdw/0Rj4LrHF4boIDmw== X-Received: by 2002:a05:6870:889e:b0:25e:1382:864d with SMTP id 586e51a60fabf-29610648008mr2874010fac.30.1731595020475; Thu, 14 Nov 2024 06:37:00 -0800 (PST) Received: from localhost.localdomain ([38.44.237.182]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71a6eaeea60sm393294a34.43.2024.11.14.06.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 06:37:00 -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 v3 1/2] dt-bindings: arm: samsung: Add compatible for Samsung Galaxy S20 FE (SM-G780F) Date: Thu, 14 Nov 2024 14:36:35 +0000 Message-Id: <20241114143636.374-2-wachiturroxd150@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241114143636.374-1-wachiturroxd150@gmail.com> References: <20241114143636.374-1-wachiturroxd150@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Denzeel Oliva Add binding for the Samsung Galaxy S20 FE (SM-G780F) board, which is based on the Samsung Exynos990 SoC. Signed-off-by: Denzeel Oliva Acked-by: Rob Herring (Arm) --- .../devicetree/bindings/arm/samsung/samsung-boards.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.y= aml 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 (S= M-G780F) - const: samsung,exynos990 =20 - description: Exynos Auto v9 based boards --=20 2.34.1 From nobody Sat Nov 23 02:05:21 2024 Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 48E8C136658; Thu, 14 Nov 2024 14:37:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731595025; cv=none; b=CkKqH2GObO7GdCBNcYi8PTq7UOpMwnklflGLnh61bylnTWkdlhjMF2NwLUfw51ihWuGhRrmgVY3OFnH/oOA5m4/aQxGiaT2MBbfPpStvwYuZ+htvj9YgJR6ij6qd9ce+jBr+T/V/HNpOCe2/vHf0KuLo3Nks+2FIsEEeMO4ynno= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731595025; c=relaxed/simple; bh=4ZkpScxoggvW3svRDxvCxH7viLFxvvGKl1hlfnj6dx4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fYQR/hT7MPooA35W9DlklZvlPRNxY8i8eXTfCbY7wqb9Fh1cnRuJnhEfVgY4LZF26m90zMvsn/6e0pxT61lfcCSOXhg0zYY/OFvq0HqVfmbSG9PsQ6Z6RYEXeSk/PLe5Z0fZXUz62gYbf0Iq0ZyBc/jvQb71TnkeCqQJxkbBrbM= 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=CjYJQpG+; arc=none smtp.client-ip=209.85.160.46 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="CjYJQpG+" Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-290d8d53893so270956fac.2; Thu, 14 Nov 2024 06:37:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731595023; x=1732199823; darn=vger.kernel.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=IGt3perR6MKvrKIP+pWiAPIqBuHbAKWRSnzDOTu938g=; b=CjYJQpG+z7iWlz6nr138rjQG1JRl9sitxaf7o4zZsHloFJhDysSdbFffmQZKBy/LHr 6rkIFz6qehWNvtb5SoGq1nmFtdXAtnBvg5kSIC+2liqOIvZgfQhrVpa+qejM8oQviamE ILZwAgFjUTZerr6UePNs/cMCKsILu5RmlRtxW5rm9XgOdhZQwF/PIr43Dn9KiXGZ2LkS dylvEOxDiuYW2a9kmxU3IfhBFJhicrZ1JPpWrdDWJrsEUDwjMeYI2MQnBhHwBuFo36PR tdbjpI202PpXfS8PiARUVCoz9FXawCGyAdZ22nP8Dy33wcNS7ULoEvg5plUReP7/4kg7 EB/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731595023; x=1732199823; 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=IGt3perR6MKvrKIP+pWiAPIqBuHbAKWRSnzDOTu938g=; b=H1SuwffUHNL0KppN2s+H5S9cNnxuxG9v1XMbQlQghrEwn8lp2uaNlxQJYiVWG8RVwS ni7zzg2hE8bikhoW6eUD7QxT9xNndQRVjKT975Sv1CetOfqyGJfy60iZqbDn+eUbl8SO ObGdUEWAycnzG7sWA4t8Q1l4SwiEwDGQrjQcsnj79QS63OI+wJ1AsdzVfJGtZCyTaKXm OVVqv3DU0w+Sv2oizB3kPV5eufd5WIOpi4MtBdc3ODo1GftrXSTmvClgATj6ihRumQ7k WNt0LYB1Bw+ZTxmjFxidhRdyFGILLYldcHqc7bt40+As5NkQAOTBX9Ufy7fqOU1ZgftG pAEg== X-Forwarded-Encrypted: i=1; AJvYcCUHYzcKT8Kvz8PZKPNsUunOu9/KXwxiKm6YhtSShNdZwuNbaRqKb0NcOgVRtvGvxbbgLiW08K9mY5f+@vger.kernel.org, AJvYcCVy/y4vl7p/NIym4Q7EsiT12yqgBnduzB1ZJ23Ia/U2yPDFm0Na4sCJE8ZM9TTxXaJK0VQEiX/qcsaKZ/OJti1bhHk=@vger.kernel.org, AJvYcCXv5C28aTgC4R83eTIfPyLsHAkgTsLe+3HU8jVzZlKRddNw6YS2lLalhKx6cBpda8AbpKmUu2/xkVrBOznb@vger.kernel.org X-Gm-Message-State: AOJu0Yx32lm6buObiL7hbs1u0mNCf9yKw7rDnbgce6kl2ui9JqZ31MuD oZFzAMLke/bd+hqluYEzA0dewyT53NkWoYpkDfTOj80m8CiRlgfFT9e+C+VU X-Google-Smtp-Source: AGHT+IEqNhhPHGyb7oB+cPPBeJw9s37iJW919hbsr058ZKOG5V8yHEvVE7yjxHXwdc4ny2A8okRAGg== X-Received: by 2002:a05:6870:d03:b0:261:877:7459 with SMTP id 586e51a60fabf-2956036baedmr20256480fac.38.1731595023281; Thu, 14 Nov 2024 06:37:03 -0800 (PST) Received: from localhost.localdomain ([38.44.237.182]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71a6eaeea60sm393294a34.43.2024.11.14.06.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 06:37:02 -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 v3 2/2] arm64: dts: Add initial support for Samsung Galaxy S20 FE (r8s) Date: Thu, 14 Nov 2024 14:36:36 +0000 Message-Id: <20241114143636.374-3-wachiturroxd150@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241114143636.374-1-wachiturroxd150@gmail.com> References: <20241114143636.374-1-wachiturroxd150@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Denzeel Oliva 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: Denzeel Oliva --- 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/exyn= os/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) +=3D \ 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..b21863bbb --- /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, Denzeel Oliva + */ + +/dts-v1/; +#include "exynos990.dtsi" +#include +#include +#include + +/ { + model =3D "Samsung Galaxy S20 FE"; + compatible =3D "samsung,r8s", "samsung,exynos990"; + + #address-cells =3D <2>; + #size-cells =3D <2>; + + chosen { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + framebuffer0: framebuffer@f1000000 { + compatible =3D "simple-framebuffer"; + reg =3D <0 0xf1000000 0 (1080 * 2400 * 4)>; + width =3D <1080>; + height =3D <2400>; + stride =3D <(1080 * 4)>; + format =3D "a8r8g8b8"; + }; + }; + + memory@80000000 { + device_type =3D "memory"; + reg =3D <0x0 0x80000000 0x0 0x3ab00000>, + /* Memory hole */ + <0x0 0xc1200000 0x0 0x1ee00000>, + /* Memory hole */ + <0x0 0xe1900000 0x0 0x1e700000>, + /* Memory hole - last block */ + <0x8 0x80000000 0x0 0xc0000000>; + }; + + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + cont_splash_mem: framebuffer@f1000000 { + reg =3D <0 0xf1000000 0 0x13c6800>; + no-map; + }; + + abox_reserved: audio@f7fb0000 { + reg =3D <0 0xf7fb0000 0 0x2a50000>; + no-map; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + pinctrl-0 =3D <&key_power &key_voldown &key_volup>; + pinctrl-names =3D "default"; + + power-key { + label =3D "Power"; + linux,code =3D ; + gpios =3D <&gpa2 4 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + voldown-key { + label =3D "Volume Down"; + linux,code =3D ; + gpios =3D <&gpa0 4 GPIO_ACTIVE_LOW>; + }; + + volup-key { + label =3D "Volume Up"; + linux,code =3D ; + gpios =3D <&gpa0 3 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&oscclk { + clock-frequency =3D <26000000>; +}; + +&pinctrl_alive { + key_power: key-power-pins { + samsung,pins =3D "gpa2-4"; + samsung,pin-function =3D ; + samsung,pin-pud =3D ; + samsung,pin-drv =3D ; + }; + + key_voldown: key-voldown-pins { + samsung,pins =3D "gpa0-4"; + samsung,pin-function =3D ; + samsung,pin-pud =3D ; + samsung,pin-drv =3D ; + }; + + key_volup: key-volup-pins { + samsung,pins =3D "gpa0-3"; + samsung,pin-function =3D ; + samsung,pin-pud =3D ; + samsung,pin-drv =3D ; + }; +}; --=20 2.34.1