From patchwork Wed Feb 15 07:03:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 57405 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp43822wrn; Tue, 14 Feb 2023 23:06:43 -0800 (PST) X-Google-Smtp-Source: AK7set9AFqHkJgZixD7pPdlNbZQ4araC9SlzKxe5DY3xGDTX+OHp8XT0SoA2wWW8tGUQCDRISCCW X-Received: by 2002:a17:906:868a:b0:87f:89f2:c012 with SMTP id g10-20020a170906868a00b0087f89f2c012mr1210530ejx.24.1676444803707; Tue, 14 Feb 2023 23:06:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676444803; cv=none; d=google.com; s=arc-20160816; b=SvPRGsrTevqVXdWjXFwSeyVPhrEhTZOV6E+5lgqAUV1snetg9LzqbV8sBBxIhqwQDY wkLfOyzh4TWbRllTO+4OYCNdiInODaP+yuyRCg7WHp9qOk7knV/w9tuaNI4Kh2d5yVNQ djCHCG+yTO9PgMpRuRpvod1oXPAs6wA35Zy+pfnP3xJPgIDrVXwlOY8++nfyqmu4Cfh5 Xy8D0iDRSNCO5jlmoWU1YOoQTRJIxH4oeaLMGI9U1/J6zTxxQkVSxbQFoH8knmV44J27 AK3XSt6svo5V5Oglt7VCnilOCMflAzqYjP8GaCPu4ycGD5OYKzbB9nB500fnIrCL5nY2 R6/A== 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=iLerwrwmNfdynSXWopegSimuZHzpOIcHKtk78GRdX8o=; b=OMLP6v4PjulXAn4rCg6wVFbibxOt8dRwVOuVaY45KZUHcOg3P+Hl/D2QigxieE3Yoj uN/18UA4vs0jo+dpnkK/Hb5dbd2y8AOqXn6yYTWugtuXdBmF16PzfenfgMS1SxzWlfHQ CNBSVxLDENDDFO12lNTgi3l+tRioVBA0IGsMcgp/5mMp4o4AMqMGX+/93T+zLZFBn/Si N1UdZ2mgx7JzqpywE2R88owtUQbbjEXjInUUv4u8+KFaK07ih9OP6ohAHAyvJFI74ewi WjPbIgXTmxQMJNhrcTaQDKZmKB7Xt2rNRqTha3SZMMg02rDWt7fqAIr3SrnvSy+aMt5s mWjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CDD6hhgz; 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 i25-20020a50fc19000000b004acd46cc71esi6316830edr.131.2023.02.14.23.06.18; Tue, 14 Feb 2023 23:06:43 -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=CDD6hhgz; 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 S233682AbjBOHFR (ORCPT + 99 others); Wed, 15 Feb 2023 02:05:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233678AbjBOHEr (ORCPT ); Wed, 15 Feb 2023 02:04:47 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC0E3609C for ; Tue, 14 Feb 2023 23:04:32 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id k13so19451546plg.0 for ; Tue, 14 Feb 2023 23:04:32 -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=iLerwrwmNfdynSXWopegSimuZHzpOIcHKtk78GRdX8o=; b=CDD6hhgzG+k4l9BH2U6Z67LL3lVoDj57tdvq4TaY1FnG0jSzd6HtRTeY5XpvYX1Pgw G9f1TVzMP+OeA+QuZK0appRi26qZQfeVN7OECs2QQtX4EmNfx1QGnJoH2V+u4H61Q9ks M8xx6pOna6EfEcBzzDTWEzNjmvfwvhArrMfRldfCdRn78OwsKPJDNlKdD+CqAq9cz7Jt 81EhVVGq00yG3tDdUd7pLCtHjHovZArsUA2Wrq8x25Z3t5roQxvo7fpIxaZz5wFdvPwC OnqYra9xF9s0joi+zLDI4TXD8fdiSuh/bUTHSrjvyH1gSXos89xMfUAS6SFnIfciwa3b rnVQ== 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=iLerwrwmNfdynSXWopegSimuZHzpOIcHKtk78GRdX8o=; b=Rr8lp7zbMK+qZ8ldHSnSysw63Um4qDTdozS+iRnyqQ5SR0t6yf8uJ99neXwY22izos +65m50lhTle46NYLbE9cUpEF3iSaRsUmr7SWjl/vXoXD2lBDHPuJz4JDDflk4qAH0R8G h2TjVXExlkO3A/EjOC4wJyMgqDJZdQJ/xEXWL2RvS4I6H83cZ15StB+/TaFn7j8io9Qs Rje/lPxwuxK9Sb429khs5HuqjiiHsoTK20yyjkLbpD5cc4018jfs2Khsldqo8W7iavpk HRy8fUyJNkDdQv6jrk4ClC02yBVWg0KlkbGbAZ2VOQQQMkWiW5NUuPPepd8yWsbrDsNA wW/A== X-Gm-Message-State: AO0yUKVSZln6JtLn2EjBKwPtgV6NlRhK7HzoA5iVbH1rcNqs//qqpStW QJfEyMhSVg+qI6U44mWwRnze X-Received: by 2002:a17:902:ea06:b0:19a:8680:ba87 with SMTP id s6-20020a170902ea0600b0019a8680ba87mr1562863plg.11.1676444672288; Tue, 14 Feb 2023 23:04:32 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 23:04:31 -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 05/12] arm64: dts: qcom: sm8250: Supply clock from cpufreq node to CPUs Date: Wed, 15 Feb 2023 12:33:53 +0530 Message-Id: <20230215070400.5901-6-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?1757879786400547746?= X-GMAIL-MSGID: =?utf-8?q?1757879786400547746?= 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/sm8250.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 2f0e460acccd..44c8851178eb 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -97,6 +97,7 @@ CPU0: cpu@0 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x0>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -127,6 +128,7 @@ CPU1: cpu@100 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x100>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -151,6 +153,7 @@ CPU2: cpu@200 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x200>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -175,6 +178,7 @@ CPU3: cpu@300 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x300>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -199,6 +203,7 @@ CPU4: cpu@400 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x400>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <379>; @@ -223,6 +228,7 @@ CPU5: cpu@500 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x500>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <379>; @@ -248,6 +254,7 @@ CPU6: cpu@600 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x600>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <379>; @@ -272,6 +279,7 @@ CPU7: cpu@700 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x700>; + clocks = <&cpufreq_hw 2>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <444>; @@ -5481,6 +5489,7 @@ cpufreq_hw: cpufreq@18591000 { ; interrupt-names = "dcvsh-irq-0", "dcvsh-irq-1", "dcvsh-irq-2"; #freq-domain-cells = <1>; + #clock-cells = <1>; }; };