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