Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp345339lqd; Wed, 24 Apr 2024 04:23:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNztkHiAZx+gtRLbUMJW7FzFNhh4wg9GpOOtrfUm7+EmcMWY+1mnnsw8UfKDE0WwY/UkUl1g1xtnFGG03O5hz+UmvOmo6yuanRTAeOsA== X-Google-Smtp-Source: AGHT+IE/kFGfVQnNOuz9f/2Xi5ujBhgTVvskFKWE+AuWNaZDV/wqeq3j0qao0WnYOYS4rieAguRW X-Received: by 2002:a05:6512:4cd:b0:516:d14a:9692 with SMTP id w13-20020a05651204cd00b00516d14a9692mr1475326lfq.6.1713957824212; Wed, 24 Apr 2024 04:23:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713957824; cv=pass; d=google.com; s=arc-20160816; b=EwP/SEtrOfnsVJ2UNcfxVbNwLQJmpz7cEXCkaYjGobSVqvqTq5MezRDC1R0kkQSoU3 GhkAmvlovn/30dk9In1AuojKfPnvZ+zbXN3CsbGN4BaqUf0I0fryX2aJmvHm+SrJuy2e V5BIwbWCzlhGju64qxG1c2JeTtjz2TmmWkMHHaZH31I4AwD1kXHI4XDYtZyf0uRZWARj nZa2nxdlkveGcEtNN24xPxFMVNlmq6lUj3E4R1EdA4R19hQDPcvo3javcFEuffLuhdbE KajUxjyyHrjd/50kSw/VZaqM9huoCTLcQsEjvrPBP9DnHL3sCHMQjdvTHqnsPNknMLrM fydA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Ln9+pg397axOqdZ8donOOoy2lTHgumZvva3u8wpOyis=; fh=OYednRZUMipK5w9uU0kOLlh2yb1IhE3+XfkxpduCryI=; b=AsrQ6V8QxF+RFZmllnK3JDF4MnSE5aFW8lVn/ukf01MYM6wvL2IuIrsM3jKxKsqBq4 WiW/VhbmFGcGWBe4tkQbCSwwFPFNSXz4YFUtFCwW9IBexoykv9GhbwHVeWqquXO1Q29E 4wF0UFadeP/m2doSem66Ws4i4i+/zA1mvtbbxKtUUt84EtTbPZHsd4FW6AsD2tHna/mu paQ6g0/knWcXvNUP2q4Cpes5KT6CVOqDE7DUxoJtN1cCBr/ZTnx2im5HjQVU91lTcF/+ 9GQ2n4W0oYsPe23BH2iH1qpPbZqim9UmHDF1Bdh5bgGQsIYxq8xhDmz+sh5y0GSUaEAM kgoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ULMeqJtG; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-156794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s20-20020a1709062ed400b00a51b3410e43si8139111eji.668.2024.04.24.04.23.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 04:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ULMeqJtG; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-156794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E8CFE1F23380 for ; Wed, 24 Apr 2024 11:23:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFF1515A4A1; Wed, 24 Apr 2024 11:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ULMeqJtG" Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 627C3159913 for ; Wed, 24 Apr 2024 11:23:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713957814; cv=none; b=Iy6KvEFy7qXlGJAisOQzbJXIK/w1xOeanrgEpKq8Swe8bHyOBr/bBnJutl8c+wuCFGMGTuNV1t6mPUqtkwbVUSpML59Psrk78p3IaIPgIv+JW27YQEny83P+yhStQQIZ1WDMn+6a6jlbc7cw9MuDLL0Rk3bEWllygZwkTy+xn3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713957814; c=relaxed/simple; bh=jO1+xmcyT5I9v4tZVZ1d96pbFPmBoJZzFcDtl1zowAU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aFlea4DpN12oW/drNwKz3Oni48k2ZOUo1CCDo1s62l+5uwX2O2SwipTRzpQ3gYVCZnIoBg7TIsldVLXzN8LED/JGzNdgHUhEc97kcl1+MFP5GCpCU7n+n9OteoeD34+TbPTgUTp9MJIXAC+OICsE8XSPn/6s3+RNqKDqEsshDWk= 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=ULMeqJtG; arc=none smtp.client-ip=209.85.128.175 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 Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-617e42a3f94so73682017b3.2 for ; Wed, 24 Apr 2024 04:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713957812; x=1714562612; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ln9+pg397axOqdZ8donOOoy2lTHgumZvva3u8wpOyis=; b=ULMeqJtGGk8VtJdWNpblq5XHhxwlHRSxkvm9vTS14PXWx0aDNlx1yvPv0+GKtYAe1L OkK/bKR8Xio/TZbXLDPug643BFq3lyWyNXkfiTp5t2kZP/ulS5inDET5ubv00bOAeuYr hyJEpPQKem+3gupTwXAkqs9jk1QhnWz9BNISy9RDsrAEhveAQi80gTUtyxAKPHtp3xiB bS9kDaNpdL15NOPwaUuXmrNZhggS2LTK3wyKUXFcgTnG5Y+hHUGRTMMQjodZohyZymBZ w2FZeiKruxaS4jf59XIvI0CeTmW1yrfp9xFN5oV4jKlmMC1Ox9lD7skVZtYQRzJQqwp7 k6bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713957812; x=1714562612; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ln9+pg397axOqdZ8donOOoy2lTHgumZvva3u8wpOyis=; b=dedsMA8HcyRqHM9PIfMPELWFcT8OfqlO1TNEw7ktMtYPoD4Nc177TLM/djRjHbo8cn lk8INVp5mKB5QCgmwGi5rWehPybOJQpklJ1enK+TSxlu+kf7Y2Aufh88L4wS3lV7mykP jfHQq2o8cQ/NsCoPhOMEr6npS8Lb5k0BjuMfutCIgq60TGSOcM42waifzVNXGO9liICe rkXoMbEVx6rm/11W0LWMxG2t9BvLfYq81gwu6eohry/DmYXZrP0QZzwcgLfjO9Sfv5Ee aqHdB/jiwmvcDPbclwJfq1m75AQUxjTyAYhcUO1vdrf87xmXgTWew38r3wgV965trQ63 C9sQ== X-Forwarded-Encrypted: i=1; AJvYcCUhKd5mMgMLv9vhRfRWb+7A3+bz7nrJ/d7FejKTfSL05QR8pM/RKkAA2nMHzzkEnz1F6tF+ijOArCviOtP4sIQ0bR6fNeIA8UVeBLXs X-Gm-Message-State: AOJu0Yy13npDDFVWqMC6INQokwGWYXhDw2eVqZOIbl4QkwQI/q59J0HF Md+00AHEQjbgUhyfhrPtQh4ogedeH1kLYa8mceyAT6FzkLMxIpfNBsJGnseP+ysxvIqMV5jkrfM fARamQwbgU+sBPTW/LtnCrHRaMQKIvpB2WM5ajg== X-Received: by 2002:a25:6841:0:b0:ddd:696a:8656 with SMTP id d62-20020a256841000000b00ddd696a8656mr2219684ybc.41.1713957812276; Wed, 24 Apr 2024 04:23:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240424101503.635364-1-quic_tengfan@quicinc.com> <20240424101503.635364-4-quic_tengfan@quicinc.com> In-Reply-To: <20240424101503.635364-4-quic_tengfan@quicinc.com> From: Dmitry Baryshkov Date: Wed, 24 Apr 2024 14:23:21 +0300 Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: qcom: sm4450: Supply clock from cpufreq node to CPUs To: Tengfei Fan Cc: rafael@kernel.org, viresh.kumar@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, manivannan.sadhasivam@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 24 Apr 2024 at 13:17, Tengfei Fan wrote: > > Qualcomm platforms making use of CPUFreq HW Engine (EPSS/OSM) supply > clocks to the CPU cores. But this relationship is not represented in DTS > so far. > > So let's make cpufreq node as the clock provider and CPU nodes as the > consumers. The clock index for each CPU node is based on the frequency > domain index. Is there any reason why this is not a part of the previous patch? > > Signed-off-by: Tengfei Fan > --- > arch/arm64/boot/dts/qcom/sm4450.dtsi | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm4450.dtsi b/arch/arm64/boot/dts/qcom/sm4450.dtsi > index 92badfd5b0e1..8d75c4f9731c 100644 > --- a/arch/arm64/boot/dts/qcom/sm4450.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm4450.dtsi > @@ -47,6 +47,7 @@ CPU0: cpu@0 { > device_type = "cpu"; > compatible = "arm,cortex-a55"; > reg = <0x0 0x0>; > + clocks = <&cpufreq_hw 0>; > enable-method = "psci"; > next-level-cache = <&L2_0>; > power-domains = <&CPU_PD0>; > @@ -72,6 +73,7 @@ CPU1: cpu@100 { > device_type = "cpu"; > compatible = "arm,cortex-a55"; > reg = <0x0 0x100>; > + clocks = <&cpufreq_hw 0>; > enable-method = "psci"; > next-level-cache = <&L2_100>; > power-domains = <&CPU_PD0>; > @@ -91,6 +93,7 @@ CPU2: cpu@200 { > device_type = "cpu"; > compatible = "arm,cortex-a55"; > reg = <0x0 0x200>; > + clocks = <&cpufreq_hw 0>; > enable-method = "psci"; > next-level-cache = <&L2_200>; > power-domains = <&CPU_PD0>; > @@ -110,6 +113,7 @@ CPU3: cpu@300 { > device_type = "cpu"; > compatible = "arm,cortex-a55"; > reg = <0x0 0x300>; > + clocks = <&cpufreq_hw 0>; > enable-method = "psci"; > next-level-cache = <&L2_300>; > power-domains = <&CPU_PD0>; > @@ -129,6 +133,7 @@ CPU4: cpu@400 { > device_type = "cpu"; > compatible = "arm,cortex-a55"; > reg = <0x0 0x400>; > + clocks = <&cpufreq_hw 0>; > enable-method = "psci"; > next-level-cache = <&L2_400>; > power-domains = <&CPU_PD0>; > @@ -148,6 +153,7 @@ CPU5: cpu@500 { > device_type = "cpu"; > compatible = "arm,cortex-a55"; > reg = <0x0 0x500>; > + clocks = <&cpufreq_hw 0>; > enable-method = "psci"; > next-level-cache = <&L2_500>; > power-domains = <&CPU_PD0>; > @@ -167,6 +173,7 @@ CPU6: cpu@600 { > device_type = "cpu"; > compatible = "arm,cortex-a78"; > reg = <0x0 0x600>; > + clocks = <&cpufreq_hw 1>; > enable-method = "psci"; > next-level-cache = <&L2_600>; > power-domains = <&CPU_PD0>; > @@ -186,6 +193,7 @@ CPU7: cpu@700 { > device_type = "cpu"; > compatible = "arm,cortex-a78"; > reg = <0x0 0x700>; > + clocks = <&cpufreq_hw 1>; > enable-method = "psci"; > next-level-cache = <&L2_700>; > power-domains = <&CPU_PD0>; > -- > 2.25.1 > > -- With best wishes Dmitry