Received: by 10.223.176.5 with SMTP id f5csp624036wra; Wed, 7 Feb 2018 04:59:47 -0800 (PST) X-Google-Smtp-Source: AH8x225kQHSwadF8eJRAMXFQ4sDEuowvccZGylpmXUQ9rJL7YvV1ZlMowHUESEQRnfl78y9C+4k3 X-Received: by 10.99.178.30 with SMTP id x30mr4793170pge.31.1518008387438; Wed, 07 Feb 2018 04:59:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518008387; cv=none; d=google.com; s=arc-20160816; b=qJDEoeYlZO2+6mW9FIMV7lG/BkGEWtph0+lpN9CMkIrBjxfuiCHbQIKFXUpy+KKquZ WwTIQIDGS3YaGVsCB1sjdv5QPW/pEBqCQKZCnTSAeMSTskIOMr5NJfx5HdOhw8InNLti 1OuCHpuKwsI+V7EBo4B4QGpaXljERKsBP2p9EqZpcGlTvcCk4rvJ3DSoaLZcmTMKaiRv iQA/OOWl2/RAx8oyKAAOHKVfZyweq7dGjf7sFfCgPTZ+y90ZM/25sWaivJC1jlVuEDTF WIqIsSzPGct8yexXOGbbzPhSioMUMJ2LIbFtwAAfq9wtMh474ON6VlFoIu1FwXqErzcE S5Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=oirGjKQL8rIzTgyRcisjNUlQAhD6Ys+xKWoiTq8ZePo=; b=Ijkq4opNltqnM4OHhwpli6reeYEH4+DZ7yAFDET4AUdu3vxZacRovib27Cau/LFubV GFcd2T57mx8gCFkjSGAbcjCwYgpb18MLRLZhgSX82oQ7drkWuHG+ye90JtcIAFx7yHVl 9htDlda6xCH8FR3HKEqrg+WY9CcRe8SxOWyB5kG5edlmpX1Jr9kOrSR6ifzPD/qYGWjO GCIK/3iHVitW/nfz4qXaSW3f0esr0myp/L3lffXeaFJBT6dm9nH78ggr5TcVtoAH66JZ B0+I6svrVXQuIeh6Nd4enIVRyQQ0E9Cqqu3+sEQ1RoCFntndXF7zzrAM638bG1Ks4h4s Vydw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=QBWLBtDe; dkim=fail header.i=@linaro.org header.s=google header.b=hxmSF8c4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (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 g6-v6si1027417plp.731.2018.02.07.04.59.33; Wed, 07 Feb 2018 04:59:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=QBWLBtDe; dkim=fail header.i=@linaro.org header.s=google header.b=hxmSF8c4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754047AbeBGM50 (ORCPT + 99 others); Wed, 7 Feb 2018 07:57:26 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:39980 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753975AbeBGM5Y (ORCPT ); Wed, 7 Feb 2018 07:57:24 -0500 Received: by mail-ot0-f195.google.com with SMTP id s4so687340oth.7 for ; Wed, 07 Feb 2018 04:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=oirGjKQL8rIzTgyRcisjNUlQAhD6Ys+xKWoiTq8ZePo=; b=QBWLBtDexs9nVIwnIi1vKkC2Dq9EpG90MXO80ljzqCkxp8tPFZH7EDYwECP1JsIf2m tRcTeWwN91ARtOPPXIPruF0v9Y1lsoOwjbnDhQRjYJ/wCnuABCcDpJ5tRQgD0B1/WZfY zNrTjBLgLUjMRoEH2+cPkCaTAUAB/HDUnKYiKMjlXjt/VWKd2xnIqCBlr9vdqne+w44i hFEGE1G/9FiMFIUu39H5ggWRIYj1PTOorVMWq5Ki6ThqMOZwORsCPPnjq9Biccr/EEyT D5cXjMDpXT1LlIO5EjnJHXO71ybBuFqqZMemzEcu4UxA/pW1xzrVY4J5oXuzAIMDCgE7 CfbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=oirGjKQL8rIzTgyRcisjNUlQAhD6Ys+xKWoiTq8ZePo=; b=hxmSF8c4hHtA6E5QvZkc6tg+iNxtHxexjPkezRHrIGL1F9o7vdSgxRUwwge/Z3DpVf hL68M+xe8usRcv0RCsQE/E5UA4vlLC6e1/9xksb6/Gw+MCeKt421Kf+1xg8SqgXD2cdz k8ahzJgtEIEgiDa53Cc5mkIDywwnqH/d10JhQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=oirGjKQL8rIzTgyRcisjNUlQAhD6Ys+xKWoiTq8ZePo=; b=cKTZtnuKj0iiv1z70boBCvWP4uX88S+QxvMJFJqxFgzRo75rh8/gpLhx3rjaGxyXwe 6MD3sj2H3UCsv27ViHI6ZD1sVWGV0xnvgBCrDlr4GNf5Bk5pzDNXPXXBnbBhDWOEgIv9 PAC5GGvwf/i9WaUUtRCDIg83TeQpRbcqf4DPhemi48vcvPKe8h8G+tqUnKZTh1T9xbjV 8/bSbbOY1XNo+PnGbT6f5cs/UXM9LGm6DvKq1NYhq158tns6ZrzebPKX7DeWpxW8axK9 DpKlfWH4uDRdj3sOcua3WqK2VgAtXVbmcmsE3ZPN9HLQlxmHzbhJ21tUFnNt+ki+sEfG ObLA== X-Gm-Message-State: APf1xPAVcfWZFb7DWhqiTAAGI1r0+7+rrJ4fh5X5Ml9cUGAK+SbGzGpk ga0avLs0gE0CDTK4Sk6L4lwFSh0Gjx7QZvK0wkqy9Q== X-Received: by 10.157.90.153 with SMTP id w25mr4016477oth.36.1518008243834; Wed, 07 Feb 2018 04:57:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.65.216 with HTTP; Wed, 7 Feb 2018 04:57:23 -0800 (PST) In-Reply-To: <20180205144651.5934-4-georgi.djakov@linaro.org> References: <20180205144651.5934-1-georgi.djakov@linaro.org> <20180205144651.5934-4-georgi.djakov@linaro.org> From: Amit Kucheria Date: Wed, 7 Feb 2018 18:27:23 +0530 X-Google-Sender-Auth: uUXolWy_0Viq0dg1C2-zfVEF1cw Message-ID: Subject: Re: [PATCH 4/4] arm64: dts: qcom: msm8916: Add CPU frequency scaling support To: Georgi Djakov Cc: Andy Gross , bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, lakml , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 5, 2018 at 8:16 PM, Georgi Djakov wrote: > Add a CPU OPP table to allow CPU frequency scaling on msm8916 platforms. > > Signed-off-by: Georgi Djakov For this series, please feel free to add my Reviewed-by: Amit Kucheria Tested-by: Amit Kucheria It enables basic cpufreq on the DB410c in mainline after enabling QCOM_APCS_IPC. I'll send out another patch to automatically select this Kconfig option. > --- > arch/arm64/boot/dts/qcom/msm8916.dtsi | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi > index 4539571a36b2..e4682779eec7 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi > @@ -113,6 +113,8 @@ > next-level-cache = <&L2_0>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SPC>; > + clocks = <&apcs 0>; > + operating-points-v2 = <&cpu_opp_table>; > }; > > CPU1: cpu@1 { > @@ -122,6 +124,8 @@ > next-level-cache = <&L2_0>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SPC>; > + clocks = <&apcs 0>; > + operating-points-v2 = <&cpu_opp_table>; > }; > > CPU2: cpu@2 { > @@ -131,6 +135,8 @@ > next-level-cache = <&L2_0>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SPC>; > + clocks = <&apcs 0>; > + operating-points-v2 = <&cpu_opp_table>; > }; > > CPU3: cpu@3 { > @@ -140,6 +146,8 @@ > next-level-cache = <&L2_0>; > enable-method = "psci"; > cpu-idle-states = <&CPU_SPC>; > + clocks = <&apcs 0>; > + operating-points-v2 = <&cpu_opp_table>; > }; > > L2_0: l2-cache { > @@ -212,6 +220,24 @@ > > }; > > + cpu_opp_table: cpu_opp_table { > + compatible = "operating-points-v2"; > + opp-shared; > + > + opp-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + }; > + opp-400000000 { > + opp-hz = /bits/ 64 <400000000>; > + }; > + opp-800000000 { > + opp-hz = /bits/ 64 <800000000>; > + }; > + opp-998400000 { > + opp-hz = /bits/ 64 <998400000>; > + }; > + }; > + > gpu_opp_table: opp_table { > compatible = "operating-points-v2"; >