From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36287EB64D9 for ; Thu, 6 Jul 2023 15:15:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233438AbjGFPPc (ORCPT ); Thu, 6 Jul 2023 11:15:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjGFPPZ (ORCPT ); Thu, 6 Jul 2023 11:15:25 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A787EFC; Thu, 6 Jul 2023 08:15:24 -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 3665ivSG024056; Thu, 6 Jul 2023 15:15:21 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=F12GI+ZGVOZeablq7j8Hv1Shz4/INyYrK+VkgPx98es=; b=QD48z6t8hC2D2lSeDbkoDziAqhtWVAdMzgwsAhVMUxMsW9AtWxFUt0oSQexMq4lbvWvq 3lqPevkmSRTf8yOJmOB7/rcnvXJ7uR6l3kv5qAYiXmHhcTZfaEfXuyxOwmD9yd32x9nq TNQR4R75HRlvZ5cL6baiaDWhQPrKuPfB5vTeNEoeICdHrxEDQ7B8ciz/lQ0BkWQctVPJ onPtmSwJ2G1Ccm8Pv4PUi+qjUI+a0FqnTaMouspulMJTixwg8QBHrwETy3YlcQZQmnrO 8OBGtgmsTnASFcSCRGMIGdruzLLUFSHTzK2lYuLz5sndL2bNtqlGEjw71BMTCITJwjI3 Pw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rn5ht3hcb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 15:15:20 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 366FFJkX017630 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jul 2023 15:15:19 GMT Received: from [10.216.13.101] (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; Thu, 6 Jul 2023 08:15:15 -0700 Message-ID: <2d0b3769-ca87-3e18-160d-604c24fac52d@quicinc.com> Date: Thu, 6 Jul 2023 20:45:11 +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/3] dt-bindings: power: rpmpd: Add Generic RPM(h) PD indexes Content-Language: en-US To: Konrad Dybcio , Pavan Kondeti CC: , , , , , , , References: <1688647793-20950-1-git-send-email-quic_rohiagar@quicinc.com> <1688647793-20950-2-git-send-email-quic_rohiagar@quicinc.com> <35b6b086-9b03-49df-b80d-863218b42fae@quicinc.com> From: Rohit Agarwal In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: 3jLDvtKh9sZJ-I_l2zayl6mlWJk-0AWC X-Proofpoint-GUID: 3jLDvtKh9sZJ-I_l2zayl6mlWJk-0AWC 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-06_11,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 clxscore=1015 malwarescore=0 suspectscore=0 bulkscore=0 mlxscore=0 mlxlogscore=619 lowpriorityscore=0 impostorscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060136 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/6/2023 8:30 PM, Konrad Dybcio wrote: > On 6.07.2023 16:47, Rohit Agarwal wrote: >> On 7/6/2023 8:00 PM, Pavan Kondeti wrote: >>> On Thu, Jul 06, 2023 at 06:19:51PM +0530, Rohit Agarwal wrote: >>>> Add Generic RPM(h) Power Domain indexes that can be used >>>> for all the Qualcomm SoC henceforth. >>>> >>>> Signed-off-by: Rohit Agarwal >>>> Suggested-by: Konrad Dybcio >>> Does it make sense to give this link [1] so that we know what is >>> Konrad's suggestion and the discussion around it? >>> >>> [1] >>> https://lore.kernel.org/all/0d468d08-6410-e424-b4f3-5245cdb0334a@linaro.org/ >> Yes, could be given in the cover letter. >>>> --- > [...] > >>>> +#define RPMPD_VDDMD        22 >>>> +#define RPMPD_VDDMD_AO        23 >>>> +#define RPMPD_LPICX_VFL        24 >>>> +#define RPMPD_LPIMX_VFL        25 >>>> + >>> How did you come up with this list? A union of all SoCs supported by >>> RPMh driver? >> Yes, union of all the SoCs and arranged based on frequencies of usage. > The latter part is very thoughtful, thanks for taking that into account. > > That said (and I really don't wanna be picky here, I'm just coming up with > ideas a bit later than I'd like to).. Perhaps this patch should be limited > to RPMhPD [1] and the definitions could be moved to a new binding, so: So should we not update anything in this old binding and completely move to the new bindings? rpmhpd.h? Not even rpmpd_* bindings? Thanks, Rohit. > include/dt-bindings/power/qcom,rpmhpd.h > // this way we don't have to add RPMHPD_ > #define CX 0 Ok, will remove this as well. > which would result in us being able to do: > > #include ....rpmhpd.h > [...] > power-domains = <&rpmhpd CX>; > > in the device tree > > which is even more concise! Yes Thanks, Rohit. > > [1] The old RPM SMD platforms have some duplications in the names.. > No point in duplicating that. The oldest entries remember 2013 so > it's easy to see how we had some dirt build up there. > > Konrad >> Thanks, >> Rohit. >>>>   /* SA8775P Power Domain Indexes */ >>>>   #define SA8775P_CX    0 >>>>   #define SA8775P_CX_AO    1 >>>> -- >>>> 2.7.4 >>>> >>> Thanks, >>> Pavan