From patchwork Wed Nov 16 11:17:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 20969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp88693wru; Wed, 16 Nov 2022 03:34:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UJQHIkytbBxtiU2DKfZ/xNXHCrLWwNDGR9BWN/mEWGQGC43QSqNxeFP2D1h4ah+QfT+EQ X-Received: by 2002:a63:d547:0:b0:476:1e54:52ef with SMTP id v7-20020a63d547000000b004761e5452efmr16024353pgi.551.1668598461213; Wed, 16 Nov 2022 03:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668598461; cv=none; d=google.com; s=arc-20160816; b=a6lN5rg1aFVVbOgPmmvpINKwCK9GtSNG9sJq0zqxElYhg4AurvcWsVYKpiel7FygFC btOaiRwbol4P3vNYV9xe2LdnsaKdYZm77OVgGTp8cEs/OuzaoLNb0rPBnvCag9Y0ugeg mvowhg3UZL90US6bx+Lmc89KyAEJLpf5y69sOZyf4f8t9qIbV670e8GhsZqEltQuA1kz 7HGzGvKDdWBkzGX+erkQsIZPxt1Tp+y8zI3UhtyXcXbaJB6o+txR0FFfmXIxZkaLmVUQ U+j5O8SGBFQ1mIk6yz/+sJmpatVLEfVNZUOW56BC6mqhUYoJOSsi9aUn1cQX8T9v7t35 2mRw== 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=xv65Uj0lvJ7ZIlYIMtfh5eKQNGbhyUH7PS0XoMqmdlg=; b=IgQnXCJs+Itgr7toNgRahgil2oMd6JP+uChhVJiMAGUtHbVK3c7ns+YBzKm3tiyJ2G Tlap8vEG68nhrGgV9xJ/pRDqq2cYlD9CVAYVQlpBmzkMJ8X96M2M1KS9PQ4B6/+ipeRg FPbt1m6rWh9u8zq0gYLWxf9R9WZ5Ea3UKWO3JGf5MBNi4uJzD12q22qesl3b3A9aDfuo g6gU3EykB55uLL4CMhIKyL5pUKXiPIAVpo7Abnk+akF1gZFetUNZatQFrgQRbxGPNHQE Msub4MsqZYk8LK0+YrAto7vppVqs+Tm+dFvR2x1W8kwsO36A/8kpeGY60pcmiJ57JDG4 LKnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dC8T0lJ8; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170902d51000b001870c4d4378si18391499plg.498.2022.11.16.03.34.08; Wed, 16 Nov 2022 03:34:21 -0800 (PST) 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=@linaro.org header.s=google header.b=dC8T0lJ8; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232768AbiKPL2W (ORCPT + 99 others); Wed, 16 Nov 2022 06:28:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239344AbiKPL1J (ORCPT ); Wed, 16 Nov 2022 06:27:09 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C929F2D1EA for ; Wed, 16 Nov 2022 03:17:52 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id o4so29231204wrq.6 for ; Wed, 16 Nov 2022 03:17:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xv65Uj0lvJ7ZIlYIMtfh5eKQNGbhyUH7PS0XoMqmdlg=; b=dC8T0lJ8VNoqDp/KEM31NZucVyyaplfQBRTiy2+x1bxi2bSQak4K/bh1RZ2H3MAy/i sox0U5wyiwIVfBI/nfXe03k10vwb+UKs/2L0CPzmZ2cQSPLWENHKxntGWgZ4qd5Udrdx tzvbbd3Q09qlvLup+uikNp1oK1NR1/J4EgTSmsBSsLSfNZOewYuMhPAj2MRc1fnnJGJ5 5XY1DQ+CM40+mldq+RR1DyyNH1ZS16kl+BaOZA9UXBuiHYh9IJTVOF7A/zf03l9tvCjX ANY9Gbz3vibVWoV6tS1V453ibdiCaZizsK6GBCPxk6+n8yEByrUO54v4wzNHoqV8fEp1 ADbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xv65Uj0lvJ7ZIlYIMtfh5eKQNGbhyUH7PS0XoMqmdlg=; b=wW8eGV6mUfkfx5xEKkkIr+n2fLFRR2apgvVSjUTJUJ+AgZwp20kfJOf31YVP0h/b3b rNCU4391KJNP8tDIsfpi9sup0XBce2oyDdD6QNamBXQsh9eOT51++49FrG70lLvWoYx/ wTJowqJnefgBDyWsewtIXYUQPrzfz0HiY8IfKyCrzUlFnK5uMEdfcS/r8/7+SitXvLDw n7tfPXpUOxrQIPGA73V2HbKpzeVxeWIHU6FaS5qSg1AbUPJwGEUAWwvMgOoxeTgi+1R2 ftu+r8FvUHA7/mNHFv7ulE7l8bzcEE/nEkYICdUWY3jY2NAASAduLS9eVLMgDSWBpcII tgsQ== X-Gm-Message-State: ANoB5pkKlLCPAt2Fm3173EW50JkApmDS+uhh9pRwNpfHmPh5c7NNF7z4 JkhAd7DOYdofbDLtQRqNORxnlg== X-Received: by 2002:adf:a51d:0:b0:236:6302:2237 with SMTP id i29-20020adfa51d000000b0023663022237mr13831237wrb.519.1668597471298; Wed, 16 Nov 2022 03:17:51 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b003c6f8d30e40sm1875870wmq.31.2022.11.16.03.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 03:17:50 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/2] soc: qcom: rpmhpd: Add SM8550 power domains Date: Wed, 16 Nov 2022 13:17:45 +0200 Message-Id: <20221116111745.2633074-3-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116111745.2633074-1-abel.vesa@linaro.org> References: <20221116111745.2633074-1-abel.vesa@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1749652299788244823?= X-GMAIL-MSGID: =?utf-8?q?1749652299788244823?= Add the power domains exposed by RPMH in the Qualcomm SM8550 platform. Signed-off-by: Abel Vesa Reviewed-by: Konrad Dybcio --- drivers/soc/qcom/rpmhpd.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 7af68cd720f5..4c2d2c296790 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -372,6 +372,29 @@ static const struct rpmhpd_desc sm8450_desc = { .num_pds = ARRAY_SIZE(sm8450_rpmhpds), }; +/* SM8550 RPMH powerdomains */ +static struct rpmhpd *sm8550_rpmhpds[] = { + [SM8550_CX] = &cx, + [SM8550_CX_AO] = &cx_ao, + [SM8550_EBI] = &ebi, + [SM8550_GFX] = &gfx, + [SM8550_LCX] = &lcx, + [SM8550_LMX] = &lmx, + [SM8550_MMCX] = &mmcx_w_cx_parent, + [SM8550_MMCX_AO] = &mmcx_ao_w_cx_parent, + [SM8550_MSS] = &mss, + [SM8550_MX] = &mx, + [SM8550_MX_AO] = &mx_ao, + [SM8550_MXC] = &mxc, + [SM8550_MXC_AO] = &mxc_ao, + [SM8550_NSP] = &nsp, +}; + +static const struct rpmhpd_desc sm8550_desc = { + .rpmhpds = sm8550_rpmhpds, + .num_pds = ARRAY_SIZE(sm8550_rpmhpds), +}; + /* QDU1000/QRU1000 RPMH powerdomains */ static struct rpmhpd *qdu1000_rpmhpds[] = { [QDU1000_CX] = &cx, @@ -477,6 +500,7 @@ static const struct of_device_id rpmhpd_match_table[] = { { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc }, { .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc }, { .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc }, + { .compatible = "qcom,sm8550-rpmhpd", .data = &sm8550_desc }, { } }; MODULE_DEVICE_TABLE(of, rpmhpd_match_table);