From patchwork Thu Dec 5 18:01:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13895921 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 CE3C9E77170 for ; Thu, 5 Dec 2024 18:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fXkOgCi8HIHQGsuWXYvnWFeub+37cwugFPfSGaOkH4k=; b=XpUpVliVDd65HVTBsCi9ime6+P hdtfCzQFcFxLP94th362j9j8o24qIseh2jchWcwul6SmCw+wqo2Le97zxTxUgNIuzzv8KUHah5JxX 7JsVqR02TqwTSJd9DFlzvojcTqpjJZlWZhlKR0O/boJ4npUolrWYXVrzXBYCBvs4hP3h1AoThxCuA GqnWEw3fRfW8CEkKf1540zXuQ5xiOJQwpgE14KQdoSI4wwXazfVpO8NM8JKaVav+5VN/k7McvIsqi 9Trks+qcB/QcUn/tQWtmP+0PpMG0xWIU+ap0gDttEkHLv1X7vGZVc+DGU31Wlq28zd4QUK84hhxDy oPiAkoag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJGCw-0000000H3MV-1JVE; Thu, 05 Dec 2024 18:04:10 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJGAw-0000000H2yL-2IR3 for linux-arm-kernel@lists.infradead.org; Thu, 05 Dec 2024 18:02:07 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-385df53e559so975539f8f.3 for ; Thu, 05 Dec 2024 10:02:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733421724; x=1734026524; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fXkOgCi8HIHQGsuWXYvnWFeub+37cwugFPfSGaOkH4k=; b=ZwrUnxvGfxyaw4lO8+vwcO3TRFcQGcXYvCK0tLP6JXgssc3iZhQsGsAreLaclu/pH7 5zGgMjLuUCpKtkKeg1MdhRt3Kgyst1HTsDyPdUfhWlsBE57+qz6ebe//RIRzP/PbN8gi sYfO/Tb5r5JT5YiJA4945WcU8xBlAZBBk6FMUCpswLQSdXeAye0AvFZJ2XuitByI4mEv XQoyOQPMyygadYWvHoYlU4MbPpf550y5tq2oJT81XLHKjL7fLEDQpI3N+/QzHAWtIK5Q 5FLeEQDRo2NUpdJ5Le5F3EVAd+vezM0aZrrtWfH4cetzvpTzVV1pjrbWaPDNLZdi5abe ksVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733421724; x=1734026524; 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=fXkOgCi8HIHQGsuWXYvnWFeub+37cwugFPfSGaOkH4k=; b=kmoXXvwO3yehHVONHUzXfbsSfu3Jsk+0Aj2v5Tvem9P1u2nAkGFLSb8VdcL5dFZuk4 Gvgrpn7dQa7I0Xj+56VZ0+JZ6Vqe8su/p6yb8DAAeoK1BY0fGgFj0ecrbX8eu1MvyP1g eSvhviTCE4FUU/5NqURarAU4Jiqh3M1hNYppDE0NYFVObzdlzxiI0vJyIfurWrJGodH2 Pd/4UIoUYuDqylBz0YYTvXA7c5goGVkIoZAU37AM2FguhuFavFhdgagWTOUJi7UACC6O j/Gd+JPWepb4HTTsM5d7kHbx21VP01SIYNLwhTiMvuMJdJJetTHpwMVXHxqbG93IE7ep bFFw== X-Forwarded-Encrypted: i=1; AJvYcCV2eJFEKGaRg7YqUs7oVJ9lAoq6srKRZhF2lmc3jGGXZaJIK6GgHM7OwkOWQvlMuSioJOoqhSZbw2CqsH5IMlxF@lists.infradead.org X-Gm-Message-State: AOJu0YxZTI7A8p1lGqin888y9sOm7ahNHABaOzT0x6fDbGW/k6GW/NXH yw2D72QkAuQLunIOxsGn+2BZ95vPRDSYf6Yuuo518s7GNuXM8WJwCbFrgynzjHY= X-Gm-Gg: ASbGncuh7+fr8rB8eEjUb4wggAfHtkFM4/Xqq+oBwbIiBcBBHl1yLl5Buaw8/fsdFfD rLzV5MNuSpuewEW7ZF/2RNGP59Umf3W5wej+Fqoo1ciVe44DCsauyMHiqEjhbTAJT7pENk94L/s Wt7q6KabRS9MPBjxQJnYVnZVCIVya5WjpIy3qu2McxMH8b9FCN1hZgmnseR2mBi13QD/E3F4f/r prYFpfnaxBd9jg/r7wnZu5C5bqVamzxyvk477YFAShVphsour2jPXbo0ZNZ0IBo15XYBZPHQbjp x7Db5jv3KSQmTpjY3z5TVHNKo4o19WSz X-Google-Smtp-Source: AGHT+IEPtZMmft62bUPhgYrLR+oDZpiHUMZkgxHhYwyxhO4GONqKTULpT/JUlhKvm0dRtGKR4n2z+A== X-Received: by 2002:a5d:59a6:0:b0:385:eeb9:a5bb with SMTP id ffacd0b85a97d-3862b34e5f0mr30744f8f.17.1733421724237; Thu, 05 Dec 2024 10:02:04 -0800 (PST) Received: from ta2.c.googlers.com.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-386219098d3sm2618228f8f.70.2024.12.05.10.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 10:02:03 -0800 (PST) From: Tudor Ambarus To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, javierm@redhat.com, tzimmermann@suse.de, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus Subject: [PATCH 1/4] arm64: dts: exynos: gs101: add SRAM node Date: Thu, 5 Dec 2024 18:01:57 +0000 Message-ID: <20241205180200.203146-2-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241205180200.203146-1-tudor.ambarus@linaro.org> References: <20241205180200.203146-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_100206_583890_38CD0073 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. 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 SRAM is used by the ACPM protocol to retrieve the ACPM channels information, which includes the TX/RX rings among other channel configuration data. Add the SRAM node. Signed-off-by: Tudor Ambarus --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 302c5beb224a..1441e9a252c2 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -269,6 +269,14 @@ bldr_log_hist_reserved: bldr-log-hist-reserved@fd900000 { }; }; + apm_sram: sram@2039000 { + compatible = "mmio-sram"; + reg = <0x0 0x2039000 0x40000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x2039000 0x40000>; + }; + soc: soc@0 { compatible = "simple-bus"; #address-cells = <1>; From patchwork Thu Dec 5 18:01:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13895922 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 B2720E77170 for ; Thu, 5 Dec 2024 18:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YUhzG3caX9aWXbpAIl+TsEC4KHzPHOePfY0vBdmRaDs=; b=w/Eq1nyjHK+Rim8fwjbvszeCYf uJ3j+7w2G5saILpeZvi2Zf2PNyZ3OEE2z7dJaMt4BQuBCNGoEj7GPqNhzLlUsJbwFSnnYZh/8W+dX mdbW0EsRwId2MIR8jbbjXfyD91TXxDvW2mOvNBdlQQtjFYWUW4XEiNHTcMcLweLzUKPY9Qlhaa7io CkuWGL98uGh2CuiizA43AkB1VuKdmOErTo1SaVguaP6Ye1bpekt+pg3OxTwkXT9TOzlRQVkWRZ6ed iDu2o9TB+Q4EdOfWAGlYzhFWTnSrQY0TAt3XUB7qg9asJpiTrE6agMPyrbYR4VG+u3riTJsBgExtO b/Ms/ktw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJGDv-0000000H3gk-3tSr; Thu, 05 Dec 2024 18:05:11 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJGAw-0000000H2yc-3ivl for linux-arm-kernel@lists.infradead.org; Thu, 05 Dec 2024 18:02:07 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-385e1fcb0e1so667291f8f.2 for ; Thu, 05 Dec 2024 10:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733421725; x=1734026525; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YUhzG3caX9aWXbpAIl+TsEC4KHzPHOePfY0vBdmRaDs=; b=BfDm3VsSk9j5uZ9l3ZBJNiUoEvG0PFZuTe+Y64sq3NJjY464XLfNHviSy4+3+90syj /P/9c/8Guo8rIS8g//vOHHrrKONIKT19OLSBvzvQ6LMApTuEcY2vhwNrIYeWXAlVS2i6 x5TOcHUnLx0g36rIKMWnLxNDVkINiJDXB7g+3Vs+DVBJRAwdbt38X15pjqhnLda/XvbM DUAYQmFk/Q+ilvSw1/Slhz+5iNBdoJasixBlZJFb+k0eCBshhgY0nFmntWXXjT1JAHIR 84NKdPvJMAs7IyAHWYqkeJ2GRvug+BCHYVh0nANcZfKXnAF9h/gEGRopBL8LqXj1PJs5 FQ5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733421725; x=1734026525; 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=YUhzG3caX9aWXbpAIl+TsEC4KHzPHOePfY0vBdmRaDs=; b=TNhLa0dF+G+47wsxYoTHcvdCcWM2OPP3O26oOY9x/m/0DM+NkBq1p+6iQXSwLFKLDP LSV/1c7/afydSAnY5zyHHPy/dc/yPXxjvkj9yNMOijuKjVrUidEqlxQy4lsosGW5/q/Q F9ZEp/6QWPjmsm3cbdo64W8GbeAprcAIar5gQb9n8I54SkPsELmSYLa5av19FqOS1Git X2ZKSNu7ZPBS14NInoJLGjYJbdvOyYNA/v0NfZ/+ad1eQsTVMvo3IbST3NDrdNu2s626 iBb6HFn2HeIZ+InwttdFBspAPI9n+cRPIdDQC+OxJxRstGariXmJmS9BLqKoAjgfzvFo 0MSA== X-Forwarded-Encrypted: i=1; AJvYcCWWZ6DvFpvEB1P1P+uOIWDGY4fD/w4Q4R9Vzmus/1+ltaIYToPeTfKlPp9dmgomxZZP7B3bYMQJdMPdsRYxNJ0z@lists.infradead.org X-Gm-Message-State: AOJu0Yy7GHvRp6VjeG8SgbmG9S/gvkJkv3W/J5tMbj5FplZN3nWZj2Nc 4qnPWnqYhqFLTtoAdG41Pk23ADPnES/dCQzNCXZPmI707ySXgsW5fE7Mgon2RF8= X-Gm-Gg: ASbGncviyv5/Ur8C0O5CXG84cds1/JE/ejUfScx2k09YJ0uOp37hfubbMka6laC8Pn4 N4oKxjJyD1IuZrmGXUsvwL7HUP5eD5Lkcl5+bEj/dH6KAlvWjOINIbyYEtHVh9fYoqa5sgnCwJK TNpKM+pdJZfl7pZ0n2+ipDDObMOqVUBcZPLiaXSf1eFmOuGlNVupv0/MapaChOZc5fdB9t4uHms zKotxcFGNd5e5IxdRzKypvvR5TVkQtPT+3Vzw3amWRBUsSRq2Ib3i2xvZtt1bNpd6qzTyuI+5rf cPmPO5M7Jq5THD/QqrbOaE6bP4LGqSmP X-Google-Smtp-Source: AGHT+IGmIVnSzknE9WcSqtMq8Jlgijm5XW+UPlAChDtBhFcBlLYDYS+u/7aO8ZXJh83ENw/Haen6jg== X-Received: by 2002:a05:6000:178b:b0:382:41ad:d8e2 with SMTP id ffacd0b85a97d-3862b3d096emr17492f8f.39.1733421724972; Thu, 05 Dec 2024 10:02:04 -0800 (PST) Received: from ta2.c.googlers.com.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-386219098d3sm2618228f8f.70.2024.12.05.10.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 10:02:04 -0800 (PST) From: Tudor Ambarus To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, javierm@redhat.com, tzimmermann@suse.de, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus Subject: [PATCH 2/4] arm64: dts: exynos: gs101: add AP to APM mailbox node Date: Thu, 5 Dec 2024 18:01:58 +0000 Message-ID: <20241205180200.203146-3-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241205180200.203146-1-tudor.ambarus@linaro.org> References: <20241205180200.203146-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_100206_924489_374F1F3F X-CRM114-Status: GOOD ( 10.64 ) 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 GS101 has 14 mailbox controllers. Add the AP to APM mailbox node. Mailbox controllers have a shared register that can be used for passing the mailbox messages. The AP to APM mailbox controller is used just as a doorbell mechanism. It raises interrupt to the firmware after the mailbox message has been written to SRAM where the TX/RX rings are defined. Signed-off-by: Tudor Ambarus --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 1441e9a252c2..0970f6fc1ef5 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1445,6 +1445,15 @@ wakeup-interrupt-controller { }; }; + ap2apm_mailbox: mailbox@17610000 { + compatible = "google,gs101-acpm-mbox"; + reg = <0x17610000 0x1000>; + clocks = <&cmu_apm CLK_GOUT_APM_MAILBOX_APM_AP_PCLK>; + clock-names = "pclk"; + interrupts = ; + #mbox-cells = <1>; + }; + pinctrl_gsactrl: pinctrl@17940000 { compatible = "google,gs101-pinctrl"; reg = <0x17940000 0x00001000>; From patchwork Thu Dec 5 18:01:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13895923 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 61165E7716E for ; Thu, 5 Dec 2024 18:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hPhM//wJrXG51ke59zvjjRItTECJ1az2JzHOCc8Yads=; b=4eA4NWYWqBiAcampBvJiEj/Far oQy2dwmn+RWKLrNe3JlJCMZC0Gq8w/9uA6GTYUnaU6Ekv4WkyC4VxQRNKWpFAbVOF7TDZDNLPZZJm HCK1KtEQVpXzQRkAh8gN1mubz0UsVKI5fD9xZkhI1d+/TBv0ovlx0Oxf78Utb80Zf8a1tYbAL/sjj YEs94RhtDbg1k+bkB8NlzkwUBIIac0t/WzFgGUH0LAldhCf7DDH0FIEX5+L1xSHbCO3n2kOJhn49m KDFfsTAqLXP9adRXUt3XzX410JkvR6E9zFz5w33HWjhCvu2F2hx0ZDuZicKyzZTqRK1Q7O/N5KkeJ k2EqiCqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJGEv-0000000H3xw-2Vmy; Thu, 05 Dec 2024 18:06:13 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJGAx-0000000H2yd-148f for linux-arm-kernel@lists.infradead.org; Thu, 05 Dec 2024 18:02:08 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-432d86a3085so8635705e9.2 for ; Thu, 05 Dec 2024 10:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733421726; x=1734026526; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hPhM//wJrXG51ke59zvjjRItTECJ1az2JzHOCc8Yads=; b=jVzP94ZmyahYiG+PgjRUi04CvicoNyBZG/XgGTWQPkWtPxaObGnb9eeOJNjGzSs8zC LUjmlniKZZkY7Txo4pBcADH4HVeAkolQmFhR9WY9We5FLzsuCkkwYsCmLl7N5pYZHFFJ xXTxqKQLZgyxE66KavHlPz96R8pzxdogAK1Dj4B3cqthGaJEI1nmzEO2xonr9XsPrmOS sLnpmIPm2udgkK/idqFRbkUNmQmYiBO/v7b940YXuK8tIPVboB+f/haY2figa9QYg9Lh sbDPw4N43hRnbKt+LfzlB9fK84sSmrOQrmbu6GF1b1nXhntRuRBJiAYmJUvAXksgot/o iqUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733421726; x=1734026526; 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=hPhM//wJrXG51ke59zvjjRItTECJ1az2JzHOCc8Yads=; b=ufydrdABBLxsBClsgF0885ImgBPZo8AzmhjcObumcHKUnkjfclB5HfYtyqGlqMH6hV Y+wVZH8WUWEY5IZE3fgNCv8c474gE5OW13GkfmuY1r5Wqi9hqDT86pA2gE+pKA0/D5Kr yajJwynoDuLYXZtSoyh1f6SQiw+gzZnoCxPmRV071dKA+nMKUcfcEA64nr9+bP985Udq ThTF/gK61xeLk0CLMu6vJnBTwOqXQ3ILglhCk4+/RMQ2BDy9+ZyMoBRwaFiblxxp802V tlp6CUFPVYVmSgi2hGToD9Zi19QLo7NXRmn2Xy8U96zRNk/LzTXuzyZ1w0y0IioSCLMk 10qQ== X-Forwarded-Encrypted: i=1; AJvYcCWNpvybm220yKwgEPActzH8ahdlJRX+3JSvUnpxL/3aFjQwAo/BGchc49iCQM68oGXUa5f7iibuISxxOrnC89j+@lists.infradead.org X-Gm-Message-State: AOJu0YzmVd4q/9VvvUTsaxWztGK58Am66/vlLtkqlnYzrf+VY86HMYEU bDFdIfKQf5TsQ0mPm+mcfB0aO2legcPW9eucADW9JiipvTGz+rCUH/fGNnp/x64= X-Gm-Gg: ASbGnctOdYp0MjwATXc9QAvPWC6GtxrdV9lHXpmvDVaEooCcXVtuKD3ptQyipZ1/TIt 6uJwhhK+Uvp6hc+l0urfKvwdEyUpmREBWFXp3xOrOgUfuaZLwpZ1dfNaAgqqX+BtEvNras5rrLK HRyIuTX7DC9vH0fGDuDR6pavj+0HHzoJwtuEu6d1PiOy/j5A5jWWcZi+tLTxAuKGqVi5osA0gCx oCbYiWPHDU+1IrLcmDxcqOYWDhcx6q4RqXJlzk3/s87p3X8Hr37+5ps44tKq22pvkEhxdiI/k4j f2HFcMbwW7ALv33vY4r6LAfUpsiq9DSg X-Google-Smtp-Source: AGHT+IHxrmKnYhkbCeS29d3k6ksOUL+fr3q/QtXJQ6fFRSknvcyUZjZ0xuVckzybtdhQNCwqXZo+yA== X-Received: by 2002:a05:600c:4fd6:b0:434:a9a8:ad1d with SMTP id 5b1f17b1804b1-434ddea64a2mr2257205e9.7.1733421725765; Thu, 05 Dec 2024 10:02:05 -0800 (PST) Received: from ta2.c.googlers.com.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-386219098d3sm2618228f8f.70.2024.12.05.10.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 10:02:05 -0800 (PST) From: Tudor Ambarus To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, javierm@redhat.com, tzimmermann@suse.de, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus Subject: [PATCH 3/4] arm64: dts: exynos: gs101: add ACPM protocol node Date: Thu, 5 Dec 2024 18:01:59 +0000 Message-ID: <20241205180200.203146-4-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241205180200.203146-1-tudor.ambarus@linaro.org> References: <20241205180200.203146-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_100207_288303_E11FB565 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. 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 ACPM protocol node. ACPM protocol provides interface for all the client drivers making use of the features offered by the Active Power Management (APM) module. Signed-off-by: Tudor Ambarus --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 0970f6fc1ef5..ed9815194f65 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -277,6 +277,29 @@ apm_sram: sram@2039000 { ranges = <0x0 0x0 0x2039000 0x40000>; }; + firmware { + acpm_ipc: acpm_ipc { + compatible = "google,gs101-acpm-ipc"; + mboxes = <&ap2apm_mailbox 0 + &ap2apm_mailbox 1 + &ap2apm_mailbox 2 + &ap2apm_mailbox 3 + &ap2apm_mailbox 4 + &ap2apm_mailbox 5 + &ap2apm_mailbox 6 + &ap2apm_mailbox 7 + &ap2apm_mailbox 8 + &ap2apm_mailbox 9 + &ap2apm_mailbox 10 + &ap2apm_mailbox 11 + &ap2apm_mailbox 12 + &ap2apm_mailbox 13 + &ap2apm_mailbox 14>; + shmem = <&apm_sram>; + initdata-base = <0xa000>; + }; + }; + soc: soc@0 { compatible = "simple-bus"; #address-cells = <1>; From patchwork Thu Dec 5 18:02:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13895924 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 38A40E7716E for ; Thu, 5 Dec 2024 18:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0fwQWQ8p4fSiVsjGQYWImVyS0fCQtF0Xd9Qrli2C/FI=; b=hfO5mqlqYLEIEbRw63XoD9Ubmc iLYY5JyBI3fapKr8YuXlMhO+07iY4u6PleC0+nSyVwAT0ojnAnQO6H1mgSIcBROQXrKvJQIdLx8pH 07ErRwSI1q9wFsUp2bzwZCe++mlEZb3zX8KFqYvKyN5fg5Vu2ZHspUDa5+c09JO07Y3Q7CLFVD0Kn wvxyXzfwp8r05m5qXDcJUsYizLXK1V5bShyIjZuJ9LUv6P0xDsPognRyuba303lZO7VVy2SoKv9/E J8GBFPjAHEBkHmRhJIgJTUbx3ZKfh0qyPSdQsW4LUy2AUrLQISEsUG63z5F5VIRukLsU8ZgPKs2F6 L/6k7PHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tJGFv-0000000H47S-0pD7; Thu, 05 Dec 2024 18:07:15 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tJGAy-0000000H2zL-1y6U for linux-arm-kernel@lists.infradead.org; Thu, 05 Dec 2024 18:02:09 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-434acf1f9abso12317715e9.2 for ; Thu, 05 Dec 2024 10:02:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733421727; x=1734026527; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0fwQWQ8p4fSiVsjGQYWImVyS0fCQtF0Xd9Qrli2C/FI=; b=G57wKVa9uqzRxmmR/J9pZejE10a6lGxQCFd4D18ZhpUzjXqO7/nCWIjGSXtHtmtmwm e3n38ddcSV3OEZ05QzIBLvi+7Ceeajww31zkrz7cqhf0QTeyq9xv/rbjd5qtSv9KRXyT //1q3TmAzp8AdjPXX21Wrq5HsiAzp9f5J65ZCG+yIIIGvXY4ujuF9fAR+18ho/jpmDSC Pa+jH34uJIh+YlvmB9YSzhcAhBUJRQ2v4y3J8zzfmtNm7C0Q3NgyotDnpo3P/eYXxHpi pwB7+AZoUxSJCJHv4hfJSOZnT093Wtox30SVfiGxuDrU5LjF4F6o7tv2CXfLxiKbzBYl Chsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733421727; x=1734026527; 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=0fwQWQ8p4fSiVsjGQYWImVyS0fCQtF0Xd9Qrli2C/FI=; b=BCFA+ujhiKuI3/+rC6V5k3sA7iO5QKlWOhGfYCo4gV9wzLJ4l/btwZUFEZEExrHrXU zMWsCVPaFUYZStSJs+8dLtd2NrJ/MPEp7Od/yyee/yhvRa+7EdqC4TiXBrRcA11Xk+jr dgBL1CbivuKF2QQO9cplx12q3u6wQyUvHowD1VfvXwjkyg/hM7cDsvk3w2LF1ofd/QXV IhAAM3J1QFWSn5hmO9fCaKqQ2d64U66akyMsHKv4WkgNOR0mm5WJF92FetYfl+Tte60E hVITa3yeQQThFm53xocX62VrF+wQrlbYxf3Melzg1SSyWg0j9un1e2Kkp8y5Y5n1XK7o EdHw== X-Forwarded-Encrypted: i=1; AJvYcCWVQnIiSPNCL/4tjQrLvfPgpc0371Amj9AGPRvTNqv7Xd4pv5DjxWaw2dgNwesx8jA/T9lzAumWK2kl7jC69eQP@lists.infradead.org X-Gm-Message-State: AOJu0YxjJ5VL7pOyrHp9XaNv//4q1/hhDtemUQlFdyPyZtoIw/fSXMcu kjbPyz1urzAGeP8U/y4FZfDcf4HMV3LGU4BVtGka+Z4ztaEg3deE9PdYofWJCA8= X-Gm-Gg: ASbGncvlS6nx+0EU9zxpFcl7AKMMfJbWyDSuLiUlNDUMimE3b/1fJGqje/Dj2hkIuex Ku0Y0qv3M08MPAcvVLzl5mjAnZkU8hTeaLDkyqY3tXetlkQyvgxSMZHhctUDaM9OxT4admMWncB feewtTQMUFjHx7I+UmZLeSdNBRrcHDRbAtUNDDCRR3zNcxhVAUl2ZyDnA0BFRB59cI8TYDEr4nl v9cn6NIXzAt4cE08RCAwCq29H4RHtfPeD3RmSBSuyGn8b8wkwn9Gyi0xJrBsDmQwkd71vEw8u9h 2tukLM+TB/Gv1FQNWQAvSAGfh8OHPQfH X-Google-Smtp-Source: AGHT+IEF0Sy2Q+DDxTeCkIQlhde+ymelj1BdzVhOSZd3iGZysiBbmVwX72aWK/Yxm+/ZlbdpgcXp2g== X-Received: by 2002:a05:600c:5125:b0:42c:b5f1:44ff with SMTP id 5b1f17b1804b1-434dded663dmr2047465e9.24.1733421726692; Thu, 05 Dec 2024 10:02:06 -0800 (PST) Received: from ta2.c.googlers.com.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-386219098d3sm2618228f8f.70.2024.12.05.10.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 10:02:06 -0800 (PST) From: Tudor Ambarus To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, javierm@redhat.com, tzimmermann@suse.de, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus Subject: [PATCH 4/4] arm64: defconfig: enable ACPM protocol and exynos mailbox Date: Thu, 5 Dec 2024 18:02:00 +0000 Message-ID: <20241205180200.203146-5-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241205180200.203146-1-tudor.ambarus@linaro.org> References: <20241205180200.203146-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241205_100208_504445_2E50C519 X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. 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 Enable the Samsung Exynos ACPM protocol and its transport layer, the exynos mailbox driver. Samsung exynos platforms implement ACPM to provide support for PMIC, clock frequency scaling, clock configuration and temperature sensors. Signed-off-by: Tudor Ambarus --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c62831e61586..91139b1cf813 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -262,6 +262,7 @@ CONFIG_IMX_SCU=y CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE=y CONFIG_QCOM_QSEECOM=y CONFIG_QCOM_QSEECOM_UEFISECAPP=y +CONFIG_EXYNOS_ACPM_PROTOCOL=m CONFIG_GNSS=m CONFIG_GNSS_MTK_SERIAL=m CONFIG_MTD=y @@ -1378,6 +1379,7 @@ CONFIG_HWSPINLOCK_QCOM=y CONFIG_TEGRA186_TIMER=y CONFIG_RENESAS_OSTM=y CONFIG_ARM_MHU=y +CONFIG_EXYNOS_MBOX=m CONFIG_IMX_MBOX=y CONFIG_OMAP2PLUS_MBOX=m CONFIG_PLATFORM_MHU=y