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: 847765 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B5DB22579E for ; Thu, 5 Dec 2024 18:02:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421729; cv=none; b=iCDj6ShYaubx5x5OS10Kn8DuGA8wlqGlYEj3zL/ahA92a1SvtoafXzpY9Kwp5lYxbRnPLJrrxHlQ4seY14LNyUigIKdN0CH71S03sNIVO83KC55XXlzVR2Boeznaizv708SmrLP/QVDGJ3XPnHnrYIywoaxDIqMS6mYuvf+BNfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421729; c=relaxed/simple; bh=rl6qwSwPmwstxso3urexxTtZz5A3LKOG2dzER+Weveo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mZ+h3T0oV40ovMhWqllT3noHjnzaG3PZBYUofyTH6hBO3XrqmVrkigdVrESWAEckH/IPbsBI0J/4tip1ZveWJtrLazXp09fLPPqZSCL9cuYKRIhQU//VTa+uiY7Ssz482x+ySfWuXVqOJHPiPaPlK6d8J/aHsB2JRlq8IwycCus= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xSVCz83q; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xSVCz83q" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-385de9f789cso885867f8f.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=1733421724; x=1734026524; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fXkOgCi8HIHQGsuWXYvnWFeub+37cwugFPfSGaOkH4k=; b=xSVCz83qbeUd4lp+v3/89GpSYD9h9Ts+WttA81OYjlIIpJng5pHxl1L1RuEbWaXgQ2 QO38uq1xPJSJriN3PKaUmKeYP7Wxpj5A2L9Tnb/OPK8PSYueBzmtoZq8Go6SnuwhbqzI sCu8L0+3YJmu2xiI/SpodLKM77MXMYuKlpuv+7Yj6Ix1NA+X+hQuxm5KEKDSQp4Zc1QW x4j8KcuRc4yrPaevx/TPjTo6RFoSi01uNzdG5Jb4LJsvCwvVeEHZlSwZmO/utcAkhENx y6Jd1nUxiA0JPKRu/deMHjsrNsiuwQxyJHu1iP3IGR+o271QH1TCcZktfV+D1ilKv73A eDuQ== 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=uQ2yhk+XYoIIp4SvTl33UJCLfy7ZtYjFRlWc9P304e93TixaSjgKLxCjjtPV/L35Wa Atih8bUlFvijgT+j//0RyiPRmutP4C1cCIy4MRk7+NfVwRC8ODjn4dsPLEaTQ9ET39ME 2n3+dm5Ib3jNzhdkUVsy3xFdfXZ+8z9TjPZ24ZswEUQZPCZQIcp28igBsng+Tj2u4DXw gpijoL3tbdn3J7E1GqH9jQq29/2koDnGG/Uxqh0xCftE7ZHFCBmbTkbYgaizqlAtvuuR kSjYy9E+ZL+oUxO7iEQs7dLEX6eYJe+OYnNDjhkzmWr6Ezc9fr30Sn/6bpScCS22Y1oN COUw== X-Forwarded-Encrypted: i=1; AJvYcCVvVE+suDYZU8UhEXtwUPPXalrFqPCHolXm9n3zh+07CTJHJd4St2vvW0U1iIGA0T4lD5llWcB2ms3kDmb+45bRsA==@vger.kernel.org X-Gm-Message-State: AOJu0Ywn0i+iYlI2ZMUbL16dotb/eJn1JCVAooHlbvtQaBiGgSokIJ8H Gar1nf8Grd6VxQ28KuBNCXzo85/+FBDfqiAGYY56+PFrcWcdxfzkCcKZj2KJr04= X-Gm-Gg: ASbGncsFiDYqJs3BmSbOFUyfx0upaGQy/0pOSfwU+ECUmfNvprr6gy5o/af1VlvknCW aEGAZixx6/wMplAK9+9yXp97Qn1X9K3hXArwokuxkRJ8vvJFfpepc64NZ2T/P8395ZLz8sjL9qp tyJ+jnd77vJnDhKGaBhhyv+gw2SBZnXCfvSZZsRDPcBX17778buiZ2zdXN/0/vhHihlp+qv/6Yh qtHFyTLPSisoxMq0Mp7vF/rIUPCA1I8+YrqAlNtbYzyKMx/UMbOWzdVuVEPxTTFSkGByCQn9Htg KtZbUY6u38LAQg4ARvkI5jwiL6FxkRW3 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 848037 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DEFD225786 for ; Thu, 5 Dec 2024 18:02:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421728; cv=none; b=p+tVBNi85meTD3VbumDo6URpbGnH0B/r271EHf6X+x40pNTle7AjUkKh3OzzcYPSchb6YLao4aF82iQ6B53XCRq6XUGrwxqlzmx9HQ+86lFnddGEaDWlmkwZFsPBnZXBMHwgSOGXOIH5vqyADR9DouWQA9njUjqckYw7oeJH6+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421728; c=relaxed/simple; bh=dlMuW7aHH3sXo8GJQzvMEdKqOSxun+0YrH0hUFqmXK4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U9LZSBltvrwHzB3pDw6pKh8VMPd9bHgmRDHXLU/iIIiaS06uOOT9ktcIA0JluQNlJ7VJpk05J9G6DvpK+Fv8RNT3+JOt+ifPdTxwr0U6jxYY5tKgNW7EXZIdUY5pgGdPiTELR6f+KaBFcqiO28WrpfHOW0TCB17DEVwZULUn+pg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GsBP90Tu; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GsBP90Tu" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-385e96a285eso741327f8f.3 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=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YUhzG3caX9aWXbpAIl+TsEC4KHzPHOePfY0vBdmRaDs=; b=GsBP90Tup0DQtGgO1Apm6K21drOeWOqV7zjJyWzva0TVXp2NkLVk5NBLjax+adIt2O faqWnDGye38ItpaHSS81LPHGGwxv9bvfm+fCyvjYJPQDQ2M7UBH49Zjc+7qhPmTDdNHm 5vusRseGmAQs461u5qbVOsrhB+v6iAl1Mr1z8787Wfuf0jI6iqjmh7/WlbElKbVUS3IA jFq07UBwgFow0EdiZnA2XX68eQtDbfvt3rFt6BvrSoKJjUvV3la9knmgihYiKTz3k1/v /tclNEBt1Wgoq9t0/NA+Y5fR1lfX+Uyt7Ro7uEfuTow2PjQzz5Ed1TwdNUtBOayN0UsE dH0Q== 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=c0XICrLW/6swEyMGm9+W87uUTdYJu9MLuefeJaq4sp887OrlAQ6xEhc4tznQ3E1dZ1 fF2IdqwMm91HDbBtQhXYD+Y7Xyxx9nWWBdm9vhSEAS3b2MrP9atbV6/C1bYaNa4OR6/W BYi9U0SZBUGaNElmuR/v+GibXANWF9PNJcwqJ9KQrdE4+gEofMoTAENLitPFB5yYKXPG F3HL2GrlL6tHCiiR97xDpglYUhHhYI0zOy6na+30KxIfFjOFv2pyF4qjAi99+jojBKng 9Xj7eoIo09lNTLVCMYaJPlzoTWsVDZuIo2Wc/ipMWPA3EnrQv0amLtEOsR/u8wHzGEMt azfQ== X-Forwarded-Encrypted: i=1; AJvYcCXljUFB/ozQF0j3cOy+30SZHmhfiDyff10WILn/KTQZEvIUHAhtvPpCULhD/g6pTTMU3OoYo/uL2PMYLzELJ5rvjQ==@vger.kernel.org X-Gm-Message-State: AOJu0YwmEyAua+o0De3Qf8bBba3pipcvc4OgcmA49VTIZS1iV4sLaxHy tsz3gfDbw1Nlu5j9GEWZEDYnKK0DSomhljJVT9H/9y+64ZQ9WFhsmy5m+vuTOa4= X-Gm-Gg: ASbGnctbO4MlFpNTn+5BiAVS8pe1yzUgtgJERfc1lWXMEpv/naKfx3Iir5v5UwCeUwJ iCqvGVzDr+BVeEr/Mw8ChIcrbGX9akRSSeKmcWicsJEN1dKjPx00o5jB7TWQwZuUpUH7yM0qanB kB/rpMbNqhvomE392Wm/qoq0vX9Y9cFqFALWMAym/jNO1kU/qwVIt6rCKfijBfKUY9VjJu9T/bf 0rrwj6PULT/87gGxBMa69FjDQlPHTYRUBy6nr+k+wXZdwc43bJR/OwO2Yid/KNnI2tnhCuvYXAQ FatXEYIfHilDinVPJDyoRk5nQ3ti+WTg 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 848036 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7887D226EF5 for ; Thu, 5 Dec 2024 18:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421729; cv=none; b=JPEt+8krgViPj0akqBRxczdNAOJ0CH40TEaWD6Q3KeedDdJRm+MmKemqI3xyKZFc2d6hMSfDP9uj527Vq5V7baRQKEgYpzIZuahj5WB5254F/vxHXrJfJBw6f2mdyk3fEWxZfFPvgJum4JmHeDOmDaQocBq2njUEm2/zLN2/UfA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421729; c=relaxed/simple; bh=nTCkQn59kD1+YTP/O+jZqWcGW57TZWMWdFPzGNuprc4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BDNOp6YRWYBXsRFqVrOJCPaAugBkTagmY8J1Y1qv4RoaK6oA7ib1mCNgh5UsOEoUMxg6+5kUUQgEHevmOJlKFd0PS1xw177SdY9Bml0FAtWKrCu1U76KSVcD9hfpY4LD3s2Xtpy/t7K2zpNa6xU663R/nCvobixkLhvI646qwa8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Us+U91RC; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Us+U91RC" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-434a752140eso8624635e9.3 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=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hPhM//wJrXG51ke59zvjjRItTECJ1az2JzHOCc8Yads=; b=Us+U91RC/tIYwFlVSiEVCkjLupmul78ifiCAt0lVxnisEPHCzyWNFjQRO+u/IJ1g17 2w0X2AHDSJMBiDkBUl+HPqAFfJ3XTULUzcjfmu+ygxQFMPs5nbFxuDV0ay9O9hIczmnZ WdGqAdR6BIXHPcpvA4WcMsWuQhW0y56BQJev0MMmW2POTeZlmSwoIlWN3xmGoIEHq+0F c/56ckhI9b1f+CZoafsGhzzNrAASQ1PJlIb7mkIL/7Zynlgs0BsMmEnewQ2eDXg4nrzI aXEbgV7ecCayeulfXP//Ygc+5sC2teoIxt0u7mMS+fUGkjwfv6dSCR0SkLrxesMTEgye sAVA== 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=Mje7iZz+LR4cvRB5seoqmzyWPyKBWo19hamdsaBvJBTjOOjkEt3dUsl6tJAmnwwC4T vRdF3xDCCig1mfDHzkWMW/wUufrFMpkVOlPzj5p4PBz87+P4NO6VeWO0FS0Wa9cBTImK lF/egSkY8gwAcQrvp+2q4CVi4yHrMt0pJpFY9SbKNoE7jvdDndaf5HkCPrzBl8QNP0Ve t/EyjFfmDiBJcPqN0rURZPWSi0rZdA18cesr/KRf/VkYIB2sJf2gF7OVs/4Wila+lRkj yj8vxh0e+aU+/fuOV26QCQGNsrYSJP7ff0FkL8fDTTRIGA2wXuAZ2SXonDu6ivdYbWgD B9Yg== X-Forwarded-Encrypted: i=1; AJvYcCWvfhuPEJApF01KVKRNpx2zP7NeKFW8esNx0VvCSdrzXEW2JzKA6FoiSAZVO7Xi1ru9uXkm6uuUBzNU1aMuNbEtxQ==@vger.kernel.org X-Gm-Message-State: AOJu0YwVidOldIofaMHfi0OjDFkyrEb27kac2N656AFDrvvldAo7fZEg M5nl7LD2O6TMAeCsv6BhJuIg/eA0LAbxsfloT0m4tRL/HvRFmts+H33fmgE15rU= X-Gm-Gg: ASbGncua/e/Hn6C8tpccHdmfxJtuS8bkm/xVA2XCL1XX4gSGDeG4Z5Wpn9hXgA+fTBN rNLUeQw57izoPkzOhTQVdHSJVP1F3s0P8CAuKF1pqmwOiRddACjwSKYKy7IfPrQTeowsL5O8tGp Kw7RVvCnMIXSp6a7o5WePPXRLYdfhYi1/NcFRccG1gjzecsPhI3RwnQS8MVS14qPXm9y9tjm4kF Ycl/cns0Mdkzk0otLcx7CdOQUZ+t75u02XOy4HUVNkHZqEOe6QcgN9enQmoiSjcVrJpXqyRQJWL VVwuoVaVMxBPCkxCNqpoEFbCKoU9L7R0 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 847764 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9525E225772 for ; Thu, 5 Dec 2024 18:02:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421730; cv=none; b=tViUW+Cu4Yol85eN6Go7uA8OOIrxUCbMq+NbaocEwt4jXIQ9Fsnf5UogkBFQvrP/XmHbbgYQzSIu/lbcNHIkrgM4Snf8Vrp3FeHAlW1KitO3szqspE0HVqvUkcBaQybVgdKvf8WB0aKYKYna7AXI3f9U3BNTVhSjUSi7fkPJZVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733421730; c=relaxed/simple; bh=IUPkXPm8C/w63Brb8YlUvk50wh9QYwPKoutZ4V9uyMY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HPqCUbxI1DCZg2Hw3thU1Vx9OWRhpDYs3687Y+60uHk6Yt+xe2SKjn187UBN2SzPWIKnu+hXSubQC160bT76ngzB68DeoNiXjNxpUIEh2A/6/DTqWHJ+7RwI2ysl92YQfCdSaHteCS0e5Mvh30M5SZ7W+WxAjfR7B+qPhhqn/Ig= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=bK6pr/7o; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bK6pr/7o" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-434a766b475so12401745e9.1 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=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0fwQWQ8p4fSiVsjGQYWImVyS0fCQtF0Xd9Qrli2C/FI=; b=bK6pr/7o77tSMIAuzPNEQNk6I6ZlKh6qlR/HrC8JJqd5ByaPrRuuCrF4Jm6x72SWI5 YFuXgzHIoCtWYcz2itXPjFODig7WtCv1a1DYtiT89MGs/CGUPEXjjtISgIv22wkbvA/Z k45MKjqh184LlNQdTwi1dSO3SXH4xyOrJVQWJQDzAkdisruHo74k16wqnkoh54kfsI3R 9cb57LUWhGeRPU5bYl8utRLhmb3ulRKKpkRNREMlqdKXdTYxc32w3CGZ0Mao228up2v/ Bjvlkfq6ge1WZSM7t+1W+pAUQ4KZlrnT/jRIuvH6eYrxEMyktNGIBLc3ycvm7Yybld+K 7eJA== 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=RYBOLfIReK5f+deLGFpQg1+P3dXhJqRg9Vg/sFHmtC97bFWOT0HGl5BFAJFPNAIp9t Y1bawv4IuaYwjZ/49uJr4ERjsAJ9yTNWxYX57X2fF/iTOpvcw8AxHMnfgG+TBq/F5J68 7HzNs+VHxa169vLgHGAlDSx7sXaNXrIOQ1kMTfqYSBzDLtIby4I3cR6UUVRGKsRcJl8H U/jkHoBXrZc5tT3WxKf/dRxOKSO2AA6f2/VZbaHYq7kvohkA/zUVDGLp7V+vCFP8Qjnm wgAUmQlfIQM/2Bpf8dkO80BAp1DmtUDfhXZWq3K5B6ZLE3fhS3A4/+O3xxxNuQW9do9l v3tw== X-Forwarded-Encrypted: i=1; AJvYcCUTkUXOLhLGxZKXdgglQLBC9fKb+LNnXwpC+aGuuDwJ2GQNpX6x+suxE72OtTJjW/2krU81pOdO/fZ92KTJE0o/Qw==@vger.kernel.org X-Gm-Message-State: AOJu0Yxzd4YBu4INkA9jDIUlZ6cKdkzcJUpwarMrBwcNJ9HyKZD1g6g0 0mU+xCeSzElsM9hvtPW74W254CHuCm0mvMkMKoP7NlSlavhV5Yytoh9meFfcEvs= X-Gm-Gg: ASbGncsm3EBnr/NWqbQwfsohX21e+PqQisgfMXImATQuexnOFo5FNVmIdMBFlKSM/X4 46IeK1t/9VSY4YUnKqP/kzvVQ4VzEArpPZU7WQDZ5aCjo8WR57W4bp2HjkZbV3PPjxJQ/NmcZId ibq21KEb3KcAMbTaan62nP/fE4U9s6kgXtDW1MnXvqQDqE9nX9a8OUYlk0t8N7DbI2YGA/fU02h RxgnP9v8VC2UQKyFdi8NJn1fH7D23C/AAlPiwC9NYx9QC3SlrrvkoQ3jzdnXkXNbdm/B4YE1pYM xYE+RBfWHNV8D6YQrrc0l13nEPWvNSkq 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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