From patchwork Wed Sep 4 08:33:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingyi Wang X-Patchwork-Id: 13790112 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 83374CA0ED3 for ; Wed, 4 Sep 2024 08:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GDMDLFhlsdHCZ606F39C6ZnqSfD195nnMFQhIFq0wJ4=; b=hQv02u2yygd5Ol poffCp//8eF6B2b5wvHa7UAEC8FpKhd8yfAS4ejEVhvT6G5GX1OYLnqLRzU1VB5IjaejxngsHPfyT LKIEjXtMea0PdFSxiBYzPtWJNfTQe8R5TSSfddJRwbgGoLkAArQBCkOJKb7Gg6T6uqXwVHBMJvbUj XWCFPC+MCFExwGn/oLUwWYPmKSKsvs6kvesVjefXlJjNMto3gUN5gV3nHtTZKdtv2WkEtY1l/g2k7 S+Xn2xN75OKIULA3ezZPGgMXfONN/hVMb6ZAIf3UddDTEBAHtfmTp2Vn5Bvzote/3HBoBAql6JOQB UYOEhc1vFu+pDbZs19RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sllin-00000003WAn-13uL; Wed, 04 Sep 2024 08:50:37 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sllTt-00000003QzB-44D2; Wed, 04 Sep 2024 08:35:15 +0000 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 483Nc0Me014493; Wed, 4 Sep 2024 08:35:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= VEdrzyZtEQLwG6OzN9Ws8tbomfUdcxwws2fGajP/eu4=; b=PgUp50f9Qf9HPd+2 ykgH80j3NtrOZEg4qc6OX3L6GwelzkgD+zLRPUlaJnDXbNVnV9NH7RCDMCJ1gfu4 eiMGeoh2uNyYYOcAgdf5cNKm4ce+B7RJxJjVRsGLUiwn0A1Xgyeiy875mg9qRwOJ 5Tk0PlnFQ9jPBDEyH85UleuY9t5CNbsdOw7YV6E0A8VtCWFFhwhUiEojalKpu8Oo gcQJHO7T+DRrl2VI/Hh0BQo1OhLQlUKWgc87+t2xRr7JliwUlyAA2oQ/pGSKDLpz kklJ0wRBUKp+E7BPILKkNnKbLArp8cRoGhwO6AgSG6iRBaIFx8pf13EpKVbOX9RJ hfED/g== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41dt69c643-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Sep 2024 08:35:02 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4848Z1gU005798 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Sep 2024 08:35:01 GMT Received: from jingyw-gv.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 4 Sep 2024 01:34:52 -0700 From: Jingyi Wang Date: Wed, 4 Sep 2024 16:33:47 +0800 Subject: [PATCH 06/19] dt-bindings: power: rpmpd: Add QCS8300 power domains MIME-Version: 1.0 Message-ID: <20240904-qcs8300_initial_dtsi-v1-6-d0ea9afdc007@quicinc.com> References: <20240904-qcs8300_initial_dtsi-v1-0-d0ea9afdc007@quicinc.com> In-Reply-To: <20240904-qcs8300_initial_dtsi-v1-0-d0ea9afdc007@quicinc.com> To: 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: , , , , , , , , , Jingyi Wang , "Shazad Hussain" , Tingguo Cheng X-Mailer: b4 0.15-dev-99b12 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725438840; l=1923; i=quic_jingyw@quicinc.com; s=20240829; h=from:subject:message-id; bh=JBkO4rE53QYLBmngrXpm2EANBFFeHUzq/IgtvyMCUms=; b=Pgk5FeFuJ01qxIFHvMzK+Xvi5ZXTKtasqNjgwwyvU++6sBjSx7WL6pqqhp49ajCvdWXNozb+6 3JCukYjdzaUA1YCZJH7MQixo+KgHRkDJky4P4EUx6XDNELlDnX93LXR X-Developer-Key: i=quic_jingyw@quicinc.com; a=ed25519; pk=3tHAHZsIl3cClXtU9HGR1okpPOs9Xyy1M0jzHw6A/qs= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 6ZogE9kNixaNS9jXjJWTKb95q5vzxPz0 X-Proofpoint-ORIG-GUID: 6ZogE9kNixaNS9jXjJWTKb95q5vzxPz0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-04_05,2024-09-04_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 mlxlogscore=875 mlxscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 malwarescore=0 adultscore=0 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2409040065 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240904_013514_202872_05104264 X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org 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 + /* SA8775P Power Domain Indexes */ #define SA8775P_CX 0 #define SA8775P_CX_AO 1