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: 849949 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>;