From patchwork Tue Nov 12 19:31:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denzeel Oliva X-Patchwork-Id: 843421 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 8EB6E219CB4; Tue, 12 Nov 2024 19:32:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731439943; cv=none; b=cEgTEt7xcOIJNylCZph4PtuQk6OI6H4dfLWQglV1zYsBhqCTbIfimT7SivQBu9qaUjMxL2P8B+51FmzRVwqAaDLKcLh/E42KSDtrm/rUm34YWn2ILWEM7wwgEIg1e8u+IR1ovAubeuccvdNdupIyg2PZA/YuSAz9q/rZIYFr2oY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731439943; c=relaxed/simple; bh=qiEs9UfwYLCUVE87QmWnGVgFSfuKAZ1ZwFNa5B5iCJ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N8ow815iRwGJ1g6TXklQMN1hNZO2lPEQBQcEgUeKiizgJo1n3wKjUeMPNZ3qsSWDcTOPQD+51RIy5aty97DlQHrTkMyoe8V6mlBk8kZjTQXypO+lz+BQXkZt1CK3JWwekQ2KcT5qccSm0OHbh42WYyW2KJ2rLFVCy98O3tGONMI= 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=MhPScdjv; arc=none smtp.client-ip=209.85.215.182 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="MhPScdjv" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-7cd8803fe0aso4016901a12.0; Tue, 12 Nov 2024 11:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731439942; x=1732044742; 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=19kL+yPDKYdJPy/Ps5/CpYlnCiQbXdTiYWnn6mrqU7Q=; b=MhPScdjv0mrBnPGajs//kuvIZ7uYSXvNy73VjwBu+Vddp58aJgawRnz9e3Aeunbaj7 G5VSb2rr3RPYbsFcHsYzgOAwnWe8OfJClHnQ2QlAp1JZvLMwIdyNleKINbW4/gZ8LCJo e42hrN82XGqefJ/P9acUj2cf6sAlSRFoc6XSEBNRWqexERNfUhlWjIqSqtJCwfaBBXQG MXWb0MBOYrwTd5mzbsqDc7jRAjwEg02oG8Tzad0s6i4rg0skQ/GIcYzbLteCDWdKA9Uv xgjJnZU2uPcl8D3xQaax+h5w1Ts8xa/rW/H8aPNH0qLjsuh8NwUqw4btk3Hw4vtboMc7 d7jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731439942; x=1732044742; 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=19kL+yPDKYdJPy/Ps5/CpYlnCiQbXdTiYWnn6mrqU7Q=; b=kqFI2ayG0K3ZvGD4oM83DJkdBiV/IIQ0ee7AID11lpSW1CojwMLllsH2BbfSDIwPwl RO2Qjsm3VjdOznAhaZMaNJr5Kuaus+ampuXMu9hGOSbhBoTeHrMUeieUpFAvo0T3AliZ uNt196g0951Zv5yHqYTHaftuuxrr9mFTJxnnMRxyI5AeAAlzfiTXu8oKAP+N7tDHX0yt ll6birSZO1Wf39TFGgupfG9SLPwrvLHO2Wev7wCzJQM9mwKoSIZaeEUCbydflDYMN3pU 35mauleNmnQ2FhXVLNlljnbdT16l0jY5CetallQyD6wjqwsH9p5/9imDwduiLfuhipzN sFpA== X-Forwarded-Encrypted: i=1; AJvYcCUdV6cRHVUX4MgtSmE5K8lzLm4pKhdRD+vjbQUti4ytqqVUOUXARTCIyO2U+hlGOCB6M6+pVWb5qbMT55Dq@vger.kernel.org, AJvYcCWgfJjcpKztHei1wyuMZzCDkg9YqvpDwceqWD8OEGoDs3/tv8isVQnzNygfKu+mRanAARnAy0wW5XJ4@vger.kernel.org, AJvYcCX7fU1sML8nNSal4EbN0/Oum0Idcf/D1SDdUF5NR/geUJXTvYCKBHs/2BaWxgNJ1kXQFK1zpeeyS8DlBtFLouIWVMk=@vger.kernel.org X-Gm-Message-State: AOJu0YzPXWXdHOOVmmB6DUPtwc66X1wdCrw49iP6oKWtP1mfclnpF1fN sAoMyuWfAxRXkOBMh68/b7PBQnRXfRNtuNuFHd9oB7PjwsS8nuKr X-Google-Smtp-Source: AGHT+IFf79q5WRlc870dE1XfS8Cl2qWdeeJWxdyPIWkzC5LukXp5+Hkgc11rMLrKxmPlUnOKzi4/dw== X-Received: by 2002:a17:90b:2651:b0:2da:8c28:6561 with SMTP id 98e67ed59e1d1-2e9e4bed741mr5162412a91.22.1731439941658; Tue, 12 Nov 2024 11:32:21 -0800 (PST) Received: from localhost.localdomain ([38.44.237.182]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9a5fd17d8sm10988958a91.41.2024.11.12.11.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 11:32:21 -0800 (PST) From: Denzeel Oliva 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 v2 1/2] dt-bindings: arm: samsung: Add compatible for Samsung Galaxy S20 FE (SM-G780F) Date: Tue, 12 Nov 2024 19:31:48 +0000 Message-Id: <20241112193149.1262-2-wachiturroxd150@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241112193149.1262-1-wachiturroxd150@gmail.com> References: <20241112193149.1262-1-wachiturroxd150@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add binding for the Samsung Galaxy S20 FE (SM-G780F) board, which is based on the Samsung Exynos990 SoC. Signed-off-by: Denzeel Oliva --- .../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 Tue Nov 12 19:31:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denzeel Oliva X-Patchwork-Id: 842824 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 4B0BA209F3C; Tue, 12 Nov 2024 19:32:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731439946; cv=none; b=G7qCR/Ne7ZlNXVx7boCWuoJ3uuvuid8+8lBYM6IC9OkAfxCagqv5QSTKs5RiZJhr2RlP3f/fIuvHStaLSM8JjOibI/0bnR50+HbAUvNxxN62ZNl4f6MILy5lCgodNcSDgponr+ZeKboWCMhBeglWEawDcYnaWz2o+f1ZtoYu1TU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731439946; c=relaxed/simple; bh=r55Z6MOTixhxRiVu8ctWrgWSs1vzPVZVei/U/gnK6Tw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oAfl32bGpO3bA8ysGlwz796by9amCmAZAoGDHHPyS/GrJwdlylnluD6z9LRzI4vIuef721ONyQaSetsfcaVAeUglc1Y7D7q5nHpDwCGfQM3nBysTJBDBl0heD1y4nQfesh9QCWyopcn3oywlbqjz9FXZNkdrOY/RdgA6d0GuHBs= 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=HPTzy/Ba; arc=none smtp.client-ip=209.85.216.50 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="HPTzy/Ba" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2e2e2d09decso58070a91.1; Tue, 12 Nov 2024 11:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731439944; x=1732044744; 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=CxZTbla4niJMH3tL1PwAlNcohgmLARZJ7Xx5m9G3Teg=; b=HPTzy/BaLwTTTJXtA8qpJBmle2WtexUORF3cvGyzl3Li1/Jc2YfzqJAPYT4qusWoEt LPhrWYprpNxeXBjghw6FluJF0+9myNHHsqmQLN5FfCBi9p56jfcw09sGAf7xRqdxA4sM RIUqiJ0F4nXQ5B/hV7Cgq8ZOV2JutV+DxGSNPEJggtxoNqJmrQDDpddpss23TnhI8MJI ykDMf4ujKfCPY6AwLNcEd2SuUSP1B2nki7qkcMOWz0zcQDWao65GesXTwhmFvQSHD1zi afxkmg9c6RjMAEZTKn/rRxM79lHLzYUUpVrQFDniCW5OkmqWpfmPoddzdgUXLjp9mmzk kD/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731439944; x=1732044744; 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=CxZTbla4niJMH3tL1PwAlNcohgmLARZJ7Xx5m9G3Teg=; b=Oeix2LOplAOZcdyEakYkLWsgh50yFaNfrla8t4GDU80SgOwwwXFtzaUMNToVyU2XWN vhG9ZlCPZ2Ez/KuRG/SrjK6TnM7IXSIuLYNnSisLzoWSK9EFBO2onB+n9W6LoqVcQMT1 qFJptEhSIfGxZxy8TcBQe3xM09elv96dM1xDe7HdD2jmIAU058f0RLZDIdbwKW7pKeGm Ha9EHYTFjzyERgvkJX3jGLVOiRc2pek5+gNgL/57oK/hxWRNvSDjP/DShWuCiLcLV1Cd mbaRGvvpmcCk/8CFamXlRjjB3igYviyLp1WBTOTVBm4lkltEPvd/X3ZfeTj1onJdHcsy BfMw== X-Forwarded-Encrypted: i=1; AJvYcCVXcx3uVXHd4Ph+ejVWGNs8Njh4L7l8A9toRmQD81NxtO8ua2rt3qLmuQMABWkr9nfOR7HLUs5k/8KJReDn@vger.kernel.org, AJvYcCWTM8DZ/YrA/1N9e5SHJrfuD++8UpKJCI0+ba5yskle/kenYYvTC2v2TgEIp2veeoaz9kqmgVUjOkLD@vger.kernel.org, AJvYcCWk/ienGgm5JhgvHKBGQK+RwcY7W2wv4BY0i23fcGLzP2R6iPyLbeAcwEIXY3MKvz0iuHf/XRDS/S0BdF0qEuchzjc=@vger.kernel.org X-Gm-Message-State: AOJu0YxRwHG/nq3iHIrX0NwAB9KzEGpGK/f0UK2MBfRdswVjS5qL1/6i uaNlZ9mkWW0Vyw4zM4uIKAzUF+c+NBdMpX2a5UrWK2zvWBu6yNSuZbUliWNn X-Google-Smtp-Source: AGHT+IFqiKSGyEZPQe+kbya/qd5AI1ZcrPrnAzkyYfedyIbzQJKFkHklrRh2pQta+hx6XbHOJn//FA== X-Received: by 2002:a17:90b:1a91:b0:2e2:c225:4729 with SMTP id 98e67ed59e1d1-2e9b0a3325emr27783101a91.8.1731439944497; Tue, 12 Nov 2024 11:32:24 -0800 (PST) Received: from localhost.localdomain ([38.44.237.182]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9a5fd17d8sm10988958a91.41.2024.11.12.11.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 11:32:24 -0800 (PST) From: Denzeel Oliva 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 v2 2/2] arm64: dts: Add initial support for Samsung Galaxy S20 FE (r8s) Date: Tue, 12 Nov 2024 19:31:49 +0000 Message-Id: <20241112193149.1262-3-wachiturroxd150@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241112193149.1262-1-wachiturroxd150@gmail.com> References: <20241112193149.1262-1-wachiturroxd150@gmail.com> 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 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/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..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 = "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 0x0c000000>; + }; + + 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 = ; + }; +};