From patchwork Wed Feb 15 06:55:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 57400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp40612wrn; Tue, 14 Feb 2023 22:58:28 -0800 (PST) X-Google-Smtp-Source: AK7set/3qViCyH65AMb5tctuCLE/oaPX2kYSZNuAykGtGY1JVJHZR0vhfq7S4aBed90pTljKB39u X-Received: by 2002:a17:907:216a:b0:87b:d409:f087 with SMTP id rl10-20020a170907216a00b0087bd409f087mr1175528ejb.21.1676444307914; Tue, 14 Feb 2023 22:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676444307; cv=none; d=google.com; s=arc-20160816; b=hvuIf50TYvcXjK3puFdb7ak7qf7yv2QWSAcyIZ/cF3sx1HThtPgnwBkl+5fjwiN7oe 99nY5aM4p6ExGmdtFytMwZGn5bRlDqTnvlgFOAil9QJTrzmQMZ6RBOncdFCkGfcjTJiy lrIL5seYudoUHNtjducam/De+AQ3Ry3FfLdt0B5xsVIKK2gomQAjF5khMJno4xmtYfEP h8R6NmdBjDIdtcZCTJ9FQ1Lzres4qRNRA+mpkkdO7Kng8q+S8ikh4v1wwVVCzufLHg6j mc7BzBGSVbs209l6kRqAlJFBDv4U9MEI2aiV/IgPzgj6bYjx3O2Gj/3oth+e9I5ORVfu esNQ== 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=jtvgID8mNLGj3X1P+nHdIDZyTZvvt/sYgRm2r4KBSpE=; b=wgcfSqaS9agwepgX9xQLUo1EjtdZMxYLEYtCch6jrFzIjFdHLo0YGHy+/mE525GIu9 Yu0hrsU194CzDYnOLRUyKJjgLl7u8YlmBqstapcyisWBTx1+L9zkz7kuCdn8ORVVxLB7 kMbfQSdvOmE3ZGu6PMBQseb5WoU3xvKcaYVD/9HYb9bLzhdNU8J3zQzKiBb9tGSGOY3x Zxmmq8pEjdr853ktZo4sDW4qJfyH8tGVl0J4YgTr7bvB30NN1oIN0TkpBJsq3vxhp9Xq awjhET+P122rhlSQLY0Hpy1yPpSYrUfhxuD7/z6FOFvc6+GzZZAinRNzbEf7xuzJLPm8 b+Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m2N9MO43; 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 p15-20020a170907910f00b008787b6dd91bsi18793166ejq.493.2023.02.14.22.58.04; Tue, 14 Feb 2023 22:58:27 -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=m2N9MO43; 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 S233606AbjBOG4s (ORCPT + 99 others); Wed, 15 Feb 2023 01:56:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233587AbjBOG4R (ORCPT ); Wed, 15 Feb 2023 01:56:17 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60B1136446 for ; Tue, 14 Feb 2023 22:55:58 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id n20-20020a17090aab9400b00229ca6a4636so1200743pjq.0 for ; Tue, 14 Feb 2023 22:55:58 -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=jtvgID8mNLGj3X1P+nHdIDZyTZvvt/sYgRm2r4KBSpE=; b=m2N9MO43T5Um3QbCE/3o4WJet5x1eZ2WuQljUcdT05Oghv+yKW5UW34N4DogJiD8k2 qu+4sfTlRlK3/1h8WcJnCsJhOWGPTUY7LkIpb53p+0Fg6xrSOXVjS1WcO9N29ImY8p+M 2r9S1UfHlre9vJHdBu3LRujFndnDB17sQv3ZpI8qxbrRWS+jRFrTE8WH98sp4qYbneZ/ Sb/XFbsIlCdShLK534C/P1y0ifCi3h5zmfCTZM4MzFAXTFWk0wV0yZXoJ0NMYrO1WZTX aM76a74G+WnOyeGA06D4q0EjCb2ne7Iuz3xl4i8/AO9mfzqlPdZ65J9ComncChGvMWVk LyWw== 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=jtvgID8mNLGj3X1P+nHdIDZyTZvvt/sYgRm2r4KBSpE=; b=PXMmlrnAHxWgzkOto+HUB4Q2rQFjfy82GlYZ83P75STKvHUU1C/DF0Dr1UMMMdiEgH 5+07OKS8sDxMn+8JeqtLjX2vNER55NWLPDWl5R1UyuTf58PCoVwFKjr1zCll5jWc/Yo8 4bYfBfOwsgZDBXFOYEUcNKNrRSS61FUCthXS9NvmfoZOebH77u50egfEBggqijFHvx0n MWgV0AaExIRAgLgj40xJwOQO7HdAASL/5qQgHJmEnTFEbJskrmJFKbIRzDdrPqaK2cEg 91qMte/m34/rVaok2YvAxB+bjeazH6RzNXh6tKnZ8lO5pGMiIhEiwxxPlWybKYU3TCzH 9jIA== X-Gm-Message-State: AO0yUKXVifmzvY1dLwtdqDfgT1OQgCE1O3qbw5ZJbjiV6EZEul4QH2kF 7T1J7yQuA7WKjd2E7e9vP1lK X-Received: by 2002:a05:6a20:2325:b0:bc:caea:6cb8 with SMTP id n37-20020a056a20232500b000bccaea6cb8mr720932pzc.8.1676444157890; Tue, 14 Feb 2023 22:55:57 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 22:55:57 -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 07/12] arm64: dts: qcom: sc7180: Supply clock from cpufreq node to CPUs Date: Wed, 15 Feb 2023 12:25:18 +0530 Message-Id: <20230215065520.5535-8-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?1757879266297605062?= X-GMAIL-MSGID: =?utf-8?q?1757879266297605062?= 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/sc7180.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index ebfa21e9ed8a..53f0076f20f6 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -76,6 +76,7 @@ CPU0: cpu@0 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x0>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 @@ -103,6 +104,7 @@ CPU1: cpu@100 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x100>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 @@ -126,6 +128,7 @@ CPU2: cpu@200 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x200>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 @@ -149,6 +152,7 @@ CPU3: cpu@300 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x300>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 @@ -172,6 +176,7 @@ CPU4: cpu@400 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x400>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 @@ -195,6 +200,7 @@ CPU5: cpu@500 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x500>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 @@ -218,6 +224,7 @@ CPU6: cpu@600 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x600>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 @@ -241,6 +248,7 @@ CPU7: cpu@700 { device_type = "cpu"; compatible = "qcom,kryo468"; reg = <0x0 0x700>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 @@ -3578,6 +3586,7 @@ cpufreq_hw: cpufreq@18323000 { clock-names = "xo", "alternate"; #freq-domain-cells = <1>; + #clock-cells = <1>; }; wifi: wifi@18800000 {