From patchwork Fri Oct 14 22:11:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 2884 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp403124wrs; Fri, 14 Oct 2022 15:31:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4rdJY8M2WGia9lulGXQxMLX+Kw0YKPBkN02DqrtPWD8+AUpJOO3Ctjoe5WuPhnCMTmZAUx X-Received: by 2002:a17:907:6ea1:b0:783:cc69:342 with SMTP id sh33-20020a1709076ea100b00783cc690342mr112818ejc.97.1665786702983; Fri, 14 Oct 2022 15:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665786702; cv=none; d=google.com; s=arc-20160816; b=tWdp+pEbd1Bf3v5iJ0kEt3lUy/yd+mowgmiVjCwgqtXXk7NdYaS2yoJv4zHCgJYWEz Veo7Wh9iJIpDZdCZ3MUswiuuYmF0sLtV5oIIRiC9Djt1cDyq/3tsjc8gATQR9LnVAwug zZQWuZUJ/kgHeyurh5sPn+6CmHkdLez0B4yUl90h2ba3SZuw+ktmPxy4XYxvzL/pviyZ CtUE8TR5WBuCNhkuY3Lxo4QAFPQ7SEQceMKmpqcFTVzN7wBzfLNdXbxLd8Ejwbd9Fts6 jTZgGwgItRBdx//THo00tRb6EB+RZKZBsV7iFJN6qgwQaGJ7DMmPCT5xpGBGEWUWUPZo p+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3+JzfZN351f5CPgINbyI8EkYTpUxj/3CJwM0A6tPQbY=; b=d552EjLtw5J674DJRRcLVNO5fXltvXC76vlRLY21Fs8uNpTgiEWQOz4gHj3gN6BIh2 i73tydDncTmpp4dUemF20btqkkNWtq1VorX4alfDqmGjRnnyGfyRCZEILF6DleOP9SQk 3h859Rbw1LHuM8GZijlED6D+6R5Dkgo191/beaXEDNfdWoWtrGudVD+RxdAOLh108v5b dm5mIIXtuDsNfmK2mNP3FFw96f7b2HLWyxb3cHRqrqtOYD9Jb1qC9504yG6KurrNxENg /+yXDYp3qnYgp1opw+15Lj80zR6v0Gc2VuLVIZ9K7wh5XkbXJL83RqXKc8/SOLCpp8Uy y6tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=bD200Upd; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh40-20020a1709076ea800b0078d288c1047si3518969ejc.841.2022.10.14.15.31.04; Fri, 14 Oct 2022 15:31:42 -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=qcdkim header.b=bD200Upd; 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 S230100AbiJNWNe (ORCPT + 99 others); Fri, 14 Oct 2022 18:13:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiJNWMj (ORCPT ); Fri, 14 Oct 2022 18:12:39 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61C7B1D2992; Fri, 14 Oct 2022 15:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1665785539; x=1697321539; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3+JzfZN351f5CPgINbyI8EkYTpUxj/3CJwM0A6tPQbY=; b=bD200UpdzrQMBLvVTcuqy9904QmKqcTXSL1KXPY+EddRfucNiGyYwOr4 tTJY+PFm6MxvGlUBa1r0/uo3pqacNpKu2Fkc4AkG0s2Fasofo5SO/xwBw AO+Ci+d9YOBC5EBR9D9TKgAJX4NnhKJU541XLjMkbwIPC0HbCdgnYdchT c=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 14 Oct 2022 15:11:52 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 15:11:52 -0700 Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 14 Oct 2022 15:11:37 -0700 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski CC: Robert Marko , Guru Das Srinagesh , , , , Melody Olvera Subject: [PATCH v2 1/4] dt-bindings: firmware: scm: Add QDU1000/QRU1000 compatibles Date: Fri, 14 Oct 2022 15:11:18 -0700 Message-ID: <20221014221121.7497-2-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221014221121.7497-1-quic_molvera@quicinc.com> References: <20221014221121.7497-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746703958160060883?= X-GMAIL-MSGID: =?utf-8?q?1746703958160060883?= Add compatibles for scm driver for QDU1000 and QRU1000 platforms. Signed-off-by: Melody Olvera --- .../devicetree/bindings/firmware/qcom,scm.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index c5b76c9f7ad0..47083f47f109 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -38,6 +38,8 @@ properties: - qcom,scm-msm8994 - qcom,scm-msm8996 - qcom,scm-msm8998 + - qcom,scm-qdu1000 + - qcom,scm-qru1000 - qcom,scm-sc7180 - qcom,scm-sc7280 - qcom,scm-sc8280xp @@ -80,6 +82,20 @@ properties: description: TCSR hardware block allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,scm-qdu1000 + - qcom,scm-qru1000 + then: + properties: + '#reset-cells': + maxItems: 1 + + required: + - '#reset-cells' - if: properties: compatible: From patchwork Fri Oct 14 22:11:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 2881 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp398031wrs; Fri, 14 Oct 2022 15:14:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4+1arrf/s4RSaLnX420HbWpTiMJfAvp44pKWjBSS+S8v4Cq/19eZKKYS7pcLjdthCHOPiL X-Received: by 2002:a17:90a:4594:b0:20b:23d5:8ead with SMTP id v20-20020a17090a459400b0020b23d58eadmr19433889pjg.127.1665785657524; Fri, 14 Oct 2022 15:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665785657; cv=none; d=google.com; s=arc-20160816; b=Qpy/1jU/Wytw2eKxo5LPIgAYCoQVeRPvOJtLkV1reWhJMLJhzaLCSHSupnSvvKNEGU RsUkh/VuX3fIOCRr7oCrzm8sWWeTAfTqO9dS3L/e9Ly0uXZtM8n7h9ruQfE5NFhLeECc w8th37w2wC5tposUTJyEr3HIasul7VnwCZaL2uovjGAsnVoXyPlyTEiPAFV9vKxO3xEG O32c/eIh9d8MYYDN1QkxgkveBaVel5F0EECyMnF4dSuKCTGJK6T4GvFxfd56X8ISG6/0 SwJtL8R2+eP2evRYxtYCXiWe03CM02n6koPdYCS8NLefUJ/lSUMBMPvhWHNgsQv8QiWj 1AQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FNXkjMP1eP8UMY4l2fo0iA2yTv9fvhPoDZMcm7ksT9o=; b=MrkK+AK0fHOsRmhH4pwbBstx+15osPOpvB+Xznk/JPvDbS5XuwkgFLtNVIcSjgvUUv OkMkfvs4zGX5jhsFwYweCrJuUpkxGImUoOid9eRNr5uN0dAnApG/5/3CbyeoeRzlXAnE UKw0UCDukY9VaLymTX09pPb3UNaPlI7rceP7aWvvOQ6SaUGIItvEjqmEjemuJ/t8bCYG 4nbL1j0Til27yOm7oQEFniBNPjWw2Axv+tRSViICeBXYQqes4xl1ca5HqVzsVyxLwtN8 1A3gKT8nSmua8PdJ6UmM0iZqt0OjfIzAH1uakMiiocN6Px9DnwJLjoGEOU+4RY80C7Kp A+DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=KRfrQph7; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a056a0022c200b005633766252asi4461184pfj.313.2022.10.14.15.14.03; Fri, 14 Oct 2022 15:14:17 -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=qcdkim header.b=KRfrQph7; 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 S229897AbiJNWNN (ORCPT + 99 others); Fri, 14 Oct 2022 18:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiJNWMi (ORCPT ); Fri, 14 Oct 2022 18:12:38 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A5917C578; Fri, 14 Oct 2022 15:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1665785538; x=1697321538; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FNXkjMP1eP8UMY4l2fo0iA2yTv9fvhPoDZMcm7ksT9o=; b=KRfrQph7Pl+KGexK0cmCn7Io3n7ucaAKk3BspvBn1y0Y83vImUFjUa5e SwAQTAi6wdcW9XD+BJjfvR3fYznC9LHydyP2Q0H+Gj8EjySLwqqN4m1MZ X7Zqd+9RztS9LhPNFl6svVE/B2jlW3fQNXc3aKkYBWmABmVoMHX2BWcKQ w=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 14 Oct 2022 15:11:52 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 15:11:52 -0700 Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 14 Oct 2022 15:11:38 -0700 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski CC: Robert Marko , Guru Das Srinagesh , , , , Melody Olvera Subject: [PATCH v2 2/4] dt-bindings: power: rpmpd: Add QDU1000/QRU1000 to rpmpd binding Date: Fri, 14 Oct 2022 15:11:19 -0700 Message-ID: <20221014221121.7497-3-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221014221121.7497-1-quic_molvera@quicinc.com> References: <20221014221121.7497-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746702861609137025?= X-GMAIL-MSGID: =?utf-8?q?1746702861609137025?= Add compatible and constants for the power domains exposed by the RPMH in the Qualcomm QDU1000 and QRU1000 platforms. Signed-off-by: Melody Olvera --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 2 ++ include/dt-bindings/power/qcom-rpmpd.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index 5b4eda919911..ffac5fcf5f6f 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -28,6 +28,8 @@ properties: - qcom,msm8998-rpmpd - qcom,qcm2290-rpmpd - qcom,qcs404-rpmpd + - qcom,qdu1000-rpmhpd + - qcom,qru1000-rpmhpd - qcom,sa8540p-rpmhpd - qcom,sdm660-rpmpd - qcom,sc7180-rpmhpd diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index f5f82dde7399..965c065a9caa 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -103,6 +103,12 @@ #define SM8450_MXC_AO 11 #define SM8450_MSS 12 +/* QDU1000/QRU1000 Power Domain Indexes */ +#define QDRU1000_EBI 0 +#define QDRU1000_MSS 1 +#define QDRU1000_CX 2 +#define QDRU1000_MX 3 + /* SC7180 Power Domain Indexes */ #define SC7180_CX 0 #define SC7180_CX_AO 1 From patchwork Fri Oct 14 22:11:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 2880 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp397972wrs; Fri, 14 Oct 2022 15:14:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7aQAN3wLyu0yf8TQYHRiId0XkeqDkc0KJrVxP7BwUR8bD6pLclMh5ahmxZSE4alDplHTT+ X-Received: by 2002:a17:902:f643:b0:185:3e6d:6171 with SMTP id m3-20020a170902f64300b001853e6d6171mr7091971plg.123.1665785657623; Fri, 14 Oct 2022 15:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665785657; cv=none; d=google.com; s=arc-20160816; b=C1yoQVtufqvD7LVv0Iv+YFPicYjB43wuVAGjbOyOgm6818YIjbTnqcPPCi1yQj5d45 2uKcjz5PdWIKUrAuXTNbp+5Ad5CF3JZ1sX3ViMC63MSZJ40pvtCamGu3ZYiY7X0vp5GD J5E4vFZ0exu79ciTn4Ikw52p9qgkv4aMAjHl6sH1l7h65r3rgVdtaDzCqEysg26UWzMI gyfXr696i72gD77vdd51cmmHzcErZuB/sBsH4cl1Z3kqnn34Z/FrxXs6KQkUU0+gzcQ5 Af1MmEH64wDPWF7gofVXkJgEetJTufQHZ8AqkRsm0GqXgrrB577cyK7k9ZRE5/HsEscW 0TTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=innQEexkiOpISbHesBJVPN2seV6UbE7z457Qn2L2iNw=; b=YbEquwhVoA004AHytbIbP9dJQ3q7IVLza2qPVdcg/GM/fu2+E8YJI2jY8GqpX0maQr tT0we7YmavSnsEj7fdut0iqVd9GVfSYqqq+2+++MtXZcS6a9SOaR6lznnLIkU5ZJD3R0 pvYD4lfao3HoAA9kDbjCVX20neMKkObDFaNM+BGTvv9aCeJhfJuPPHzw2Zwz8wzudSzf XFtuapXibra64pGg4iuzbhCL66Ef+oz4FT3TF5al/vAof04qbB1zNh9/pV3+pNerwogY dTXreHyAzVoiAIx/b2KHEzR4GnWvCebcqqejke1ahn869Q60fMzT6eGxc07Td7qv3foF YJXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=cIt2Fi8m; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a17090ad34600b001fd81d07d0esi3683676pjx.123.2022.10.14.15.14.05; Fri, 14 Oct 2022 15:14:17 -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=qcdkim header.b=cIt2Fi8m; 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 S229989AbiJNWNW (ORCPT + 99 others); Fri, 14 Oct 2022 18:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbiJNWMk (ORCPT ); Fri, 14 Oct 2022 18:12:40 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92029183DB3; Fri, 14 Oct 2022 15:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1665785541; x=1697321541; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=innQEexkiOpISbHesBJVPN2seV6UbE7z457Qn2L2iNw=; b=cIt2Fi8m6l4CkR30Ala+DAvs4BZRmu2+p/TOWrQ6z/DGs4mHmP1TouJk paCgvLNeq9Ay+HOyZu9USFEFwh+fcZcCIBFzApUadYq2JUqu1n7CBkI1S zJy0/cKShjAgaQiGiPvV7UZWyzgO0zMcgSP/Cl8n24oY9c370qp2zVdOC 8=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 14 Oct 2022 15:11:52 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 15:11:52 -0700 Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 14 Oct 2022 15:11:38 -0700 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski CC: Robert Marko , Guru Das Srinagesh , , , , Melody Olvera Subject: [PATCH v2 3/4] soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains Date: Fri, 14 Oct 2022 15:11:20 -0700 Message-ID: <20221014221121.7497-4-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221014221121.7497-1-quic_molvera@quicinc.com> References: <20221014221121.7497-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746702861684963618?= X-GMAIL-MSGID: =?utf-8?q?1746702861684963618?= Add the power domains exposed by RPMH in the Qualcomm QDU1000 and QRU1000 platforms. Signed-off-by: Melody Olvera --- drivers/soc/qcom/rpmhpd.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 092f6ab09acf..4b8198697245 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -353,6 +353,19 @@ static const struct rpmhpd_desc sm8450_desc = { .num_pds = ARRAY_SIZE(sm8450_rpmhpds), }; +/* QDU1000/QRU1000 RPMH powerdomains */ +static struct rpmhpd *qdu1000_rpmhpds[] = { + [QDRU1000_CX] = &cx, + [QDRU1000_EBI] = &ebi, + [QDRU1000_MSS] = &mss, + [QDRU1000_MX] = &mx, +}; + +static const struct rpmhpd_desc qdu1000_desc = { + .rpmhpds = qdu1000_rpmhpds, + .num_pds = ARRAY_SIZE(qdu1000_rpmhpds), +}; + /* SC7180 RPMH powerdomains */ static struct rpmhpd *sc7180_rpmhpds[] = { [SC7180_CX] = &cx_w_mx_parent, @@ -430,6 +443,8 @@ static const struct rpmhpd_desc sc8280xp_desc = { }; static const struct of_device_id rpmhpd_match_table[] = { + { .compatible = "qcom,qdu1000-rpmhpd", .data = &qdu1000_desc }, + { .compatible = "qcom,qru1000-rpmhpd", .data = &qdu1000_desc }, { .compatible = "qcom,sa8540p-rpmhpd", .data = &sa8540p_desc }, { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, { .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc }, From patchwork Fri Oct 14 22:11:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 2887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp408708wrs; Fri, 14 Oct 2022 15:52:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5A1PfYF3LHERQT0GwXivJtPb7eo0VrXpC5+bTDJipmftuQvmDtpeOgPICUNexUZHzQ4mWW X-Received: by 2002:a17:902:d192:b0:182:b25c:e526 with SMTP id m18-20020a170902d19200b00182b25ce526mr76915plb.13.1665787964009; Fri, 14 Oct 2022 15:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665787964; cv=none; d=google.com; s=arc-20160816; b=Ht/MNPA11Jj4ARErCRVqMteeGmlwgJeR2XQ8NDallYO8+Syh5tUE2ypSuB2opaxnXL MPOoutyWCGCtRqB81mn4xwcjlHox/xlH8TOQB+S01vLrrPz2jnKjcu6HLxiQcHFOifEI pJqyRvxNcTfcm3WR8yz44mbVd3nBF39BRYkVV79ZIcRHQX3c0Sw4eKcoOBI5/zJsM9Kg k5AB+hF7/y/oaXi4huZpb3hfqion31ngXNR7oEercnmdYl8hgHIVc0ka/VlbfX5No5NM HqT6qmbcaw3S492xMGPtHe1Jh7qIKPnFkoc8aL8a2zVWQ3zULmDegYXXI8nQafJQh8uM 4BHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eMzXHtKZAsvKlgWqEkMTss3A52iHSZDPbCxWGfMFPN4=; b=DQVPbF/DWh9u+eRn723ykYvSu8iSHr6n4vl17Mr5scvCRQRoa7j8PQTnzoiPKWHUdk 3nWlmG+s6Bc8T/sv439yzFZh6uKwYFDuIkFg2BYG/BfYVMYXXcp2i4fg+9EcoA/7f/Bb DsEJLG9xNw7WZt0CF7S4c9gSBJzsNV/+bVmS8dxTJf1FDiNBS2akPH8tPchkbKWU0IXs t9ghJp6isFHKG7hZJcZkPWVUcKWD+SpSKl9y4mXPNvblYlvWz7MPrJ07/4g0iEiEN1Ma UGwK9qzgRJO0H3sZOMiP47+qdj/s3Y8tHxx6bXc2gEQN34kVKv1/6yOjU490NU+ZWtEy vaag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="FRU/z2pn"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a056a000b5000b00565db76831esi4032118pfo.62.2022.10.14.15.52.31; Fri, 14 Oct 2022 15:52:43 -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=qcdkim header.b="FRU/z2pn"; 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 S229560AbiJNWNj (ORCPT + 99 others); Fri, 14 Oct 2022 18:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbiJNWMk (ORCPT ); Fri, 14 Oct 2022 18:12:40 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E529C1C4928; Fri, 14 Oct 2022 15:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1665785542; x=1697321542; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eMzXHtKZAsvKlgWqEkMTss3A52iHSZDPbCxWGfMFPN4=; b=FRU/z2pnDXFENmCnmKJzIyhuxImjTKGTtt47beAOyU6ICFaZ+c9FxVms aKmEFh58XiPXwN3RfF0pJQ4Z6Sn1OrXscsWqyKXGkGoTezRfE3SSdktho alLB8HdPPEkpe7ArBAnsdze7WwP2TXlc9KxW1havv/Z+2HQmFJ9ARjQlH w=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 14 Oct 2022 15:11:52 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 15:11:52 -0700 Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 14 Oct 2022 15:11:38 -0700 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski CC: Robert Marko , Guru Das Srinagesh , , , , Melody Olvera Subject: [PATCH v2 4/4] soc: qcom: socinfo: Add QDU1000/QRU1000 and variant IDs Date: Fri, 14 Oct 2022 15:11:21 -0700 Message-ID: <20221014221121.7497-5-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221014221121.7497-1-quic_molvera@quicinc.com> References: <20221014221121.7497-1-quic_molvera@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746705280281547738?= X-GMAIL-MSGID: =?utf-8?q?1746705280281547738?= Add soc IDs for QDU1000 and QRU1000 and their variants. Signed-off-by: Melody Olvera --- drivers/soc/qcom/socinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index aa37e1bad095..5677b427c78d 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -336,6 +336,12 @@ static const struct soc_id soc_id[] = { { 487, "SC7280" }, { 495, "SC7180P" }, { 507, "SM6375" }, + { 539, "QRU1000" }, + { 545, "QDU1000" }, + { 587, "QDU1010" }, + { 588, "QRU1032" }, + { 589, "QRU1052" }, + { 590, "QRU1062" }, }; static const char *socinfo_machine(struct device *dev, unsigned int id)