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 From patchwork Wed May 17 13:19:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 95256 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1136152vqo; Wed, 17 May 2023 06:28:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NyA/4xiaXcZJfuOwY5m2/XlkobB179h/qQ+Q9lNt8uMIrmww1QoW0n/pZ3dzftXwhb3mI X-Received: by 2002:a05:6a20:8f0f:b0:104:4b5f:1d0a with SMTP id b15-20020a056a208f0f00b001044b5f1d0amr24969770pzk.53.1684330108169; Wed, 17 May 2023 06:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684330108; cv=none; d=google.com; s=arc-20160816; b=BJkZcycVOkvcyup/0QSz0fX4eMClnNfwZGumO7ply5Z4sIPtlKVX+yxksNhBpgppkv 7vRuZha6a43EZKwyeZ8YWBLM7o2ngwQn2A+f24oyfUnWjKhZ4Gm9HEtP/qTOnLB5tywO j7rlwIlQUqQiVHU0mm9y7wOJeaTgH4O55GjShR99YWzdbCT3r+7mj562v1z9mlsR6usH Plp4XiAmyOzFRDBZAicpLIdHg7LfE0XbyFM3AFHMXtl2dgYg6+/+58LMia/scIP9gSeQ hFQNB5I5aWEYSwILRxzxICyxxv5I0Fe94sAPJkTIlToIXl/ZOar9SQme8wGdllRvw8f6 dheA== 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=3kzxnJh8kwu6FPZd5DyZQ2yCT8GH0SerhssKYLQ8joI=; b=hyQaBE5bRBZJDSgippzIeDGyUH0e1amkvjKzjayYs0Ks6xSKqrF0LucCehciGnqCVB rQkOx7PN1wsLfmYP/miE61aO4M4gtP9oZYlko7FRePUWZf6kOe7WH8V4RQJC0ZE1Sd5W fX1SOnm28hK/A3d6E9gjmYuQgBLGiQElgNcNhuztAiyYTvPgfhmxTpphDbPuq4iKJ1I3 Xv1nP0Jx86p363FyZ+XKwuHLmx6cDskFzfDTkCMABxUBtkUOPs3N1fhTz8XB+qWlxGQw AIphpcuRELlp0iTXBn5B5zwEDHFghCAWpAZgCSri2ZppiwLd1l87BKWF6bMs90MVmARD 4aGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YdjrP+Pv; 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 l71-20020a63914a000000b005308b2910c5si15267698pge.338.2023.05.17.06.28.13; Wed, 17 May 2023 06:28:28 -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=YdjrP+Pv; 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 S231928AbjEQNUJ (ORCPT + 99 others); Wed, 17 May 2023 09:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231938AbjEQNTx (ORCPT ); Wed, 17 May 2023 09:19:53 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA02213A for ; Wed, 17 May 2023 06:19:52 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2ac81d2bfbcso6933931fa.3 for ; Wed, 17 May 2023 06:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684329591; x=1686921591; 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=3kzxnJh8kwu6FPZd5DyZQ2yCT8GH0SerhssKYLQ8joI=; b=YdjrP+PvS6i5ITbD7jiRnt8DT3K87W0va4m7NafjnWZwk+s5eO6NOUgrd20qUISUd2 7raXVmGlmgjdA9MuVUHX77Z+f4b7w0SxWlce+pkxM64prHj4cvPuR1Q6P69beojHEPXC rAxGWN6j2muQO+F1ZrrLTG0Qf2fiyed8njFLxefXjBRqfsu5LiH7He1HcsdV5MMfaoWM W1iIAurotF6st/WH+2KZsZhkwVUSERUcGZN8ftVAbHumDumxUV47ydoYp/dq4aYdnr63 T5Jvd8MY4mp5d0ZE9a966FGpQ/fgqWYGTfWreDDkUrqysHG0BdHNHlnhevav6eabl8RL 5n0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684329591; x=1686921591; 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=3kzxnJh8kwu6FPZd5DyZQ2yCT8GH0SerhssKYLQ8joI=; b=P/yJuPCDF+Cc6JeYWFiDvepyuO9gASLoxo/UqGMtB4k84qMAygNhh3jaOYBJiev4gD ppOFBB8uNqvxLadnSjaIhvIHNhPF0W6i2l7UT+VplFhKCl/jOYMybFQJWSo9smh3iYO+ PS8sLj1yp+EpVdBI49Kpj3GIC/Hicgg5kTqfqQkpwIsvnIyex27oz/LoZ/J/vlJDeW7e DPcka/BVyt9C/PgqBXeqb1fryqeMDZaa9iR/OT/Gcjn54+cDHtL7SVyhnA/kuyVUo/yp WQMOVwIimVPP4ZWYVaKX6aOXZjJTFerq5aTvq4r55uiGpHVhp9b8UFTkagyBkaIcPhBD LOUQ== X-Gm-Message-State: AC+VfDyI9r8SHgglLgEFLUZ9QPVcwS/Gf5Him/mOzq05cwMJw7sJjOeH Vn53N/nKqLZaqwDcvqFFI8WsF/Xobju3S1P0eBo= X-Received: by 2002:a2e:9989:0:b0:2ad:ad0b:d0fb with SMTP id w9-20020a2e9989000000b002adad0bd0fbmr10065318lji.30.1684329590789; Wed, 17 May 2023 06:19:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 06:19:50 -0700 (PDT) From: Konrad Dybcio Date: Wed, 17 May 2023 15:19:44 +0200 Subject: [PATCH 2/3] dt-bindings: power: qcom,rpmpd: Format RPMh levels better MIME-Version: 1.0 Message-Id: <20230517-topic-kailua-rpmhpd-v1-2-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=2752; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=miOU6wFywRrGPuGE8Wa5Jxx2F51sqJAUPCdunf9NR3Q=; b=Ga3ieyrCriRnLBXJyKGdPbRFfHdpDaW+ogkdft+8FGCunr5lsU+AfV5f8U+eGe3Dnz4Toijns bd/hMSHuJZRDtGZQjTMUte6GJSGpPmxEFRHQ/8fZv1mlVC4tJ/rvEfa 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,UPPERCASE_50_75, URIBL_BLOCKED autolearn=no 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?1766148127364450767?= X-GMAIL-MSGID: =?utf-8?q?1766148127364450767?= After adding the missing levels with a nice, easy-to-read diff, reformat the defines to make them nice to look at.. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- include/dt-bindings/power/qcom-rpmpd.h | 46 +++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index e34c01e650d6..4ede277d20e1 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -207,29 +207,29 @@ #define SC8280XP_XO 15 /* 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_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 */ From patchwork Wed May 17 13:19:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 95258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1137049vqo; Wed, 17 May 2023 06:29:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5p6uA+Wsq3ph1buMs6T3Wcad+9QA3EIZY6/eCCXY6TZL51L3HEkVP+J1isoz9mqJTwICdS X-Received: by 2002:a05:6a20:3d91:b0:106:11fa:192c with SMTP id s17-20020a056a203d9100b0010611fa192cmr13435419pzi.61.1684330195786; Wed, 17 May 2023 06:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684330195; cv=none; d=google.com; s=arc-20160816; b=JYz8WZucZr6nwHJBIqc4JVzEg5ARkEGLaNzwC197Sx0P4wgiTTULo+TN9fD2svTeHb x1nMlV6RXuYq8Yz8fpN2e09XGPT9rbhkf8USgCN1zYBgd3uNflg2yIqeSWIO6XGFZrsH c9HA3agSBMeBF3Qpx8gFBrDSKtqy2nA4ftZRGDrjynD8Uq3V2mKxFyILfQJDHmfXlY7P nVTMBWNjCYRssXgNF9wjpDLt53FlEeElrGW8sJURTS+RCjkZSJuVJhBjv9cXLwXFayEg qKEggqVbrs7JM5wvW8aSRhFNgsrGJVlkgsXZDNbJUa6A8IIJgv6QmD6NKQi59LQ3c+p2 UCBw== 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=Snql9fZTVzGEa4100bCYfNArEVQGFmNQcHmddiMGNsw=; b=ZhmWiusVMsYnWYfLA4YIWEfjRTmtPgiPsC3RbxWEe0N38NrWjZlcejCJTeJYXA3XOd jztJJvrRNy0R7RZOSMomxKKaW44HfG2GvlgXe30Z+LQsaukN4/pXMKjPV0p2mwXV8kAD tkT5ozxJqMH4Od2OCceLvfn55z7XRZuIlxV+F0SbOhZR7/JQ8R0tK+MzEbawqa14AYvM oQ6AwJgoiJu1EydKDpH8iG5giYRismmnZVcW4ju69rs4cdd1NtyQg9cqbdmh/ciHmd0k Evtdjm9ZDjaaYqjLzz6GXQS2eG6AbrUGGkJnB2tDnMxtTeiaHBiHTt7Ylz5ybfRR1ucD YmYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PSGPQwd7; 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 185-20020a6301c2000000b0053048bd0669si19121507pgb.445.2023.05.17.06.29.41; Wed, 17 May 2023 06:29:55 -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=PSGPQwd7; 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 S232034AbjEQNUR (ORCPT + 99 others); Wed, 17 May 2023 09:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231970AbjEQNTz (ORCPT ); Wed, 17 May 2023 09:19:55 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF11E50 for ; Wed, 17 May 2023 06:19:53 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2ac88d9edf3so7149451fa.0 for ; Wed, 17 May 2023 06:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684329592; x=1686921592; 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=Snql9fZTVzGEa4100bCYfNArEVQGFmNQcHmddiMGNsw=; b=PSGPQwd7aSZF8vck4JAqV1uQpBjlGBgWdQZ6ndjUP7T2xNHy+zCY+wfDzBfTwFrMxP 0/kgOqZcWegzG4/b1Y1mLSWaNdLEVvrizOc5zuU76NN7iQ0btqGV0MTEKXnVGaY9yb/E CZ6fysvS/D9Amb3yM9oHPXanEmXHNe1NIjSWjzp/UnkfJYcObcmMFwuE8y+nFsp2I7A5 BK/y+vyKMx9IILqsYWlh13yJZVlIxLKtluTOCj8RKnylFbHoUycslBW2rJyU/7moWXQb TAnFeJSkdopJl5U3L3jeZqHHYIyoQjly2FQMG9+WaS9wDoXYigySG0XZrbogifmy/C5+ sFUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684329592; x=1686921592; 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=Snql9fZTVzGEa4100bCYfNArEVQGFmNQcHmddiMGNsw=; b=VkCSFsTNPD4Hr3bdpsk1oIpyxKzXIlgCqJxnyjri6ug4hf+cBlYA0jgMl9sGJWPRfc 77WH8D4QkHKf4er/GRqLreFDRTjlA68sSMQfRSJCZsHNeIKDAVsWagYx/E1WolUSuA9h GK/UY7GzzWPHfiNA+bn1I4Vwt5u4hQjzqV4oeAX76gO8Vzi+nERP7F03WTvB61tGB5W9 XRIk+7ReQdAlyy0daC+3GAsTOfu9WaZdHMbfW8k1zwOvAqr6d6xpJeA22G8gTCQawU/p 6U46Y2fPbjjIC0x9UE6KOAQR86LcimFXQeKH9nqBePbZxMfNR+89J01T4iSYe7jNN5U4 AHpA== X-Gm-Message-State: AC+VfDwZ3d8btY16kBkCuAMAB4duBXVFwiaVySpUgJl5MjsGHOMdRRAZ b3vGNJzTBW3mhpz7E1/imGgUdA== X-Received: by 2002:a2e:801a:0:b0:2ac:67f7:25a2 with SMTP id j26-20020a2e801a000000b002ac67f725a2mr8993656ljg.50.1684329592065; Wed, 17 May 2023 06:19:52 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 06:19:51 -0700 (PDT) From: Konrad Dybcio Date: Wed, 17 May 2023 15:19:45 +0200 Subject: [PATCH 3/3] arm64: dts: qcom: sm8550: Add missing RPMhPD OPP levels MIME-Version: 1.0 Message-Id: <20230517-topic-kailua-rpmhpd-v1-3-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=2258; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ZxLc6Pyv1LGo4O8MrviS8WijNnatdta5WuEdHKXOjlE=; b=Ra4e2+oAWw6UTwvdX5hrOrg9xPuQHRqVZBPauOldQ4WFI+T0ug71fez4yahebETqSm7cE0H2w AHiHBZav3vCBe11B9Cs6t/HNSLir3Gqkyir64zF2sB5MtrG9/NSN6O2 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?1766148219085384573?= X-GMAIL-MSGID: =?utf-8?q?1766148219085384573?= We need more granularity for things like the GPU. Add the missing levels. This unfortunately requires some re-indexing, resulting in an ugly diff. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 6e9bad8f6f33..0c987dd4e4e5 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3616,35 +3616,55 @@ rpmhpd_opp_min_svs: opp2 { opp-level = ; }; - rpmhpd_opp_low_svs: opp3 { + rpmhpd_opp_lov_svs_d2: opp3 { + opp-level = ; + }; + + rpmhpd_opp_lov_svs_d1: opp4 { + opp-level = ; + }; + + rpmhpd_opp_lov_svs_d0: opp5 { + opp-level = ; + }; + + rpmhpd_opp_low_svs: opp6 { opp-level = ; }; - rpmhpd_opp_svs: opp4 { + rpmhpd_opp_low_svs_l1: opp7 { + opp-level = ; + }; + + rpmhpd_opp_svs: opp8 { opp-level = ; }; - rpmhpd_opp_svs_l1: opp5 { + rpmhpd_opp_svs_l0: opp9 { + opp-level = ; + }; + + rpmhpd_opp_svs_l1: opp10 { opp-level = ; }; - rpmhpd_opp_nom: opp6 { + rpmhpd_opp_nom: opp11 { opp-level = ; }; - rpmhpd_opp_nom_l1: opp7 { + rpmhpd_opp_nom_l1: opp12 { opp-level = ; }; - rpmhpd_opp_nom_l2: opp8 { + rpmhpd_opp_nom_l2: opp13 { opp-level = ; }; - rpmhpd_opp_turbo: opp9 { + rpmhpd_opp_turbo: opp14 { opp-level = ; }; - rpmhpd_opp_turbo_l1: opp10 { + rpmhpd_opp_turbo_l1: opp15 { opp-level = ; }; };