From patchwork Tue Jan 12 09:01: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: 361151 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp178985jap; Tue, 12 Jan 2021 01:04:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrrVt0ehIqJQUgaLtp2WX0NCsW9WYsbK4QqB8VFmFy/2RTD+PQERIA34STqrnudq3YWf/z X-Received: by 2002:a17:906:bcd5:: with SMTP id lw21mr530437ejb.408.1610442256223; Tue, 12 Jan 2021 01:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610442256; cv=none; d=google.com; s=arc-20160816; b=hE8CsSpMiChzd6guupVIrkQ34Ln1vfQOBE2/Ys/dHfacrCIYfit/W/FOe5o0YcFp6D kpvhkxnpqTQaPG1MKe5KsqDdqMUMMEmtSeHKaHja7j315dgbYj3yEGYcyEhe6Z58xSIi Zgcsp6mxApowy8SbD5ck8RuS5jIjXiwhyiDyHR2w0Ks6qhsK86UXWeZwPDzKoYBrKdPB 2Ok1j5dmhDhG0LsXuqFLzXtKp+9R0x30RP0Xk9fxw4zPnjKQF6N+pBALBL8V6wia4DiR ZrNZaexH8JUOG24+qd3ZjjkrrCe8c5reLfGlTjKP/Q06xW3cuPFe8Q1X8/NmBOXcm+f4 OICQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=eeCVCRLwP6P2szW1+rqfHiYExfnP9uRBHbhFoniokeo=; b=rvPnnlo6Do4+VxWm4x/s68xdteOBBh+hphMq0PaG/fszMqvd8GgnXrtB30CRt+IyJV a1EJV5h3X8m8b13aFfD/McrJlAJqnuHFGZZeuoijqYTwMmZ59eeeYFXguW0/PPYS+YEg XLAb4Wa2hJKD07wWc+jnRor50x0x05ZwCDkuVJscXoZvnxpTxHz+S3cgJTXauPXlUowe duAyhZreu9XRNlIcOwSZngyJHR7eTscltNFmz35EY9DKlisVwMInh3EfKimldDsTZQrL 69T9MzdpNJe1tnvBywZfmjes2BWRBV7Y7X7FcH04W2uaFpyDmX82NQ3eHEqhkGCWN3jy 5CeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qE4Vz320; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ga25si863194ejb.636.2021.01.12.01.04.16; Tue, 12 Jan 2021 01:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qE4Vz320; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 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 S2405885AbhALJCs (ORCPT + 6 others); Tue, 12 Jan 2021 04:02:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405883AbhALJCr (ORCPT ); Tue, 12 Jan 2021 04:02:47 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22C62C061575 for ; Tue, 12 Jan 2021 01:02:07 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id m5so1240949pjv.5 for ; Tue, 12 Jan 2021 01:02:07 -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=eeCVCRLwP6P2szW1+rqfHiYExfnP9uRBHbhFoniokeo=; b=qE4Vz320cuOtt6ewd+GhF0QkfiupJV1tfhkJMPa54k4i7HubhRusjXHSIdOohPBxIP YXDyw7FDeOB0bg/6M2rnQuFejAitqx3AqKzqScCPRWkuqjazf3EHpeS4IWh9xbBPB8F5 YA2aQCnFlEivAc0k3veXLIDcfW3/RL4bEpMKck1qR65dYnW4+d2YYPUX7oFnkhT/qOBX +nbo+VvZJviwqa2Wpn6ZrxTQKVXZ2xVz+oQplDtEp5yHPRAMK3lx8BKP53M2aAKvD8Sn f2GoBo0nawBfP1eXWx5GGoS8QIVSjp6y05bi6/coF0t1Pj41MbzcS61Rdq3r70Yhd6JI lA8w== 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=eeCVCRLwP6P2szW1+rqfHiYExfnP9uRBHbhFoniokeo=; b=DE8vZ/OofeFqu7knKW+M9u+umSgisXGFc0TooraqoyDQqzuY9/vVIyRTNpkZ0MxoiN JQDdDwF8Ld3cqr6d5u6AV4XYGKf8/NCgwl7Orqm1/DjA4tENLeVF4lvZnt4XMWNgpNdu 0nbVXOCECRp/CkeGPsyKap+1FfVQH2InbXz7rMRHA0Vm0Eh6PNkVOJfhJTkF663pYQOE cemhpsHbwBitVHDgQFvUHIK5zpHB0Ej4DEiS4GLfvDsTIQAIdcz7B0PvGOIHwhptml0t BSwIDQH85Qst3T78POd18lGcA/aHqrt8JuVES9+bsu1l1Y/Hn8iUGJXFNK/EPZwIaufz gRBA== X-Gm-Message-State: AOAM530y3ciF0GZOQjj1CkvqcAdu0FPL/gmE43n/iZQYFLC/UuOYWA22 2RoVccN54TrAXwX16mBEkE6aCw== X-Received: by 2002:a17:902:6acb:b029:dc:2e9d:7ca with SMTP id i11-20020a1709026acbb02900dc2e9d07camr3838716plt.56.1610442126633; Tue, 12 Jan 2021 01:02:06 -0800 (PST) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id mv17sm1889860pjb.17.2021.01.12.01.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 01:02:05 -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] arm64: dts: sdm850: Add OPP tables for 2.84 and 2.96GHz Date: Tue, 12 Jan 2021 17:01:40 +0800 Message-Id: <20210112090140.19867-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 | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/qcom/sdm850.dtsi -- 2.17.1 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..8e911e9723ba --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm850.dtsi @@ -0,0 +1,22 @@ +// 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; + }; +};