From patchwork Tue Nov 22 23:36:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 627614 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0393BC47088 for ; Tue, 22 Nov 2022 23:37:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234892AbiKVXhL (ORCPT ); Tue, 22 Nov 2022 18:37:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235016AbiKVXhD (ORCPT ); Tue, 22 Nov 2022 18:37:03 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0C7BEB6D for ; Tue, 22 Nov 2022 15:37:02 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id d20so19588112ljc.12 for ; Tue, 22 Nov 2022 15:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AZRg2hYUZ55Yzoq4hDxZaql963EtJYTAOZ+zJGgmhWA=; b=EDlgWkp3OlyaDWrNvJsNIWgLIYVuQZIYzKiJIOC1ZLqFg/lgJQ0T1TxJE2J51RzJfR geYDbHJUMW0VhJfaDjuFsghMtTK14+bGSGWu2ncdiUXNP2BzirW7lHmIv8haxnjveQYF x/TVfz4Kb12T8w0sjBB5YnzBZgUjw87roqtF6pTwHE+TSL7cy3szvmtlnFnD0usB5J5b qOLm5hoeO/FkV63rEu1iyk1v6UXfjwJp9met0fRRyepSnpltnTyEm5oQ2eo2uHREZSBy idobRjUHn+WIItkKaQz3YqLZWPoQY5HYGCrdLYJPV54YEoJGOAyjbB1eK1CmQDc83Zu9 T9Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AZRg2hYUZ55Yzoq4hDxZaql963EtJYTAOZ+zJGgmhWA=; b=vue+E35uqe1IhvDNf6iaK3qXDyXmFiWkUDtIG6r2gNHd77fOL/cuBl7v4w6YAt8eg4 CR1BpAB4w0a8cs6fYPCouubjhF9i8Pxz83eBARx4Io0MhnCdOaSoYUyvwHOEG7Gbr7sv VUb8snJryR3Jbsw/ACorxSUzk9f76+QlHmnlg/O7JuXMEIKd4cAeGTXIf3yAWQ97t2kb lYX29pj8n1ZVD+l5TKjgn1YPhj/8wiiV7xoaG07DDU+r88sUlHfMFVZYuIoxOXhwglu+ /+uTYV9AYmA/HmFgoAEu9mKVHjH0hniDJROWCW5NITs6krmyJjWAhkYtz6pHXZ+mIKq7 4IHA== X-Gm-Message-State: ANoB5pnyL39tf6wUDn2FRAsGa6i5jXzoUA7PEuJNBa0leTL02L+siGEH hFeT9bsX8vAI1key2hH+pOH3JyuvfyF0+A== X-Google-Smtp-Source: AA0mqf5zwUBczXkxLKMF+E+AAp+kHqmVWugsTI1eD54EFn4ZfqP56jOYdGU8gSo8Mhz/sWcMrXpI/g== X-Received: by 2002:a05:651c:2123:b0:277:328:affb with SMTP id a35-20020a05651c212300b002770328affbmr3487255ljq.376.1669160220986; Tue, 22 Nov 2022 15:37:00 -0800 (PST) Received: from eriador.lumag.spb.ru (dzpbkzhtyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:a302:8a1a::1]) by smtp.gmail.com with ESMTPSA id h3-20020ac250c3000000b00492c463526dsm2666454lfm.186.2022.11.22.15.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 15:37:00 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v2 1/5] arm64: dts: qcom: sm8450: add RPMH_REGULATOR_LEVEL_LOW_SVS_D1 Date: Wed, 23 Nov 2022 01:36:55 +0200 Message-Id: <20221122233659.3308175-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221122233659.3308175-1-dmitry.baryshkov@linaro.org> References: <20221122233659.3308175-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add another power saving state used on SM8450. Unfortunately adding it in proper place causes renumbering of all the opp states in sm8450.dtsi Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 20 ++++++++++++-------- include/dt-bindings/power/qcom-rpmpd.h | 1 + 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index f20db5456765..8cc9f62f7645 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -3211,35 +3211,39 @@ rpmhpd_opp_min_svs: opp2 { opp-level = ; }; - rpmhpd_opp_low_svs: opp3 { + rpmhpd_opp_low_svs_d1: opp3 { + opp-level = ; + }; + + rpmhpd_opp_low_svs: opp4 { opp-level = ; }; - rpmhpd_opp_svs: opp4 { + rpmhpd_opp_svs: opp5 { opp-level = ; }; - rpmhpd_opp_svs_l1: opp5 { + rpmhpd_opp_svs_l1: opp6 { opp-level = ; }; - rpmhpd_opp_nom: opp6 { + rpmhpd_opp_nom: opp7 { opp-level = ; }; - rpmhpd_opp_nom_l1: opp7 { + rpmhpd_opp_nom_l1: opp8 { opp-level = ; }; - rpmhpd_opp_nom_l2: opp8 { + rpmhpd_opp_nom_l2: opp9 { opp-level = ; }; - rpmhpd_opp_turbo: opp9 { + rpmhpd_opp_turbo: opp10 { opp-level = ; }; - rpmhpd_opp_turbo_l1: opp10 { + rpmhpd_opp_turbo_l1: opp11 { opp-level = ; }; }; diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 7b2e4b66419a..701401c8b945 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -174,6 +174,7 @@ /* SDM845 Power Domain performance levels */ #define RPMH_REGULATOR_LEVEL_RETENTION 16 #define RPMH_REGULATOR_LEVEL_MIN_SVS 48 +#define RPMH_REGULATOR_LEVEL_LOW_SVS_D1 56 #define RPMH_REGULATOR_LEVEL_LOW_SVS 64 #define RPMH_REGULATOR_LEVEL_SVS 128 #define RPMH_REGULATOR_LEVEL_SVS_L0 144