From patchwork Thu Mar 28 15:28:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 10875209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 32F121390 for ; Thu, 28 Mar 2019 15:29:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19F3128671 for ; Thu, 28 Mar 2019 15:29:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C03628AFA; Thu, 28 Mar 2019 15:29:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86A3D28671 for ; Thu, 28 Mar 2019 15:29:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727647AbfC1P3n (ORCPT ); Thu, 28 Mar 2019 11:29:43 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:53374 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727639AbfC1P3n (ORCPT ); Thu, 28 Mar 2019 11:29:43 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8194961FF2; Thu, 28 Mar 2019 15:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553786981; bh=cA8kJQLv8KrqVZVWqb2sBxN1Ktr/DIfvjvs5gwiJB1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dq5HhCqsMXE6QILy/iZMa/Dh6bXRqBDhgoQx479DbsLkavzwNJxVacYXzWrATnHOp +xpvPzzX134v71rRMqIw+bH86BCl3CSvuLwkPXSlI4kPG2lIYzpOhXnWcrGNLwQRvt qTp8UsMM1E/rNoY6PdjqV10YQIcRzv1yMANAPgrA= Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B83CA61F8B; Thu, 28 Mar 2019 15:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553786977; bh=cA8kJQLv8KrqVZVWqb2sBxN1Ktr/DIfvjvs5gwiJB1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UIXDYPzvwu83gby5WhIopopq0df8QGffGJ4rx6zdMrsR/o6XJhD5Hwq3OjIOLB3A/ 9ZEiNukj6gGhLf8LnAKKrwpTnYHJwl3erTYPsRcJziPwZDe/5rPK2m/pXP6hr9fEeO ip50kJcbSwG7NmxQ7sh956mXaS7KbOdKjLXR/PYs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B83CA61F8B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: robh+dt@kernel.org, andy.gross@linaro.org, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, nm@ti.com, sboyd@kernel.org, georgi.djakov@linaro.org Cc: bjorn.andersson@linaro.org, david.brown@linaro.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org, devicetree@vger.kernel.org, rnayak@codeaurora.org, cw00.choi@samsung.com, linux-pm@vger.kernel.org, evgreen@chromium.org, daidavid1@codeaurora.org, dianders@chromium.org, Sibi Sankar Subject: [PATCH RFC 9/9] arm64: dts: qcom: sdm845: Add nodes for icbw driver and opp tables Date: Thu, 28 Mar 2019 20:58:22 +0530 Message-Id: <20190328152822.532-10-sibis@codeaurora.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190328152822.532-1-sibis@codeaurora.org> References: <20190328152822.532-1-sibis@codeaurora.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add nodes to enable DDR devfreq driver on SDM845 SoC. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 80 ++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 072563f6b6cb..21a0068855e8 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -488,6 +489,85 @@ interrupts = ; }; + cpubw: cpu-icbw { + compatible = "devfreq-icbw"; + interconnects = <&rsc_hlos MASTER_APPSS_PROC &rsc_hlos SLAVE_EBI1>; + operating-points-v2 = <&bw_opp_table>; + }; + + bw_opp_table: bw-opp-table { + compatible = "operating-points-v2"; + + opp-200 { + opp-hz = /bits/ 64 < 200000000 >; /* 200 MHz */ + required-opps = <&cpu0_opp1>; + /* 0 MB/s average and 762 MB/s peak bandwidth */ + opp-bw-MBs = <0 762>; + }; + + opp-300 { + opp-hz = /bits/ 64 < 300000000 >; /* 300 MHz */ + /* 0 MB/s average and 1144 MB/s peak bandwidth */ + opp-bw-MBs = <0 1144>; + }; + + opp-451 { + opp-hz = /bits/ 64 < 451000000 >; /* 451 MHz */ + /* 0 MB/s average and 1720 MB/s peak bandwidth */ + opp-bw-MBs = <0 1720>; + required-opps = <&cpu0_opp6>; + }; + + opp-547 { + opp-hz = /bits/ 64 < 547000000 >; /* 547 MHz */ + /* 0 MB/s average and 2086 MB/s peak bandwidth */ + opp-bw-MBs = <0 2086>; + required-opps = <&cpu0_opp11>; + }; + + opp-681 { + opp-hz = /bits/ 64 < 681000000 >; /* 681 MHz */ + /* 0 MB/s average and 2597 MB/s peak bandwidth */ + opp-bw-MBs = <0 2597>; + required-opps = <&cpu0_opp15>; + }; + + opp-768 { + opp-hz = /bits/ 64 < 768000000 >; /* 768 MHz */ + /* 0 MB/s average and 2929 MB/s peak bandwidth */ + opp-bw-MBs = <0 2929>; + required-opps = <&cpu4_opp4>; + }; + + opp-1017 { + opp-hz = /bits/ 64 < 1017000000 >; /* 1017 MHz */ + /* 0 MB/s average and 3879 MB/s peak bandwidth */ + opp-bw-MBs = <0 3879>; + required-opps = <&cpu0_opp16>, <&cpu4_opp5>; + }; + + opp-1296 { + opp-hz = /bits/ 64 < 1296000000 >; /* 1296 MHz */ + /* 0 MB/s average and 4943 MB/s peak bandwidth */ + opp-bw-MBs = <0 4943>; + required-opps = <&cpu4_opp10>; + }; + + opp-1555 { + opp-hz = /bits/ 64 < 1555000000 >; /* 1555 MHz */ + /* 0 MB/s average and 5931 MB/s peak bandwidth */ + opp-bw-MBs = <0 5931>; + required-opps = <&cpu4_opp12>; + }; + + opp-1804 { + opp-hz = /bits/ 64 < 1804000000 >; /* 1804 MHz */ + /* 0 MB/s average and 6881 MB/s peak bandwidth */ + opp-bw-MBs = <0 6881>; + required-opps = <&cpu4_opp15>; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts = ,