Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10876680rwp; Fri, 21 Jul 2023 06:21:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlG34pt4st2WLP0tUqynKhywCncOO9xhRonK8+8v+XXtYCm4uJTBrl7ELKAfqkVdk8vsJnnQ X-Received: by 2002:a17:907:2bf3:b0:99b:5a41:a77f with SMTP id gv51-20020a1709072bf300b0099b5a41a77fmr1774798ejc.70.1689945680639; Fri, 21 Jul 2023 06:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689945680; cv=none; d=google.com; s=arc-20160816; b=XG00qDMIEnaEMHVv6QYUrZpygzDC2pfkcwRLdC7n6RQD9YQG5VvYLdfcaswX7vAEmw Xew+C9rbDQf5lNbBOXkt4SY1vZVkdojlEoWZrlELwqSXizPE9aeHj3BnmjE79BnfJP7j mpOv3fOiOFKX/8ni2OYSJlrHNGC7u2Kxo76dShzO0DzK3bpKeoFuKwfsN2AC70W+Y0iA RnQdHV3bbzsMMq9gvru0YB6SjOlGg5DpAXW+sT7j88k51aq9kvqHJhZPjpDsiV09ODa+ 8JLldLSsjtaoR0veWEFdwZlZzWMGTBjDzjTT6UcSmSl/yhii1QvCZtQwjv186OqHKlBy 8kBA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TqrzHUFFi4dmgMy9Ldwn4thuKhNTwbJYVI/8iR/Ukq8=; fh=yOa8so9oXs2e3ufswijinIuRs5gbgOsYSraYAIrY0gw=; b=hjF5g9MzIPQu9H5fa6CC7infnF/qksRh6nYgNTujlYDk7mi5AmjO3JhSWr+F19KyAl b2iRQGX2bpUnt90HnlSr3GBp+XSs06c7cSzKega6EpoWAnnGA4EYMcrMSy6ivT9nBier vzLYwwM8uj58Zk3ofoE0zUNsn9HbIDn9WCFp14RGzbg8tfPswXd569ZxQ9YL3NMC3nha K3eCcyPtoRDFPlu0H1p7/t2ZPqh5D8EHEkgg/X3sBipVpZLQKuwbAN8bOTpEia0sYifF 2oD0ggmFgwtZWb2gNSIcoMjt2b/q+/xH8qpv7N+S5xIud+TeC74SwOyQK3YgNIJzsThK wZGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZsTA5srL; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz20-20020a170906cd1400b0098718777182si2201933ejb.685.2023.07.21.06.20.54; Fri, 21 Jul 2023 06:21:20 -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=@quicinc.com header.s=qcppdkim1 header.b=ZsTA5srL; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbjGUNSJ (ORCPT + 99 others); Fri, 21 Jul 2023 09:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjGUNR6 (ORCPT ); Fri, 21 Jul 2023 09:17:58 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2972A19A1; Fri, 21 Jul 2023 06:17:55 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36LCuQ2D013497; Fri, 21 Jul 2023 13:17:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=TqrzHUFFi4dmgMy9Ldwn4thuKhNTwbJYVI/8iR/Ukq8=; b=ZsTA5srLA6IhkI6HCGLkdoF9AclPGk+KuO25kWC+BsWeW+LT+5uHKMk1fFPazjL3Px6D 3aW9ZeaBKBrgT4j+4yCwviQrq2lHn7pf3fvBD++DC3PMlo55zS4bNtUc1OoYVG3epTrq kr7i/ORVS2HUVzQibt23W+EoIzzT/2+Wm0UeN//0hQxs7bCtBqnyuDbGvl3ZAzUfa09s EMGjyY2YDpMBJmtV8xpH+vkiUhk7elp1XPHsGVcagVcqZm/4WnH+HuFT3FgP0I4W1Gz4 707yK2W78iNBM9wZBNX44Gj9dD9gr7ArpOn0V8ZAvv8BDZYU/eusUkjo3NuQy7+NjcL+ HQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ryrsb0a9c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 13:17:51 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36LDHoAY026676 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 13:17:50 GMT Received: from [10.216.33.70] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Fri, 21 Jul 2023 06:17:46 -0700 Message-ID: <7517b2ca-7d7f-dc0c-7f60-a6281b37ab40@quicinc.com> Date: Fri, 21 Jul 2023 18:47:42 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 1/2] dt-bindings: power: qcom,rpmhpd: Add Generic RPMh PD indexes Content-Language: en-US To: Pavan Kondeti CC: , , , , , , , , References: <1689744162-9421-1-git-send-email-quic_rohiagar@quicinc.com> <1689744162-9421-2-git-send-email-quic_rohiagar@quicinc.com> From: Rohit Agarwal In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: TWOnDmwY4VdqG7DBr1pIRKzhGF0xq9bh X-Proofpoint-ORIG-GUID: TWOnDmwY4VdqG7DBr1pIRKzhGF0xq9bh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-21_08,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 mlxlogscore=968 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 bulkscore=0 clxscore=1015 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307210120 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=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 On 7/21/2023 11:14 AM, Pavan Kondeti wrote: > On Wed, Jul 19, 2023 at 10:52:41AM +0530, Rohit Agarwal wrote: >> Add Generic RPMh Power Domain indexes that can be used >> for all the Qualcomm SoC henceforth. >> The power domain indexes of these bindings are based on compatibility >> with current targets like SM8[2345]50 targets. >> >> 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..7c201a6 >> --- /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 RPMHPD_CX 0 >> +#define RPMHPD_CX_AO 1 >> +#define RPMHPD_EBI 2 >> +#define RPMHPD_GFX 3 >> +#define RPMHPD_LCX 4 >> +#define RPMHPD_LMX 5 >> +#define RPMHPD_MMCX 6 >> +#define RPMHPD_MMCX_AO 7 >> +#define RPMHPD_MX 8 >> +#define RPMHPD_MX_AO 9 >> +#define RPMHPD_MXC 10 >> +#define RPMHPD_MXC_AO 11 >> +#define RPMHPD_MSS 12 >> +#define RPMHPD_NSP 13 >> +#define RPMHPD_NSP0 14 >> +#define RPMHPD_NSP1 15 >> +#define RPMHPD_QPHY 16 >> +#define RPMHPD_DDR 17 >> +#define RPMHPD_XO 18 >> + >> +#endif >> -- > I see the PD performance levels (RPMH_REGULATOR_LEVEL_xxx) are still > coming from qcom-rpmpd.h. Which means Socs with RPMh also need to > include the older header for these definitions along with this newly > created header. something to improve for the clarity sake? Agreed. I think we can move these to the new header so that the new SoC with RPMH can completely move to rpmhpd.h. Ok. Will wait for anymore suggestions before updating this version. Thanks, Rohit. > > Thanks, > Pavan