From patchwork Mon Oct 28 09:22:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853219 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 9916AD13588 for ; Mon, 28 Oct 2024 09:46:12 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FgC/yWGHmE4AGKMxUzujN8ihPZGQwuq5HhMl1Sf1wCU=; b=sPcj3VqVN0+k3ENoeAikLr28yv gly+1Wfht3bL37CQs3hX7aP78tWQ65nv/8n3/XF2ocZsiP744pu1mu4tT+UGd7+7njVnECqAJwQEx BSzeth4b23zFffqLUDibawkGY2j7i9cVHzO4kav5EhlihhWIyV7oR4NdPh6mFivblpdMXtw/SM6m7 6Z+tY3QDeXfUkXNLZh55zZt8wRHCv+ZstPtAmpUVREOEUZwORLoSnQrh3n0ylrUeV/jRv1ueHiXv+ RRsZOyjYtzXn1IoRXERHFWBcpNjEGNXbeHiWpVZuCCszMOKzGsgOA4dE0HOccJmi88GvePyJRUVwM JJP5iHqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5MK0-0000000AHYz-0Cct; Mon, 28 Oct 2024 09:46:00 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxf-0000000ADdM-2vNy for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:22:57 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-539e690479cso3852527e87.3 for ; Mon, 28 Oct 2024 02:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107373; x=1730712173; darn=lists.infradead.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=FgC/yWGHmE4AGKMxUzujN8ihPZGQwuq5HhMl1Sf1wCU=; b=XxC84fTPmmNpLTORrTGafM3hnvyxnxB3ee4djVeQKdSBHmsf0nqr21oPdrVeWSdC0j BHmFiyDVoJ4REP3sx4XUk7rMhRLFXEfMZzzxdNuE975ywGjaIdZoAYDoZfJNj5dO2w0/ fWJXWkwjNXzGUxqrBV8/98/dfVnZHiqwfokz64H0hPNdY1h88QJe7i3JVUy3Ziw/9z44 Oh5i7h0L3Odm1B/fEOReZJ0rHOPm90xG0NYNAzkJYPdrP02MbeW+QWJtyTLVQgoeBnVa acsa7Gs2R3ACPuig+5xs2HO2aB7+I7Oww8zUYVa214f0PA8+UwUS+oBPxlVClscvZZnc hWuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107373; x=1730712173; 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=FgC/yWGHmE4AGKMxUzujN8ihPZGQwuq5HhMl1Sf1wCU=; b=eyp6A2/B/ZI3U04ty/9y519ZdrpN9e73SKiuC9DjObJmrpnY89ww6GGimgRRghb6gG E0bxK8y4UUTSlRdLf/BqnZurJZgwI/rFWLNSLTFWmYKarN2I4+58Z1sWDWVjGAxjFQNh 1SGnQjVlYRp2sbK10xxmiDc/Q8+asNLnwfjKc/tYEDkxYvL2uQlvh2Ws1oAzfOUibI9n v5zg3yeG3h62hWukJC/ZYO5QhnUSTWhX8L6HnUysXlgsbHNPeALCbBuow1+4nTbJSvhJ xNTnkqfp66FBsKWKzjtLRKm8v7DYPVEDBoqrElTp7u+rW7ie6WxdGkyEgMzTSGzQKjyu 0e2A== X-Forwarded-Encrypted: i=1; AJvYcCUfyX5XKwBeb5Ke6lYhD3/GHJRZ4hpwFKCTeGQhPTC61seWcmVfrl4E8sMxDEvdpMXIwvckF9BfocM9ED4zRStJ@lists.infradead.org X-Gm-Message-State: AOJu0YyZ8xbD1GMpOExqnsscKfzDsApMJnrLzn1/L2e5VXa6G3+/+Qc4 rkwS1neQaLgVwTbIT/46mpy4vk+MnqkjafLs7LHZL/MFEUahGkjR X-Google-Smtp-Source: AGHT+IE+Ev9N1xNlkGTKVpoO2qeGQ9vWoj/Z7Tf2T0auYtqb7BI0SMITAYGyR+Qtz9DG724XXJZWJA== X-Received: by 2002:a05:6512:318c:b0:539:918c:5124 with SMTP id 2adb3069b0e04-53b348df188mr2752749e87.31.1730107372891; Mon, 28 Oct 2024 02:22:52 -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.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:22:52 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:29 +0200 Subject: [PATCH v4 01/10] dt-bindings: arm: cpus: Add Samsung Mongoose M3 MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-1-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=977; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=UwXq8/s+/ZWgzHv8GxfRHapMvLu4ujsMuyVEiwqZOGw=; b=UEC62CDHdhTaw/gc44/m2/6av2OQGEdphnBwv4+sZ2AFqTkHx3KbF0dwtXTALXrc0rbPEIvPc dltazm5zyzQD/XEstuSvL2pbQ2hyrGcl3pK+ymHuyUP2zlh11igxW3O X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022255_767511_3D6A599B X-CRM114-Status: GOOD ( 10.16 ) 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 the compatible for Samsung Mongoose M3 CPU core to the schema. Mongoose M3 (codenamed Meerkat) is the big core in Exynos9810 SoC, designed by Samsung. It implements ARMv8.2-A ISA. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml index c54d20dd9d7efcbbfe73e5a63fd2f61d1e010d29..2fa7d3513da839ddfb2844628b1249567226a025 100644 --- a/Documentation/devicetree/bindings/arm/cpus.yaml +++ b/Documentation/devicetree/bindings/arm/cpus.yaml @@ -207,6 +207,7 @@ properties: - qcom,oryon - qcom,scorpion - samsung,mongoose-m2 + - samsung,mongoose-m3 - samsung,mongoose-m5 enable-method: From patchwork Mon Oct 28 09:22:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853208 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 139FFD13570 for ; Mon, 28 Oct 2024 09:28:26 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5RxyOtzTNaPKWcI+VUBDYXPbW1xC12WwCJqtMGjine0=; b=rzb1mJ5/kfVMrxAVqhfqBCbrQc knLoG6RxXcq8mYN7hW/IEOJaVHZOf4I8Jl8pE/JPqbs5yeXiZXKPRsugh3AfLFiyps84DdsPQiasR TlePzfH0g1A3jBWL98UiphAxEnBDWx6r0QouMzPPh0u+1s5Jr0cbfKSdqwVUIzitesollUKweyPBA MVKFb/S9xf04PR9kgkrGEHkyQOumX/WsbikTLbiRtPUDwpANHJw3qtRmBRbW0yZ31JPWPUoLtu+qe aer80ARvRGRLsmOzqcVQB9Pixx1Q20aS72LhsiiSYrxlZPvIUP8wDS+HBb2rDf+EUkdrxKOumG1sz ZiZDeGNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5M2r-0000000AErK-0by9; Mon, 28 Oct 2024 09:28:17 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxg-0000000ADdm-1lJN for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:22:57 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-539f4d8ef84so4558452e87.0 for ; Mon, 28 Oct 2024 02:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107375; x=1730712175; darn=lists.infradead.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=5RxyOtzTNaPKWcI+VUBDYXPbW1xC12WwCJqtMGjine0=; b=E/C0vpxl28BFvwRK1U4tuk4UBsj2/gswOeK6TS63plKVYGKseK1EPpdSHXqX+KiG+3 UGdsxbbxXtEb3YVSjNiwJONJxUhB1zcskDClGFvI94k4ffuXbzrHXFAmB1lSGX1ble5l OAx6aJsilXoJInIpbeeKuxjnV7FtYjiFZl5k+jVzr3A0UEUPGOd4i1awP7lGAszQPwHo 9dQwGL1N3F+wnwB2sijGKHUK6V/PFnBpCw8b/mdrPPqJyan8900S+6ghiKel3v6V8rF2 mUXgtV4ZSiMiYvNda0FPAHVoYGzAvjl2Z8dfM7uWsQRI2K+G0I8AIossWSPUunvGetAy WECg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107375; x=1730712175; 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=5RxyOtzTNaPKWcI+VUBDYXPbW1xC12WwCJqtMGjine0=; b=NZIzPnRDzph36/iBlfk7c5kZjkT1J78IyICQgf4xKw+XUdbzrgmUwfE73TtOEY5Kml RLb+u/aq9Ii9/3sj8/CdK9/Q5E0iSnv+FfyqufY+Lu7HT0gEscBuyzRgJj2Zh+5CdNd6 MZhKTWWqwaVhmF6kX3AwXATroLJ2qUjk8u3p7Ao5p8kibBpt96ZmgOvVT95uRaxxRAT2 OQfQNU3sxHd5mrL9PYs2ZeMRsF/hXDDHJHpc1nU27F2pjXHtCvY/XCWJ5xn0O3SYXzDl qJPdk3gveQQOTpis0+ZHUan7WLEpLJsgr2FPfZaa4DG1egZM7XbTru2I2vFXTnZqeoy1 tVXg== X-Forwarded-Encrypted: i=1; AJvYcCUEF7mGhsbfLWR7f7srb4O6Q42rQld4cwP/s0wCHtqWziNBsCGqVrThrdZSmbvdy5FK8FtkGj9mY+oxv2pxcJqZ@lists.infradead.org X-Gm-Message-State: AOJu0Yz260S6RMUpEfAPk8MNjCmE0DaGld0ycgzQW4gSh6wWdfuV9m2b hi8HnlUZLOeRvpP8I3BDLUHQhR1Z9coAnRt7eD+hEtBtzKrUPx9Q X-Google-Smtp-Source: AGHT+IFRcgf3ECiwU8IQI519Q27K78Uui6OJ25rmRPH87iV2KN7tLz/GFEpPWHJBQHxdCfMSYb6I4w== X-Received: by 2002:a05:6512:3c8f:b0:539:8fcd:524 with SMTP id 2adb3069b0e04-53b348e576amr2787084e87.30.1730107374349; Mon, 28 Oct 2024 02:22:54 -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.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:22:54 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:30 +0200 Subject: [PATCH v4 02/10] dt-bindings: hwinfo: samsung,exynos-chipid: Add Samsung exynos9810 compatible MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-2-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=1257; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=L3bYZfWAgZW5JNaWDhl/QF4KE7601D4KEfmVId1ELs0=; b=fdmZQ/KmML9TiWtD/gFokOgPOpMn4xqVFodJLt1oAD+ah1Y6wFDp03p5Zj/xmIK58ZWzqjqU4 iERMTvlu9bGDJ4JT02BbXMbWuCLTcYaowmbeanPM0TnmD7VmQmlOqZL X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022256_472918_466EA95B X-CRM114-Status: GOOD ( 10.42 ) 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 the compatible for Samsung Exynos9810 chipid to schema. Exynos9810 is a flagship mobile SoC released in 2018 and used in various Samsung devices, including Samsung Galaxy S9 (SM-G960F), S9 Plus (SM-G965F), and Note 9 (SM-N960F). Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml b/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml index 47a8d98346ebb83a7ea4d11e2fc7fc87df6bc5ad..385aac7161a0db9334a92d78a57a125f23ca1920 100644 --- a/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml +++ b/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml @@ -24,6 +24,7 @@ properties: - enum: - samsung,exynos7885-chipid - samsung,exynos8895-chipid + - samsung,exynos9810-chipid - samsung,exynos990-chipid - samsung,exynosautov9-chipid - samsung,exynosautov920-chipid From patchwork Mon Oct 28 09:22:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853209 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 3F5A0D13570 for ; Mon, 28 Oct 2024 09:30:04 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=v4PSQ1+e6ucZrPf9c7JXGpzaVnXhXC5MY+CSiZgTD00=; b=OCCgkcAp49zDCpqsy6zH76neKm yLX2sVWDLQMDvKWCEpchCv6driSsNhBOU07OW6+Lrw8cdozcL/mXNfwPIpj6OD0bHg2aX1WMstPAz A7B3E9+3HPloydQe7pWv/YWYz7sMts7XqoJFmUEOn3W8ZUV6QF7xb9kdxf2OPDzuMwbQJalNnarMu RRn5K1ElArLYXcnVowvMZsg173VERbeBsGsdNJGKlP6tt+IYqxinbie4sBz/MizCXjaYchO8oKwju vDGLDfszHysJS89xGU+sc6bx57dfsCUIPzg/cn0BoZXKI2l4GfPPImsxYTXWqYCn2v1zPy1J4z996 6bSDGf3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5M4P-0000000AF1Z-0VdJ; Mon, 28 Oct 2024 09:29:53 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxh-0000000ADeS-1igf for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:22:58 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-539f72c913aso5080343e87.1 for ; Mon, 28 Oct 2024 02:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107376; x=1730712176; darn=lists.infradead.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=v4PSQ1+e6ucZrPf9c7JXGpzaVnXhXC5MY+CSiZgTD00=; b=ZPsETzRSS22ZZyg+bTIzmAhLgfxiXqBo8ChsCH0oAqAQDGGQ2JOOY1vERmWig3isZW fTlG/LPab8uNjf7YXgSPwOvwdxmk3NGv56ZKGI9SETzKQZwm8hlffdQ+x6gaN9E4L9gY 28yECxIo0rNxeXaYizMsdAokxAp8ie8iQz0/P0WsbpdNwJ3jIUctdI8tydhSgtoglw4s 6Ipe3FANFcGBJRmMFTXqyPbBqzwR9MQCKA87T9qpDIJvXB+0rdlPqCipNG6mHPg8I6Vr jVkRsRciUTx0ffhysKlUq7S/Ji2fIh10Qdx3NYYIlVQuE0YgK3aIrRqa0IOfu4QrPlbZ Pz7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107376; x=1730712176; 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=v4PSQ1+e6ucZrPf9c7JXGpzaVnXhXC5MY+CSiZgTD00=; b=FeiXfpLpNnJvmMSLQeH+pCNBbspgvUzoCYfCRqSPCJgkZux+eLnleEBO4VJ2WdDY6d O6B90vXqxZ4qXFOGLM6Ls5XkFwqIfkHBfWHGzz3NnHr2DLdwXOIWSD8E+768YthOZfqd FCjExKYKUK1HHn/E1wIc+BGbDD865mRp7/pZkUz7pem8m1U/ify9CdcN3SanUN7b/vGw Poa6aMlL5hset+YLT6nSWyG+U4DJJPYge5tjB0aVEamUtZp8viURMDslN8LY3apeJZ9p tZv0+6YD+DL7HTjyi8UpxWNwHBfb2o9g8nni7IenqT262RjhrFnL1hgTJy6an/w6hrru 0rWA== X-Forwarded-Encrypted: i=1; AJvYcCXACct4nicpvpwunYQLXG9QwH8Qz2VgWXRML1ZknWDs5Dm2oCfDSahpXJPDFRs8J82yLmlIxd65VyFKT1GoDjmG@lists.infradead.org X-Gm-Message-State: AOJu0YyuGtmNpRESgUuP3akbkpBQZxyZD9z57mKM8n/p61JRXqAQaQ+9 IU1h3GpvrU6tAoUSBn/IPKqxJdLwYAk1tSApTzfC5vcywcWV9JqH X-Google-Smtp-Source: AGHT+IH4Qn0DWlrgDH6dSglOEm0aPX5GaLiU/VFtyCehoRKway/fv9to6M8P70PfL70BsV/WQYkMjQ== X-Received: by 2002:a05:6512:398d:b0:533:711:35be with SMTP id 2adb3069b0e04-53b348e154fmr2628861e87.26.1730107375577; Mon, 28 Oct 2024 02:22:55 -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.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:22:55 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:31 +0200 Subject: [PATCH v4 03/10] dt-bindings: pinctrl: samsung: Add compatible for Exynos9810 SoC MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-3-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=1128; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=QRm1Gv2AA1GFAPmeHv5zxFsdSoDgKKQmqGhsA6AhOnc=; b=SO38jkxxf+cL+EcxaLHg1ull8iFa1CiKhCwNTDWNov2Dn54a+i9AN0q6a3EOBeY9WbvQzHvxA 1zw91RduGl1BEgyim6tFUDcRRRk/t50MSPTqUysznPyF40hunoElSuS X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022257_459004_8E5D1FBD X-CRM114-Status: GOOD ( 10.19 ) 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 a compatible for Samsung Exynos9810 pinctrl block to the schema. Exynos9810 has 9 total pin banks and it's similar to other Samsung SoC pinctrl blocks. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml index 7e6ef8249de6c2eeedfaab0ad6316af135c2ec31..5296a9e4faaec691994cd567bc3805f870aaebf8 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml @@ -54,6 +54,7 @@ properties: - samsung,exynos7885-pinctrl - samsung,exynos850-pinctrl - samsung,exynos8895-pinctrl + - samsung,exynos9810-pinctrl - samsung,exynos990-pinctrl - samsung,exynosautov9-pinctrl - samsung,exynosautov920-pinctrl From patchwork Mon Oct 28 09:22:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853210 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 04398D13588 for ; Mon, 28 Oct 2024 09:31:41 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pfbT6MDiefFz3BliYWZ+loVFrZSj8n+9s/0V0etkG70=; b=SZHwOsQEDXMwP/8V3k9yOuPVC7 iRp11xicZgHwAvrBkPeiVTOElDCdwqplLiNlrT+bzeB/rIUP+XmZCH9JyeCUg0CaEdVlNkJCDiDJh Z+U0BGqsBxFvZ4UA+xkTp13RkNb6rI+t6XS6jNMRgpm3IP6Bz/SyGXg0FPPUtQUoddHkKruDh07j0 FYtMl86/Umz0lWkum58Gf2r+NMIIcX6IwdjV21zf06lGz5SqYbDwvDkaXw1nTttstJat38/8VPEPb PJ8GlaB8IkbyU1gkHbWUIOBpGZdInzoe6+l4adf0iqxg6g0UZZFXf79z1bS4Z9TfuH7vuW4UXezIP h5nr1QCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5M5w-0000000AF8a-0HBu; Mon, 28 Oct 2024 09:31:28 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxj-0000000ADfO-1HiT for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:23:00 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-539eb97f26aso3952146e87.2 for ; Mon, 28 Oct 2024 02:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107377; x=1730712177; darn=lists.infradead.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=pfbT6MDiefFz3BliYWZ+loVFrZSj8n+9s/0V0etkG70=; b=SzTOoRGlM9NMRq0HlPznIygEcMfwlQs38ETnzm7ECnFBHEQgTgkPV2/c+Uw9GkcEhP UAciFNjk+GO7rRUyO8mB/L/pBcVcF/I0X9YZW4K0z6xjyc61CPVJmu7WmgqsGEk+hQ9M IDOrD9mrTB6jgnALLxN13Q2V22iVOC2hd9yNv1LoiPQCoyQZ4NRqe+OYtAgc3MXLX505 G0vDQZY+XYxDW+nQpguL/em4tDij5eRlfYvdtE10TRM/Bj2e/gb6czxnqkTQBBLmCuvz 93DHFKwPsK15LYlF40xPwtYp4n+YMdBe2uytATXOda4TY9yRb0WkDCTNmb7iH3t3uCqg fYIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107377; x=1730712177; 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=pfbT6MDiefFz3BliYWZ+loVFrZSj8n+9s/0V0etkG70=; b=NVLspzxhtStT+gaCoJME7EjFWuH89wTJUO4FBleYqVSj+nhFt1Oux0qaoAQo4FK1nD ItCEUSPBRYwuPs3jdqffswayxLy4abg1PDE3cX/273STWCn1WE2zmhvy3IqbpFqAbMMs dVrEm1DqCrNqvmfw+8Kq3KQetTQ19bgf5tW4y+cAOIYm9eGADF4k5GfcjAX9GT1+HKnp uUywIuJdRuEF1cJaTEvzA4XzQjBImPLXyZm9vs102frNWHIzAJvEuPchwpPaBsFCj+dJ m7bgGHp11fm3LNKRpzpgKOSBX95juVH+qYxSvgXuf62y42aPMYREHuRrMON6gDJ8x14P JezA== X-Forwarded-Encrypted: i=1; AJvYcCXoLQQbROqAYwnsv7pYflCtSOIzL4IIyf4iBdypZLVWP2N/kJo2oJbQcQusaZ7BNdyKL1k9z7uEGTvXSYOLTtDJ@lists.infradead.org X-Gm-Message-State: AOJu0YzpV4ZZDn8F8IqrN0bz0LTaZX+0XTAKrhSqHUWZ5V229n6z/0PS S9csDCvofOCjs6IV/IDJL+2zIpuqK4p7wotoFW3NjcHH+W0flFMI X-Google-Smtp-Source: AGHT+IH0r7NhuE4e3aS5DFYvV11dcgTWYihLpCXJFndQTB+bM4ir6kkVsAOB7fNFSclJ4Bc1GcbMCw== X-Received: by 2002:a05:6512:138b:b0:539:eb82:d453 with SMTP id 2adb3069b0e04-53b3491cb31mr2950188e87.39.1730107377080; Mon, 28 Oct 2024 02:22:57 -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.22.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:22:56 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:32 +0200 Subject: [PATCH v4 04/10] dt-bindings: pinctrl: samsung: Add compatible for exynos9810-wakeup-eint MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-4-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=1230; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=nX/aujPmPzzwxGs4OFiOnvYO/MsiQA4p8l4iwrKD/GI=; b=Sq9kFPvTP9YcHAGpXXU9jGFS9IuV7ycqPn3PuCUuF91KwF8lJYHbzjJsZ1CKRsmse5ZyVGwcI 3/73NGYtnQfDIa63R+wT1vGaT4m2M01R0YDaurWfxn2T24Pxj7cdD2j X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022259_394475_AA5E06B4 X-CRM114-Status: GOOD ( 10.69 ) 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 the compatible for Samsung Exynos9810 pinctrl eint block to the schema. It is compatible with Exynos850 EINT controller, and doesn't have a dedicated IRQ line. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- .../devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml index 565cacadb6be77b1be1a7423f88564dd950c44db..68ed714eb0a178c46228bac142d69bbd6baa6277 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml +++ b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml @@ -47,6 +47,7 @@ properties: - items: - enum: - google,gs101-wakeup-eint + - samsung,exynos9810-wakeup-eint - samsung,exynos990-wakeup-eint - samsung,exynosautov9-wakeup-eint - const: samsung,exynos850-wakeup-eint From patchwork Mon Oct 28 09:22:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853212 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 E294FD13570 for ; Mon, 28 Oct 2024 09:33:20 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yt0YV3G/Lz+aotZMK2Qv9/6LIC8i2CceAvIskO4P2nY=; b=Jxg//xh+M1jro1bnRGW7tpCWa+ UIjvnou5BmV2TE47tQqW7T2Kt2eqsP2FLgLqTks0/rCwaD5Zc5f0JMbf6tF1LazbN5CXJPzNRGpZm mNVgobz5fuOuS5HycOyfGPJk05e9G9/75vN7v694kSDHwp+c/Ue5MFXWJEkjNQYK5s770pzw68QJl Lar8y1ZaDRXPBKR2TCeymWVCsElOWOP2S+r+gzqEZz4KEvKxwjyIWug3pvwXxbN3hhuGwULhVkELK Blx2Cf+l4D1+FodAgXxPJ7AIJq2NETXuar6z1F0as6+RtoX9KzLeWwP4brxDy58upOkR1luFNBaUj tryJU1bA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5M7U-0000000AFLH-47J9; Mon, 28 Oct 2024 09:33:05 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxk-0000000ADfl-2Xqt for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:23:01 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-539e5c15fd3so3519158e87.3 for ; Mon, 28 Oct 2024 02:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107378; x=1730712178; darn=lists.infradead.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=yt0YV3G/Lz+aotZMK2Qv9/6LIC8i2CceAvIskO4P2nY=; b=mCeFftcJoEzmWve9sYiEKddX0RhfCBKD34MztlkBXvpLmVffuQ03ZBMyZjHJGraLD5 exytfLxiHxXmhbGChVf+G1O/3LUGvs5f9PWdZL3YDFRKUZcIBARwSiQqerFXzpEnRB+2 H6PvAV6nX3EQTachuJ2+/qZbdf1toLoUI1pEp91Zisv7JeNzv3YWNDly8qCt+02vREEK DdbXfEhre8TlEcRf+lHNyvsyLzGHR2NUmbwjWTFnMAYreqK6OvKDOnDT0wInei/7K/LT nHNa8C44zi6rC7gdtVHZRcqTlrHCJf+khvtFlRNg3Ho//OX/5Ms/GqUZNBrZWphUjfxc fKiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107378; x=1730712178; 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=yt0YV3G/Lz+aotZMK2Qv9/6LIC8i2CceAvIskO4P2nY=; b=Fc1KehIe58ioVcqSA5XGk9OcV6ycynNIjufIODk5+pULh97fmKfLiT0lkr+P2Z0KLi 1A7UZ3x/o39rXX8T2PyRWXPrw6A7IhU4PwPPULBLhYMHgukrT1TCZdzkK4Ga2pxjqR8U 9TwAYjGld3o5zRjGvoS8r+SwAx4DZ33qAoeymyDOf2UxC+K6y+ZEIA4UFffG7o3F2DuR CCBpAcDeT0V4Q+e+OHqHNasQkmSXDn19sz8cmPDDEZnjlVZwrQ4cVRqa5Q4FcczIuu4e 6C+j6vCaA933NDGfTSi1SkSI/HOByKTF6KPjTizr7s/nlDdR61rQDRAldHj2SKMkTnMl B6Og== X-Forwarded-Encrypted: i=1; AJvYcCV7yAL+skfCCQJoPJOJcOB9pPc7RyG18eFNM3i0Zr43ZkEU8ctyzThT164KTB2AE8DGdPuU97nS22kMpVRWaKhn@lists.infradead.org X-Gm-Message-State: AOJu0YzUpG5csvQU0wi+bZu9jCu1iXsJz7B/YdbusbiHVozEHlj0fZxG aDOpcmRZEAiuM16D2sCHduWt9/7UqAZ0/6/1EhB+GIXQswxy/rYV X-Google-Smtp-Source: AGHT+IGkef3HGo+qiSbkHHbqdccXE80ho2uJc7KuN9SzEldCCfuT107SCvwkHYC8p+RFSJWq/VtkVQ== X-Received: by 2002:a05:6512:3e1f:b0:539:eb82:d45b with SMTP id 2adb3069b0e04-53b34c41d5amr2098232e87.56.1730107378267; Mon, 28 Oct 2024 02:22:58 -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.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:22:58 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:33 +0200 Subject: [PATCH v4 05/10] dt-bindings: soc: samsung: exynos-pmu: Add exynos9810 compatible MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-5-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=1139; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=BYkuQEvmBOjDeOJiyY2S6irVYNGpBs7FyenLcNADI/8=; b=BzqBkS/JjTAQgeZrbGmsIeoWOvNem3Z6/fZqBLEP25na3UUEyLPEvnDKuUEqkKr1n+Bvifgb8 uet3RjHNxHTAFND4h/HaUpKSd0Dot7FUZ9cXaHzD2PFQcTUTcvlBb77 X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022300_654205_651F0709 X-CRM114-Status: GOOD ( 10.05 ) 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 compatible for Samsung Exynos9810 PMU to the schema. Like on other devices, it contains various registers related to power management and other vital to SoC functions. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml index 5c4ba6c65e6926467ff0e90142ad62fbd0b9e1e8..6cdfe7e059a3556dfb872818f1b2649ab6b0e8af 100644 --- a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml +++ b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml @@ -54,6 +54,7 @@ properties: - enum: - samsung,exynos7885-pmu - samsung,exynos8895-pmu + - samsung,exynos9810-pmu - samsung,exynosautov9-pmu - samsung,exynosautov920-pmu - tesla,fsd-pmu From patchwork Mon Oct 28 09:22:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853213 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 65797D13588 for ; Mon, 28 Oct 2024 09:34:53 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4r3f1+NvBb+8lEJPQFzoU+pVWA5C1a/T6mdun4fd2Zs=; b=AWINVMrsV6NID4zY1z0/xsEN85 +Xm62+ZGQ1icqml34NQPnrcPhkBB8jCe+9XQ2km83i0QJa9k9WRTU/Nm4kNLQjZHBOO0OAfUBApDN pQw4Q5QyjRxkffhLcOUG4MOMQlGyM4qKcHFdtkpWcxiZAvEQMNO8S/+oBLMARG/v45/ABElWfWx6s 19B0W+p8fgi2fyoQY4xvAcX5mIM/IBPhK+nGvUOf5kOYr1o3LDiTKO0o94wMR3wZdKU1Y9lGRd2Po vAQyXnvoKPbU3Btz7/p8QJf+7Sr4AOtzeZIEh9l8EFhiCN/jXEk5rKXu5VrOTwr4FYiHWlIVJd5gd 1VmTotQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5M93-0000000AFXi-07xI; Mon, 28 Oct 2024 09:34:41 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxl-0000000ADgA-2Z4S for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:23:02 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-539e7e73740so3361300e87.3 for ; Mon, 28 Oct 2024 02:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107380; x=1730712180; darn=lists.infradead.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=4r3f1+NvBb+8lEJPQFzoU+pVWA5C1a/T6mdun4fd2Zs=; b=K3zF6JoucAk43dd40YcIqI2oadcKphTmc3EOCBmDdOqWSBv9CAj80pLSEjAWKz3eqr 77KYfA+3FIWhGAMqFUSNZFG1KTPJi/UP/nzGWKFIxg71nfjolvt66mppOdIDw7HEsX4v 9gONrHNEmx/ykP4fZGyBzHtH4CxxVzVInvngx3YKLSHl6U4n0c7aFEiQax9TiDrGRjQa 59irviVglrt+Fohidn5vSonsyeQYKm6eP4Vw0ukrEC39nX5LZqRv2xsLJxk66E4x3bl5 Ho9YxKsR7yiNKTaKelkIL4obYr/d1RKs+Rh6KhX+UmNcWcTfxdWkiCDt+1HmxfaCnqk3 isqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107380; x=1730712180; 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=4r3f1+NvBb+8lEJPQFzoU+pVWA5C1a/T6mdun4fd2Zs=; b=SQVS55ATZWMhcvHYkjHoYlQaabEzUyULoT9mNr/73W/fVAY+IkhUWDQB1/OjzfhRt6 w/cwE76911ojK/p0ntGtH2RBDF3T5VE+D5kE7nE8dQgx3HxD/cOApMsaP+i7XNcH2WXo dsFCYpnYSuBcA7HhPga9n+CfvUDqT/7D8rPdgeTDI6bhqf/CMCy//lnPdCF0PMmloj8N 1kOlGWgLYKwIY3A7hyTcnPMcjhz1s5SQHic8W3HIjoTqDrh7KlwACEkBkLsL1lBSW/GA JeFr7aYejVpaFaOod2fg6bEGyeabo/IayJAB95hhjbab7kBHBeqySNjzDYQuAXMexLNV NQcg== X-Forwarded-Encrypted: i=1; AJvYcCUHtp8fUlTCRyU8U8s5jMidLu326K6+oZ49b3I5NsKjun3kNgaOJghTVRNgziefOtTpxsWYpzzsTbjaxh4Cd6rc@lists.infradead.org X-Gm-Message-State: AOJu0YzR1VutyCDubsHQkEdRKhekTuQHvROOA2PPU+YRzplN9spFq+Ks s7ZeyT3BlAbyXktDmdCMWKa42t2C3Y55q5AnKjMmD79xusJYS+wc X-Google-Smtp-Source: AGHT+IH07RwlPseCZh3Qqq6xIql8XwOMCafaD48lvgI8JY9keCi0ZdDu5sKIL6X4mpiSYvma7Su+AQ== X-Received: by 2002:a05:6512:2386:b0:539:e6fc:4172 with SMTP id 2adb3069b0e04-53b348cb8e4mr3184554e87.21.1730107379503; Mon, 28 Oct 2024 02:22:59 -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.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:22:59 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:34 +0200 Subject: [PATCH v4 06/10] dt-bindings: arm: samsung: Document Exynos9810 and starlte board binding MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-6-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=1321; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=tRiFoRgs2wnv5kkwhc9AnOYjzd7mmGEE34XIM9iDvVU=; b=NmelZtkcGbyG2Z/YEv0xQlsB+So1lJkC2PTIeVFmVgQ61ByV4QHe7sV6BX/jf12Ti0b2E2gSj PUCWT3VY7IfB524i6xOBTcnF+ayBSP7XK23ndFbkDYdLswsHd4gbwWE X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022301_657669_D49936E3 X-CRM114-Status: GOOD ( 10.04 ) 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 the compatibles for Exynos9810 SoC and samsung,starlte board to the list of boards. Samsung Galaxy S9 (SM-G960F, codenamed starlte) is a mobile phone, released in 2018. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml index d25a17e697256f8d868e24bea47d21accd1184ed..b5ba5ffc36d687a6fdbc625e6d95c37a8a2e2b93 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml @@ -230,6 +230,12 @@ properties: - samsung,dreamlte # Samsung Galaxy S8 (SM-G950F) - const: samsung,exynos8895 + - description: Exynos9810 based boards + items: + - enum: + - samsung,starlte # Samsung Galaxy S9 (SM-G960F) + - const: samsung,exynos9810 + - description: Exynos990 based boards items: - enum: From patchwork Mon Oct 28 09:22:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853214 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 938D2D13588 for ; Mon, 28 Oct 2024 09:36:30 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b1grSvU5Tn2s3ry5oErdwTQ9/uQCVVjQWC+Dff+1YOQ=; b=0H+VLr12DFVWCmbvIr6C6LMNL5 Peb9Iu03QpP8RHFNO71SUh925DG6tQkBs9N97Hu5cVgclU/8pm7exWA4zzVv428yQv1ZZAlV581/n QxIoEh56SJlREZumQV0pz0ACtOTQmxWV8QT6Ibytuj+XmZwxIPsdfsi0X0RVRuITHuVTRh3Q2TmS/ /SLPqQwUgw9VuX1RPipayrygj3LQtGOAb3UEJvbz602oTL65gya3PR/A9c8WxU5VxkRwT/IJQFSDC gwNacYs3LHqFRGbZf7nMPhPsCxicOvjQLPiegkdytYD1iTEOYz1WDm50ukSeXSrkjcwLM1jx8cEUj vaGMzGbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5MAb-0000000AFkH-32Eo; Mon, 28 Oct 2024 09:36:17 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxm-0000000ADgu-3mFE for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:23:04 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-539ebb5a20aso4019120e87.2 for ; Mon, 28 Oct 2024 02:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107381; x=1730712181; darn=lists.infradead.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=b1grSvU5Tn2s3ry5oErdwTQ9/uQCVVjQWC+Dff+1YOQ=; b=MpSqRfd3LbtRk6gp1HLbFd+6ms+vBhiXK3WA+jGqR6JDwjK4hg9GmeBVBskxYEdnZu bRGX5Ckn6O/GAcfEVB55cRpxjsKq97Blbx9d+Jb0lERpp42+GJ9Ff75Xv0jYTg06hU/5 nRQslFHO2ooYZ5vkJJ75uJBzGq+OFoz9mF/y7/qbgx7ign9njG0u5h/SXjscNjIX+ynH CHYjEPazJgxtdWFEizeV+b2ZmU061fqL8FO0tS7MU67efDG2Yi5NbDur0vOknZhrRDEj baza0iv0zKXkKDmGbhpPh4qRO1YvMCWmPe51BpT1kR+Aqtn9oGocnpu8g818qTYExK9r nFCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107381; x=1730712181; 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=b1grSvU5Tn2s3ry5oErdwTQ9/uQCVVjQWC+Dff+1YOQ=; b=OsfO9/MQWmZD3nLI/hImP199yk5YxwDqSrM6bQHkp1Zq4hl3/Saj6xDHcj4hSL2AG9 seAmKtjaQDEc8N7AoWcss8XEjePpPC5ZW1Ju7UPYc7y2XheLaUs1YdkU8YIfSHfyUhkK M5BixbJVsYtUB/r+jgoUAHWsAO/0PbKZzCug4XN20EvFzGgr79wvPwgJ6YJVDjzAyiky zOlFR1Z188vH0KrJR0KzSH8vLFTIBQZNhJULWn1jz6+5hrfBp7JiWvRIPxoor/9BqviG K8cma873w2caBdLglTzqz40d6ouWsfhnjd6yftBcVOzi5jMt7p/DAPBH+lUPtIb1cofF XltA== X-Forwarded-Encrypted: i=1; AJvYcCUuot+UkdZEtlkrR1s/nsYtUBW+oHj/86MCFzSZffBkIpgPpFSYA95LJ1Ez6y20Xe605951GE//1jVUgw7zz04r@lists.infradead.org X-Gm-Message-State: AOJu0Yyk03lOdVyD3isWz7bwWmY8GxYkdfl/zkM9gB4z5caJq8aXDTJT WwvBfxxJl2u5gBHmu713YBLWo3ABu8lWMBYxiJMa46PIzVKLvJ3f X-Google-Smtp-Source: AGHT+IEt083O6CT7AeEmqZollBJQYbaWxn/JpO0WvFxIhUiYyRXYkjBYaaUe1bqZgDhu1R3ZSUQKjQ== X-Received: by 2002:a05:6512:124c:b0:539:8d2c:c01c with SMTP id 2adb3069b0e04-53b3491e0dfmr2664379e87.41.1730107381211; Mon, 28 Oct 2024 02:23:01 -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.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:23:00 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:35 +0200 Subject: [PATCH v4 07/10] soc: samsung: exynos-chipid: Add support for Exynos9810 SoC MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-7-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=938; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=UX/VlaIr9ETHnZFFn3Brzw/0L1791ZTGgYbdKg640mU=; b=f1vCIJ9anD7EW/S1jHqDde3L1h2YQMkMCv8esVK0ODs52bHlEJo+uZvBnxlE9r+4En0o2wM36 HDV5y4csjghCKsEQGuTsT3hswbecYcvpcG1OGrMjTKXGGvfGgDeVZb7 X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022302_953179_1310E7E9 X-CRM114-Status: GOOD ( 11.75 ) 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 Exynos 9810 has the product ID of "0xE9810000". Add this ID to the IDs together with the name of the SoC. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- drivers/soc/samsung/exynos-chipid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index 94c7cc0d11e4c6f151336dc6e25495a31cbec02d..23cc20896b85a2da02f36703225a4f62e7538a62 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -59,6 +59,7 @@ static const struct exynos_soc_id { { "EXYNOS7885", 0xE7885000 }, { "EXYNOS850", 0xE3830000 }, { "EXYNOS8895", 0xE8895000 }, + { "EXYNOS9810", 0xE9810000 }, { "EXYNOS990", 0xE9830000 }, { "EXYNOSAUTOV9", 0xAAA80000 }, { "EXYNOSAUTOV920", 0x0A920000 }, From patchwork Mon Oct 28 09:22:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853215 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 5F83AD13588 for ; Mon, 28 Oct 2024 09:38:04 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lULs5ECe2v/eFZFaOgsynlSrffO8W5NVPtm3h9ZcjLk=; b=FfQmW27syiOVq2poixqWG+ImUP CeJbEOLUKAIN7kPH9ap0xz2WuitiHkO32yomfGG3IT9fd0aAiroo8NJOwbQg0Rlf3j2No/0gYa7sb iyh7Z+c2GjPZOjGtPo4dx2H3xyuddap8CDq3IYwXHdwCzPXtqWdFdJFmD80l96h6TfPAT16jjr8Pm wm9EImOlfmxxlRhVCdSMtnKL0jE6BIAYQ5kJO+bZHSqfIYij2sAfWWjpHBoVgUhpVOX3MgGUsMesN B+9tcalHEuVj1WH+49O7D6yKwIsYi4mICv/uq/z5X4p+19CfmOR7aOKFsEc8sXJ5vNcUxbbza9Dqx ANqBkQ9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5MCA-0000000AFx2-04B9; Mon, 28 Oct 2024 09:37:54 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxo-0000000ADhJ-3vsh for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:23:06 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-539ee1acb86so4019340e87.0 for ; Mon, 28 Oct 2024 02:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107383; x=1730712183; darn=lists.infradead.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=lULs5ECe2v/eFZFaOgsynlSrffO8W5NVPtm3h9ZcjLk=; b=An0WyZCmkk6ORkBG39ZlcwEwx1e/u028QXJ6a5KWnSDzVNcSdCs9xV8swv7WE2NdVA 1NUCp3mw+wec/KMfmGVZF0+HACDQbv8QRp+gq4DLeQncilrvEm44N1dHfrpLJVGJaTx2 60l/+MlybbIA2pvdYGrkuoPzj5Nm2fCOEj7Wz3RJT4G9cSOCEafhPOtBm1nSJtVQT5kM EABtK5OIFfv6tigqFcJ66NszrTT/83Ps+tZo934zJ32N5tPf1yWl18uBF6zgk10cw60a oTkV6pX0ZrG2cD2tnzauLmLJH5w+aqibjAadoxbUzDYvmVh3ugCSPLzn4X/LGS8H94hw nJBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107383; x=1730712183; 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=lULs5ECe2v/eFZFaOgsynlSrffO8W5NVPtm3h9ZcjLk=; b=qqbjKhyoSPudDDBvh/naMetdm7FAeyuBWuLagFvelRxNwLGWw53L3AWkEeMfU+ylna kK6V5t1GIusqHFlPhY4HTk2j25xp7RW9s5Rdgeyp5xehhoo9644AXl3Qht5Hx/naUlKJ YaeB6YmXGIOSAR8cB80BSiRR3oAXmyobTsJTbCKoA36lD0osHnbT8PntRVoCgFEjTIgA 4MMcf2LGOEFZ3foQ6ndpuFz6UmMcqgaX58QrVLXMW531QNGW0zeWDpq25E42OXOeYcwc Oj2zKVLyMHyZ6vN3wOEHH+gFzrK8+6u7TRLllPhTkktL4jSFW/Jec4kJp8gghnEuVlOw JQBw== X-Forwarded-Encrypted: i=1; AJvYcCXbRoQwrQJBNIKmmLCLM8s/t63SIlUpVHl4DblTJMWXp0mCwAIbtMkdRu+D1n74/U0uPIRt9gtlyj00wNQXY89R@lists.infradead.org X-Gm-Message-State: AOJu0YxvUymsTDCzhD7Zd6opfGj748aUCkBuGfmHlTAcCKIfa3koVOlg 3ePrGQpaSrVFFar+eZh+b36keT9Qeptbd30F1+AdsKZBS38xDkkO X-Google-Smtp-Source: AGHT+IEqtnjZtXnnjinm/JZUfiqvF+qabb/BGc98HrsLidXhMPAXZuzXSfOZUI+CMpO8R1g9w5lKaA== X-Received: by 2002:a05:6512:39c7:b0:52e:9e70:d068 with SMTP id 2adb3069b0e04-53b348c0c88mr3478898e87.4.1730107382508; Mon, 28 Oct 2024 02:23:02 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:23:02 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:36 +0200 Subject: [PATCH v4 08/10] pinctrl: samsung: Add Exynos9810 SoC specific data MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-8-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=9499; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=/Wc4BlemWmeccz/B4/h7WpFQZV+ll/cqwv5qNCPJALQ=; b=GL5LQZfPY6F0E/mYr3jZGqc9ErIKnedJlvZDed/l/DFoqBUooFxFTmIU4R19ItdaHDxCqcnyD ++eyQUs+dqlAdojXwfdhAipcv2Ldqw/DEhz4y0NS24QSoB5OH3KR7n2 X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022305_026354_CF2844AA X-CRM114-Status: GOOD ( 14.04 ) 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 Samsung Exynos9810 SoC specific data to enable pinctrl support for platforms based on Exynos9810. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- drivers/pinctrl/samsung/pinctrl-exynos-arm64.c | 154 +++++++++++++++++++++++++ drivers/pinctrl/samsung/pinctrl-samsung.c | 2 + drivers/pinctrl/samsung/pinctrl-samsung.h | 1 + 3 files changed, 157 insertions(+) diff --git a/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c b/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c index f07c26d374425505019447161150929f7677f91d..c833cb8fb4854e69c92213ef1f53d7b524e56306 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c @@ -767,6 +767,160 @@ const struct samsung_pinctrl_of_match_data exynos990_of_data __initconst = { .num_ctrl = ARRAY_SIZE(exynos990_pin_ctrl), }; +/* pin banks of exynos9810 pin-controller 0 (ALIVE) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks0[] __initconst = { + EXYNOS850_PIN_BANK_EINTN(6, 0x000, "etc1"), + EXYNOS850_PIN_BANK_EINTW(8, 0x020, "gpa0", 0x00), + EXYNOS850_PIN_BANK_EINTW(8, 0x040, "gpa1", 0x04), + EXYNOS850_PIN_BANK_EINTW(8, 0x060, "gpa2", 0x08), + EXYNOS850_PIN_BANK_EINTW(8, 0x080, "gpa3", 0x0c), + EXYNOS850_PIN_BANK_EINTN(6, 0x0a0, "gpq0"), + EXYNOS850_PIN_BANK_EINTW(2, 0x0c0, "gpa4", 0x10), +}; + +/* pin banks of exynos9810 pin-controller 1 (AUD) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks1[] __initconst = { + EXYNOS850_PIN_BANK_EINTG(5, 0x000, "gpb0", 0x00), + EXYNOS850_PIN_BANK_EINTG(8, 0x020, "gpb1", 0x04), + EXYNOS850_PIN_BANK_EINTG(4, 0x040, "gpb2", 0x08), +}; + +/* pin banks of exynos9810 pin-controller 2 (CHUB) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks2[] __initconst = { + EXYNOS850_PIN_BANK_EINTG(8, 0x000, "gph0", 0x00), + EXYNOS850_PIN_BANK_EINTG(5, 0x020, "gph1", 0x04), +}; + +/* pin banks of exynos9810 pin-controller 3 (CMGP) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks3[] __initconst = { + EXYNOS850_PIN_BANK_EINTW(1, 0x000, "gpm0", 0x00), + EXYNOS850_PIN_BANK_EINTW(1, 0x020, "gpm1", 0x04), + EXYNOS850_PIN_BANK_EINTW(1, 0x040, "gpm2", 0x08), + EXYNOS850_PIN_BANK_EINTW(1, 0x060, "gpm3", 0x0c), + EXYNOS850_PIN_BANK_EINTW(1, 0x080, "gpm4", 0x10), + EXYNOS850_PIN_BANK_EINTW(1, 0x0a0, "gpm5", 0x14), + EXYNOS850_PIN_BANK_EINTW(1, 0x0c0, "gpm6", 0x18), + EXYNOS850_PIN_BANK_EINTW(1, 0x0e0, "gpm7", 0x1c), + EXYNOS850_PIN_BANK_EINTW(1, 0x100, "gpm10", 0x20), + EXYNOS850_PIN_BANK_EINTW(1, 0x120, "gpm11", 0x24), + EXYNOS850_PIN_BANK_EINTW(1, 0x140, "gpm12", 0x28), + EXYNOS850_PIN_BANK_EINTW(1, 0x160, "gpm13", 0x2c), + EXYNOS850_PIN_BANK_EINTW(1, 0x180, "gpm14", 0x30), + EXYNOS850_PIN_BANK_EINTW(1, 0x1a0, "gpm15", 0x34), + EXYNOS850_PIN_BANK_EINTW(1, 0x1c0, "gpm16", 0x38), + EXYNOS850_PIN_BANK_EINTW(1, 0x1e0, "gpm17", 0x3c), + EXYNOS850_PIN_BANK_EINTW(1, 0x200, "gpm40", 0x40), + EXYNOS850_PIN_BANK_EINTW(1, 0x220, "gpm41", 0x44), + EXYNOS850_PIN_BANK_EINTW(1, 0x240, "gpm42", 0x48), + EXYNOS850_PIN_BANK_EINTW(1, 0x260, "gpm43", 0x4c), +}; + +/* pin banks of exynos9810 pin-controller 4 (FSYS0) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks4[] __initconst = { + EXYNOS850_PIN_BANK_EINTG(2, 0x000, "gpf0", 0x00), +}; + +/* pin banks of exynos9810 pin-controller 5 (FSYS1) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks5[] __initconst = { + EXYNOS850_PIN_BANK_EINTG(7, 0x000, "gpf1", 0x00), + EXYNOS850_PIN_BANK_EINTG(6, 0x020, "gpf2", 0x04), +}; + +/* pin banks of exynos9810 pin-controller 6 (PERIC0) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks6[] __initconst = { + EXYNOS850_PIN_BANK_EINTG(8, 0x000, "gpp0", 0x00), + EXYNOS850_PIN_BANK_EINTG(8, 0x020, "gpp1", 0x04), + EXYNOS850_PIN_BANK_EINTG(8, 0x040, "gpp2", 0x08), + EXYNOS850_PIN_BANK_EINTG(4, 0x060, "gpp3", 0x0c), + EXYNOS850_PIN_BANK_EINTG(8, 0x080, "gpg0", 0x10), + EXYNOS850_PIN_BANK_EINTG(8, 0x0a0, "gpg1", 0x14), + EXYNOS850_PIN_BANK_EINTG(8, 0x0c0, "gpg2", 0x18), +}; + +/* pin banks of exynos9810 pin-controller 7 (PERIC1) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks7[] __initconst = { + EXYNOS850_PIN_BANK_EINTG(8, 0x000, "gpp4", 0x00), + EXYNOS850_PIN_BANK_EINTG(8, 0x020, "gpp5", 0x04), + EXYNOS850_PIN_BANK_EINTG(4, 0x040, "gpp6", 0x08), + EXYNOS850_PIN_BANK_EINTG(8, 0x060, "gpc0", 0x0c), + EXYNOS850_PIN_BANK_EINTG(8, 0x080, "gpc1", 0x10), + EXYNOS850_PIN_BANK_EINTG(4, 0x0a0, "gpd0", 0x14), + EXYNOS850_PIN_BANK_EINTG(7, 0x0c0, "gpg3", 0x18), +}; + +/* pin banks of exynos9810 pin-controller 8 (VTS) */ +static const struct samsung_pin_bank_data exynos9810_pin_banks8[] __initconst = { + EXYNOS850_PIN_BANK_EINTG(3, 0x000, "gpt0", 0x00), +}; + +static const struct samsung_pin_ctrl exynos9810_pin_ctrl[] __initconst = { + { + /* pin-controller instance 0 ALIVE data */ + .pin_banks = exynos9810_pin_banks0, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks0), + .eint_wkup_init = exynos_eint_wkup_init, + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 1 AUD data */ + .pin_banks = exynos9810_pin_banks1, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks1), + }, { + /* pin-controller instance 2 CHUB data */ + .pin_banks = exynos9810_pin_banks2, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks2), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 3 CMGP data */ + .pin_banks = exynos9810_pin_banks3, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks3), + .eint_wkup_init = exynos_eint_wkup_init, + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 4 FSYS0 data */ + .pin_banks = exynos9810_pin_banks4, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks4), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 5 FSYS1 data */ + .pin_banks = exynos9810_pin_banks5, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks5), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 6 PERIC0 data */ + .pin_banks = exynos9810_pin_banks6, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks6), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 7 PERIC1 data */ + .pin_banks = exynos9810_pin_banks7, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks7), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 8 VTS data */ + .pin_banks = exynos9810_pin_banks8, + .nr_banks = ARRAY_SIZE(exynos9810_pin_banks8), + }, +}; + +const struct samsung_pinctrl_of_match_data exynos9810_of_data __initconst = { + .ctrl = exynos9810_pin_ctrl, + .num_ctrl = ARRAY_SIZE(exynos9810_pin_ctrl), +}; + /* pin banks of exynosautov9 pin-controller 0 (ALIVE) */ static const struct samsung_pin_bank_data exynosautov9_pin_banks0[] __initconst = { EXYNOS850_PIN_BANK_EINTW(8, 0x000, "gpa0", 0x00), diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index 42e40860841bcc94e3c11bf313df792da10ab00b..bbedd980ec67234aad847b757f40af5002b11ebb 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -1479,6 +1479,8 @@ static const struct of_device_id samsung_pinctrl_dt_match[] = { .data = &exynos850_of_data }, { .compatible = "samsung,exynos8895-pinctrl", .data = &exynos8895_of_data }, + { .compatible = "samsung,exynos9810-pinctrl", + .data = &exynos9810_of_data }, { .compatible = "samsung,exynos990-pinctrl", .data = &exynos990_of_data }, { .compatible = "samsung,exynosautov9-pinctrl", diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.h b/drivers/pinctrl/samsung/pinctrl-samsung.h index 615048f945243d4173d40142f1e62c8aeefe5b7e..bb0689d52ea0b4392714fa9bcdcbae8d253c73a1 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.h +++ b/drivers/pinctrl/samsung/pinctrl-samsung.h @@ -385,6 +385,7 @@ extern const struct samsung_pinctrl_of_match_data exynos7_of_data; extern const struct samsung_pinctrl_of_match_data exynos7885_of_data; extern const struct samsung_pinctrl_of_match_data exynos850_of_data; extern const struct samsung_pinctrl_of_match_data exynos8895_of_data; +extern const struct samsung_pinctrl_of_match_data exynos9810_of_data; extern const struct samsung_pinctrl_of_match_data exynos990_of_data; extern const struct samsung_pinctrl_of_match_data exynosautov9_of_data; extern const struct samsung_pinctrl_of_match_data exynosautov920_of_data; From patchwork Mon Oct 28 09:22:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13853216 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 8D694D13570 for ; Mon, 28 Oct 2024 09:39:44 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=D8ryoCnQa3x+2wA7PkI8xn3q6VJAS1LIktjHe3r9L6c=; b=EYTf3cC6k7knhYCA+bmKjdv8t4 xwqeXNK+In8pmgD5ISjq+VXSIIFUSKee3LNFR8K68tx5cvJVXxtbJ2fVq04ABhVFzziHz60+BJ3Ld WCXGWX4boa2y5MufRmCXgTGBWkaJuygwLnQ8PaE9H1i2bng3ctUtfaLeqkCfFcYXhRkq73pvCekB+ LWE/XfSq2+ZcO3ocaX50MJvqiQVdiZbk/mMjo9qG5VWkcA/JboGzlan584rp3z3KVeLv0VcKJk7bD 61Ww8alYPY20ueGcIkOAitRsVGD3snpwNL+Dm79DnwWwbX8qHbOGLm59wRPmNW1L97WZw+vJ0Ma1T o8Kn2NIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5MDi-0000000AGBj-3UnX; Mon, 28 Oct 2024 09:39:30 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxq-0000000ADi0-0WkD for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:23:08 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-539f72c8fc1so4825896e87.1 for ; Mon, 28 Oct 2024 02:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730107384; x=1730712184; darn=lists.infradead.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=D8ryoCnQa3x+2wA7PkI8xn3q6VJAS1LIktjHe3r9L6c=; b=PZwySHz2N1Sj8Ehh4QDX+WwU2r4e0CNRkc3U6GLP0YO/w+Gio7h68R0EqRmk/FsgzS hIL6CBzqKFILK3ASRic3sEnC7Mz9FmPP6ebSEBYwTanGmKkyM+kE2UbQv3gRHehhRyde 0ZQXCz0mEqgoI46Bz8SSem7TCAkEnyGnYKAoxxO2iuTe5E7NyhWWzonsze8tAgh+lhFt D+8rjv9xvTmW1c2A7YXVVEAFSUdqPyzmpzi30z3mYkNHULeUJ0Q5vPli/b7XP7l7Sc1V e3z2JvgfoXcKFMoZlwuDU+yH8NsY+VN8zoMGp8SAtNYIAKbDVOuCRu8mxT8qdJFFzGGl taBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730107384; x=1730712184; 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=D8ryoCnQa3x+2wA7PkI8xn3q6VJAS1LIktjHe3r9L6c=; b=a5+UEoRIs31knRT9v+3F/OOSdn+EYQhz89mDR5WaDrxJFrtznFg/n35YlVXnYAjcsu TLRAjzjjzo6JUqVqzlLR/3iTy7d2jvDO8NQNS/k22h0iDO+SD4+zXDAoULkWZhKjNtvf G+Gql8kxBUiCpWxoivjB8mvMjZ4ki5kTlH8uJuiNMhXt6T+lpOAi47gZs5a/E4x+sf+5 K+y9Jqish5CeMnugXv2qFcPRBEYoCTiicLFHWVBjvGxwG/K5iw8Ik9tmy9jl9bcv/X0O XUphUtI38GNiA49iZ4J5s8jgI0ahoyS1q02uMr9QnINl08DRZDMrjgYbMeUQdE4ZLaAX F6DQ== X-Forwarded-Encrypted: i=1; AJvYcCV/rI1z1MOhS5lpNx0ojj4brGS8DfcmY2D7jkJcrGWD0npPZeGGX+703oXVPUg46IOh2mPVT1I477hjqurNYio1@lists.infradead.org X-Gm-Message-State: AOJu0YyWIacl0T3M24Otv9Mz5AL2aSqBnnPy3JbhL49NxyjSZ4ZPhYkZ 7gEOz+AJ1AtIOg+BypwXv86xUn42oWnnW3I1K14z9zcJKTAyHleD X-Google-Smtp-Source: AGHT+IEDL6ZRgkHlAbKQp2w1HR+u3P0Wn+uHEwS9aCrRaA5rJjnDkoBj6cDsDek5X9EDU1vcSzg16Q== X-Received: by 2002:a05:6512:10d6:b0:539:f7de:df6a with SMTP id 2adb3069b0e04-53b34a3208dmr2945860e87.52.1730107384246; Mon, 28 Oct 2024 02:23:04 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 02:23:03 -0700 (PDT) From: Markuss Broks Date: Mon, 28 Oct 2024 11:22:37 +0200 Subject: [PATCH v4 09/10] arm64: dts: exynos: Add Exynos9810 SoC support MIME-Version: 1.0 Message-Id: <20241028-exynos9810-v4-9-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=18139; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=aNgDMHp8chOHRipjYna59OZmYcyh6ZnmD2z7vDTAOHo=; b=8quh1HDEe6zsSsoIJx9P7yflgO8XtRhS8dchukWqUX3v1bRif0NHQc0cc19BeKyDmtR7N6gCj ZSgslgT3jIaDNAHuP1hz8lNyJkzVxBq+KtiNn1fXvAlc2RQGKkJoNSr X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022306_410946_B63A1067 X-CRM114-Status: GOOD ( 13.89 ) 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 Exynos 9810 is an ARMv8 mobile SoC found in various Samsung devices, such as Samsung Galaxy S9 (starlte), S9 Plus (star2lte), Note 9 (crownlte) and perhaps others. Add minimal support for this SoC, including basic stuff like: - PSCI for bringing up secondary cores - ARMv8 generic timer - GPIO and pinctrl. The firmware coming with the devices based on this SoC is buggy and doesn't configure CNTFRQ_EL0, as required by spec, so it's needed to hardcode the frequency in the timer node. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- arch/arm64/boot/dts/exynos/exynos9810-pinctrl.dtsi | 503 +++++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos9810.dtsi | 273 +++++++++++ 2 files changed, 776 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos9810-pinctrl.dtsi b/arch/arm64/boot/dts/exynos/exynos9810-pinctrl.dtsi new file mode 100644 index 0000000000000000000000000000000000000000..88091bf09e4e91b05801cafe956283984d564449 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos9810-pinctrl.dtsi @@ -0,0 +1,503 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung's Exynos 9810 SoC pin-mux and pin-config device tree source + * + * Copyright (c) 2024 Markuss Broks + * Copyright (c) 2024 Maksym Holovach + */ + +#include "exynos-pinctrl.h" + +&pinctrl_alive { + etc1: etc1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpa0: gpa0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + #interrupt-cells = <2>; + }; + + gpa1: gpa1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + #interrupt-cells = <2>; + }; + + gpa2: gpa2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + #interrupt-cells = <2>; + }; + + gpa3: gpa3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + #interrupt-cells = <2>; + }; + + gpa4: gpa4-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpq0: gpq0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_aud { + gpb0: gpb0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpb1: gpb1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpb2: gpb2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_chub { + gph0: gph0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gph1: gph1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_cmgp { + gpm0: gpm0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm1: gpm1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm2: gpm2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm3: gpm3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm4: gpm4-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm5: gpm5-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm6: gpm6-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm7: gpm7-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm10: gpm10-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm11: gpm11-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm12: gpm12-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm13: gpm13-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm14: gpm14-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm15: gpm15-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm16: gpm16-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm17: gpm17-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm40: gpm40-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm41: gpm41-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm42: gpm42-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; + + gpm43: gpm43-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + interrupts = ; + }; +}; + +&pinctrl_fsys0 { + gpf0: gpf0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_fsys1 { + gpf1: gpf1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpf2: gpf2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_peric0 { + gpg0: gpg0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg1: gpg1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg2: gpg2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp0: gpp0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp1: gpp1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp2: gpp2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp3: gpp3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_peric1 { + gpc0: gpc0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpc1: gpc1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpd0: gpd0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg3: gpg3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp4: gpp4-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp5: gpp5-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp6: gpp6-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_vts { + gpt0: gpt0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; diff --git a/arch/arm64/boot/dts/exynos/exynos9810.dtsi b/arch/arm64/boot/dts/exynos/exynos9810.dtsi new file mode 100644 index 0000000000000000000000000000000000000000..70b67b2574d5b66eb5fa421a87dd6f4e49f8f54e --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos9810.dtsi @@ -0,0 +1,273 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Exynos 9810 SoC device tree source + * + * Copyright (c) 2024 Markuss Broks + * Copyright (c) 2024 Maksym Holovach + */ + +#include + +/ { + compatible = "samsung,exynos9810"; + #address-cells = <2>; + #size-cells = <1>; + + interrupt-parent = <&gic>; + + aliases { + pinctrl0 = &pinctrl_alive; + pinctrl1 = &pinctrl_aud; + pinctrl2 = &pinctrl_chub; + pinctrl3 = &pinctrl_cmgp; + pinctrl4 = &pinctrl_fsys0; + pinctrl5 = &pinctrl_fsys1; + pinctrl6 = &pinctrl_peric0; + pinctrl7 = &pinctrl_peric1; + pinctrl8 = &pinctrl_vts; + }; + + arm-a55-pmu { + compatible = "arm,cortex-a55-pmu"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, + <&cpu1>, + <&cpu2>, + <&cpu3>; + }; + + mongoose-m3-pmu { + compatible = "samsung,mongoose-pmu"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu4>, + <&cpu5>, + <&cpu6>, + <&cpu7>; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + core2 { + cpu = <&cpu2>; + }; + core3 { + cpu = <&cpu3>; + }; + }; + + cluster1 { + core0 { + cpu = <&cpu4>; + }; + core1 { + cpu = <&cpu5>; + }; + core2 { + cpu = <&cpu6>; + }; + core3 { + cpu = <&cpu7>; + }; + }; + }; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x0>; + enable-method = "psci"; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x1>; + enable-method = "psci"; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x2>; + enable-method = "psci"; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x3>; + enable-method = "psci"; + }; + + cpu4: cpu@100 { + device_type = "cpu"; + compatible = "samsung,mongoose-m3"; + reg = <0x100>; + enable-method = "psci"; + }; + + cpu5: cpu@101 { + device_type = "cpu"; + compatible = "samsung,mongoose-m3"; + reg = <0x101>; + enable-method = "psci"; + }; + + cpu6: cpu@102 { + device_type = "cpu"; + compatible = "samsung,mongoose-m3"; + reg = <0x102>; + enable-method = "psci"; + }; + + cpu7: cpu@103 { + device_type = "cpu"; + compatible = "samsung,mongoose-m3"; + reg = <0x103>; + enable-method = "psci"; + }; + }; + + oscclk: osc-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-output-names = "oscclk"; + }; + + psci { + compatible = "arm,psci"; + method = "smc"; + cpu_off = <0x84000002>; + cpu_on = <0xc4000003>; + cpu_suspend = <0xc4000001>; + }; + + soc: soc@0 { + compatible = "simple-bus"; + ranges = <0x0 0x0 0x0 0x20000000>; + + #address-cells = <1>; + #size-cells = <1>; + + chipid@10000000 { + compatible = "samsung,exynos9810-chipid", + "samsung,exynos850-chipid"; + reg = <0x10000000 0x100>; + }; + + gic: interrupt-controller@10101000 { + compatible = "arm,gic-400"; + reg = <0x10101000 0x1000>, + <0x10102000 0x1000>, + <0x10104000 0x2000>, + <0x10106000 0x2000>; + #interrupt-cells = <3>; + interrupt-controller; + interrupts = ; + #address-cells = <0>; + #size-cells = <1>; + }; + + pinctrl_peric0: pinctrl@10430000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x10430000 0x1000>; + interrupts = ; + }; + + pinctrl_peric1: pinctrl@10830000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x10830000 0x1000>; + interrupts = ; + }; + + pinctrl_fsys0: pinctrl@11050000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x11050000 0x1000>; + interrupts = ; + }; + + pinctrl_fsys1: pinctrl@11430000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x11430000 0x1000>; + interrupts = ; + }; + + pinctrl_vts: pinctrl@13880000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x13880000 0x1000>; + }; + + pinctrl_chub: pinctrl@13a80000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x13a80000 0x1000>; + interrupts = ; + }; + + pinctrl_alive: pinctrl@14050000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x14050000 0x1000>; + + wakeup-interrupt-controller { + compatible = "samsung,exynos9810-wakeup-eint", + "samsung,exynos850-wakeup-eint", + "samsung,exynos7-wakeup-eint"; + }; + }; + + pmu_system_controller: system-controller@14060000 { + compatible = "samsung,exynos9810-pmu", + "samsung,exynos7-pmu", "syscon"; + reg = <0x14060000 0x10000>; + }; + + pinctrl_cmgp: pinctrl@14220000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x14220000 0x1000>; + + wakeup-interrupt-controller { + compatible = "samsung,exynos9810-wakeup-eint", + "samsung,exynos850-wakeup-eint", + "samsung,exynos7-wakeup-eint"; + }; + }; + + pinctrl_aud: pinctrl@17c60000 { + compatible = "samsung,exynos9810-pinctrl"; + reg = <0x17c60000 0x1000>; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + /* Hypervisor Virtual Timer interrupt is not wired to GIC */ + interrupts = , + , + , + ; + /* + * Non-updatable, broken stock Samsung bootloader does not + * configure CNTFRQ_EL0 + */ + clock-frequency = <26000000>; + }; +}; + +#include "exynos9810-pinctrl.dtsi" +#include "arm/samsung/exynos-syscon-restart.dtsi" 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: 13853217 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 6A97FD13588 for ; Mon, 28 Oct 2024 09:41:17 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BRMz3tNgfToq92lnj2PahqWle5KJcXYV1IdUg20MVZM=; b=lttPWNpkSJFWKxgn+GHLSzv9AI KoQTf33Ge0YY8nr1QNe2t99vD/thR3LNmriLA+Yc1s5ZyQEga1Im0T7t/SufkEgLytkzrTBmp23SJ iLaJIzUqxW50L/QPWIqKFJ3463RqHv0XnyzjLEVfgdRgCfmMGesuSc8HYVOZdvs0GPUV9kvlsM+S4 Jaq/bmp2bwJX9k5g0e7Iqy/lXNDGJ6N9aAfMqHjAPWgWPT5aeJ+8Gkk0SMqjkJ+lXbjvcA2Hc3r9v SN57XWjzlbDT2vqWpkJKjR/hSRPo12pD0utghF+0FvTHXg061lsY9kJ9cYOlni07v03UayVTiwjK8 b1P+oPaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5MFI-0000000AGXx-12Ux; Mon, 28 Oct 2024 09:41:08 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5Lxr-0000000ADiE-2fTn for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2024 09:23:09 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-539e59dadebso4738632e87.0 for ; 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=lists.infradead.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=RVvkOByUadTWqklm26v3GVLS/GFHbbsH/XNz5+fYzsWzkgJnjAOsdZ95nm7Gj0SuBB KHXNSe9m+PcxBZXKjzFMbcWJQLjg02Ti+dz/wuPTTO/w+OaiiCuf6jRXn67/1kaIZGmh mgjyFxPw/Hvs04K6yrFqCik0Qt1aS4G6rTB44/e+vQl9NhtB1IkM04hSXBc3Z6minSgQ Z2rpUVTPXpOGmVAQFWl8pTHshjdmMaTmP3NxpqUiL1SCmD6MhdwTt6hL4pUKtX2ROyEB eH+IApygt/sI9EEtaeNjT70V9/WHLGTIWyGSpffFEo/yjsOUBnjJqs7Fa3EkWcfqbUMJ EmrQ== 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=Pi56/PE3+oCtk+l6PjFdRHdlZs0RXizMDwzL9rK6EaV0cnz0eeUK64UbJVDFOd1uqs pMjnXqgnt9oT1+yEbLQK65kXZzdVpWzzctSah+XY4bufnt4808duONe08LBcXQhNLMLL 69mf4LyacQVW06fydquvlt0nxXMNIfxIlARk/MNZcHYW45hVRvuRDvFNFVwcJmLDsebx 98l/zhvJM7ZBtEJmS5thHSDDUXJL5ydyZXTiVtqTXWN4WwALjwmlFHtX8tX40p3inTQp CtvjEHW6pHKTwz2zzjT0k1GiPOs6oJHMYV/wcZISpQ+aUa9GVOtQi97aV5kftnmHjN7m cE+w== X-Forwarded-Encrypted: i=1; AJvYcCW3Pt0DpXt99jqfQ4MP6TswRs83tcGLjNS/kh7CYXVOrPBeW/Goe855PUJ7IlBF4LqV67/hgmIwIas2AGTzOfFY@lists.infradead.org X-Gm-Message-State: AOJu0YxlsNE24SUlhNvSWN1jpmF5ag03F1jJbS8Mencn2i3manj72Bns ufppptrIXHBnGVF2VLfL/MsXv6SP6SylI+WPNaXIu1hBpNnGmz+E 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) 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_022307_756469_2D1B68B5 X-CRM114-Status: GOOD ( 16.05 ) 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 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 = ; + }; +};