Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp139858lqr; Wed, 5 Jun 2024 01:09:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWRQI5zY1tpMV01X7l+UGWAZwCGZ02UgIjLXJFoYldK2iT8Ko1L6oMhsiqAYOlF3zybxtSNPNz5TthzdvihjOrbh5pd6bLJuF8wnNUhA== X-Google-Smtp-Source: AGHT+IFZ0EsRWxFcXS1VyYVL4RUvKRQmxo5RycQgi+RsRB+Stz4XP6yFTTufhCfDvnjgnPefXlTZ X-Received: by 2002:a05:620a:bca:b0:790:f7b1:4c4 with SMTP id af79cd13be357-79523d35f04mr217778685a.29.1717574978328; Wed, 05 Jun 2024 01:09:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717574978; cv=pass; d=google.com; s=arc-20160816; b=yfV8DHQvbM2Z0rawgrjhmB9Owfw7Dp1bPFYenR/3cvfKO5ka3b6me+PjNbX6nhec3S oZd4CcXgGUy3RHa85PXcBAIjE4NxX6QvLBmtWieIArqdgAXJG/ea1P5L60rIcss5gCEG q9cHUarhwSsf5xwJB4gHycgycSd8L2CacpCqw4Y5iyyj/aImlwMSDyr65pp9gxM21tPk qTG3YQaU/R0x0bPBjuyqflExY9apCVoLer2ALJH1lLGsBIMI6m0h7/+wMTinDB+eIm/a SX1fT2KhVHmGrT2BhpTtBa2KZwM9NnaunjHYe8TeGbT+w03ktl+WYgLjiSDu3j+o5Alp WtrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LeQEzYZve89QVXcn8RulqOlwly2vbEhfirVc4S0tvq0=; fh=kFzPWOtEaeyeq9ApN/C/kMWJcWY2adXHma4csVmEzZM=; b=i2m79VLiAasvnOW915KLEiPHs9ylev2W9QwF8W19BhWEXzas73ENLDwOzib1eRWZJp pGXGYUd9QFXjsTOM84qUzDuScFBnLu1Iyf5DAhD/6yiVNesoeWlaJEwrzIub9KzzQoJU L3VMsIZD54brFysp8TW5Oc7ROhrxVlIjX2pdSS/uYrq7KBqmGp0M8JGUv5aIqezNJXec 1hfjoDiNVrxdO9mThDeQSzy6gRmT8rHxkJ/ELKnsivkUZE+mL7NxN0VlH+ywOo00NtFv 6nDxFx/O2KXFcn45rXg5x/DNnz+dTJmxnQkMBxrYCVD1l+3ZqBoWJpZdRbxJss8vMywd Er/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=InuT3Skt; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-201929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-4402fe76fcesi5871811cf.285.2024.06.05.01.09.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:09:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=InuT3Skt; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-201929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0F7861C20DCC for ; Wed, 5 Jun 2024 08:09:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 183DA18FDB3; Wed, 5 Jun 2024 08:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="InuT3Skt" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85C0A13B5AE; Wed, 5 Jun 2024 08:09:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717574958; cv=none; b=VGhizKr0R0sOToLKjuT1ckxiQhasaty6lqYPgi0XxM+HeNJKGWsl8mI5JpS5QhmwdQQbfeSl/qZ/hns1h1rshihfpRFefyCta4X0N24VrKoNK5l/xe3V5ilxJLp6g2L7WteGiUQuaIxta154usJC6e5pec2s+i+RAe8UXiiHHXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717574958; c=relaxed/simple; bh=2SDjKCbpQz/q/ljVsS/tdYj0W/mPevUHfWv7vea+EKc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=luU4Uoc7sdcfK683g+7qgxoISEC3X8IixH3eeuzc2xYneQN5viMYhUnOzcmfQIcioPb/p1XzbFjnGBni1dITpLOKRrtm0yLTqam+HC9Fbexzb5/Nra17xfXBihf1NSgXyUrRFLXBf76ITQv4A4F5adwMYwNbu+FfAHYHjNGtw2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=InuT3Skt; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4557koNd013306; Wed, 5 Jun 2024 10:08:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= LeQEzYZve89QVXcn8RulqOlwly2vbEhfirVc4S0tvq0=; b=InuT3Skthn7AKw5j VvZORuChatpzNr2TAmakZJ5BIIINPGE1d8JIwTvaNmXtgYD/IJVia0eaG9rRw54H sdFTm1vyvh7/YtpfItJVGN2rlXyuAvFpqNJo2AINuuUay6YarvNqMa9K7F6hjNRS PXYdlAPBTeOFlmFftChE/8pSYtYodzAzrfycbK0a+ZZAsvA/UuCeF4e28cnY6ttD rjbo4sysR6MjH0sa5WR6fM8HBfjpKslagsHPuWjStUSECNGS8t7MOgVTkqGIWJ09 PkMe3XLd40ur7E0q7lgOi2/FGwcMRuQdWR685bwxa262h2EyDqKXfeiBMaO7KAxk oPAIcA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yfw30fd55-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 10:08:58 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 68D2940045; Wed, 5 Jun 2024 10:08:54 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CA9D7211F0C; Wed, 5 Jun 2024 10:08:21 +0200 (CEST) Received: from [10.48.86.79] (10.48.86.79) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 5 Jun 2024 10:08:21 +0200 Message-ID: <802522eb-c226-446c-b03a-ebe6f511ddcf@foss.st.com> Date: Wed, 5 Jun 2024 10:08:20 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: st: add power domain on stm32mp25 To: Patrick Delaunay , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin CC: , , , References: <20240425174519.1.I443a218decda670093bc621165e3052db14d4c02@changeid> Content-Language: en-US From: Alexandre TORGUE In-Reply-To: <20240425174519.1.I443a218decda670093bc621165e3052db14d4c02@changeid> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-04_11,2024-06-05_01,2024-05-17_01 Hello Patrick On 4/25/24 17:45, Patrick Delaunay wrote: > Add power domains on STM32MP25x SoC for supported low power modes: > - CPU_PD0/1: domain for idle of each core Cortex A35 (CStop) > - CLUSTER_PD: D1 domain with Stop1 and LP-Stop1 modes support when > the Cortex A35 cluster and each device assigned to CPU1=CA35 > are deactivated > - RET_PD: D1 domain retention (VDDCore is reduced) to support > the LPLV-Stop1 mode > > Signed-off-by: Patrick Delaunay > --- > Applied on stm32-next. Thanks!! Alex > arch/arm64/boot/dts/st/stm32mp251.dtsi | 16 ++++++++++++++++ > arch/arm64/boot/dts/st/stm32mp253.dtsi | 9 +++++++++ > 2 files changed, 25 insertions(+) > > diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi > index af1444bf9442..4beb0a0bef4f 100644 > --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi > +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi > @@ -18,6 +18,8 @@ cpu0: cpu@0 { > device_type = "cpu"; > reg = <0>; > enable-method = "psci"; > + power-domains = <&CPU_PD0>; > + power-domain-names = "psci"; > }; > }; > > @@ -104,6 +106,20 @@ intc: interrupt-controller@4ac00000 { > psci { > compatible = "arm,psci-1.0"; > method = "smc"; > + > + CPU_PD0: power-domain-cpu0 { > + #power-domain-cells = <0>; > + power-domains = <&CLUSTER_PD>; > + }; > + > + CLUSTER_PD: power-domain-cluster { > + #power-domain-cells = <0>; > + power-domains = <&RET_PD>; > + }; > + > + RET_PD: power-domain-retention { > + #power-domain-cells = <0>; > + }; > }; > > timer { > diff --git a/arch/arm64/boot/dts/st/stm32mp253.dtsi b/arch/arm64/boot/dts/st/stm32mp253.dtsi > index af48e82efe8a..79c02ef2e51e 100644 > --- a/arch/arm64/boot/dts/st/stm32mp253.dtsi > +++ b/arch/arm64/boot/dts/st/stm32mp253.dtsi > @@ -12,6 +12,8 @@ cpu1: cpu@1 { > device_type = "cpu"; > reg = <1>; > enable-method = "psci"; > + power-domains = <&CPU_PD1>; > + power-domain-names = "psci"; > }; > }; > > @@ -20,4 +22,11 @@ arm-pmu { > ; > interrupt-affinity = <&cpu0>, <&cpu1>; > }; > + > + psci { > + CPU_PD1: power-domain-cpu1 { > + #power-domain-cells = <0>; > + power-domains = <&CLUSTER_PD>; > + }; > + }; > };