From patchwork Wed May 17 13:19:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 95257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1136261vqo; Wed, 17 May 2023 06:28:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74uWUsfOjEQvCpN0BqQelifOvGR9IBNqvLUrRPgA6Pupf51CURFfxvTvAwXv0+OUehYiSl X-Received: by 2002:a05:6a20:394a:b0:102:19b9:25c8 with SMTP id r10-20020a056a20394a00b0010219b925c8mr34754986pzg.37.1684330121721; Wed, 17 May 2023 06:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684330121; cv=none; d=google.com; s=arc-20160816; b=S08GgGM1Uj4Zon0yaQvXio3JNsfcBaSZSEoWvjlUTXLoJFeNcFuOq38EVqL8KJ6a4O loc/6l3FomZhO4D4M/0oNVDliQxbmKClfLGVFfrllCUNw6hxIszKU1yCYSKEXPuNaJM7 /gdomMDUcm8hst6reQXFiQ1MzDGVm3S/D+JnHJ+snQ0RSA9epYCkR+LcSHmYhOxVetZJ 8Cr/ToaTTSkX7PWsADrl38rQ6G+kHWPv+uAx9HNADuOy8j+fRR++MK0CWooisIG0K+Q0 wqmm5AgvF+/Y16wPy3XSAxCI2dD7rj73cedF/Yeg+lThS/hFANvnd+5AtS+VoUCCEiVc OG4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=dlk2ujN0SDgm42MpW/v7qgYGYP2kKFvH8Q9KOMt3D9c=; b=lx64/Gg5V+/kdLdXpnYPdinjxXCVDBMs0G6g72BopW9W6pbHbvlALHmrLBXck1eucj e72IVsTX3A13p2RyvCgtgsdYYyM8dnArnUJfVTabYjqrUwPhQSXS1nx31aIWiItnDXxG B9pPK7nx2wJAjTKIArXA9+0n3WG/FYx5RA4VSRjEyaSomlI8k9dNqv61gDb6DJr9VKSj jeSLfsYu7TW28HgwtdXRiVFgyLE9xo9cslBBlKTH9FqywvL1ED86DBjYeFIMF2lAlbcp oAGcFFzEZbm8igzvDlJWpbT1I5rro3Ph7hejuKZe0mLbxZgQnmv0I5KRGYszstv1if89 v4SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vACDgX4p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v202-20020a6361d3000000b0052c4296d8casi20231148pgb.325.2023.05.17.06.28.26; Wed, 17 May 2023 06:28:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vACDgX4p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231942AbjEQNUM (ORCPT + 99 others); Wed, 17 May 2023 09:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbjEQNTx (ORCPT ); Wed, 17 May 2023 09:19:53 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62FB51FC2 for ; Wed, 17 May 2023 06:19:51 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ac7de2b72fso7440101fa.1 for ; Wed, 17 May 2023 06:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684329589; x=1686921589; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dlk2ujN0SDgm42MpW/v7qgYGYP2kKFvH8Q9KOMt3D9c=; b=vACDgX4pkQQYkCTmtedrd4LJKbS9jitsjWjGIbE4U/fxeV+dkmyK1Vd0I6nCGqF+kt 4ssq2KctE79tjxYF+Xx8P/Gwnuj+p4Uqp5fx4yhirhbXgQbOtiAf2ev2em/larVhgcVY SJi2jSz1VQ+BCF4QfYOzAToKwwW6hQflKe8xh8ptM343Fynr0Y/m2gkYTB5ppEOO/g01 KffW0RKnJobnRL0JFi0rWTpqWu1pbvJrQvTWcETI0fu9DxiyO7KGYDXgeDgIDPZ0Kk/H 7mGcNIAl3hh6EjKSlz8c50xGVfljWfpHmxOkjnSONgZEUqcH2CEleDk5y2S6Kn+LlbRP ED9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684329589; x=1686921589; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dlk2ujN0SDgm42MpW/v7qgYGYP2kKFvH8Q9KOMt3D9c=; b=Js/gL74J/W612Lp7jRVuiFwaCir6WRkmVXgoTBFofYVm5YjwDwT91wrgMIQFO0KWjO OVaGZLQsYgSNhL92SLYYeQ+OO/cQu9oyqhOrCRBIUQ9pRw74mNcRBlxN7i/9tFwx2HpH m4FFQNFiHK4q0pv1ej1mS13ikmWxwGrWttHfQjymfg0NZlfgCWGzKaw41WR/jBjxwJhP 6kHVTXXnKx9pYsdnsyNeE/tkQQS2UQB4wJwp3ocJ54wo9Bb6l079DQcQB757SD8TdLEo CpC8lqahXLI4WPH+J/OHbnoQLuhNej4xMyylBzDfjsEWn9yxNzsR+f+Xwj5LcYy7BnbW OHSw== X-Gm-Message-State: AC+VfDx7Co4r/fkdIGmlYskrvZF00tXKxIq38U+adGEHOGZBVLPoUaln +5ZojZ5HqePN4MvpYJ/PaZjRpg== X-Received: by 2002:a2e:9b94:0:b0:2a8:d1cd:a04 with SMTP id z20-20020a2e9b94000000b002a8d1cd0a04mr9022797lji.48.1684329589655; Wed, 17 May 2023 06:19:49 -0700 (PDT) Received: from [10.167.154.1] ([2a00:f41:c93:874f:be7b:fb6c:26f9:307c]) by smtp.gmail.com with ESMTPSA id f7-20020a2e9187000000b002adadef95c0sm3007457ljg.124.2023.05.17.06.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 06:19:49 -0700 (PDT) From: Konrad Dybcio Date: Wed, 17 May 2023 15:19:43 +0200 Subject: [PATCH 1/3] dt-bindings: power: qcom,rpmpd: add missing RPMH levels MIME-Version: 1.0 Message-Id: <20230517-topic-kailua-rpmhpd-v1-1-cd3013d051a6@linaro.org> References: <20230517-topic-kailua-rpmhpd-v1-0-cd3013d051a6@linaro.org> In-Reply-To: <20230517-topic-kailua-rpmhpd-v1-0-cd3013d051a6@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684329587; l=1689; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=kFgBqoO9FoxHifw4SFG3wgrwh7M5Xry4p0AvNsa71tk=; b=V6skGjA9g450fo34GT5KJ3u/qpI5Ec6FOYRT5PODxRuUrtaQ5MiMKT8zoAqjNGewwEwosPEXV Gvcete9DeDbDbyq1Eb5tMyTnfxE0Ap0cdWitiwnMVUpByC3+S4Ru/3S X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766148141391990081?= X-GMAIL-MSGID: =?utf-8?q?1766148141391990081?= There are a lot of RPMh levels that we haven't included yet.. some sadly turned out to be necessary, add them! Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- include/dt-bindings/power/qcom-rpmpd.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 1bf8e87ecd7e..e34c01e650d6 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -209,18 +209,28 @@ /* SDM845 Power Domain performance levels */ #define RPMH_REGULATOR_LEVEL_RETENTION 16 #define RPMH_REGULATOR_LEVEL_MIN_SVS 48 +#define RPMH_REGULATOR_LEVEL_LOW_SVS_D2 52 #define RPMH_REGULATOR_LEVEL_LOW_SVS_D1 56 +#define RPMH_REGULATOR_LEVEL_LOW_SVS_D0 60 #define RPMH_REGULATOR_LEVEL_LOW_SVS 64 +#define RPMH_REGULATOR_LEVEL_LOW_SVS_P1 72 #define RPMH_REGULATOR_LEVEL_LOW_SVS_L1 80 +#define RPMH_REGULATOR_LEVEL_LOW_SVS_L2 96 #define RPMH_REGULATOR_LEVEL_SVS 128 #define RPMH_REGULATOR_LEVEL_SVS_L0 144 #define RPMH_REGULATOR_LEVEL_SVS_L1 192 #define RPMH_REGULATOR_LEVEL_SVS_L2 224 #define RPMH_REGULATOR_LEVEL_NOM 256 +#define RPMH_REGULATOR_LEVEL_NOM_L0 288 #define RPMH_REGULATOR_LEVEL_NOM_L1 320 #define RPMH_REGULATOR_LEVEL_NOM_L2 336 #define RPMH_REGULATOR_LEVEL_TURBO 384 +#define RPMH_REGULATOR_LEVEL_TURBO_L0 400 #define RPMH_REGULATOR_LEVEL_TURBO_L1 416 +#define RPMH_REGULATOR_LEVEL_TURBO_L2 432 +#define RPMH_REGULATOR_LEVEL_TURBO_L3 448 +#define RPMH_REGULATOR_LEVEL_SUPER_TURBO 464 +#define RPMH_REGULATOR_LEVEL_SUPER_TURBO_NO_CPR 480 /* MDM9607 Power Domains */ #define MDM9607_VDDCX 0