From patchwork Wed May 17 20:12:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 95532 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp30695vqo; Wed, 17 May 2023 13:20:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PbNPJhyAIUK+tpg9gLtdeOYNY5sgTkB1TN9+1nImpPOsKykEfhBOWw/QoucH0Gc35ZBWh X-Received: by 2002:a05:6a20:12cb:b0:104:1ab7:8242 with SMTP id v11-20020a056a2012cb00b001041ab78242mr27334247pzg.43.1684354858485; Wed, 17 May 2023 13:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684354858; cv=none; d=google.com; s=arc-20160816; b=WDt9I7W1DmnlABpZFhhT9n5j1NSoYtDEtF4DUEXelzLFUPb4E5R10Epnx8oz+S1DnE ABaIQqBc93+rK7KRLYCA3XLF/F3eBnaCnGvt8Qs3W6BjiLw3cqAlWoJBa2cpmLJ5PQLy j42mQstCzx6NxJATBqF5/m9HQA9qfPgYKqc6PEbj0lgCTnLjjJWgd/vebZwLSLPnwAdj Y7OYi3jA/UPYLEAS1gy/JUyMcNBA3xWrY7h9+M22U8WMljL003FTvQ6gj08BtZFXBswV +LPS/1P/XjbGNkkEjtT/IvJ0g8hQ/nArJBcy7u20LeDAC5THFmFyWBAh5CGW6ucthTCG Q0dA== 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=H5WruFuMLsK6il76ZmJiHugLl+bZzo0hvjMDD0Qg1jI=; b=xq/9YaJfCNbK5yw0EK5ANVt2XJGKDHN3xe08TLdTVk898F5OF1fuIDNpyJMZh64/6y Ms34CrL+Zw8+3ZmZ5gv7n6FNZG1aTiy/4oNt17oFisogzjRJFG/OS0so6lKgv6RlnMkd 0OclVbUvJrlb8GU2sre/78T1CP2PXXu8deQOuWcM0ZjLPaoL9SK6/coYFjiT/sZ6aq8W eOV7SMDpKR5GdmuOYXGtEAnJDSChno6eUlPn5xBUabvWwPcDnPzAKm88+fv84j1E1K9v JmWXw7Cn6y8Nn0dFpY5fbinYQSba/D5vLIULRbLYOZfSHbev4QuDuxR9nVQsi0X1uSNt ZWpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aLP4ikbR; 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 lk14-20020a17090b33ce00b002504e81b47fsi2598231pjb.168.2023.05.17.13.20.40; Wed, 17 May 2023 13:20:58 -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=aLP4ikbR; 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 S229595AbjEQUNb (ORCPT + 99 others); Wed, 17 May 2023 16:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjEQUNa (ORCPT ); Wed, 17 May 2023 16:13:30 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D47A32D55 for ; Wed, 17 May 2023 13:13:28 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so1527090e87.3 for ; Wed, 17 May 2023 13:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684354407; x=1686946407; 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=H5WruFuMLsK6il76ZmJiHugLl+bZzo0hvjMDD0Qg1jI=; b=aLP4ikbRC9VY40VDjBZxuWvRloQNr4WeW3oz5OYVIPi/6jEXGfLT8odrwlRM4njiYi RbmeAlgFub/ogQ6g8k/9Z8yzrxYkFez0wOriXN2vWCzW8Sk5322qdkUElpn/NZsnOfNB VKOFLg6sJTT2gZVgLji2C1P+8M3cZWGlJbCOHnGtoYjfVPvLO0XmvLbZyUz/sVEUk/K9 IELNHBabObSvp5bZjaUrZp9fhUhQjYgPs4jFpyunsdzfhId0SXLzBamgXXs9rfhpZtsD DCe5NVgRbCNH1A5PipSVAQ0bbBzEsISHthWb/sKpLSjDJrs0QtDGtQxZnO6ObIQs+QaU u/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684354407; x=1686946407; 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=H5WruFuMLsK6il76ZmJiHugLl+bZzo0hvjMDD0Qg1jI=; b=E+ln2oln34cdNp+pmWOFH+QvD3+gbgx67Z4lQNe67XTHTWSaVkWSzF146qYoM/DH45 iblyJJZx5TiMIIYWFgUMVByEeo+CdfrZkLHsMU4MUbJUKd04XsFwoQ9CYUy60zS2myAk t62aeNw31/9ViB5KzGj+FdzW0iKfdQ9uvJvsB6HLDlPVpNlClKSg1H7Y8vTmkAXrcpRw h1xaTEUc+Gcfs2jl877FLI9SiJUgTtiSf/WCk2+IeYSJinc/FX6gKon5MEhgjOo13f17 G8fup4ZFJ0TXJ14S/Rrx8juhTjUqDoNkFkJewYSwtfQJ7f2QBMyfI4YyHatNgS/5us0A Jyfg== X-Gm-Message-State: AC+VfDyGtxszLuSQW/Lz3/D5u1oz9m+RmGE4fUxcCX9N05niCic0Hjvl VqUPhyYIOjju/O3ir76KOrkJkA== X-Received: by 2002:ac2:531c:0:b0:4f3:941c:986d with SMTP id c28-20020ac2531c000000b004f3941c986dmr602639lfh.44.1684354407034; Wed, 17 May 2023 13:13:27 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id p27-20020ac246db000000b004f382ae9892sm1190899lfo.247.2023.05.17.13.13.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 13:13:26 -0700 (PDT) From: Konrad Dybcio Date: Wed, 17 May 2023 22:12:50 +0200 Subject: [PATCH v2 1/3] dt-bindings: power: qcom,rpmpd: add missing RPMH levels MIME-Version: 1.0 Message-Id: <20230517-topic-kailua-rpmhpd-v2-1-3063ce19c491@linaro.org> References: <20230517-topic-kailua-rpmhpd-v2-0-3063ce19c491@linaro.org> In-Reply-To: <20230517-topic-kailua-rpmhpd-v2-0-3063ce19c491@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 , Krzysztof Kozlowski , Conor Dooley X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684354400; l=1806; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=FQX/ZyV3QW8xEQQr1VaQD9lAWELAiM8u+TWjR9SmENk=; b=dsoWxr8l3xh7X40X4WzZlcAH9mngP3ux/kQ6yLVzT4jJdem5u1i/L8i3BPPjzzt1yBjMglDEE M6hs65iT3wtA75FsdqWsoZTsrI9hAwjvQlwnP/eckDJwxItQNnlaoq2 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=ham 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?1766174079941725295?= X-GMAIL-MSGID: =?utf-8?q?1766174079941725295?= There are a lot of RPMh levels that we haven't included yet.. some sadly turned out to be necessary, add them! Acked-by: Krzysztof Kozlowski Acked-by: Conor Dooley Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- 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 20:12:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 95533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp30699vqo; Wed, 17 May 2023 13:20:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ733rR/jN8YzeNGawpd/Npep+RJQtb6z+z/e+pm8qRk694Ksb0Ptq46efqE6uND8PAQSRB2 X-Received: by 2002:a17:90a:728f:b0:253:2f58:fe62 with SMTP id e15-20020a17090a728f00b002532f58fe62mr91596pjg.19.1684354858848; Wed, 17 May 2023 13:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684354858; cv=none; d=google.com; s=arc-20160816; b=hvUtHjyqRtGDBm+fxfiKBq/I3UhE1am66Q2RfXT2zZF485io2Ygw2q2Yd+ixQ3QNs1 RiuG2EhdBvoKnyD3BJdI9ZLx/chY3LbeKET8T19FJtBMFWRVjCPAH1kDy2ea8dbBhLfK /bV6pGgWS2jt8bjv4JYnFgeHhbn1CCm28Zj5GqSuyQDv5WEExE5/uzN+pSeD0VdFSSeX k90zQanT9cF5uk9k0T4F8kjPvnpsGqEUn7spi0WQSwjjSfQN9RybSDIJjs2+5aPXRwcI rz3zFYwpMEWkEIwl18jzxikQCwJ0OHIlOZXEbUD/W/f1UDp/caTeA0K9IHSnsmG736yA Ik2g== 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=p4MkwaG45dwbFLpCnrCtiuWihS+msbfT86nmMyqxuCE=; b=mwCgR8oq2yb9aSIoD5AfcE5ZY4nc9OI94krtS6zGfEH8QImUAAaZVBqArmvbV3+2d4 Q14kJXhqNDu0DP0yJX6mhXcJXIhpkQEGML+P2+aJDb+rnhYk+IAlk+sECkoUjuMmL60p 0EBLryzzuNeZ++ZC0Uxp18gywxEB8LnyUPfVQTi2h8XqxugSD94qsarCdNpAY2VJFZaL QPfP9qefpbBzlxdexwiCTQVZ9Gsfem+uyMQZd37BSC0kUuqjI2n0npdxPXvzGmxNISnw 60i0xWUuIftQc+3wPhX4/58/MV/a9O+eUCr38pgE4iS+JNPMfCFVgTNnCVpQoG80GQ0n Gf9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W1nZKzoQ; 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 c35-20020a17090a492600b0025042fae398si2457939pjh.45.2023.05.17.13.20.44; Wed, 17 May 2023 13:20:58 -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=W1nZKzoQ; 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 S229510AbjEQUNm (ORCPT + 99 others); Wed, 17 May 2023 16:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbjEQUNg (ORCPT ); Wed, 17 May 2023 16:13:36 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61B9D6A58 for ; Wed, 17 May 2023 13:13:32 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4f387d97dddso1491288e87.3 for ; Wed, 17 May 2023 13:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684354410; x=1686946410; 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=p4MkwaG45dwbFLpCnrCtiuWihS+msbfT86nmMyqxuCE=; b=W1nZKzoQCW/zlSlxuOfTIs+v4ffA3p1XZPx+rO2HIEVNHPNy9pQ3fy+GbqzFkJA9G3 M3ftVFnTKRVYh4nL+cpLG+ouWmHUt4jKV/b0XNtLCXWjuDGIWvJbBF2LaRyCHqpZZK6r kMx3iTdlkMmumNkEOVUU1UUFb2eO7Zg74V7YJeWMhfUSl2aDNHlavn4mQBimhyrYbIVW JDVzBpNpxJxZJkP5MxtgahuW9AOdv0pCdEKSEZqPKZ5JSSZUewqF3kEvUuT8eJ0/2Iq/ Ju8TKULAvTJ3cxQVOwUu6s+NxCax7b7EONY6k3R/sJNlWKBoMs0METk1tSz3x1NYobtH 1znQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684354410; x=1686946410; 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=p4MkwaG45dwbFLpCnrCtiuWihS+msbfT86nmMyqxuCE=; b=BOHkFf+oolkMZmh8edRq/3aH7dc0/3XxScOjxS2c0Ojlw/Zz8tPTOdLx/RDL4EVeP3 +V0JkhpT/flg+60JzJGOL433ACFnJme7ZMdIfgbOD68w5MTWalZLhMkIhAVpHNiwvu5P SaqK/PFgSjz5jsJgWlBg6FCY9eBCC/sVApnjGJUqdLSdK684fnh0wkA0G7RvYLRgHwpS DbeX0Bu9AWfO1rsBT7bgPPxAUd15LW6E8XJMU3QAGWF7UElZhbILbyu2Cwcn97eaXSB/ MTbJ4Ayr+5b4l3/qtRRtwz3qDw6o2mZsrKMJLg+GPqy7JeUsCUuLqF8SEb5c61BUtg4R 6ZLg== X-Gm-Message-State: AC+VfDxmHyJUFMhpJh46+QZetn5S6fFbaSFnnWWHafIuUE4Pd02ciLGJ fGt5SB5ZdQjUr3RVErkrzUReWw== X-Received: by 2002:ac2:5ec5:0:b0:4cb:280b:33c9 with SMTP id d5-20020ac25ec5000000b004cb280b33c9mr535630lfq.24.1684354410757; Wed, 17 May 2023 13:13:30 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id p27-20020ac246db000000b004f382ae9892sm1190899lfo.247.2023.05.17.13.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 13:13:30 -0700 (PDT) From: Konrad Dybcio Date: Wed, 17 May 2023 22:12:51 +0200 Subject: [PATCH v2 2/3] dt-bindings: power: qcom,rpmpd: Format RPMh levels better MIME-Version: 1.0 Message-Id: <20230517-topic-kailua-rpmhpd-v2-2-3063ce19c491@linaro.org> References: <20230517-topic-kailua-rpmhpd-v2-0-3063ce19c491@linaro.org> In-Reply-To: <20230517-topic-kailua-rpmhpd-v2-0-3063ce19c491@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 , Krzysztof Kozlowski , Conor Dooley X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684354400; l=2869; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=rkz3rDD9UJ1lh0oaKwuo6UWyGych2wWx1GG3p1Uh5sc=; b=/xV2wCMDg+dtNNOsTBZmr3nxaglGCFZU1xdccHGhSQZrfJaW+FVFw0vlrNixVbLuC7BBndEoE AuYYnUP0SPsA3Z19xwWbOPbLV0mIAiawN8nSRPZvwnIj2MLz3A++2Gv 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?1766174080441066786?= X-GMAIL-MSGID: =?utf-8?q?1766174080441066786?= After adding the missing levels with a nice, easy-to-read diff, reformat the defines to make them nice to look at.. Acked-by: Krzysztof Kozlowski Acked-by: Conor Dooley Signed-off-by: Konrad Dybcio --- 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 20:12:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 95529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp28539vqo; Wed, 17 May 2023 13:17:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7KpzYU2ecUQLm2Q1zflgmdp4woHX5/GSXbcxCpfhCm6dMt/1KOsylfwKBnU0WeNybGJ4fB X-Received: by 2002:a05:6a20:4658:b0:f6:2287:e05d with SMTP id eb24-20020a056a20465800b000f62287e05dmr43145405pzb.10.1684354619749; Wed, 17 May 2023 13:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684354619; cv=none; d=google.com; s=arc-20160816; b=JDnvGBic9bNdcs1Wo/P993NoZTOihCZ4lDJ+3bk3L1l0NxJI3YblieySzxqvhzUrjB w3HH1dNhHh5RrJHR4LtJswIK7RyUF0gp3FsFFzZyt2FCicc6FWhNs+xGnJrx2MAF7NM0 5D29c60tvCRGyvGdW1cNjaM/6QPUmitswsi7bgq7RnwcxDAWmocvKYCyx1Ct0fCgUrrJ FEk28M06POPK5eexitoYW1imLkT+23Aa9/RA2A40/iBnjnm8wqUX2c4gYRplgnhIFqZ1 pmw4buWCGeGh9Ofu0x7UDLNNXGp1A92sPM+2JtRX5/UEhF2fYtqMOqYtz1xYKiHZuhJ2 gFog== 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=Fddr7vQfG7SJnVJn02S1O20K03Qt9GSXK3rEV8Cg+k0=; b=oAM+RALs9fHEQCDB91PiDBidESmRu+D+wqe2x8X0dPspsuT8Bj2U0tHv6cMRNrmhrr v7eEmWHDDX977PVoy2oARFYe/w9kwO+L6ylsT6Ojuo6rZn2XHt8d89mUtr2htBSWOP4j Ul5EEI1wZJBdKCM7j8Zkbx3C26JXISurWVSTjrlG4jbdzWOrsR8Qf+fRlz+T6d4sOQSE ZvpsQK/elGuMsp1yHUho1ssk1m6fWFY+pX0IoW0Xm5a4D4vnCpzIgrDST6UfFBuDm3xQ yMxl0DFsfOyhSv6tjY/CuHe2I504W0Bp75j17bwVTuaCsZE+3w/jY4oumnvy9Y5UU5oI Z8aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EkLoRT+K; 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 b15-20020a17090a488f00b0024df9561b5asi2416857pjh.143.2023.05.17.13.16.34; Wed, 17 May 2023 13:16:59 -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=EkLoRT+K; 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 S229623AbjEQUNj (ORCPT + 99 others); Wed, 17 May 2023 16:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjEQUNg (ORCPT ); Wed, 17 May 2023 16:13:36 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 625D67ED0 for ; Wed, 17 May 2023 13:13:34 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f122ff663eso1400199e87.2 for ; Wed, 17 May 2023 13:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684354412; x=1686946412; 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=Fddr7vQfG7SJnVJn02S1O20K03Qt9GSXK3rEV8Cg+k0=; b=EkLoRT+KFXel4yX8Uvo1ory38MSZ65Hov9IExlTPHSRF37JxC4DtRK795QyrQtsc1F rgd/0WA5MbPn1skALE6HAdAUU5IVndpePxwtaWYyBtRmL4j5oqAMLhZ+B8EPu81D0TvF n6qa1LuB4PuR+Obzs26YyZ8FUwegIq+4/jDGdpp7TN4Ku6fcnm+jajQQXuICyxtVQrmt hK2ZLT3VnC9WaVfUtcsWj166PSyczngUoIDptWoDBTRyPs1eBvFV4W2k6y/FgZ64zHcD ruE+yasm9wzXzjZpD06p6YimBUB3VGNKInuJV6YfG5k3CkSiyYH/fW9AS84NXmZ4seaY scWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684354412; x=1686946412; 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=Fddr7vQfG7SJnVJn02S1O20K03Qt9GSXK3rEV8Cg+k0=; b=UZRixxIIxCFwjbmCwBcoopb+LD5U2rAVp+SRPvq8PcAEdHhToiCB24uml4zA525o2Z Smb5riEKehZ7/pQYcYPKod4/ZbWb0/y7RtHK0xPzdOeAWTTXUfMqDSaCyDB8WNtHq7rj MR61VFob2whCjXHbMTd/ju7nW19oOZMxexIa4YscbMbvxb9GzIxkdFmBACF+x+BLBL0R 9zLOa9y5VYcQ7/1iGXxkPoicuX268ImD7U7Md3PLwdPy7GzWdYq3CoZv81MLzbAlX1I2 v9pJy4VHF8oTsuKnSZ96a2V4JCeSYZ49Vtvg38jlkJgXcWB4Sys/yeZyk152kWRwIcSp igWg== X-Gm-Message-State: AC+VfDwgwsZhywZI4MMknNXsXhVB+VnTd3FqUuS1yyx/1nyofNxN/Kzm 4fRSLtYi/PqYf+4jg3qhHJ+c6w== X-Received: by 2002:a19:f707:0:b0:4f2:7e3e:7d24 with SMTP id z7-20020a19f707000000b004f27e3e7d24mr545223lfe.46.1684354412582; Wed, 17 May 2023 13:13:32 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id p27-20020ac246db000000b004f382ae9892sm1190899lfo.247.2023.05.17.13.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 13:13:32 -0700 (PDT) From: Konrad Dybcio Date: Wed, 17 May 2023 22:12:52 +0200 Subject: [PATCH v2 3/3] arm64: dts: qcom: sm8550: Add missing RPMhPD OPP levels MIME-Version: 1.0 Message-Id: <20230517-topic-kailua-rpmhpd-v2-3-3063ce19c491@linaro.org> References: <20230517-topic-kailua-rpmhpd-v2-0-3063ce19c491@linaro.org> In-Reply-To: <20230517-topic-kailua-rpmhpd-v2-0-3063ce19c491@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=1684354400; l=2617; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JJOo1yC89QKK0GjXF7VRcmrSi+n6mZDBrrstrn3foPM=; b=CpJVb5IAq0cXatsz5h3BLG1mi4TobFqZMAM/KIr0NgZShrr+JQ5Vz3+6wLTsj6rluYNpA1U2i 7hQ7+NHTG0DCQgJt/oNsOa9bZhyOUYCKinWV09G+CrWPDCRR8d6BLbj 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=ham 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?1766173829711010781?= X-GMAIL-MSGID: =?utf-8?q?1766173829711010781?= We need more granularity for things like the GPU. Add the missing levels. This unfortunately requires some re-indexing, resulting in an ugly diff. Rename the nodes to prevent that in the future. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 40 +++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 6e9bad8f6f33..1c9460dc3d44 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3608,43 +3608,63 @@ rpmhpd: power-controller { rpmhpd_opp_table: opp-table { compatible = "operating-points-v2"; - rpmhpd_opp_ret: opp1 { + rpmhpd_opp_ret: opp-16 { opp-level = ; }; - rpmhpd_opp_min_svs: opp2 { + rpmhpd_opp_min_svs: opp-48 { opp-level = ; }; - rpmhpd_opp_low_svs: opp3 { + rpmhpd_opp_lov_svs_d2: opp-52 { + opp-level = ; + }; + + rpmhpd_opp_lov_svs_d1: opp-56 { + opp-level = ; + }; + + rpmhpd_opp_lov_svs_d0: opp-60 { + opp-level = ; + }; + + rpmhpd_opp_low_svs: opp-64 { opp-level = ; }; - rpmhpd_opp_svs: opp4 { + rpmhpd_opp_low_svs_l1: opp-80 { + opp-level = ; + }; + + rpmhpd_opp_svs: opp-128 { opp-level = ; }; - rpmhpd_opp_svs_l1: opp5 { + rpmhpd_opp_svs_l0: opp-144 { + opp-level = ; + }; + + rpmhpd_opp_svs_l1: opp-192 { opp-level = ; }; - rpmhpd_opp_nom: opp6 { + rpmhpd_opp_nom: opp-256 { opp-level = ; }; - rpmhpd_opp_nom_l1: opp7 { + rpmhpd_opp_nom_l1: opp-320 { opp-level = ; }; - rpmhpd_opp_nom_l2: opp8 { + rpmhpd_opp_nom_l2: opp-336 { opp-level = ; }; - rpmhpd_opp_turbo: opp9 { + rpmhpd_opp_turbo: opp-384 { opp-level = ; }; - rpmhpd_opp_turbo_l1: opp10 { + rpmhpd_opp_turbo_l1: opp-416 { opp-level = ; }; };