From patchwork Tue Jan 12 09:06:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 361366 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, 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 36551C433E0 for ; Tue, 12 Jan 2021 09:07:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E24B822D58 for ; Tue, 12 Jan 2021 09:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731342AbhALJHu (ORCPT ); Tue, 12 Jan 2021 04:07:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730301AbhALJHt (ORCPT ); Tue, 12 Jan 2021 04:07:49 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 415D3C061786 for ; Tue, 12 Jan 2021 01:07:09 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id s15so1054036plr.9 for ; Tue, 12 Jan 2021 01:07:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=bBQomZb0UZFDjs2bc2TvWJzjfPhcCc3dkaWs1twGd/o=; b=r7iXwu2QQ1c5yRtRE7KBQu+niMjojECwm6XiPrBS+MgjOTC6FyTxvZ+PzVdGs7hczP jAYObcx9baVJT/dlTgM442mpUCsxl4zL9C2MIQJThi+u6SWovAvNyY6biz6khP0YdJcz 1lVVih0O/EeEHc5TuSwPmfmjJ3HQdxtIq1+a8+wQ9ijGhZO99qLZ/ycUfp8PDglEotb7 sl+1+zfemfC9yYVZVuLObitwCLyHaOyW08SMFbilOk0G1R0lq5/caN/DTE4JOKOfTWDQ YRALKgtNSmWbxPo1ZM4fTqBQXO1u58lzgLeizseRzXXThubLIVatTK+MdWsptL+y/r4S zC6w== 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; bh=bBQomZb0UZFDjs2bc2TvWJzjfPhcCc3dkaWs1twGd/o=; b=k89B+74dPcPncyjiXXC46A+tHeD9HdOxpejvvSBARNEKaTdXxMEXDntYExJJhOVWQe m66B2tDDkGwAVxH2EZ8QP45Bz797agtTs9szu0ycwblkwk4S4BHXkTz1kizDNYHVnDg3 q3OIBuonaxMlN+tRC4fMaU+InXu8zvibqTZi46uzKIbEiv349Yr3xYqlrgRKRqS+eKy8 gFtKChQs7LEIFtZJBh9v1ZYDWN2GrnNT7aj6yFoU2dQntfc3PHZhCddl1tewj8sBMJHg hyF7AmbGnxF0+KmfT9xT7QlnWlqTmJ0/DYefNafpk3r2Ztn5Qx73kXHUFd/0uG61/vg4 Wniw== X-Gm-Message-State: AOAM532A5FdZ9WZpINFjsY7Z12r0G1rK0u3kQ7eLL5Yttt0ckVWFBLwu fnHlyHDwwP74W4dXr7tzshs1Jw== X-Google-Smtp-Source: ABdhPJxaRGG7rNBI/tZ0A01aIOpqnrB/2tE8nUNHFSDaq0W/dP30B2RN74o3v6NsEI2hPOPzh8j6fQ== X-Received: by 2002:a17:90b:8d8:: with SMTP id ds24mr3498383pjb.134.1610442428846; Tue, 12 Jan 2021 01:07:08 -0800 (PST) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id m8sm2473272pjr.39.2021.01.12.01.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 01:07:08 -0800 (PST) From: Shawn Guo To: Bjorn Andersson , Andy Gross Cc: Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Steev Klimaszewski , Shawn Guo Subject: [PATCH RESEND] arm64: dts: sdm850: Add OPP tables for 2.84 and 2.96GHz Date: Tue, 12 Jan 2021 17:06:40 +0800 Message-Id: <20210112090640.20062-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Steev Klimaszewski Running cpufreq-hw driver on Lenovo Yoga C630 laptop, the following warning messages will be seen. [ 3.415340] cpu cpu4: Voltage update failed freq=2841600 [ 3.418755] cpu cpu4: failed to update OPP for freq=2841600 [ 3.422949] cpu cpu4: Voltage update failed freq=2956800 [ 3.427086] cpu cpu4: failed to update OPP for freq=2956800 This is because the cpufreq-hw lookup table of SDM850 provides these two set-points, but they are missing from OPP table in DT. Let's create sdm850.dtsi to add the OPP for them, so that the warning will be gone. Signed-off-by: Steev Klimaszewski Signed-off-by: Shawn Guo --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 2 +- arch/arm64/boot/dts/qcom/sdm850.dtsi | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/qcom/sdm850.dtsi diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index 7929665aeaee..94390ae630f3 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -13,7 +13,7 @@ #include #include #include -#include "sdm845.dtsi" +#include "sdm850.dtsi" #include "pm8998.dtsi" / { diff --git a/arch/arm64/boot/dts/qcom/sdm850.dtsi b/arch/arm64/boot/dts/qcom/sdm850.dtsi new file mode 100644 index 000000000000..b1c2cf566c7a --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm850.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * SDM850 SoC device tree source + * + * Copyright (c) 2020, The Linux Foundation. All rights reserved. + */ + +#include "sdm845.dtsi" + +&cpu4_opp_table { + cpu4_opp33: opp-2841600000 { + opp-hz = /bits/ 64 <2841600000>; + opp-peak-kBps = <7216000 25497600>; + }; + + cpu4_opp34: opp-2956800000 { + opp-hz = /bits/ 64 <2956800000>; + opp-peak-kBps = <7216000 25497600>; + turbo-mode; + }; +};