From patchwork Wed Jul 31 20:29:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 170234 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462720ile; Wed, 31 Jul 2019 13:30:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqylmNSzVp0h+FO1z/zesXQIEvhKZYtGch9blLIJ06nQTSvuX0l7ivKKRwYOY6rZK7RoY9wV X-Received: by 2002:a63:5945:: with SMTP id j5mr114844428pgm.452.1564605000196; Wed, 31 Jul 2019 13:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564605000; cv=none; d=google.com; s=arc-20160816; b=trGba73J29jtrS+Dgp2VOGR4+3+a2oBrDFCrPTp1aH1bTazMCrcgmLU5sgJOQUxrO/ yYkfbUNSQ0UJf8BbWyfQduUwDDVS96y+5bs7hNNguvBDwaKnlBoJztCr4T1Y3nTgshDE rpez4dn7CSc14wU3FGJB/OBL3WtQwqKmCP3T8FcqDssJtMTBLR6ptDdh4FKI5g9dJ/lm G8+6wZ16hWZ7CX8FcKYgAl2VkOSDIUQqdrafJwfUZG+cnH/fNNWtIVKYa6ZRseQj3pAH 7OjIBU/eDNDgqSm1nOd35n00EHg6JiQmc5RVAb9gyLEDHC0EB26zRCI/T91vBGRTzkMA vnEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vLHpcezXZ0AucQ4kaXez+YbIiKuQyU24LjFhyj/OAXk=; b=o3dnDxUjN0Enx2o6HJmBlsfNGRn2puDidMvKBFxdFXX2sijRqgs0sGu+dEjCgoDf0U jwYe+DYnA/6+UPU3ALlHQrveDZwNZSCGQzdbWyWC5QO3z4XZAOspujmZ13sHppib9dSr oDBWoRCoEBjOv0ef6C9EceEDQo7Wuon3oWoMA7KxgkqS6thsMcK02jm7cotZwU1cTgmY 2gX3p1Q9ZFM3gNKhQLRl/mubPYQigagqsnizpiDcjLevnO5dbnwzgG32f+lIllRq1EpF h2GwEdsmFiI7TVnYF/7H/4KvyW1JDfs6fNDv60g6jA8eqi6wpXZavoSrkMU6F8A2/oP5 DBmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQCRVeZX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a63si31291981pla.348.2019.07.31.13.29.59; Wed, 31 Jul 2019 13:30:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQCRVeZX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1730809AbfGaU37 (ORCPT + 16 others); Wed, 31 Jul 2019 16:29:59 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38671 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730797AbfGaU36 (ORCPT ); Wed, 31 Jul 2019 16:29:58 -0400 Received: by mail-wr1-f65.google.com with SMTP id g17so71076649wrr.5 for ; Wed, 31 Jul 2019 13:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vLHpcezXZ0AucQ4kaXez+YbIiKuQyU24LjFhyj/OAXk=; b=eQCRVeZXchD4s8hmdDQVCG2ogRRuvj7EZRHIJo8ykw1oW4wZjt5+SSYbjFeaaDGZrn 0xucuH8wa2pRXz8qrOuZd277mjyUL3L5ZPsNLTCKCbtjGyssAb8BsI6U8vYAbloKvvQq BzPMZsouAsHmIoBCrcs8qJ+ORAVV59dnHr7FHlAmO+BlwJ9bU47J59hcapNE/S59FV/D PM7skxmpOrJWnu8rn5hPnCsbol0kRPf0yNonBqqOUvKl8Z92HutL3oW4KrUxJDyoMWhE 7PJwcZRXOfMvIyFy8KqnbU2v9/W1kKg0FqfYYX3XUt+aWsEeSnSRKoWHDibpSE9niNy0 PnbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vLHpcezXZ0AucQ4kaXez+YbIiKuQyU24LjFhyj/OAXk=; b=obTKYGncdReZVyP3N3cnX9yciO7GUqZKiGqFBKsaw0hb51IpiKtusBwiNn2hCb7jDB /c+IFpbfU9JxhMWCQwFp3Q/NOAbR5mbnD6aWrnAqWYAO7iQ3ZJK3SMOkkQU4wfder+V5 Gthokbfi/tNnF2KggOhJTHvHOsJmDDpw733qfeEYM4jj5V2hL9WiQLq/VHjz6jgAeOdu NVKHKrQVauXu+4SPgik59Adrmbw6CkeRvxzQGe7PETdyEqG7zM4zG3e2UWfDfcbBd726 9yqJsvu0YaxI2zAR8uLYf7kcrqo3xxk5Q2WRI5KOxq7zzC8DFsb2QP+SMWKa0WIea14u KQRg== X-Gm-Message-State: APjAAAW1Gx5V8ev/m3GqZdLiTIRGOa5hJd5fWJYqe/oadAjy3+BPesHi elMi3RjonyW+PsX6y6GWXGRq1g== X-Received: by 2002:a05:6000:187:: with SMTP id p7mr12658657wrx.189.1564604996721; Wed, 31 Jul 2019 13:29:56 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:56 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 12/13] arm64: dts: qcom: qcs404: Add DVFS support Date: Wed, 31 Jul 2019 22:29:28 +0200 Message-Id: <20190731202929.16443-13-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Support dynamic voltage and frequency scaling on qcs404. CPUFreq will soon be superseeded by Core Power Reduction (CPR, a form of Adaptive Voltage Scaling found on some Qualcomm SoCs like the qcs404). Due to the CPR upstreaming already being in progress - and some commits already merged - the following commit will need to be reverted to enable CPUFreq support Author: Jorge Ramirez-Ortiz Date: Thu Jul 25 12:41:36 2019 +0200 cpufreq: Add qcs404 to cpufreq-dt-platdev blacklist Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) -- 2.22.0 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 5b7d6258e9bf..8cce4a224de2 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -36,6 +36,10 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; + }; CPU1: cpu@101 { @@ -46,6 +50,9 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; }; CPU2: cpu@102 { @@ -56,6 +63,9 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; }; CPU3: cpu@103 { @@ -66,6 +76,9 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; }; L2_0: l2-cache { @@ -88,6 +101,24 @@ }; }; + cpu_opp_table: cpu-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + opp-microvolt = <1224000 1224000 1224000>; + }; + opp-1248000000 { + opp-hz = /bits/ 64 <1248000000>; + opp-microvolt = <1288000 1288000 1288000>; + }; + opp-1401600000 { + opp-hz = /bits/ 64 <1401600000>; + opp-microvolt = <1384000 1384000 1384000>; + }; + }; + firmware { scm: scm { compatible = "qcom,scm-qcs404", "qcom,scm";