From patchwork Fri Dec 20 14:45:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13916867 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 B95381E535 for ; Fri, 20 Dec 2024 14:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705961; cv=none; b=Waf4oil0lq6f/zoANCm3m5DS1SvLHQd0fFvbFsiQYP9UaQnulpI5aa6B6uXIbd/wDNG887KVHlbJtj3rScDqo+XSqSnGnurRLWj21MI4rIz5CkUuyUIBqaWPseruWg+Zo5/3VFmdKRgYWXwHSg0WIqLi+DyX7eTSK03UiREJ/zc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705961; c=relaxed/simple; bh=qdRRh88PR8yD7/wyF9wDElmu1pjR7jVhv88q1onGcQ8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wn8HqxwV6Ur7biIJnEy2PbzatOZ0YIDjxKYWHWKto7lTifyXNYwmtiu0+ORzQ4xasn/2szslCgfYN1d0ktfj43zntmgziYgzvN9xj+FjIeOG352wzJ54sD0Zl/29Erj3ZErLgJmAiNdb/dC1A4rpvP3ceTTBG5LiFZiSf8WwGzU= 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=ZpJ3LNu+; arc=none smtp.client-ip=209.85.128.43 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="ZpJ3LNu+" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-43622354a3eso13856075e9.1 for ; Fri, 20 Dec 2024 06:45:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734705957; x=1735310757; 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=dxlvhrB2wJ/WWWheikQ5QToLAAhXYBUjgjkO3/zz9l0=; b=ZpJ3LNu+qwXh2i2szrYc1eptCSl4UYmozyrW8XmW5E4ujuEVnAahPAqW6K8lDW7lb9 p28XuiQ8kMH2NNU3ZqtWXjEyWqiBgB1fQFOrk20tLP4iibFvEmQIJgK775y/kR92UnsC BIgmkZpQ3rcklf3EVreIIf0AJIrynRsoDFzUeO+47htuLhy08fD0pGY9QZ1xKqROIxau PAoCCfZuuezDnfvalx2H/5JEJQQrZEVduQ6T0le3iQvjpfUQJst9Qs9eGIG7NVbEERzW UL7+PwkLKytHfVaa6LAbxxjh99bZlJ2X/8+2N+m419SXIcVuZtqBSlIGwpE2eb7gisLz oXsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734705957; x=1735310757; 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=dxlvhrB2wJ/WWWheikQ5QToLAAhXYBUjgjkO3/zz9l0=; b=Z1gCJm3V422DUXkszsjZqoWgORUMggwgiJWT9hMHMOOf8IGvlkKncr7SXY++XAg8B3 7JDv2KS5nOEHwNZJ5YZA3s/o2dmL4x4+ac/CKRShtoyi8wgtmg86qxbtqrJhoyY8lI/a E5H2ZOWMwvScd1Xw2xzhGJo6EcY+U8k+ipSfpzqJ0eeZjK292PdgGZtTA/h+MER3fcpY AHP3NvLajg+17sMl/c4GIFD+fWxI0WX58DLuGoTE0nqA8CbJ5F1YtUktw5VCtKQoAg8M YJnZ/GzLYFgZiJNSqPuRh2SjYOmq5ay1trmm9h6QEj0h7QB98FHLCxyoUEqbJko+t0mk fBBQ== X-Forwarded-Encrypted: i=1; AJvYcCV0DbhcM1E8DAXTakrg4Mq8trR+e4LIO1CRCgBh6pwacNadUzno383+VYmHlXgjmg7Dl6vGEy2BCaQOEJIjN3i0/g==@vger.kernel.org X-Gm-Message-State: AOJu0Yy15qpOivzmeDO96pQUxJBLQZcvUGYiqlTX8lNTfGSjTY/b/BxP NabRn4zillGtk+JSNMiyWT/0Icsp5ldIB1ccOZ6ZzbWmHY9U5ITs22Gk/ZTzLGo= X-Gm-Gg: ASbGncs6R0Cd/TOreIFV6HlhK+D1ne75V/77Tp5AsDvC/Y/xdVlCUHz/2E6MCmEyVLv KXp+kNZGgEcFPrGhmymxpTcjdoW6kYFAILiajOY3yjYjMSJGaPk7vYeEiNF4L8qU8ZBpetTF7DQ mW5M8IRnhJRCBlgfSMireiT2A8vp0ESQ2tJcYY42Yrxcbe5zrD9EN0pX9kftMWKFhdQWADr72Ji ESEn6frOFuGcTsV6HxDC+kxQUF9fNdjtoEAQJWtx6lXBBAq2u/SNgi5IIfxpgjKeRqO/T62ueUl pX2HOj9GTfiCEyNhSrr1vrUAOvtWIpJ5yESG X-Google-Smtp-Source: AGHT+IFba+pNkn8Isx84tR/ymJ6eBzETARPGC5nX22IMj3yT652dRqMPFdZu5N8UjiaoJcOax0vsrA== X-Received: by 2002:a05:6000:1f88:b0:385:e22e:288f with SMTP id ffacd0b85a97d-38a22200c0bmr2682435f8f.31.1734705957077; Fri, 20 Dec 2024 06:45:57 -0800 (PST) Received: from ta2.c.googlers.com (130.173.34.34.bc.googleusercontent.com. [34.34.173.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c84705esm4227874f8f.44.2024.12.20.06.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 06:45:56 -0800 (PST) From: Tudor Ambarus Date: Fri, 20 Dec 2024 14:45:44 +0000 Subject: [PATCH v3 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: <20241220-gs101-acpm-dt-v3-1-642d64daa5d1@linaro.org> References: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@linaro.org> In-Reply-To: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@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, Jassi Brar , Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734705955; l=979; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=qdRRh88PR8yD7/wyF9wDElmu1pjR7jVhv88q1onGcQ8=; b=xgCFIoxvhBDc1QD+CRRVZZxpOKdMIoc1Iu8Bt6N5fkkcbFjSxXufey8F4ncY4KX1msxpc2ThJ hl2m1ZchsxRAcwd258Rs9f//Ez10uF+otAbE26Mog4rxirg9m0+rgjY 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 Fri Dec 20 14:45:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13916869 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.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 AC959215F75 for ; Fri, 20 Dec 2024 14:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705962; cv=none; b=kLwIxAiOIfS0tizV1v/lCW5lgiKC1Fl/3BhDv+zYa3DZZy79u0ZvhyuMvW+yzsujzfA5xuQW+cwO+w1j/m9Y8B4dcIoxZE9nhUevJ/x0IL05TAiVZJe5vTYDFnDO/PkcuqCgcxZrECZWO3v9s4g5FsLBvRPYap30PvvIIMoXkNc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705962; c=relaxed/simple; bh=ksJ+kZjL8uLlN+FZ+pHkeFoebJsDUcUmZPaIlmDO4Og=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r7IE9WlY693U1eArfmjDxS7cbFl/et7Ge8IxXA81HfoP7LBmfhw28AwAu/l7oOhWLLYHxrl/yBd9AlAKm/0YzU8eeiO3clIfssUv9xC42sTy9ZjAAI1+vbiPuloUmV1/W5+lVyh8HxuOKsOfnfoFFmM4LozcKHdvq7hpB3V/lDY= 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=fDcA9MtC; arc=none smtp.client-ip=209.85.221.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="fDcA9MtC" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-385d7b4da2bso1740002f8f.1 for ; Fri, 20 Dec 2024 06:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734705958; x=1735310758; 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=6pGIq1PR9lkwo6mEo5Eq/Q4i7Z1n4SSZ995JZ/LQKCc=; b=fDcA9MtCKD+y+pGu/3wTz4YDNYR8Axt4RkorIBnvQ1q2wJndMNDtvgMDQnI5qvjEn4 bF++soWUHzug6d/gk1htsxJDqTdfN6sY31M7YDOtleUJbYv87ChHvva+0cMkKyWuUnct uu8pvd9ve4lMAaJu7il9WQYqG1P3xLWdKeI+dauzheWJ5aK4+JWM6iB7QS6aTEilKfXO ghAtr8xCelcjWm9JQt05zJdKwQgunwAFT1X0BSfBYE2Bs/+Mx9plshxRxt8SE4HNxYi5 0xs4b5K47xcjBfB1s7e+jHIJZswTiOutQisyl75tJa4C/wBW7yuVPBgTknaat5RCklLD qK9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734705958; x=1735310758; 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=6pGIq1PR9lkwo6mEo5Eq/Q4i7Z1n4SSZ995JZ/LQKCc=; b=NNC6QtcLbPP+R5AlXsfSN9aBVdIJEBaFvoHdhBs8OFuEVPClZ0IKZN+KEiksW0LZfO DCJBkWwcHYYhCWhhEDuOderLbdDlMCmKA1ai6/qzau2Q31iZNRzuEP/teohVClWkexVJ MsCiTAAozMN/65vgqwtB6Piww/rJSWxZ2eo075VfanafNhJqPnLjzEWT+lENdLhOb/Zp GYUapHTCn3ZHd9P7axAv428nz9Ma8fd3lcrGaU5zIVUM5t4eaYxZXkYMKWZgcmCFfiym F8cc/IJjlhHBENN9DiWhuhG9aozbpZKQ0GPCC7zczdk4nP4ktij7feiVFmSvf02gqx6g LWBw== X-Forwarded-Encrypted: i=1; AJvYcCW3gmtehivtAmSQnLc13TnvKcXjSfO8olT/f1jVaKC0wOQQHJnZ08SRd22DwIZUIQHFPJzfOf81FbIrqW11dcXxig==@vger.kernel.org X-Gm-Message-State: AOJu0Yw0HJGcy9JysbRSGFuaOJ0DZpQMoDfR+fZHnagoH8eBdW65WrVS KENxEYRbMzlDIh8tq8r9/s1uyZQtGXqdRzcadAciB6QwMMxvhwvoAp0w+6S4ik8= X-Gm-Gg: ASbGncv+8P07lAuGEbVr5J486PphZvuNA8ItT0bRnCGZa+kbUW0thcSi1ezo4rYefGx 1z3aGmf6apt8ovb4+lx/Ns94uD4XKJZVQVqVwtrI+EGHC8JmrTbjgcohu3MiBNRXPY0aX8gW57T WSBLwBpPYFT2iE5N0xHfaOwccQ/64O5qFo+Sivvm0ViBPI3FpPdZYpeeBOelBwbWfRPm0Jyb+4r U7XzpWOZtKT68ahT6Ex17QDCC/2caXmYQoHsxAX1DME4zCgJxdeG+WzScyczIAjuqFtot6Xm5sx KFM3QT4HA2GwY0YsHN+yCCAtkBTzr0gTE9gz X-Google-Smtp-Source: AGHT+IHswtHlhbAXYQTsxmj42Cx6z0kRvJ6s2dUNedujrsv1Y3qGW1iMiZ0SDo7FMblpbxhFtQc7lA== X-Received: by 2002:a05:6000:78d:b0:386:31a9:31ea with SMTP id ffacd0b85a97d-38a221faa71mr4052627f8f.33.1734705957980; Fri, 20 Dec 2024 06:45:57 -0800 (PST) Received: from ta2.c.googlers.com (130.173.34.34.bc.googleusercontent.com. [34.34.173.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c84705esm4227874f8f.44.2024.12.20.06.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 06:45:57 -0800 (PST) From: Tudor Ambarus Date: Fri, 20 Dec 2024 14:45:45 +0000 Subject: [PATCH v3 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: <20241220-gs101-acpm-dt-v3-2-642d64daa5d1@linaro.org> References: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@linaro.org> In-Reply-To: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@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, Jassi Brar , Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734705955; l=1282; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=ksJ+kZjL8uLlN+FZ+pHkeFoebJsDUcUmZPaIlmDO4Og=; b=x0Ev+HpwVYqbwB+I6AVvSeZI9hA8fjFh/u8hIaK1sJWwZeeE1MvacpEYn9gzDmAWTMUsWEdNZ ecBCUxDslrZAhS1a9R+KuoBbFFAZG+4joMBRs9YtU8+yeFqxZube1LL 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..6947dd081a0e 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 = <0>; + }; + pinctrl_gsactrl: pinctrl@17940000 { compatible = "google,gs101-pinctrl"; reg = <0x17940000 0x00001000>; From patchwork Fri Dec 20 14:45:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13916868 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 8B67621884A for ; Fri, 20 Dec 2024 14:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705962; cv=none; b=f2ksCYfkz3gS4QbnIyYx4ZgVZJXlBhrwSsS3l24PiZhUaQic/aMP5Vntp8ttDZTXQAYL4N2YI5kRUD2nB5boLqKdhfYlHWSsB6fMUGmw2b99bNAWK1t419cSM6yFMsswWTuD7Tg/l4E2VAyNQBAd0tzZp0ce9MqtuHdFL0HWnCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705962; c=relaxed/simple; bh=CBzsQBj3NhXJFNW+TyilZZe0w8YWT523Ro1ZD7fmAyU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NUTbhGS1vDVrFpR7aRLs8tdo6ji94Ny7PPxDcHZWEtS2gq+F12MGOHeY0d9pWpfrndVQEt6XN1F6854/fiQ9k392KHdZMeK/EBfDdUaZFPiuRrn6PaprXGnDzgb/wTMXWt1bZZB4dFjUAuofhoz0VEtTv/0M9Yequ8oOkq4jV4Q= 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=qKNsET95; arc=none smtp.client-ip=209.85.221.50 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="qKNsET95" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-385e0e224cbso1143388f8f.2 for ; Fri, 20 Dec 2024 06:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734705959; x=1735310759; 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=LKQ/KdPjRXHrR2fzFO1pIdVwIMyG+67hfBNPWoSG81I=; b=qKNsET95Fbqxp4GYFeqjxKXAYFNDTd956LdVYgusC34vzMN/dPa/3nhzx0S1T60mOB K0sIHcmrOftpSdzXJNhSWCkqDAZGTD80f1l2HYenxWhMtNuqSnjygdWUMXxTRlTxvQP3 usSqfw4aA3B2OthFuNVZ2yHJshQ6nAAZmTenKIk7nrvMpLCSz0mHz6N4RyJFVKA4dFkt q0ZHWVrENPoIoW8krS2twX2FauoEk3IOulYAVnrdpAxBuXX2XB5u1MBeNfesbsUl6kXh 9Tsda+LFTmTwfn6YMAtLvK/JpsEVIsLL+mkpAmJ2HxBucF1sV1CFbz1sdghKqYmYpYqe f4oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734705959; x=1735310759; 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=LKQ/KdPjRXHrR2fzFO1pIdVwIMyG+67hfBNPWoSG81I=; b=iQLmkuuLv89WTNgg3kmpW+h8tEsBLcCdzwQN8+eZlKwiU5QKRmSoZyHsZ8FB9LpuMx OsHfv5K+/uCvYs/eoTKxhZmegIKF7Mt8hr3L0wArfUwejBL8H4m0Dz0kqrqDnSRCKn1A Ehb9FaAvKKPAWVfTOJAuAXR9/9s/edeDKhPWEt6NUx+VbJ1v+R6MnS3zBIyOw5Njxf9l WImN4EodMG5iP8MP0MfGyF/gzpLGZRm/l/mAPH/D/e4LehloeuRYSF0ZI47BXbTqDqCK fmw/6aPiSlaqhcmyANwlz4J9B1/RUL8IRwWL3f2ou5rngW5fhmIIgPjkhaRMhatA4SQF 1RXQ== X-Forwarded-Encrypted: i=1; AJvYcCWJtJ/yAgEkexwWFuHuabeK6pYwjXRDeoU2FFmp/jt9qzSMSE4EUZBcPa2p7OyqdqZ+/ds6uxJEFpTxPn2CBc8l3A==@vger.kernel.org X-Gm-Message-State: AOJu0YxSs+HPAu7+n5ZaDgWoFOt3uzbtMK50gGCVdVE6PZ8WlWuFuL2z UgSUvAHnfyHU1HDFj1rdyL3JGyR2Z15odNaitXAMjwoKh2DE+ampl5gsC6KMyLo= X-Gm-Gg: ASbGnctBMmM3vmmYHLln8hMc7TatR2UB/eygAC9rCYsTMFx9eybZ6vXvzBRweuafsZT wrJi9F8gUtof8qOrIV/u1lRmlEpruEqhMVEKX0+RV+4iCntm0jA2+8Or/8NE1l2/1mFcisuhvwA au/t+LwONP3SuF/Ml0an52KVxZidNxHEeZeU3GXeuELgqqPwcisn42EYi1Vh9naS/QaGv8mAow0 nncSJXXfak88sQRxZ+SsOEy+tLZAYl+eb7NDuPQJyvN2qb+liZK2/SZnBKNHgKniPeFcZA3hiOO 8VeCNEvWPLJLpYkNnGl6eqOVSvEZrZWaD8iI X-Google-Smtp-Source: AGHT+IFWQfXAdgrp2CpXQA4+qHBefpesptVUa8m2vkPR99QjdXggEQUhIJHg0NNIDARz74yBnc6WSg== X-Received: by 2002:a5d:6d07:0:b0:385:edb7:69ba with SMTP id ffacd0b85a97d-38a221f2dd7mr3456323f8f.1.1734705958949; Fri, 20 Dec 2024 06:45:58 -0800 (PST) Received: from ta2.c.googlers.com (130.173.34.34.bc.googleusercontent.com. [34.34.173.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c84705esm4227874f8f.44.2024.12.20.06.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 06:45:58 -0800 (PST) From: Tudor Ambarus Date: Fri, 20 Dec 2024 14:45:46 +0000 Subject: [PATCH v3 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: <20241220-gs101-acpm-dt-v3-3-642d64daa5d1@linaro.org> References: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@linaro.org> In-Reply-To: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@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, Jassi Brar , Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734705955; l=954; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=CBzsQBj3NhXJFNW+TyilZZe0w8YWT523Ro1ZD7fmAyU=; b=5jgeHxCZtkNehocgTdpWWxI1BFfmy+Ek5KEUu9MkENxqbn/4qWH8mQfu4WsTLzhrUCirUGicq NoWEoR6ntyqBhnr9L7E1KZzxGh7p4AloJBMqd66nIZ3q/kWZAkmHK6G 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 | 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 6947dd081a0e..681ea775ba54 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -277,6 +277,14 @@ apm_sram: sram@2039000 { ranges = <0x0 0x0 0x2039000 0x40000>; }; + firmware { + acpm_ipc: power-management { + compatible = "google,gs101-acpm-ipc"; + mboxes = <&ap2apm_mailbox>; + shmem = <&apm_sram>; + }; + }; + soc: soc@0 { compatible = "simple-bus"; #address-cells = <1>; From patchwork Fri Dec 20 14:45:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13916870 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.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 0842B2163A1 for ; Fri, 20 Dec 2024 14:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705963; cv=none; b=jRh5TMSxl4vk5skc2YSZoaRtcopFIndELkvyD+00QRNqFrPh5jHUrpHGSN+mvT0SYo0/7fKXRR7lV/27nvsUWSrjQd4upES9DJz0DIpUygF//zpfR5XoOu8Pezxssc7ve5M1al+aJI49/mKqvXOZ3srUMOH93hI8vK7Y9rxPAug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734705963; c=relaxed/simple; bh=QNflK95J1oyB5GCiuNhKyRcaPvjpw4cTQ+4gOGCRcP0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SyIhqhemzzPpyvB1r4W4FLg97MY4Nzm10a8L7Po81Id3vwvz9PZ8Ghi6dVSABmnNKZ+ebtkVMBvA6W3htSx/vth7UGomfU6E0uAk7xVCHed8H4tQ0bjEABUhTozkLmLNAGw5Y7+o6OGkcnwHUpw5kVe5tsNsJUV6MOvVubZLYlQ= 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=lcvEAvUG; arc=none smtp.client-ip=209.85.128.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="lcvEAvUG" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso14692995e9.2 for ; Fri, 20 Dec 2024 06:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734705960; x=1735310760; 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=lRqWQ9kuH5smVaJB9GZ9PXPUlnPdZKZchIBVzev3PSQ=; b=lcvEAvUGkR7NEL4VPmspyXQIXMYjQNQfpFvwVKh2QbZZgw1OAuWO5qfRl4tLSo5y3/ +ZeheA3fZ5fUGY+0OqiMBKa08YNlzCHBKBwg8uDZYphw+JfpwLOl0LQ+Lbw5m7T38mLT Jp3WFt5zSKYep51jQf+6Hm9DyUVGl4joJlfgogvIMM2qAJmmyjoaRGqNCisTzeYssL3v EDdPL3Fj85djJijtBxinZgGJnsiLcIm5U670RuCp0CCyuLoPKxCr/InRxowxKde60OQq UCB3G8eGZ5Hc8iC6flL3uIrajX8wODyxwCYex7P1xYLkkPxjt+F88iWz+42HOiKpzMIH pZWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734705960; x=1735310760; 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=lRqWQ9kuH5smVaJB9GZ9PXPUlnPdZKZchIBVzev3PSQ=; b=Xf07SHQCGdFBxNA8VoPq5Z53cLEmzGVFET4/NU7J44aicxyZc19wBvRbhuw10+9F7I xMbsDcc2cL//CugyPTlwk174xMQAfhV+yWygOPFX6C3fEu5ViHPcxeSY/PejE8yUHt1w y7EfN60vkPjf9YIIn4Pu5x/6mnHn3Xi9CrigK52GcKkdB7fsSmmc+L/WAdHk4j2HOaRn YCGARp/xoNqy4xTYoWVUdPZ/YW3WWmCxa9z6k8TA7hPO2WoOpDLSHJQuiE6gJ6dN3/cZ SmkAAAySm17QtpN9iK1i6adKK5ugH2fMYIp21ErgDx9bTvlrMeDTaThFTp98GqR+h9cB dvXQ== X-Forwarded-Encrypted: i=1; AJvYcCWbg1cu4LCSSIJ50hAV6uy+e6O1YyQqljwJeTGzp4M3GKblrDr1bjQtMbKV1v2yJk6k7VZmgdsr3otwkizWrDhQWQ==@vger.kernel.org X-Gm-Message-State: AOJu0YyiJWzaxLnL9Xfi5i+dnn7GT93lHlvffzR9dsMxBFr7ZbL4asRN lrC2lRMRo1hr2MSyZd8H81sFBDdCpjcq9Ypr3Cx1W7deEd9tX2YO2gGpG6NPYrE= X-Gm-Gg: ASbGnctQkuc7kNxl/iqOwYYxbJOYgIWczV5VSjMEBanqvu3RsmN1yQiehuRiYFaYeRU hHOzePRe8PsN/0aT8d5g/GCYC2+P26q7MBUoRdXMsnOwAGckq0MRJzh0luFmNs6AEO6oQIjAbv2 4BxOChxndadVxfuWpodJZk/vRLBGNmFKKAbw/Oz4LCN8PLdH3TDviiTq6LLp56OfLIVwCLts1Rp qaJwLu4DEX7Z5boCxlvLM5F25eSPxdlhCtYMb+WKW87Za4nAmm88BgIsykOQDXTIsYprq6Mbmms N6lldkZijmKdrgvQq+8Y+5ibH+hNQff/jNmA X-Google-Smtp-Source: AGHT+IGTa4AymaocDQHTU1ovTmqG12Q6/ra0E3vms/hl6zSMw0VKvp/iKmrVp1auYP0DQmQ0Vh1dsw== X-Received: by 2002:a05:6000:2a1:b0:385:f060:b7fc with SMTP id ffacd0b85a97d-38a221fee1amr3215271f8f.25.1734705960152; Fri, 20 Dec 2024 06:46:00 -0800 (PST) Received: from ta2.c.googlers.com (130.173.34.34.bc.googleusercontent.com. [34.34.173.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c84705esm4227874f8f.44.2024.12.20.06.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 06:45:59 -0800 (PST) From: Tudor Ambarus Date: Fri, 20 Dec 2024 14:45:47 +0000 Subject: [PATCH v3 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: <20241220-gs101-acpm-dt-v3-4-642d64daa5d1@linaro.org> References: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@linaro.org> In-Reply-To: <20241220-gs101-acpm-dt-v3-0-642d64daa5d1@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, Jassi Brar , Tudor Ambarus X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734705955; l=1030; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=QNflK95J1oyB5GCiuNhKyRcaPvjpw4cTQ+4gOGCRcP0=; b=vMDlLV8zkiu0QyCRA1oLZkqsQZqt82J/23WzoFyTba2TkjJ/xdmEoZm0WpCiRzh9wxG2vYg40 X/OKV9w9QumBwzhDsMK2KNl0vJ1zLENtCaQz3xOvrcCmH9So5edlr+z 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