From patchwork Thu Dec 12 16:00:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13905516 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 9D83822969F for ; Thu, 12 Dec 2024 16:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019255; cv=none; b=cUqeJ5k5KJrmHrPdC0p//00oyg29GTvS0vFmfdY4Hqdy3qmKM4jEGeJwD7okaqAXZSAOguO0/jP0St6eDIKVPRA0HWXfBrDK0rENU5SakPUR++j2K2ixLTc5oKGRx8CntMz2Qd7oPe/7AJOWmDmXWkChcjdSP/ibxcDodxLiIMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019255; c=relaxed/simple; bh=g9Y6c/Lu4XdnwvVgrnVv9tKSFGDPtKMBC9QqU0RCKUw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jPxyJ6mDiiUVAiNUB/dHbMLWVJ13lj3DmAV+JztnCcKL8AY/jfz0RehOvQfhOavtG4nwWYh2xC9+Cs6bAWBTX4jB8NdR3uUuXF9OPkcHFYVoU4pMA7yHfFl8iylmDs97NUC/9meQhvbAyFRAhgcWffIIPfLRKsxiW1eNVxBfHXE= 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=U7mg0IcI; arc=none smtp.client-ip=209.85.221.52 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="U7mg0IcI" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-385de9f789cso603103f8f.2 for ; Thu, 12 Dec 2024 08:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734019251; x=1734624051; darn=vger.kernel.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=oL8eR/tz3ZIpCfja0LO2ssPcqKhJCh2en92mW/OWpZE=; b=U7mg0IcIlNEQuvGd21pN2PvtcuyIqrA9uo8oWNG+/N6Kmm/pbOruqIQGLUIdvI/kXE uqrANBIzr5MoAOSJk9HzPn3uCJaC5bkkIXmVR+pjyB4C3oERamdbq8SdgJKa2214HI/p sSnre3MHwvJk3f6xS1FLjCyNZ4HI+uV1w6CGAS1mglImc245szJ5+lpYMUrTdl5ijsHj BO1X57cOUP2rPoGcOi5kwx1w41SHyjeXr9Blajn0J00IVcy6Zp5eaaBfP8ajpQoXwHfy T5CJTnSeSoYO/ivPNqI2t7R7lZbvaNYDi+bgilpdwXHhd2MaBxBID/EJG2JeeBno76AK k4FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734019251; x=1734624051; 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=oL8eR/tz3ZIpCfja0LO2ssPcqKhJCh2en92mW/OWpZE=; b=CvpzUYN93js//247TaKF8nimv4JMxeGtBfQWXSdn0aDZz/KqDIt21NifaVvQYQfaVd nj635VKWsvNP0y0nGmCbGnRI37pP+QXFP54HsVG8LOaaa4yV2yerFx6sesKCX2koZhxH +j1nxNu69nuMXO4VyGhMEFP0jEpXbmBsf6pEGgNfwFZbw60HBJqjjAEnqKzuSo9jjr4u NIlCm/U31q5ij5bsURsP3LWRuijgUsgbkmAz/cIzWBcL29wviZhWF2PgNlJwd3hzu9zr 47Y9q1wfmhRr9GL3X+BBZZRkNHAJZL0xAsz0r6Nq2BgFZLRZjd1jfX3Yu7TK7ncGpjbs Hc4w== X-Forwarded-Encrypted: i=1; AJvYcCW2KWqp/jp0PyoEkeSbjXswjwoegnyNDR8Tt+oV4wVT13q+n8/BI95etVmXNESUv89p2+dYvHUnuwlGjcNHB0DQWQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yx06Z1w9bSYwXupcmsrryEb1PehQW6VOspX0IH4/hAwqoocrJET y5v8NW0Z12iPiTFOLonGbRV3Tr81DRZA8KsoLXTDVNnUkVch7AdAjwPbe6nnanc= X-Gm-Gg: ASbGnctt1b3jKBpCkQEThCwhDSTL+pFvgQndh5/JLLysFMCXOt+F62fqrtbsLKmSuVh pGTmsPWvZYrxCiom9a44gwLOXApbKE8UsktdRExM0qEM68bME66y/hSFa9wk5Bl8MucEnqCfIMu anET98wSIVNW1MqS+eFymUEJ6TNnNaWeKlutfWOclGJ9jLZ5efHMh6ZzLpkyPko5J9Kwk9hccMU 6QwQKrs4nR73RN2jFWGChbIsZMMHaFGBLK+aUBCKzvBjgZYuWTeNrhZH+sVuqJJwm9nTJUEGsfj +MGfAOt9RvjbD+AgGLxpSBOfVHRCN9JCEA== X-Google-Smtp-Source: AGHT+IELIxGohPpZyWs+kDS3Jy7c+lDT9602oSXSeH7EbGUTFSeHBff+tDxvNYOauQEuqumTsB12pg== X-Received: by 2002:a05:6000:186b:b0:386:4a24:1916 with SMTP id ffacd0b85a97d-387877c2690mr3555724f8f.55.1734019248941; Thu, 12 Dec 2024 08:00:48 -0800 (PST) Received: from ta2.c.googlers.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38782514d35sm4462941f8f.74.2024.12.12.08.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 08:00:48 -0800 (PST) From: Tudor Ambarus Date: Thu, 12 Dec 2024 16:00:38 +0000 Subject: [PATCH v2 1/4] arm64: dts: exynos: gs101: add SRAM node Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241212-b4-acpm-v4-upstream-dts-v2-1-91b7a6f6d0b0@linaro.org> References: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> In-Reply-To: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> To: Peter Griffin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734019247; l=979; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=g9Y6c/Lu4XdnwvVgrnVv9tKSFGDPtKMBC9QqU0RCKUw=; b=pe7nkbrj20qSYnrPkOzt+GqPA7lDUyR+IOiNPFAd4WlYXzbH8ZVMKRBtJ2AJ6BEWj54kNiXY8 XhWrSTkps7uBOgZLxbruYT2X/DmIRHZ7qF4C+mnzBjagKE9cPO7q4Im X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= 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 12 16:00:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13905514 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 9A8F8229690 for ; Thu, 12 Dec 2024 16:00:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019253; cv=none; b=a3wZRKyyVcEwwYWQ7dBc2ZkElpR+dEcoxcriJ0wd6AFh9HYElEMYZoHggrRF5R8+mGHIH2YPBaXvmIJgCFziLY6SjvFwSPF3w9pT1KZzvUGlK1sZhHdX3mxv43kqUqc+Du++EEzKMfwsNyQmcM78lBoUktjiQxgJeIur0fQxtwM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019253; c=relaxed/simple; bh=ce1gfVKuhMWygYDqna0xFI3vmpwGiIISm4wS0eqE5Rg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CY/23BRvBXXKRKWwxh8MdBs3W+Q0y1fUUXeGNfpqdPN4yY/JuPccGX8faMwgMJLp6kd0c5dnMsRTBk2t1H7n98byvMwfLb/o+QiJhQyr1MCP3rxlhE78M2QDuWeNV7+O7yCR18nq0pp5h6FQ+duu3henki+wZllX2ySl3OjW34E= 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=EF2Lt0gc; arc=none smtp.client-ip=209.85.128.51 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="EF2Lt0gc" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-436249df846so5752505e9.3 for ; Thu, 12 Dec 2024 08:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734019250; x=1734624050; darn=vger.kernel.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=EfTUgwKwfkr0vLqCx00ZTihimy0hbAjeLP+a0GkktMQ=; b=EF2Lt0gcuPETOwvfCnQp63GY0Hy4N6I8GMAwdPKSB5k4Lf9OgbZRd2kBNnwKF5MfpO ou9KCBhXJEWCiOPYOgtym+/KhdXHidjeojz1+/O1eRVon8zmvZysfOB1URQBgTBGaxVn 1KVmZbjMeB1erLHcLYpj+tJgaOpJ11PhWq5BA0eVNHdEqkDGQBc+yqy2skQNkl7L6Gu4 tjI5WN2iftW2QH3i69SeyEer5Q74BcYfkqZQNJwmLp8pFKdPrU2SIGRIOw/SLQDLDk6d NsXOsJoMwVpbkQnhlUANvxTwsXtWzvaicUDyQ2hXBo/GkxBQQfwA328XNzc60OhF3PxA jcug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734019250; x=1734624050; 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=EfTUgwKwfkr0vLqCx00ZTihimy0hbAjeLP+a0GkktMQ=; b=A9ZjmvYDmz+e0HWpe4XTBi0olLrflk8ulB5TwsNk2qtw1+9Xkp3yhFgM9tPOw8D1g2 mM+HxkjclWNk8d0ccNeyx+fzvo68UAQcFDkmC78j8rcpZiQ+1OnHZNAphPPX91z18ld6 RLl/JHElMXv9PKzgvLCP8cCIReor3qCUCmC7gJACmVKM9KlDea3opgAl95Nv2VQtDHEU Tv8RLe4HAq3B/nge1ZmYf4q2IMUTyfN3UEmNbRLN0VMEDBRYuvfjpV3yi03w5QrMVWK1 m3f8vuV9Z3yeHyo6Yj9JXMxz9txr6MjMQ5Xzm49vzn93IXPrFSc3gHjZqAI7WtGfGed7 hsyw== X-Forwarded-Encrypted: i=1; AJvYcCWNYSUM3g0InPjtx69e4BfzlVvdFYkvjvl0GvA9UPML5mLknqWWZu0dZcb3T41C5PIX3EbyZUR6cR32XkR943uHdQ==@vger.kernel.org X-Gm-Message-State: AOJu0YzBAEf78bWroRYSHNK92ywuaBpQaPNzfXokpeaT0QnX4n5nBe1k WWvL4lOuIL5sXONnWC3g4actjgJfDK8SSu8vCDbBNBnw22f8wp6lSVUUbn+rOx4= X-Gm-Gg: ASbGncsQ6djoLX3wZJKFh9M6hij3UfDKLwpS9guI4+8sgtrtxZUua9XluFWTICieeih zXYcaJupWK4/8Qox0J1KWbhK+/eGfMuGGjjdm/zp9NtqIIu/+5bbT/5WpOwEy9TFpfmUvPg1FYf vI7N9N3oHcxINpqnpqX1WwTnfrStdxbV3eHCA7nQQOK56QZHXNap/dcIR1l6AYvrSeDAsYXattl c/Ai5IjEpPeOefxjIflSHUvmtfoXrn5YsJBeEdLNMuz25hORsQMMBF37ZptxT7gYE7CZhrJI2/r xHikFVVn4LhPJjb1mp4OESzTJa9OVW5+dw== X-Google-Smtp-Source: AGHT+IHBwvhfsHZ7qtV6/yU6ZWxHrw8qGSfTmuFY7zgZ0URfdh6kuYfx9vjB//GYI02tJWakncUFew== X-Received: by 2002:a05:600c:5029:b0:431:44fe:fd9a with SMTP id 5b1f17b1804b1-4361c3e010amr59881015e9.19.1734019249618; Thu, 12 Dec 2024 08:00:49 -0800 (PST) Received: from ta2.c.googlers.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38782514d35sm4462941f8f.74.2024.12.12.08.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 08:00:49 -0800 (PST) From: Tudor Ambarus Date: Thu, 12 Dec 2024 16:00:39 +0000 Subject: [PATCH v2 2/4] arm64: dts: exynos: gs101: add AP to APM mailbox node Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241212-b4-acpm-v4-upstream-dts-v2-2-91b7a6f6d0b0@linaro.org> References: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> In-Reply-To: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> To: Peter Griffin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734019247; l=1282; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=ce1gfVKuhMWygYDqna0xFI3vmpwGiIISm4wS0eqE5Rg=; b=yKRS1dg8qQ9WdVmW4a6Zg6eAYV4MUjEMRK91aEUmMZbQw2ZHkn5kV9WpTw9VlRF1IDm6DHmUE SXlDqjTvmLxBx4qsFucA34eNpV9XbiYQVPyNFTyq1FYbsLz6NiLkKWg X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= 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..04561e15b96c 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-mbox"; + reg = <0x17610000 0x1000>; + clocks = <&cmu_apm CLK_GOUT_APM_MAILBOX_APM_AP_PCLK>; + clock-names = "pclk"; + interrupts = ; + #mbox-cells = <2>; + }; + pinctrl_gsactrl: pinctrl@17940000 { compatible = "google,gs101-pinctrl"; reg = <0x17940000 0x00001000>; From patchwork Thu Dec 12 16:00:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13905515 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 5F02022969B for ; Thu, 12 Dec 2024 16:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019255; cv=none; b=W1o0725WRIVmUpoMU+GpW1Q42T5CdOeIdF4nsSh0VFqPctEXtyhvE7LWTHoR5hCcwhvEtgagqjG4mlgZLCjc1c3Tjki6BJ3+0IzPpvg+pCMU2652bPpmsZRDf0pIQ1fYIPjvc1ScOrxDgeM7iClhZPfforJ12Y4HHsCJgxM6nVE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019255; c=relaxed/simple; bh=XbnGi70yp2CGKe3dsPZc/woxkOlnLt94ojsF7pP5ut8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IXr0pv+5SbNU+RU64gwXkTMpE7oRCUSpHgMQ1PY+X70FzyBlx7bD2/PqzodhCmx/OP51h2WOOX4oA+A1todxvK5rgIcKD3dy/6WR1nA4deJ9NCS7pCcgTfO3DJFAiwlbjxDNOsEzVQWY4L5BKL3kdpddHr0z+XfWSOOHLQRHL6A= 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=AtUHQHDY; arc=none smtp.client-ip=209.85.221.47 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="AtUHQHDY" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3862d6d5765so518105f8f.3 for ; Thu, 12 Dec 2024 08:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734019251; x=1734624051; darn=vger.kernel.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=MHOVK7hLZe7Wh/344MswWZk1I6BpgHguWKa4xSWa9kM=; b=AtUHQHDYxAhsTS+M9GJx1PRQr/B4qDxDU+IUus3xXQebn77blZx0R3kMFfHB9IgrFt r1W7Gym+Gj3djWrrgxKKu7LbNGw3hU+BCOvxNMfkqfNdNe08YQSfDT7qp/55wkZzkTN+ k0DDahcn4Tdy+aRGHfQH9/dBlalqJy8+V4eNe/5HLr5fOHHva3BxWaJ3T8L1JBeX53At 75uMfsYeOrE6C2qRZbqZmhr2LpasOAVayvZJcKBWQZpXiJLM3yWLZ29gd3zmy3FOsbJk AcDz7+28BFFZvO+AqlY+coJgl4hwughobwtaa8gUbGK2705qcwxpudsmH9etmUgy1Tor gxbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734019251; x=1734624051; 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=MHOVK7hLZe7Wh/344MswWZk1I6BpgHguWKa4xSWa9kM=; b=S4MJCbSEJpHz2+R5EyfGDPDLXLY4RAZab+hgirWq+4XNq6az4ubS/oP5EAHziwxsX7 KPecbEy9U9Vxex7E9mngsYTHquqrASxE6C8IS7CRnl2/PUDpMVSsPLA4tvY77k6POCG7 4kfK9QXiDdyohGdZJG9grk3z9LtzHtnLICFGgFxGXnNytOilJZRgQrbtJA/GsFctBcK7 exi4DVvIoPtZnNhADhw8tE65nesf6H5C3CRhROglJToEsxnQ1SsHFXOLN5rmz9+F+bN7 4zOqk0Y63fFvk4ygd50f6XjU/mTeM93qYLqgD6LjTPTv3cm1p5hJ70IzygKl3tXRA8+O ys0Q== X-Forwarded-Encrypted: i=1; AJvYcCV71QYfeao0s54++4IFjYl3MjM6eNmJhkKClVprIcy5Megws2vfm2HHeXRM5kWwdVvzd/QUBcYU8Tm8BVopTZ3pqQ==@vger.kernel.org X-Gm-Message-State: AOJu0YxguvoFkf+t4Tj7RozmFIh35/tJ3yEpz1JEb3PrhzADSjr3NI9p V/1SGrc388MAA6dnIUWNnn+a/hxu7gPhxBO9XA3ecGMSp9szHlOXOKLuZU+9uQE= X-Gm-Gg: ASbGncvGaHTjrULX6DtVaX2o1hY74Ie3YnkE+ggjhmJ/pFJ9MfbNGwuiMGIetbfNzfq /WDu/ZTlA47P05G3ueGQsaDnnhaituBcmSePkCJVJSgFaqxNUlEvGc2qzni3SinnSeqbWqaaqNQ au/JtuVK+Ll47RKVq4fUHouK/14qYhcerz1yCqGSyRaL7xTY9gs28rm4ouh5cfWi8xcVuk5yNHy wwjnlimIlBag3KwHooXaxQp18byRTYfGPlws/mxE8IVzyQ1v+6iw3fhJsZVYRnGYqUBSKvkWeyQ X2c+IjodM3NNNO3ttXNsYDliGEwfDxDeuA== X-Google-Smtp-Source: AGHT+IFlK2IZ26AyokS8CKojybaVhLvxESDWWONU+RNmiG7Oe5YQFYwn5cnnv2vcSKdLM5Z3BlTwtQ== X-Received: by 2002:a05:6000:2ae:b0:386:4a16:dad7 with SMTP id ffacd0b85a97d-3864ce495c9mr7671034f8f.10.1734019250289; Thu, 12 Dec 2024 08:00:50 -0800 (PST) Received: from ta2.c.googlers.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38782514d35sm4462941f8f.74.2024.12.12.08.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 08:00:49 -0800 (PST) From: Tudor Ambarus Date: Thu, 12 Dec 2024 16:00:40 +0000 Subject: [PATCH v2 3/4] arm64: dts: exynos: gs101: add ACPM protocol node Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241212-b4-acpm-v4-upstream-dts-v2-3-91b7a6f6d0b0@linaro.org> References: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> In-Reply-To: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> To: Peter Griffin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734019247; l=1371; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=XbnGi70yp2CGKe3dsPZc/woxkOlnLt94ojsF7pP5ut8=; b=6Wl14vGUhIl14sU0fLxYuasLnwizMnpBV5iAByDdT3MnW5mXwH8MpxKGJEZzeAVdW7DCLd8pW 2kFiuaCUJuwCk2Ic62bVSRZuULxkx7xGKuE0/uFY1uEUXnBwY8i7iw5 X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 04561e15b96c..8c3f07371912 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -277,6 +277,28 @@ apm_sram: sram@2039000 { ranges = <0x0 0x0 0x2039000 0x40000>; }; + firmware { + acpm_ipc: power-management { + compatible = "google,gs101-acpm-ipc"; + mboxes = <&ap2apm_mailbox 0 0 + &ap2apm_mailbox 0 1 + &ap2apm_mailbox 0 2 + &ap2apm_mailbox 0 3 + &ap2apm_mailbox 0 4 + &ap2apm_mailbox 0 5 + &ap2apm_mailbox 0 6 + &ap2apm_mailbox 0 7 + &ap2apm_mailbox 0 8 + &ap2apm_mailbox 0 9 + &ap2apm_mailbox 0 10 + &ap2apm_mailbox 0 11 + &ap2apm_mailbox 0 12 + &ap2apm_mailbox 0 13 + &ap2apm_mailbox 0 14>; + shmem = <&apm_sram>; + }; + }; + soc: soc@0 { compatible = "simple-bus"; #address-cells = <1>; From patchwork Thu Dec 12 16:00:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13905517 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 7D601243550 for ; Thu, 12 Dec 2024 16:00:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019256; cv=none; b=TtY7dRJsXtRUEr1lYWNoerSAbqdQnkocb8YHCTEU77SR8w/1m/jgPiODhKYypcIr84caUVq1tco0EjWkn1hIAT9poB80o6uJZ4g0czDvgiQo/jZj4waGzs9NnisLjWWi3nG3NqILLx8k99wr2LpXIhgFLegm8TQJkPHV/vF5YYk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734019256; c=relaxed/simple; bh=/C7bHQrkgGdLprOLUDNL1QPrbsGLOKte0YUezSURupU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZHcx7bYCpXgcYKR3YTiyGPHCP+HfQTxCCkv+Ecpak2TDbSqYH7MczLP8UZr6V6ASdSKiXUNYhW7CSEsqhUGXrG4pcQpYmGDIAtONkW9qtAJ/attmfhVQrfX6WwkpfXaO/TGHoRU7+GWRBqdJXo6JUyLDf0gSYPWn0fsgMqkx0cI= 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=oc3pg1tG; arc=none smtp.client-ip=209.85.221.52 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="oc3pg1tG" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-385de59c1a0so476802f8f.2 for ; Thu, 12 Dec 2024 08:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734019253; x=1734624053; darn=vger.kernel.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=mUJZKl6ex9Y6tnVneUNF04HScPdq/LgCtN2B23fl+ms=; b=oc3pg1tG5cZU3BVT9S1eH4v24orfEjakcbFRdzF40K32ojWsMRowUnw0RX9Mt1Vxdy O0EhVQ1o+YqWE0dgYZSiQKa5mSUbKNzfPKI8vX4dpUJYlRMbW2ATxV6+WJJMJ99zTP8A DZboSDqEWInTm5yYp3+Q8L13C4lawOFK/TI+0PoDXF6u6ElwWA2aciWqzndQjd0C1Opj YjqwV4pAHnM0jHV5e18l/NutkLlolc+MpHF8/XHaLwwieBe6VzVXb/wzlpD8iVaKnu3A GJGOQ8ZfYyLLGQCxfAvpQF71JfeDBwsDXQ7J0GzXrofn7boMgCtA66mECU/z0VwIHIUK YLoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734019253; x=1734624053; 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=mUJZKl6ex9Y6tnVneUNF04HScPdq/LgCtN2B23fl+ms=; b=S+wNpBdAyswRWA3v3mAGU4QO6FkH+ZtdtI1+Sm4QRf8g6G1vG5cGCGYqYUOBiu7gJT DG30iwayrEk9SEOkE9sTVpD8242XsVMLtHN7h0Q70GnkFd+rQ35+MFXyQhoYErxRp5tT 4tXNfSaXdE68vI5rptujqyTiwhsYfwZDg63zxoDiVaFvwhAniF+eOeS8hbtKL7nTMvj3 sVhiN7zcSF7/7NCKwkUzzH0zG3jB/agE0QUe8o5XAF6E9a1PoJvezBlzrAiw/v7mehLn /lbFR3hA1sPO2A3rTuvRLNEX18OviffXMple1N2Bt+CGaDEdxskB0Uqrv1SqeuaRfWBf zJog== X-Forwarded-Encrypted: i=1; AJvYcCVRdx1Xx3jy75OkVjTpnyE63AJ7aaWIbO4xIz+7CP5rr6QobyxbJKsuMuanbpWnoDqKvCrudp64ETLJEwEgub9o2A==@vger.kernel.org X-Gm-Message-State: AOJu0Ywxg4ZVugSh090oC/ZXBUq9SUFoJBolWyKGeKXoI1YJcj/kZh5Q H4oNiDmC5h8MK1RpX2e2PeJj4x1ChILriLtUZsIkyxsEieIHqjxYn9wvEqwQgIk= X-Gm-Gg: ASbGncvuwVp2o8uqrHYhAt6XUieOJFutiCbESWLTREHnUPuCEVIcxwKKBlp5DM4j3US kLW/FVygLuPYAvkwxtcj6+U1ccbgeFYPmnrdeeNe8N1JfKA+8fWquzFFm89zu9FtKW5WbZRHeBp /8Br3eVzOxPSJWRnVqODp8l1vgFG0o9d6keRRK41iK542QQLe0Y8AJUMl1px/x3MJBPp8RbtWLB d01H2p0rLm3WL1ESfLvKTLJ9ZZDP5761F0N2+Q5q/A/iqw/2XdFItE4at3YVr+fyzSjOrxEStef /v++ZDTXwIhvMywA5nW3IuAUMUN8TIhz7g== X-Google-Smtp-Source: AGHT+IEN5nwnyUkAQMvO2q9jKMCm5xWXv8+YOzw7jcftLoAsAmmzmAcKvyZSzw3KzqJ0H/b/wrjw7w== X-Received: by 2002:a05:6000:186b:b0:385:ec8d:8ca9 with SMTP id ffacd0b85a97d-387877c98ffmr3397430f8f.42.1734019251001; Thu, 12 Dec 2024 08:00:51 -0800 (PST) Received: from ta2.c.googlers.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38782514d35sm4462941f8f.74.2024.12.12.08.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 08:00:50 -0800 (PST) From: Tudor Ambarus Date: Thu, 12 Dec 2024 16:00:41 +0000 Subject: [PATCH v2 4/4] arm64: defconfig: enable ACPM protocol and Exynos mailbox Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241212-b4-acpm-v4-upstream-dts-v2-4-91b7a6f6d0b0@linaro.org> References: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> In-Reply-To: <20241212-b4-acpm-v4-upstream-dts-v2-0-91b7a6f6d0b0@linaro.org> To: Peter Griffin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org, arnd@arndb.de, Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734019247; l=1030; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=/C7bHQrkgGdLprOLUDNL1QPrbsGLOKte0YUezSURupU=; b=q/qMWb3Eov9H0T2BHl7oTCrCuPXOj90JVrh0cjnd8k61RuCnu1AB8+Cevc0d3x4+b2BnG9tb0 ExoRQa94+dQA0btBlEStNmn/o64BWNR7SWxVKOt/i78pqHEKVU8gpwT X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= 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