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 */