From patchwork Mon Aug 26 16:48:06 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: 172186 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4600623ily; Mon, 26 Aug 2019 09:48:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFiZZbptO8ymgRYPxurlxfhSeA7Yu0uC/HzZ+FzC023XHUynndHnZ4cpkCr78qK1Obl6N5 X-Received: by 2002:a17:902:5a1:: with SMTP id f30mr20371551plf.64.1566838103175; Mon, 26 Aug 2019 09:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566838103; cv=none; d=google.com; s=arc-20160816; b=nfjX9P+IH4mKTEvQ8Vx4oQ6ouVG5Mi64mO7W3Hlq2Aft4+aCwlXNaaQjta/99ZuyKG /CvrzoIc5MOAnc+RRyc+RN03lG9fEm9cheWrE59sEQ9iKb6Ub8HeR9gBDU13m3ieZ4T0 kMPtX/LU0sRG7zVAEVpXsPNu260JP66tAnNWyBlKB61Hsoy+RU/c2E29GwO2/xZdaTyl uv/1014wv5Z+TWefuIWGj0Mkelr1mwRMC+ualtHDbAVkyRbDA256wkd/HE0Yf4zAKgQo vvQ10ne9KWxgaD4IPQBi+Gik7zp0Ew998taQsPEINvLm3dFHUrxET0Y/Bj0tvGqo42Mp lvTw== 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=CwwDn1F3isDHLADadg552cZsZttuc4BOXuvwzE9t/LA=; b=e41/lOB/Tnb+LDrXM1mQ8mfkr4Jdf60drWqKVPsaCH28sU2fcdok/MY+iZCN/OtEl2 yYYfeP4moRV/SFJ4vOzW6R90jqHRCFbnrN4tpR/VsQWSrH2mdOAL9VwLlkgKV7UcXtPW ZQO0sHTl4+T0wOJ9vCa5bD0DPiw/blk3AJRrs00LKI+ArVNK2dHYqoHfFXNi2gfwP2Py R1qE6bTzsBH5+zA9TK4zKB59qvx4naFzbhWzpFUMHpa7v08eZRV4q4r4I11QxaPVULLa XgVJS64yUhTHgytQQmEC/NyHWExsk4+/UjbTZhTwabPXctAE9AMwfcCNIlPM+MMn086h x4cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TTHn8SMV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 y71si9431568pgd.271.2019.08.26.09.48.22; Mon, 26 Aug 2019 09:48:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=TTHn8SMV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1733217AbfHZQsS (ORCPT + 8 others); Mon, 26 Aug 2019 12:48:18 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33046 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733205AbfHZQsQ (ORCPT ); Mon, 26 Aug 2019 12:48:16 -0400 Received: by mail-wm1-f67.google.com with SMTP id p77so431024wme.0 for ; Mon, 26 Aug 2019 09:48:14 -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=CwwDn1F3isDHLADadg552cZsZttuc4BOXuvwzE9t/LA=; b=TTHn8SMVljztzBzglxHx98EIyz6v1F8+VDebWt/WipPeUwGjbJshFubBgEsd+OKiUl epgN2CoPgMuJJvk6zp1VMRXJgjs5x17jpOBS3cxricda51pnALca4j3Ai0OrlB3DCLJB thNGGnRCFu91t/jkHmHGfs2hDQusecj5fI4zd7Ce6XQJ9ZDOFJCshGDcfdJuLEjN9c2z 3O9UdukcFw8G+mnUsunt4yPiOXV2nPNDHiFqiGEXMQr2E13o/cBqMuMmchfC5ZDVm7bX JRLLhJyz1R1nn/yl4CVHelQSi/cv+6mUFTSdfUD/JkjGkExo8dNDRGadRdcIPBjq2d0N R4bQ== 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=CwwDn1F3isDHLADadg552cZsZttuc4BOXuvwzE9t/LA=; b=jTGWP3lbPd/o/ih0DgPklCaCpFxoDCzMCjhtxwarB1hDySwXXYT4o3Ze5vtEfWUxMI s9+/HH7mdiCiK5yIZWTPPbbUTnS7souISX5Vyn0Y75KkRspnxkEZYkNVqBbymYUKxQoM E4MI8ICCLvVFqjeZAM/o0h1nGylYI5RVY0J6q8XeKNIdfWhQRDefy63PGDJjQM1NB9zk A9rmFc22PNmsVub1yijRgSUvIYxU0DYVI53v1BZIWlxDnUv2hFA+HCGMJyXGFb/C6otz cn/+aEV8tQyn21ejUHQReNpSJiSj4jd9unRD1ku+oE3QuQWt3OcptwRpb9EXOalUURrS tJdQ== X-Gm-Message-State: APjAAAVhc5bT70rCuROyTO3d39Gl9IyHxtJNdy3rOjBwwMkUbxR2wvLc LmmfwaL/LaaW/g0btioLNujquw== X-Received: by 2002:a7b:c775:: with SMTP id x21mr23809437wmk.90.1566838094268; Mon, 26 Aug 2019 09:48:14 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:13 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: qcom: qcs404: Add DVFS support Date: Mon, 26 Aug 2019 18:48:06 +0200 Message-Id: <20190826164807.7028-5-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Support dynamic voltage and frequency scaling on qcs404. CPUFreq will soon be superseded 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 34360b2d3e0d..e425e54e1af9 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"; From patchwork Mon Aug 26 16:48:07 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: 172183 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4600528ily; Mon, 26 Aug 2019 09:48:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv3zcidwKTa45gTgR2K43w5K5kmtgDjcw8WWu6MJWwvh/SmgC6Z1hS/5HikhdgpQcKTENE X-Received: by 2002:a65:68c9:: with SMTP id k9mr16125876pgt.28.1566838099103; Mon, 26 Aug 2019 09:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566838099; cv=none; d=google.com; s=arc-20160816; b=uHaze1irJdE6cAm1IochSL9UGQQ7hrzpBBTf1ZIbg9T2zlsRXqgULUFF7rfbbCmYvk 89MFAc8TJy9BV1TPbmrL3WavIQ60Dp2LL4eiBnax5lAwiG/Ga7bl9ZoDi6LTO4Fo3qQ6 kg7HH0lErEw+kde+yiYOep7/G7VYroPX9dAlpKQQ3s1y/GPGH/iLipFmw+6pAxsiHR6X 2nHEyU7CoRzXNtlUWOn1ErpB0ztELPtGWqunX5C/4lT/TVHTGYeS6n5o1CeeIQ3rbSq1 JPG8M2RsNjmFj05VIhF4o+acRfK3zuC7Gi1LU0HIAFIXxgJsSdzHgjuOxAa36UZDeZ6n Ju3Q== 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=SRhxgEvWQVs1ea73JEbbvWRCETzD6iEjJpSYclHjhyc=; b=p6FSligy+3gMANzDfkZqdR8vCLipUZMJgDPjAoV0fH9nPMDilbuZRV4se8FOXN7DEK TvBChMsOTfKxalI8dxoF8e7pI0+UzmAbasExK1+qL8e0IAo294+gVEQ37iAoABzWxSAK 7NxiBDmUb7rLfMcxXK0eNexpswWi0vVIJJvFSGwilgHSWBr7Lk8XtcrY1RPZ3Oxwdhzr wsRgsHX8U+nCAYQBydSmN3dMsKBbtD2/3UX6zey+oxLwZutjRJiFVUhlDsK2jlAbwzfQ CaUnz6zpdZVSoVc/LC5mqD31r52x1vx9zFvCJtuYaK8RjIFMMdTFx1aVoL/1TE6iEzLI RPeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="X/3Va+4b"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 x12si9680299pgq.220.2019.08.26.09.48.18; Mon, 26 Aug 2019 09:48:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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="X/3Va+4b"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1733237AbfHZQsS (ORCPT + 8 others); Mon, 26 Aug 2019 12:48:18 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39432 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733217AbfHZQsR (ORCPT ); Mon, 26 Aug 2019 12:48:17 -0400 Received: by mail-wr1-f68.google.com with SMTP id t16so16003770wra.6 for ; Mon, 26 Aug 2019 09:48:15 -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=SRhxgEvWQVs1ea73JEbbvWRCETzD6iEjJpSYclHjhyc=; b=X/3Va+4bMjUIzurD6wGQMAOoEEujrfWU7PM6u7RIEiGvFhdjn0OVNT0AbPtGenMdH+ /i6p/TEo31Krgq+peIUPumD7Rf+13msz02Mt8RIiW/BnWsaEVqdq2vWyCk3RlkEIzE1K OH0noWzpBpa9N/ULhXR8pvPgjaRPQJ+sFX4C5aQDxxASww73c6T1aYF1ffJsA09vmEDq 8HUVNU3BeqIDAw+IjY/OaWIJd+a+ZNKWEiQ4+/NzQSE5p/Uq/QRsXhEA5P7p9Joq8BKT Boya1nfoTJRq4isvaIpibtFroNjS41KPMsOXA5vot1Al3wAVLXF+UvNrEVoJC8tIwWlK QuUQ== 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=SRhxgEvWQVs1ea73JEbbvWRCETzD6iEjJpSYclHjhyc=; b=ujVTDEzfA1z3zKaQTPK4S7c4h5cRgq9AF8G9Iskab3ZsSVSLZIrN/SgdRWgusm2qd6 OreKpRsvy/L0oQlOsilpRCQMjQuSTIxHtgaRTnWf4p1FHdHNWdISooaO3DhMqwq4myqd PjrADVzBb0cvXPAPyuO7D0MSBv0Mq3+0rVrC6EhEalxGgxRowFjampfx/EWD/O9IwT0e cnxDIX5CkwfX5KH1fWywJzPVeBNI8EPFiP6/IFnoqi/QQdQaD2eeuIQKkcAfUsQxeujU fM+fKgXv2Sgs1SzJQf+Kbe8+8l+05imEN33DKAGx58/WioU4NtQ6WFIdK4BCu4rubnrt rAAQ== X-Gm-Message-State: APjAAAW2zIx8rezsxdTq8x9ge5dGLzL4q8s1QoVkV9UXhzV1MpVoozOJ dlY3eefJ0lzzE0/Ps5yEomeHig== X-Received: by 2002:adf:9e09:: with SMTP id u9mr23619223wre.169.1566838095223; Mon, 26 Aug 2019 09:48:15 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:14 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] arm64: defconfig: Enable HFPLL Date: Mon, 26 Aug 2019 18:48:07 +0200 Message-Id: <20190826164807.7028-6-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The high frequency pll is required on compatible Qualcomm SoCs to support the CPU frequency scaling feature. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) -- 2.22.0 diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 74f82901aa2d..af13602c3987 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -703,6 +703,7 @@ CONFIG_MSM_GCC_8998=y CONFIG_QCS_GCC_404=y CONFIG_SDM_GCC_845=y CONFIG_SM_GCC_8150=y +CONFIG_QCOM_HFPLL=y CONFIG_HWSPINLOCK=y CONFIG_HWSPINLOCK_QCOM=y CONFIG_ARM_MHU=y