From patchwork Wed Feb 15 07:03:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 57412 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp44369wrn; Tue, 14 Feb 2023 23:08:10 -0800 (PST) X-Google-Smtp-Source: AK7set+LcFclNs79GixlfHyrsxanE5S4V4tr42sdacugXuq/+ncnbaj1uV1DOkMyJ0p5L2z+e/aq X-Received: by 2002:a05:6a20:5489:b0:be:d4d0:19e1 with SMTP id i9-20020a056a20548900b000bed4d019e1mr1055531pzk.51.1676444889811; Tue, 14 Feb 2023 23:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676444889; cv=none; d=google.com; s=arc-20160816; b=nfztrCd3qW3WHkHU3QtGfFcPbz80i0jm5O+yZzTYQb1eK8qihEzK0z5yRUN+o3ox+s 2SX4Ukl+xQMnWPpB+6nfFjSw5g4EyPJKqUUZ0iN0umKTDnOwa5CGi8BJnZGMj/8+CWba g0kruzBkUWGoCAtn/rDNC9oCQinrudiuixRq5UAW7KJu4PKJDLlcZx7fcZeeJsSmEXwb LySk2yFnvCm2D++LinQ9prIqBAhRnlDKiXhTcVqdWbphDMcsaL3ZiOSrwlENXu1D+YT6 ipex83RSPM79WMjs9EDAvunAZQm6IDNttS9IaTPkdHK2asvOo+eeu/58rXRytVvJHoVx 3oNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LHVr08cnTjJMehZboB/JWbeUqVs1oVn1lVODeozYst8=; b=f8A7INRBjuEdJTUoceBC29D8Q+cLhDnvr5136UE4svMidlp3SRUhcSn2roZJgip46v dzrW4CVOOPBEM2jYFEsQbi3Ebe+4xHb3bwhfb4XocDFR7CAllChCs2Xzw3iO6/GO6BjM ZQ/iEi0Fe2uNmNl7jsnxUd3aJAmeYMaaegf0H7UP7ii7JDtxiEEX/Qczy0FEPdFB+ivr JMvn9M27nElkuOYlVN2LUu84rwsB0IwCpWM0/bmO5pEP8HDQ/Wz4UpcW0aDWQ6oWoifM XsID1uKwy6mbbz0LHR7IUdASy9NuuePCKxx7cGSzt2U3Dg6nwqVMW2GhNBaOCE9+OOrl cTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V3YYbHbt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a63b509000000b004f1e0783073si16866917pge.537.2023.02.14.23.07.57; Tue, 14 Feb 2023 23:08:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V3YYbHbt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233709AbjBOHFX (ORCPT + 99 others); Wed, 15 Feb 2023 02:05:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233753AbjBOHE4 (ORCPT ); Wed, 15 Feb 2023 02:04:56 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC5663526A for ; Tue, 14 Feb 2023 23:04:36 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id fu4-20020a17090ad18400b002341fadc370so1192554pjb.1 for ; Tue, 14 Feb 2023 23:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LHVr08cnTjJMehZboB/JWbeUqVs1oVn1lVODeozYst8=; b=V3YYbHbtCDlii3ENqJOzqAykviuMJyzXsCZAiumNohLKBmLCWs8JPve2pj5RYqASXE d2K66/UR3/FzV4CjEV+ms++BDzoJ5tfNe4++iO/zn4oqgwRX0BsXZLTUchoQxUxnG6tw /AkJ+JeM3GkkbDyuNN4diG+I5xDDvnoaxN3lQfsf7Uj05ijiYMLv9cDn7QFaAuqWWEvd ypTDp5/3WTQXQg8gim3uncHV8yPKsG+Ga4gzYIpIbxbqo8Y/Agxw9MTdvhnvJc9ykW7n b+Boe5nWflRdQkHMh+1mqsPHM0lSBbCkpAn1nfyMd+TbAi3ZphtUhaqyaVyevJiYWzSG FI+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LHVr08cnTjJMehZboB/JWbeUqVs1oVn1lVODeozYst8=; b=TzspmS54Ga9cigVsrgmipCm5AR96DUNV3I7OF3/4lPN2ipMtU6pOObAoOVbxrdHSaA cNTavha0dYhyiocyvXKZNoTJJKemkFgWY8SCyLM95QUxmUxQNhKehWEX89wqr70HjFQX D1fv2W8ft4oVqCzibyKUBEn5LppTFYWLlp09lrF2kLDYlGUpmBy8S+FpM1s/L+5zjXDi ULk1q8Rll+iFwtnEoLjH6yVxPST08tDFjVwsPGpdO7tAXN/pKyhkv9O3svPFWwpafoE/ +GhibNHtYQvAWINJnMNvyqPsjJ04mZRLzsJoda6XD8Nmd3weZwOCdmhUOlSkGAWL9Hv5 SlwA== X-Gm-Message-State: AO0yUKWmL/D4mVSeauwg73sSd56LnoQUlnPxW5nGkx61KS01cipYFdvT jUxMrfXgS5dy+dIfHsMUYJ3+ X-Received: by 2002:a17:903:2344:b0:19a:b801:13e9 with SMTP id c4-20020a170903234400b0019ab80113e9mr1645926plh.19.1676444676086; Tue, 14 Feb 2023 23:04:36 -0800 (PST) Received: from localhost.localdomain ([117.217.179.87]) by smtp.gmail.com with ESMTPSA id e23-20020a63db17000000b004fb26a80875sm9953795pgg.22.2023.02.14.23.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 23:04:35 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, viresh.kumar@linaro.org, Manivannan Sadhasivam Subject: [RESEND PATCH 06/12] arm64: dts: qcom: qdu1000: Supply clock from cpufreq node to CPUs Date: Wed, 15 Feb 2023 12:33:54 +0530 Message-Id: <20230215070400.5901-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230215070400.5901-1-manivannan.sadhasivam@linaro.org> References: <20230215070400.5901-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757879876932538515?= X-GMAIL-MSGID: =?utf-8?q?1757879876932538515?= 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. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qdu1000.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi index f234159d2060..98a859ad5229 100644 --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi @@ -27,6 +27,7 @@ CPU0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a55"; reg = <0x0 0x0>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; power-domains = <&CPU_PD0>; power-domain-names = "psci"; @@ -45,6 +46,7 @@ CPU1: cpu@100 { device_type = "cpu"; compatible = "arm,cortex-a55"; reg = <0x0 0x100>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; power-domains = <&CPU_PD1>; power-domain-names = "psci"; @@ -60,6 +62,7 @@ CPU2: cpu@200 { device_type = "cpu"; compatible = "arm,cortex-a55"; reg = <0x0 0x200>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; power-domains = <&CPU_PD2>; power-domain-names = "psci"; @@ -75,6 +78,7 @@ CPU3: cpu@300 { device_type = "cpu"; compatible = "arm,cortex-a55"; reg = <0x0 0x300>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; power-domains = <&CPU_PD3>; power-domain-names = "psci"; @@ -1312,6 +1316,7 @@ cpufreq_hw: cpufreq@17d90000 { clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>; clock-names = "xo", "alternate"; #freq-domain-cells = <1>; + #clock-cells = <1>; }; gem_noc: interconnect@19100000 {