From patchwork Wed Feb 15 06:55:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 57394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp40108wrn; Tue, 14 Feb 2023 22:56:50 -0800 (PST) X-Google-Smtp-Source: AK7set8mTI31OmOIjX/JgIVLbpXWcYROEskVz0FTYYVzVyjuR+thqEKwWXkiHrnx2PMaX3YLbTw3 X-Received: by 2002:a17:906:ca4e:b0:89c:d072:e33e with SMTP id jx14-20020a170906ca4e00b0089cd072e33emr1386805ejb.49.1676444210504; Tue, 14 Feb 2023 22:56:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676444210; cv=none; d=google.com; s=arc-20160816; b=Sy3TEcDKxyW0P4p8pjMpbt1m7oFuOh/DLGjy8Wiru07QSA8KneFLGu63WPhfxH4dTO 6O4yzzlnONwc+IhBzE+JbgPoeCuoRtXIn+q8noG5h4yY/a+B0RMulQFfg/VafxemGZcc cQz7lHSXik8V/939eNvihopd0EV7Jv/8tjUr4yXiTCEKGEwx/vHvMjWuu8awgjgot3Ap ta20gLEArupDxvGXa3gHtRJ0bRnPxByvo4tug5RTHRG8WLCVmns5j2hOxlbRMGGZFvT5 Byo2LhhB7/0pyDkADsXmEPz9vOtoHDwLfuJA0z1VVDrUrM8uyZQ0UfrxWzAMw9gj62X2 ELxw== 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=TRK1e1bBAwexX53o+cDSJezWbQwruRqnE48E6Hj9hPo=; b=YbJ9p5HF+7ZlJ29goxa+P3rt9IKRSkhfByAJ33FZwFhWsTpZLuDCFy7min5R/YlYYT d4irHQ+soQK/YzU2TMg+T3vri5cG+XzJ/wMOvEJwi9F5coGTqgMfi29iJ8TNuR4NSKPz 915tNv32IEWWiz3wynU0NCMLjXNMTkrnJMWU9fHXebAv01yGZxde0etZ+BiCr5ZPOipx OvCLwB90HzKcavpWraHnNusbKulC1btz79xcFzqrwFNvkwsIxZFz9jhIYqTSmo9t1XxV cahR2W4UdmPdZKxFIpR6U2D+w+bumy1/o8NqbulidlSHflLYieQL3i0XEg7YQjCrAqc2 a+9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KwsSTjhZ; 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 x24-20020aa7d6d8000000b004acbdad2a3asi11323678edr.607.2023.02.14.22.56.26; Tue, 14 Feb 2023 22:56:50 -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=KwsSTjhZ; 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 S233565AbjBOGzm (ORCPT + 99 others); Wed, 15 Feb 2023 01:55:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233361AbjBOGzg (ORCPT ); Wed, 15 Feb 2023 01:55:36 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6552F34F79 for ; Tue, 14 Feb 2023 22:55:35 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id bt4-20020a17090af00400b002341621377cso1167739pjb.2 for ; Tue, 14 Feb 2023 22:55:35 -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=TRK1e1bBAwexX53o+cDSJezWbQwruRqnE48E6Hj9hPo=; b=KwsSTjhZm1JZmx1whps8mciiWBJlrx1ezk8vVUWwLb1Vgkis9AhVRIMgb/HeaAZa1Z 6mPfpPROXrsA2MBvIQ5VL5PCxAxAVA+uwopAYtC/CsYAqeDAfWHcF/nKjcUTwQ5LJ79Q /opk4ljz/Nyp1VeKn+DoRS/j5+4meUFAtvfEP9pF8cZYN36ONXQgIUjYhLHhKXXGJlqh /EyO0C43sQfS3P2RO2otoft9Gq/63Q+zKgkc66NOHiQEdlkAFXDgGtE1X95vHDQT8H70 AqJ83KmVryrpHcjbJ6LHrRSD/iy1EHHnac3BogSKuq1bO8HkidlShDnlIRhvnTXpGX5T N5jA== 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=TRK1e1bBAwexX53o+cDSJezWbQwruRqnE48E6Hj9hPo=; b=6NEHGzyFBwOss/HfaJZbUjTtfIAkvqyIEPOAxpKDvDyiaTyAAUtytZkiZjnL5yV5MX awR1u8YvXfiubBxyyeSbBlxZmP4152ZBc0ikvEOmdtq+WKWETHKOHGyTU8SFudQJ1TSI z14JSZId/yHZqoKkHfgZz3aXO/wcwlP6T0RZGNCL8sSEOBjPgE8rWVPECklojFbsNsAF O6HblVSRvR0zW+TCDs5hoMCpj1n9rmjDb0HFH2fPjtq/2UK7tjSlJRc8spRY5DRD/69M d4G9L700Rle5SEE+VuwXEHZSkfM3HTaym5qsVQx6vCYtPY2RMnEjwQOsDSb0phv8+8NY cHWQ== X-Gm-Message-State: AO0yUKWoMjyYU70tKoNpiRQ62hfIFUzOIOrSBcfAnL4amfZOAGmQY21k UjuljEr3km22knI1yUgvprnTDWXYlVQJzyY= X-Received: by 2002:a17:902:e80f:b0:196:40ff:97b5 with SMTP id u15-20020a170902e80f00b0019640ff97b5mr1651946plg.40.1676444134842; Tue, 14 Feb 2023 22:55:34 -0800 (PST) Received: from localhost.localdomain ([117.217.179.87]) by smtp.gmail.com with ESMTPSA id d23-20020a170902b71700b001933b4b1a49sm10276870pls.183.2023.02.14.22.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 22:55:34 -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: [PATCH 01/12] arm64: dts: qcom: sdm845: Supply clock from cpufreq node to CPUs Date: Wed, 15 Feb 2023 12:25:12 +0530 Message-Id: <20230215065520.5535-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230215065520.5535-1-manivannan.sadhasivam@linaro.org> References: <20230215065520.5535-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=ham 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?1757879164643820839?= X-GMAIL-MSGID: =?utf-8?q?1757879164643820839?= 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 --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 479859bd8ab3..1d5e6ade8ae7 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -92,6 +92,7 @@ CPU0: cpu@0 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x0>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <611>; dynamic-power-coefficient = <290>; @@ -118,6 +119,7 @@ CPU1: cpu@100 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x100>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <611>; dynamic-power-coefficient = <290>; @@ -140,6 +142,7 @@ CPU2: cpu@200 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x200>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <611>; dynamic-power-coefficient = <290>; @@ -162,6 +165,7 @@ CPU3: cpu@300 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x300>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <611>; dynamic-power-coefficient = <290>; @@ -184,6 +188,7 @@ CPU4: cpu@400 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x400>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <442>; @@ -206,6 +211,7 @@ CPU5: cpu@500 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x500>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <442>; @@ -228,6 +234,7 @@ CPU6: cpu@600 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x600>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <442>; @@ -250,6 +257,7 @@ CPU7: cpu@700 { device_type = "cpu"; compatible = "qcom,kryo385"; reg = <0x0 0x700>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <442>; @@ -5232,6 +5240,7 @@ cpufreq_hw: cpufreq@17d43000 { clock-names = "xo", "alternate"; #freq-domain-cells = <1>; + #clock-cells = <1>; }; wifi: wifi@18800000 {