From patchwork Mon Jan 27 20:03:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 212963 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88AF8C35248 for ; Mon, 27 Jan 2020 20:04:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5CFB924682 for ; Mon, 27 Jan 2020 20:04:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="E4MxFfxy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726360AbgA0UER (ORCPT ); Mon, 27 Jan 2020 15:04:17 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:21884 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbgA0UER (ORCPT ); Mon, 27 Jan 2020 15:04:17 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580155456; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=VJMuWbpKbgxdFGF/vgSnwA7u8t226JTGhV9Y8R/0+ew=; b=E4MxFfxyCxy96NAzGa/q633Xs1mzQK5Zl3RBUNsJ7vgPaTQMkTtLj4paOY4XR2WPfUtocHLq i7kfP3/pMBAauTBR7OM+ttZ9RBGUPcqxQb4dOf64a1USVc1ag3mrS+HoKzVjeocVszS94PVg ovYLKLMad2BKBkH3M6z57/Cp9Io= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI5ZDFmMiIsICJsaW51eC1wbUB2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e2f423c.7f9be6200180-smtp-out-n02; Mon, 27 Jan 2020 20:04:12 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 10D07C447AB; Mon, 27 Jan 2020 20:04:11 +0000 (UTC) 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) by smtp.codeaurora.org (Postfix) with ESMTPSA id 48C28C433A2; Mon, 27 Jan 2020 20:04:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 48C28C433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: viresh.kumar@linaro.org, sboyd@kernel.org, georgi.djakov@linaro.org, saravanak@google.com Cc: nm@ti.com, bjorn.andersson@linaro.org, agross@kernel.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, mka@chromium.org, vincent.guittot@linaro.org, amit.kucheria@linaro.org, ulf.hansson@linaro.org, Sibi Sankar Subject: [RFC v3 01/10] arm64: dts: qcom: sdm845: Add SoC compatible to MTP Date: Tue, 28 Jan 2020 01:33:41 +0530 Message-Id: <20200127200350.24465-2-sibis@codeaurora.org> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20200127200350.24465-1-sibis@codeaurora.org> References: <20200127200350.24465-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 Add missing SoC compatible to SDM845 MTP board file. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 09ad37b0dd71d..54087847794aa 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -13,7 +13,7 @@ / { model = "Qualcomm Technologies, Inc. SDM845 MTP"; - compatible = "qcom,sdm845-mtp"; + compatible = "qcom,sdm845-mtp", "qcom,sdm845"; aliases { serial0 = &uart9; From patchwork Mon Jan 27 20:03:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 212962 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5893FC2D0DB for ; Mon, 27 Jan 2020 20:04:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2980B24681 for ; Mon, 27 Jan 2020 20:04:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="cXH1L1WC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgA0UE1 (ORCPT ); Mon, 27 Jan 2020 15:04:27 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:32249 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgA0UE1 (ORCPT ); Mon, 27 Jan 2020 15:04:27 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580155467; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=C3y6D737DlxnISJ5A2sozF0/s7J2SK/5V0KUq6cvIlQ=; b=cXH1L1WC10KwZw7reWhhln7O2MTngVfjebENU/Kx8np05Ml0Rv7QB5SAqS9SYO3Edn0JfrOQ iKqrBuFb4TNeFFdv9TCjW0RyxR5D/bA5KXIelFtr69B2paBofLt80Gnf8ntrTKNLFRyJ5R7J EhTSf58e33nuou8lqOENvPwUQ98= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI5ZDFmMiIsICJsaW51eC1wbUB2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e2f424a.7fb0537cc7d8-smtp-out-n02; Mon, 27 Jan 2020 20:04:26 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id AE954C447A6; Mon, 27 Jan 2020 20:04:25 +0000 (UTC) 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) by smtp.codeaurora.org (Postfix) with ESMTPSA id A77BFC433A2; Mon, 27 Jan 2020 20:04:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A77BFC433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: viresh.kumar@linaro.org, sboyd@kernel.org, georgi.djakov@linaro.org, saravanak@google.com Cc: nm@ti.com, bjorn.andersson@linaro.org, agross@kernel.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, mka@chromium.org, vincent.guittot@linaro.org, amit.kucheria@linaro.org, ulf.hansson@linaro.org, Sibi Sankar Subject: [RFC v3 03/10] cpufreq: blacklist SC7180 in cpufreq-dt-platdev Date: Tue, 28 Jan 2020 01:33:43 +0530 Message-Id: <20200127200350.24465-4-sibis@codeaurora.org> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20200127200350.24465-1-sibis@codeaurora.org> References: <20200127200350.24465-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 Add SC7180 to cpufreq-dt-platdev blacklist. Signed-off-by: Sibi Sankar --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 5492cf3c9dc18..580abc777d9d8 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -130,6 +130,7 @@ static const struct of_device_id blacklist[] __initconst = { { .compatible = "qcom,apq8096", }, { .compatible = "qcom,msm8996", }, { .compatible = "qcom,qcs404", }, + { .compatible = "qcom,sc7180", }, { .compatible = "qcom,sdm845", }, { .compatible = "st,stih407", }, From patchwork Mon Jan 27 20:03:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 212961 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73515C2D0DB for ; Mon, 27 Jan 2020 20:04:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41FD524681 for ; Mon, 27 Jan 2020 20:04:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="HPu9j+Mk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbgA0UEv (ORCPT ); Mon, 27 Jan 2020 15:04:51 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:51737 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbgA0UEv (ORCPT ); Mon, 27 Jan 2020 15:04:51 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580155491; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=zKV6cJDC7D9lZtbet0fncNoNw3SzF9fxJt5jaczV1pg=; b=HPu9j+MkEzpNSWVDpwWBF9KPUAqOdD0xChkKlGiJY5e70MSwS7ZbhUb9eI2GEsjvj6kYwraC NA5T2cBOu/b0jsdjVYeQeidnmtRwE73OubUjGCuugLxt2CO1HP+8xkGh6Iq2S98fanmCoBfR 5Ew+qstRX2XaR9wsdswyE2E6B10= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI5ZDFmMiIsICJsaW51eC1wbUB2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e2f4259.7f06fc9765a8-smtp-out-n01; Mon, 27 Jan 2020 20:04:41 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DCDE9C447AA; Mon, 27 Jan 2020 20:04:39 +0000 (UTC) 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) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5C7C5C447A1; Mon, 27 Jan 2020 20:04:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5C7C5C447A1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: viresh.kumar@linaro.org, sboyd@kernel.org, georgi.djakov@linaro.org, saravanak@google.com Cc: nm@ti.com, bjorn.andersson@linaro.org, agross@kernel.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, mka@chromium.org, vincent.guittot@linaro.org, amit.kucheria@linaro.org, ulf.hansson@linaro.org, Sibi Sankar Subject: [RFC v3 05/10] opp: of: export _opp_of_get_opp_desc_node Date: Tue, 28 Jan 2020 01:33:45 +0530 Message-Id: <20200127200350.24465-6-sibis@codeaurora.org> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20200127200350.24465-1-sibis@codeaurora.org> References: <20200127200350.24465-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 Export _opp_of_get_opp_desc_node in preparation for attaching multiple opp_table per device. Signed-off-by: Sibi Sankar --- drivers/opp/of.c | 3 +-- drivers/opp/opp.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/opp/of.c b/drivers/opp/of.c index 43acf54934be7..015ee9ab09485 100644 --- a/drivers/opp/of.c +++ b/drivers/opp/of.c @@ -25,8 +25,7 @@ * Returns opp descriptor node for a device node, caller must * do of_node_put(). */ -static struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, - int index) +struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, int index) { /* "operating-points-v2" can be an array for power domain providers */ return of_parse_phandle(np, "operating-points-v2", index); diff --git a/drivers/opp/opp.h b/drivers/opp/opp.h index 9e021f819acca..6f56ff6038605 100644 --- a/drivers/opp/opp.h +++ b/drivers/opp/opp.h @@ -226,12 +226,14 @@ void _put_opp_list_kref(struct opp_table *opp_table); void _of_init_opp_table(struct opp_table *opp_table, struct device *dev, int index); void _of_clear_opp_table(struct opp_table *opp_table); struct opp_table *_managed_opp(struct device *dev, int index); +struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, int index); void _of_opp_free_required_opps(struct opp_table *opp_table, struct dev_pm_opp *opp); #else static inline void _of_init_opp_table(struct opp_table *opp_table, struct device *dev, int index) {} static inline void _of_clear_opp_table(struct opp_table *opp_table) {} static inline struct opp_table *_managed_opp(struct device *dev, int index) { return NULL; } +static inline struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, int index) { return NULL; } static inline void _of_opp_free_required_opps(struct opp_table *opp_table, struct dev_pm_opp *opp) {} #endif From patchwork Mon Jan 27 20:03:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 212960 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9ECCC33CB7 for ; Mon, 27 Jan 2020 20:05:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7346C24682 for ; Mon, 27 Jan 2020 20:05:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="RGK5cyoZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725975AbgA0UFA (ORCPT ); Mon, 27 Jan 2020 15:05:00 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:59383 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727872AbgA0UE7 (ORCPT ); Mon, 27 Jan 2020 15:04:59 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580155499; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=1/OCv/YWi9A5ql/vJL6uSomFHcmrXg+3BhQMo7h7H4I=; b=RGK5cyoZ/HGmcX6xSsYN6S5cz5xPeJBf14v4d2Ubp67vCvEKknAJIUSqnMpIrFFxlAO2eGW/ M18oIsImq1urtongRjcRJdSBMRyuQayXWWSvhbnDIld7dvBX82i8oj7+b1MufGkrt7NQDwFn O2uJ4cuqH0D+AIhhF9IhFtl/pV8= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI5ZDFmMiIsICJsaW51eC1wbUB2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e2f4266.7fd3cd82a9d0-smtp-out-n03; Mon, 27 Jan 2020 20:04:54 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 249EBC447A4; Mon, 27 Jan 2020 20:04:53 +0000 (UTC) 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) by smtp.codeaurora.org (Postfix) with ESMTPSA id 409D1C447A1; Mon, 27 Jan 2020 20:04:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 409D1C447A1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: viresh.kumar@linaro.org, sboyd@kernel.org, georgi.djakov@linaro.org, saravanak@google.com Cc: nm@ti.com, bjorn.andersson@linaro.org, agross@kernel.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, mka@chromium.org, vincent.guittot@linaro.org, amit.kucheria@linaro.org, ulf.hansson@linaro.org, Sibi Sankar Subject: [RFC v3 07/10] opp: Remove multiple attached opp tables from a device Date: Tue, 28 Jan 2020 01:33:47 +0530 Message-Id: <20200127200350.24465-8-sibis@codeaurora.org> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20200127200350.24465-1-sibis@codeaurora.org> References: <20200127200350.24465-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 Introduce _dev_pm_opp_find_and_remove_table_indexed to remove all the linked opp tables from a device. Signed-off-by: Sibi Sankar --- drivers/opp/core.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/opp/core.c b/drivers/opp/core.c index e9d633c9e40b1..cc2f156db7fda 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -2632,12 +2632,13 @@ int dev_pm_opp_unregister_notifier(struct device *dev, } EXPORT_SYMBOL(dev_pm_opp_unregister_notifier); -void _dev_pm_opp_find_and_remove_table(struct device *dev) +static void _dev_pm_opp_find_and_remove_table_indexed(struct device *dev, + int index) { struct opp_table *opp_table; /* Check for existing table for 'dev' */ - opp_table = _find_opp_table_indexed(dev, 0); + opp_table = _find_opp_table_indexed(dev, index); if (IS_ERR(opp_table)) { int error = PTR_ERR(opp_table); @@ -2658,6 +2659,18 @@ void _dev_pm_opp_find_and_remove_table(struct device *dev) dev_pm_opp_put_opp_table(opp_table); } +void _dev_pm_opp_find_and_remove_table(struct device *dev) +{ + int count, i; + + count = of_count_phandle_with_args(dev->of_node, + "operating-points-v2", NULL); + count = max(count, 1); + + for (i = 0; i < count; i++) + _dev_pm_opp_find_and_remove_table_indexed(dev, i); +} + /** * dev_pm_opp_remove_table() - Free all OPPs associated with the device * @dev: device pointer used to lookup OPP table. From patchwork Mon Jan 27 20:03:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 212959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F74EC33CB1 for ; Mon, 27 Jan 2020 20:05:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 414282468B for ; Mon, 27 Jan 2020 20:05:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="QJLvibbj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727966AbgA0UFR (ORCPT ); Mon, 27 Jan 2020 15:05:17 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:51737 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbgA0UFR (ORCPT ); Mon, 27 Jan 2020 15:05:17 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580155516; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=IKb86hhTj8xFaDWDtytaFBLL9ega5hDWwTrYWcWCmJk=; b=QJLvibbjUmQ5Ccq8aHOvyftMphlPNrLMUYLqQtgfY6KO8hCsntAMRNIsn/RP0Y0a3Cc5sQ3l n9lYEo9+pp8QmtxKeAg/yEYlkdgihDGggZmEMThw9FPlkZU2BGXmomDx6hdN+t7TTNaZmKSy jrRrmrzCpOmS8lfOgL7uQ9Sts4M= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI5ZDFmMiIsICJsaW51eC1wbUB2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e2f4276.7f0d77b20998-smtp-out-n02; Mon, 27 Jan 2020 20:05:10 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 80460C447A9; Mon, 27 Jan 2020 20:05:08 +0000 (UTC) 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) by smtp.codeaurora.org (Postfix) with ESMTPSA id BAAB2C433A2; Mon, 27 Jan 2020 20:04:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BAAB2C433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: viresh.kumar@linaro.org, sboyd@kernel.org, georgi.djakov@linaro.org, saravanak@google.com Cc: nm@ti.com, bjorn.andersson@linaro.org, agross@kernel.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, mka@chromium.org, vincent.guittot@linaro.org, amit.kucheria@linaro.org, ulf.hansson@linaro.org, Sibi Sankar Subject: [RFC v3 09/10] arm64: dts: qcom: sdm845: Add cpu OPP tables Date: Tue, 28 Jan 2020 01:33:49 +0530 Message-Id: <20200127200350.24465-10-sibis@codeaurora.org> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20200127200350.24465-1-sibis@codeaurora.org> References: <20200127200350.24465-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 Add OPP tables required to scale DDR/L3 per freq-domain on SDM845 SoCs. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 453 +++++++++++++++++++++++++++ 1 file changed, 453 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c036bab49fc03..8cb976118407b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -199,6 +199,12 @@ qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_0>; + operating-points-v2 = <&cpu0_opp_table>, + <&cpu0_ddr_bw_opp_table>, + <&cpu0_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_0: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -221,6 +227,12 @@ qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_100>; + operating-points-v2 = <&cpu0_opp_table>, + <&cpu0_ddr_bw_opp_table>, + <&cpu0_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_100: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -240,6 +252,12 @@ qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_200>; + operating-points-v2 = <&cpu0_opp_table>, + <&cpu0_ddr_bw_opp_table>, + <&cpu0_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_200: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -259,6 +277,12 @@ qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_300>; + operating-points-v2 = <&cpu0_opp_table>, + <&cpu0_ddr_bw_opp_table>, + <&cpu0_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_300: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -278,6 +302,12 @@ qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_400>; + operating-points-v2 = <&cpu4_opp_table>, + <&cpu4_ddr_bw_opp_table>, + <&cpu4_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_400: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -297,6 +327,12 @@ qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_500>; + operating-points-v2 = <&cpu4_opp_table>, + <&cpu4_ddr_bw_opp_table>, + <&cpu4_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_500: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -316,6 +352,12 @@ qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_600>; + operating-points-v2 = <&cpu4_opp_table>, + <&cpu4_ddr_bw_opp_table>, + <&cpu4_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_600: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -335,6 +377,12 @@ qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_700>; + operating-points-v2 = <&cpu4_opp_table>, + <&cpu4_ddr_bw_opp_table>, + <&cpu4_l3_bw_opp_table>; + interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "cpu-ddr", "cpu-l3"; L2_700: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -432,6 +480,231 @@ }; }; + cpu0_opp_table: cpu0_opp_table { + compatible = "operating-points-v2"; + opp-shared; + + cpu0_opp1: opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + required-opps = <&cpu0_ddr_bw_opp1>, <&cpu0_l3_bw_opp1>; + }; + + cpu0_opp2: opp-403200000 { + opp-hz = /bits/ 64 <403200000>; + required-opps = <&cpu0_ddr_bw_opp1>, <&cpu0_l3_bw_opp1>; + }; + + cpu0_opp3: opp-480000000 { + opp-hz = /bits/ 64 <480000000>; + required-opps = <&cpu0_ddr_bw_opp1>, <&cpu0_l3_bw_opp2>; + }; + + cpu0_opp4: opp-576000000 { + opp-hz = /bits/ 64 <576000000>; + required-opps = <&cpu0_ddr_bw_opp1>, <&cpu0_l3_bw_opp2>; + }; + + cpu0_opp5: opp-652800000 { + opp-hz = /bits/ 64 <652800000>; + required-opps = <&cpu0_ddr_bw_opp1>, <&cpu0_l3_bw_opp3>; + }; + + cpu0_opp6: opp-748800000 { + opp-hz = /bits/ 64 <748800000>; + required-opps = <&cpu0_ddr_bw_opp3>, <&cpu0_l3_bw_opp4>; + }; + + cpu0_opp7: opp-825600000 { + opp-hz = /bits/ 64 <825600000>; + required-opps = <&cpu0_ddr_bw_opp3>, <&cpu0_l3_bw_opp4>; + }; + + cpu0_opp8: opp-902400000 { + opp-hz = /bits/ 64 <902400000>; + required-opps = <&cpu0_ddr_bw_opp3>, <&cpu0_l3_bw_opp5>; + }; + + cpu0_opp9: opp-979200000 { + opp-hz = /bits/ 64 <979200000>; + required-opps = <&cpu0_ddr_bw_opp3>, <&cpu0_l3_bw_opp6>; + }; + + cpu0_opp10: opp-1056000000 { + opp-hz = /bits/ 64 <1056000000>; + required-opps = <&cpu0_ddr_bw_opp3>, <&cpu0_l3_bw_opp6>; + }; + + cpu0_opp11: opp-1132800000 { + opp-hz = /bits/ 64 <1132800000>; + required-opps = <&cpu0_ddr_bw_opp4>, <&cpu0_l3_bw_opp7>; + }; + + cpu0_opp12: opp-1228800000 { + opp-hz = /bits/ 64 <1228800000>; + required-opps = <&cpu0_ddr_bw_opp4>, <&cpu0_l3_bw_opp8>; + }; + + cpu0_opp13: opp-1324800000 { + opp-hz = /bits/ 64 <1324800000>; + required-opps = <&cpu0_ddr_bw_opp4>, <&cpu0_l3_bw_opp9>; + }; + + cpu0_opp14: opp-1420800000 { + opp-hz = /bits/ 64 <1420800000>; + required-opps = <&cpu0_ddr_bw_opp4>, <&cpu0_l3_bw_opp10>; + }; + + cpu0_opp15: opp-1516800000 { + opp-hz = /bits/ 64 <1516800000>; + required-opps = <&cpu0_ddr_bw_opp5>, <&cpu0_l3_bw_opp11>; + }; + + cpu0_opp16: opp-1612800000 { + opp-hz = /bits/ 64 <1612800000>; + required-opps = <&cpu0_ddr_bw_opp7>, <&cpu0_l3_bw_opp11>; + }; + + cpu0_opp17: opp-1689600000 { + opp-hz = /bits/ 64 <1689600000>; + required-opps = <&cpu0_ddr_bw_opp7>, <&cpu0_l3_bw_opp12>; + }; + + cpu0_opp18: opp-1766400000 { + opp-hz = /bits/ 64 <1766400000>; + required-opps = <&cpu0_ddr_bw_opp7>, <&cpu0_l3_bw_opp13>; + }; + }; + + cpu4_opp_table: cpu4_opp_table { + compatible = "operating-points-v2"; + opp-shared; + + cpu4_opp1: opp-825600000 { + opp-hz = /bits/ 64 <825600000>; + required-opps = <&cpu4_ddr_bw_opp1>, <&cpu4_l3_bw_opp1>; + }; + + cpu4_opp2: opp-902400000 { + opp-hz = /bits/ 64 <902400000>; + required-opps = <&cpu4_ddr_bw_opp1>, <&cpu4_l3_bw_opp1>; + }; + + cpu4_opp3: opp-979200000 { + opp-hz = /bits/ 64 <979200000>; + required-opps = <&cpu4_ddr_bw_opp1>, <&cpu4_l3_bw_opp1>; + }; + + cpu4_opp4: opp-1056000000 { + opp-hz = /bits/ 64 <1056000000>; + required-opps = <&cpu4_ddr_bw_opp5>, <&cpu4_l3_bw_opp3>; + }; + + cpu4_opp5: opp-1209600000 { + opp-hz = /bits/ 64 <1209600000>; + required-opps = <&cpu4_ddr_bw_opp6>, <&cpu4_l3_bw_opp3>; + }; + + cpu4_opp6: opp-1286400000 { + opp-hz = /bits/ 64 <1286400000>; + required-opps = <&cpu4_ddr_bw_opp6>, <&cpu4_l3_bw_opp3>; + }; + + cpu4_opp7: opp-1363200000 { + opp-hz = /bits/ 64 <1363200000>; + required-opps = <&cpu4_ddr_bw_opp6>, <&cpu4_l3_bw_opp5>; + }; + + cpu4_opp8: opp-1459200000 { + opp-hz = /bits/ 64 <1459200000>; + required-opps = <&cpu4_ddr_bw_opp6>, <&cpu4_l3_bw_opp5>; + }; + + cpu4_opp9: opp-1536000000 { + opp-hz = /bits/ 64 <1536000000>; + required-opps = <&cpu4_ddr_bw_opp6>, <&cpu4_l3_bw_opp5>; + }; + + cpu4_opp10: opp-1612800000 { + opp-hz = /bits/ 64 <1612800000>; + required-opps = <&cpu4_ddr_bw_opp7>, <&cpu4_l3_bw_opp5>; + }; + + cpu4_opp11: opp-1689600000 { + opp-hz = /bits/ 64 <1689600000>; + required-opps = <&cpu4_ddr_bw_opp7>, <&cpu4_l3_bw_opp8>; + }; + + cpu4_opp12: opp-1766400000 { + opp-hz = /bits/ 64 <1766400000>; + required-opps = <&cpu4_ddr_bw_opp8>, <&cpu4_l3_bw_opp8>; + }; + + cpu4_opp13: opp-1843200000 { + opp-hz = /bits/ 64 <1843200000>; + required-opps = <&cpu4_ddr_bw_opp8>, <&cpu4_l3_bw_opp8>; + }; + + cpu4_opp14: opp-1920000000 { + opp-hz = /bits/ 64 <1920000000>; + required-opps = <&cpu4_ddr_bw_opp8>, <&cpu4_l3_bw_opp8>; + }; + + cpu4_opp15: opp-1996800000 { + opp-hz = /bits/ 64 <1996800000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp9>; + }; + + cpu4_opp16: opp-2092800000 { + opp-hz = /bits/ 64 <2092800000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp9>; + }; + + cpu4_opp17: opp-2169600000 { + opp-hz = /bits/ 64 <2169600000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp9>; + }; + + cpu4_opp18: opp-2246400000 { + opp-hz = /bits/ 64 <2246400000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp9>; + }; + + cpu4_opp19: opp-2323200000 { + opp-hz = /bits/ 64 <2323200000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp9>; + }; + + cpu4_opp20: opp-2400000000 { + opp-hz = /bits/ 64 <2400000000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp10>; + }; + + cpu4_opp21: opp-2476800000 { + opp-hz = /bits/ 64 <2476800000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp10>; + }; + + cpu4_opp22: opp-2553600000 { + opp-hz = /bits/ 64 <2553600000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp10>; + }; + + cpu4_opp23: opp-2649600000 { + opp-hz = /bits/ 64 <2649600000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp10>; + }; + + cpu4_opp24: opp-2745600000 { + opp-hz = /bits/ 64 <2745600000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp11>; + }; + + cpu4_opp25: opp-2803200000 { + opp-hz = /bits/ 64 <2803200000>; + required-opps = <&cpu4_ddr_bw_opp9>, <&cpu4_l3_bw_opp11>; + }; + }; + pmu { compatible = "arm,armv8-pmuv3"; interrupts = ; @@ -3345,6 +3618,186 @@ #freq-domain-cells = <1>; }; + cpu0_ddr_bw_opp_table: cpu0-ddr-bw-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + cpu0_ddr_bw_opp1: opp-200000000 { + opp-peak-kBps =/bits/ 32 <800000>; + }; + + cpu0_ddr_bw_opp2: opp-300000000 { + opp-peak-kBps = /bits/ 32 <1200000>; + }; + + cpu0_ddr_bw_opp3: opp-451000000 { + opp-peak-kBps = /bits/ 32 <1804000>; + }; + + cpu0_ddr_bw_opp4: opp-547000000 { + opp-peak-kBps = /bits/ 32 <2188000>; + }; + + cpu0_ddr_bw_opp5: opp-681000000 { + opp-peak-kBps = /bits/ 32 <2724000>; + }; + + cpu0_ddr_bw_opp6: opp-768000000 { + opp-peak-kBps = /bits/ 32 <3072000>; + }; + + cpu0_ddr_bw_opp7: opp-1017000000 { + opp-peak-kBps = /bits/ 32 <4068000>; + }; + }; + + cpu0_l3_bw_opp_table: cpu0-l3-bw-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + cpu0_l3_bw_opp1: opp-300000000 { + opp-peak-kBps = /bits/ 32 <4800000>; + }; + + cpu0_l3_bw_opp2: opp-403200000 { + opp-peak-kBps = /bits/ 32 <6451200>; + }; + + cpu0_l3_bw_opp3: opp-480000000 { + opp-peak-kBps = /bits/ 32 <7680000>; + }; + + cpu0_l3_bw_opp4: opp-576000000 { + opp-peak-kBps = /bits/ 32 <9216000>; + }; + + cpu0_l3_bw_opp5: opp-652800000 { + opp-peak-kBps = /bits/ 32 <10444800>; + }; + + cpu0_l3_bw_opp6: opp-748800000 { + opp-peak-kBps = /bits/ 32 <11980800>; + }; + + cpu0_l3_bw_opp7: opp-844800000 { + opp-peak-kBps = /bits/ 32 <13516800>; + }; + + cpu0_l3_bw_opp8: opp-940800000 { + opp-peak-kBps = /bits/ 32 <15052800>; + }; + + cpu0_l3_bw_opp9: opp-1036800000 { + opp-peak-kBps = /bits/ 32 <16588800>; + }; + + cpu0_l3_bw_opp10: opp-1132800000 { + opp-peak-kBps = /bits/ 32 <18124800>; + }; + + cpu0_l3_bw_opp11: opp-1209600000 { + opp-peak-kBps = /bits/ 32 <19353600>; + }; + + cpu0_l3_bw_opp12: opp-1305600000 { + opp-peak-kBps = /bits/ 32 <20889600>; + }; + + cpu0_l3_bw_opp13: opp-1401600000 { + opp-peak-kBps = /bits/ 32 <22425600>; + }; + }; + + cpu4_ddr_bw_opp_table: cpu4-ddr-bw-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + cpu4_ddr_bw_opp1: opp-300000000 { + opp-peak-kBps = /bits/ 32 <1200000>; + }; + + cpu4_ddr_bw_opp2: opp-451000000 { + opp-peak-kBps = /bits/ 32 <1804000>; + }; + + cpu4_ddr_bw_opp3: opp-547000000 { + opp-peak-kBps = /bits/ 32 <2188000>; + }; + + cpu4_ddr_bw_opp4: opp-681000000 { + opp-peak-kBps = /bits/ 32 <2724000>; + }; + + cpu4_ddr_bw_opp5: opp-768000000 { + opp-peak-kBps = /bits/ 32 <3072000>; + }; + + cpu4_ddr_bw_opp6: opp-1017000000 { + opp-peak-kBps = /bits/ 32 <4068000>; + }; + + cpu4_ddr_bw_opp7: opp-1296000000 { + opp-peak-kBps = /bits/ 32 <5184000>; + }; + + cpu4_ddr_bw_opp8: opp-1555000000 { + opp-peak-kBps = /bits/ 32 <6220000>; + }; + + cpu4_ddr_bw_opp9: opp-1804000000 { + opp-peak-kBps = /bits/ 32 <7216000>; + }; + }; + + cpu4_l3_bw_opp_table: cpu4-l3-bw-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + cpu4_l3_bw_opp1: opp-576000000 { + opp-peak-kBps = /bits/ 32 <9216000>; + }; + + cpu4_l3_bw_opp2: opp-652800000 { + opp-peak-kBps = /bits/ 32 <10444800>; + }; + + cpu4_l3_bw_opp3: opp-748800000 { + opp-peak-kBps = /bits/ 32 <11980800>; + }; + + cpu4_l3_bw_opp4: opp-844800000 { + opp-peak-kBps = /bits/ 32 <13516800>; + }; + + cpu4_l3_bw_opp5: opp-940800000 { + opp-peak-kBps = /bits/ 32 <15052800>; + }; + + cpu4_l3_bw_opp6: opp-1036800000 { + opp-peak-kBps = /bits/ 32 <16588800>; + }; + + cpu4_l3_bw_opp7: opp-1132800000 { + opp-peak-kBps = /bits/ 32 <18124800>; + }; + + cpu4_l3_bw_opp8: opp-1209600000 { + opp-peak-kBps = /bits/ 32 <19353600>; + }; + + cpu4_l3_bw_opp9: opp-1305600000 { + opp-peak-kBps = /bits/ 32 <20889600>; + }; + + cpu4_l3_bw_opp10: opp-1401600000 { + opp-peak-kBps = /bits/ 32 <22425600>; + }; + + cpu4_l3_bw_opp11: opp-1478400000 { + opp-peak-kBps = /bits/ 32 <23654400>; + }; + }; + wifi: wifi@18800000 { compatible = "qcom,wcn3990-wifi"; status = "disabled";