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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E72B5CD5BA9 for ; Thu, 5 Sep 2024 11:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xILjkBKGUHh6ciXZ0GY4LlPlJ9YZ+EbCYFvbEfA1cog=; b=sShYd8SdsaAXUsWvudEB28ZQ8D X/sbx4H1kgm5xhZJaj6W8EdRvHeA+z25jV2GUuSI5UGPttsqls4S+izujOohbdpY35H+s1CH1NEqD SnwgVeeQS5wjFVY1PaWWpi3d8OWGDShg7ZigLZrkG1DkpGQFD6b3LiGfNtKzpjQlMxQUYpqgVeML/ DJCvL5ZTK2+2qy9M7wkMNeB08I0uRVTqAdie7kPpezqUAkgaG7oDM6L8gRP2Wi4ttIb11rM9mTTRs RMXjZ00p49TCW39cqBlmn8lCm2XiMt1fyX9C0WmSkQFgaxAVKuZ9iUKrK85Zo3aCOKKCl1NzWBsVt cQW17enQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smAjQ-000000087yz-0Flv; Thu, 05 Sep 2024 11:32:56 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smAha-000000087Up-1HZO; Thu, 05 Sep 2024 11:31:03 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3817C5C5C8D; Thu, 5 Sep 2024 11:30:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E207C4CEC3; Thu, 5 Sep 2024 11:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725535860; bh=aTcY6lnCeCXuN+hBR/lTjApexCcG5nl9Skw7Ca45bF0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=X7GKr78v0KZSNjtPief4MGOvOX4Z7dQlMmWRBIpTU1p13LSzit5Su1pTaielep1O7 nFVcp3oxh6jjpSMAIINYxPiRmE+AKjLiCo1KluI7uRmpH8IM8bjm+5uOgWvRRrW34Q SEIl6tqmJE+99KgmZZBjoJXm5YYjbvB9/+xlkE6SVOSYibxY33HZlmGVFMhg/ePM25 AqHzGdkKE2cumqW4AGDK7UMY1dK/zM/1MfbPQGBPXFfTi/LMxxRJ22WQ+u97zxcsUS PT/P9fsSxWW9VT8MvPSPcrSawtpyg+Eaqh7U5bZdYSpr5RcoMaiZaDa94gU6n0rCC2 J4BIvJw8awzOQ== Message-ID: Date: Thu, 5 Sep 2024 13:30:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 06/19] dt-bindings: power: rpmpd: Add QCS8300 power domains To: Jingyi Wang , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Vinod Koul , Kishon Vijay Abraham I , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross , Ulf Hansson , Thomas Gleixner , Will Deacon , Robin Murphy , Joerg Roedel , Konrad Dybcio , Robert Marko , Das Srinagesh , Jassi Brar , Lee Jones , Srinivas Kandagatla , Catalin Marinas Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Shazad Hussain , Tingguo Cheng References: <20240904-qcs8300_initial_dtsi-v1-0-d0ea9afdc007@quicinc.com> <20240904-qcs8300_initial_dtsi-v1-6-d0ea9afdc007@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20240904-qcs8300_initial_dtsi-v1-6-d0ea9afdc007@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_043102_524564_244683DA X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4.09.2024 10:33 AM, Jingyi Wang wrote: > From: Shazad Hussain > > Add compatible and constants for the power domains exposed by the RPMH > in the Qualcomm QCS8300 platform. > > Signed-off-by: Shazad Hussain > Signed-off-by: Tingguo Cheng > Signed-off-by: Jingyi Wang > --- > .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 + > include/dt-bindings/power/qcom-rpmpd.h | 19 +++++++++++++++++++ > 2 files changed, 20 insertions(+) > > diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml > index 929b7ef9c1bc..be1a9cb71a9b 100644 > --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml > +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml > @@ -32,6 +32,7 @@ properties: > - qcom,msm8998-rpmpd > - qcom,qcm2290-rpmpd > - qcom,qcs404-rpmpd > + - qcom,qcs8300-rpmhpd > - qcom,qdu1000-rpmhpd > - qcom,qm215-rpmpd > - qcom,sa8155p-rpmhpd > diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h > index 608087fb9a3d..7dd7b9ebc480 100644 > --- a/include/dt-bindings/power/qcom-rpmpd.h > +++ b/include/dt-bindings/power/qcom-rpmpd.h > @@ -4,6 +4,25 @@ > #ifndef _DT_BINDINGS_POWER_QCOM_RPMPD_H > #define _DT_BINDINGS_POWER_QCOM_RPMPD_H > > +/* QCS8300 Power Domain Indexes */ > +#define QCS8300_CX 0 > +#define QCS8300_CX_AO 1 > +#define QCS8300_DDR 2 > +#define QCS8300_EBI 3 > +#define QCS8300_GFX 4 > +#define QCS8300_LCX 5 > +#define QCS8300_LMX 6 > +#define QCS8300_MMCX 7 > +#define QCS8300_MMCX_AO 8 > +#define QCS8300_MSS 9 > +#define QCS8300_MX 10 > +#define QCS8300_MX_AO 11 > +#define QCS8300_MXC 12 > +#define QCS8300_MXC_AO 13 > +#define QCS8300_NSP0 14 > +#define QCS8300_NSP1 15 > +#define QCS8300_XO 16 Some time ago we moved RPM*h*pd to common defines.. we should definitely do the same here. Please reuse the RPMPD_xxx definitions from [1] and credit Rohit in the commit message, as he did some processing on that to make sure they're ordered based on usage Konrad [1] https://lore.kernel.org/all/1688647793-20950-2-git-send-email-quic_rohiagar@quicinc.com/