Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38071626rwd; Wed, 12 Jul 2023 02:35:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlHenDcPhTX+mIhxf7qTxQ/UIA75Zzd1opyGgWEigl9LAnYsrJDlEIF1jNHsFyI+ykQnl152 X-Received: by 2002:a17:903:41c8:b0:1b8:a73e:aaac with SMTP id u8-20020a17090341c800b001b8a73eaaacmr25003267ple.62.1689154502339; Wed, 12 Jul 2023 02:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689154502; cv=none; d=google.com; s=arc-20160816; b=hlFpIRUiSkDr+0On6oZMX2EzUC3uesEF4ep8BOAwCVnMV6fCC/t/pEurXfAW1eraE+ rkqUCZFLCgNaX0k+UZNd04VKQpVTKhZgC2czNvX4nz4qPT5046zxL+bheKwfQZhMC/Lh U0Nbb1qe9kCdNKrFSrJ6w/pR91CAH/SaDXnODoxjJf2H0j98m2aCaovpaeSF3deGSJmS TUQo3JmI1lvSzcU0nebDUtvtmhXvDDWZNB30AmiCilQFs/JIOgdlqI7J5S/nXskEveex 6j7zGl8AKi72iQc4VwsjGOpAAQfAPFpH11lCF6CTMrG2b4BtORr+Gx7FJ7i8hZTgox4L 5kvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1NjGqRq5zWFdsly/kg1kDssbJCalEae2wRAUaYUdM+g=; fh=B9F33IZ3Dn4XAZ0dcbjn0ttARZ1w/XG9DaiSDNOA27Q=; b=PKKPkr5qF8ygq87v0YBKE11aIwSsJitB/yerN2VQOMVigNcvsnIHlK71eneuN3yiIs z91Be4aH/wKtL9OVAJJbtFajBw7WFYaj8aECvyLM/0v4oVAyYyPVC06O4ljQcnRjvdim 3u2tJYKiYVY8rYb6bLMkBY4uE7Ie+A5qdfUW1/lefIjY1wysRi4s9CittRs8cFYpDVeC QvPjrke5hl2JRoub9dsniSSltn6MNOH/LHpSzZcA30tRyQnXcNtQgOKpMWO5ZbgcGI2N WtKu6G0CeV4MrS9C555t2jn4PeXC0oY5CzInVOIpudjk/efTZbbAmtO9KkB9GKXl4Kh0 8fUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=htcZzW1O; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a170902d48100b001b9e8ebe5a0si3222300plg.613.2023.07.12.02.34.50; Wed, 12 Jul 2023 02:35:02 -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=htcZzW1O; 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 S230504AbjGLJXV (ORCPT + 99 others); Wed, 12 Jul 2023 05:23:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233286AbjGLJWz (ORCPT ); Wed, 12 Jul 2023 05:22:55 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80FC1212E for ; Wed, 12 Jul 2023 02:22:14 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fb761efa7aso10574826e87.0 for ; Wed, 12 Jul 2023 02:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689153723; x=1691745723; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1NjGqRq5zWFdsly/kg1kDssbJCalEae2wRAUaYUdM+g=; b=htcZzW1OS/gE5qeL+aoGVb+2cnRqTmLWUBuKnWqAyaELuoRXnlY54d5Gk83+MQxl7z dOZuI3IYpxR2VjlVQ18FNEf/0F2Ti57PekZn8/vYah4HtK60xcb5/z5H1qqfyVMsZjR4 E2sEvVNJoDfjd4WaHC0+G+55hrvSO4AOB+jqCgzok1wDaKTmh7DfIj6HmyoXGJ+nelAr f3NZOP0q2/UmM/ex2LQHDpoe8erPK8XZKAJNQQ8CJIJ04xtdqeJf9qqG7b0ib8lTo639 1sS6yx4//OVp6dpbnWYKfNd9ckc0e3n1yPimpSAPq7OaSqvH4Q5Gy1oUoUngzlam9jTI Wffg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689153723; x=1691745723; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1NjGqRq5zWFdsly/kg1kDssbJCalEae2wRAUaYUdM+g=; b=F2i+S/UiyYBbozsznjxZcrQhFoTucOwIs33Lgcv/NV4V6Q3F/l14rV+RCoSNdWStfn gr8R+nFncf+0kW39awXiZ+GcKoOoQyPowERsV1eOOP2SlhMX6efqgHwze8eayvUFaGv0 QM7Nf6IOvGaFxiz3dX5P2dzUYXzchll435zDD6pA+QRaZ7s3FG7ceUxSLcCx6pKNCVKz goMq6v0+XKn09Xitb4rKT307hX1Nbf+A1iG1guzOHBJtNuYp7EENM9UyzbWlXpFFOLwO 3cltcT0DnfVQkfrBXMuu2s0k4Me+5MPvfjp1BYwmy7xCJ7brwYHwcDUYIIFEjUS+veFO hNrA== X-Gm-Message-State: ABy/qLaooNGIXgdJ0si1RMrEoobpSYEpVTMANCpY4w5dRALfaVgHCsJI RXp60989Rd/aW7xuEcWJOyEhGA== X-Received: by 2002:a05:6512:2025:b0:4f8:6625:f2ca with SMTP id s5-20020a056512202500b004f86625f2camr13186563lfs.61.1689153723165; Wed, 12 Jul 2023 02:22:03 -0700 (PDT) Received: from [192.168.1.101] (abxh6.neoplus.adsl.tpnet.pl. [83.9.1.6]) by smtp.gmail.com with ESMTPSA id u22-20020ac243d6000000b004fbbf9e58bbsm621222lfl.126.2023.07.12.02.22.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jul 2023 02:22:02 -0700 (PDT) Message-ID: Date: Wed, 12 Jul 2023 11:22:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 1/3] dt-bindings: power: rpmhpd: Add Generic RPMh PD indexes To: Rohit Agarwal , Dmitry Baryshkov , agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1689054169-10800-1-git-send-email-quic_rohiagar@quicinc.com> <1689054169-10800-2-git-send-email-quic_rohiagar@quicinc.com> <6746ceb6-dac4-ee8e-411f-8de0ff8f12e0@linaro.org> <77991119-a200-fbfe-5dba-580a0b0d3228@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <77991119-a200-fbfe-5dba-580a0b0d3228@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 On 12.07.2023 10:24, Rohit Agarwal wrote: > > On 7/11/2023 8:41 PM, Dmitry Baryshkov wrote: >> On 11/07/2023 08:42, Rohit Agarwal wrote: >>> Add Generic RPMh Power Domain indexes that can be used >>> for all the Qualcomm SoC henceforth. >>> >>> Signed-off-by: Rohit Agarwal >>> Suggested-by: Konrad Dybcio >>> --- >>>   include/dt-bindings/power/qcom-rpmhpd.h | 30 ++++++++++++++++++++++++++++++ >>>   1 file changed, 30 insertions(+) >>>   create mode 100644 include/dt-bindings/power/qcom-rpmhpd.h >>> >>> diff --git a/include/dt-bindings/power/qcom-rpmhpd.h b/include/dt-bindings/power/qcom-rpmhpd.h >>> new file mode 100644 >>> index 0000000..4da2e04 >>> --- /dev/null >>> +++ b/include/dt-bindings/power/qcom-rpmhpd.h >>> @@ -0,0 +1,30 @@ >>> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ >>> +/* >>> + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. >>> + */ >>> + >>> +#ifndef _DT_BINDINGS_POWER_QCOM_RPMHPD_H >>> +#define _DT_BINDINGS_POWER_QCOM_RPMHPD_H >>> + >>> +/* Generic RPMH Power Domain Indexes */ >>> +#define CX               0 >>> +#define MX               1 >>> +#define CX_AO            2 >>> +#define MX_AO            3 >>> +#define GFX              4 >>> +#define MSS              5 >>> +#define EBI              6 >>> +#define LCX              7 >>> +#define LMX              8 >>> +#define MMCX             9 >>> +#define MMCX_AO          10 >>> +#define MXC              11 >>> +#define MXC_AO           12 >>> +#define NSP              13 >>> +#define NSP0             14 >>> +#define NSP1             15 >>> +#define QPHY             16 >>> +#define DDR              17 >>> +#define XO               18 >> >> I went through the existing defines. If we adopt the order of defines for sm8550, we can migrate that platform and all of sm8[234]50 without breaking ABI. This would be a minor gain, but still something. >> > Actually, I added them in the sequence based on the frequency with which they occur in the driver, so that there are less NULL entries created for any target additions. Shouldnt we keep it this way and ignore for previous targets then? Don't bother yourself with this, we've already dragged you through some bindings mess ;) Dmitry just noticed that a happy coincidence occured and we could swap out SM8[234]_50 indices with these ones and they would still match. It'd be a separate patch though. Konrad > > Thanks, > Rohit. >>> + >>> +#endif >>