Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4400523ioa; Wed, 27 Apr 2022 03:04:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2Nwgx5ftwv81lznWXd2KI+0ztQgehN3ACyt6Ahthq2UGSxfQVO1btNwrlVp18IHt4+xWX X-Received: by 2002:a63:84c8:0:b0:3ab:180b:bb5a with SMTP id k191-20020a6384c8000000b003ab180bbb5amr15531331pgd.308.1651053848272; Wed, 27 Apr 2022 03:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651053848; cv=none; d=google.com; s=arc-20160816; b=EZK9SYrxvGQzLjIdmBOxyJWpAQtMLGTJ4+/fL3sLt7Lj0PQV+JDdeJiXDmt6LR+USO CLyUKnwChUNkQStOyBoegwd+W6/Ng8IZY2Pa0u8di5Y4OIvchQJuFePmKbHY8VwRbN1r Tl2pUY53498PHLKHScVC1A2vOq+42uiyD3sT5AEkAQ/MIt2nsk+cna/l2HNvRXnnX6ja SDBb7fi6xix5ddOWJ9OCfSMdZM10QEKmY85VM581KtswVgzQNcGZMGA9JpfHSU8te8n4 VGXEUQLaXfc/B36jAKLXkpI37HgbttQ0hIudmmgOsirec1WlWiV8RKaPGBnZ+4kImXV5 lZoA== 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=mPLQqqv78H4vpATnizZrr8k/pThUI48bHzxuZTk6fwo=; b=dSq4UOlokz/goStXSd7XxZcMyfS9wYDcJei+T6DC0JzITWxJK2m31wWhD61TbwWV6w 6lzMR/pCaZtohXEi1ho/WdEJjKRvYDTpK1c20zuA4kFVmukPypVoWELuWQp83US15sXW XaXwEgkD/ll9fkPHgmtVTwQVMnur7RB37She5vf9dbDS87CyHvNTyTMU5f9zu656baDI UHYQ9/cLVfRlpkvnJnHgkm+szZmKlVn1OtpRVSh/AsE8ipKTD4hpFPO/trYwZ6sJJa/+ UhxL1EhNM+a/EdMST3tT295NLwgHD12vGMvPP95QjMuqQp+64v4jjwGryR3K/JrEJ/qG i5PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wX1c0JS3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b8-20020a056a00114800b0050d67ef8296si989040pfm.370.2022.04.27.03.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:04:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wX1c0JS3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62BA42EE3CD; Wed, 27 Apr 2022 02:30:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356123AbiDZXgc (ORCPT + 99 others); Tue, 26 Apr 2022 19:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356126AbiDZXgY (ORCPT ); Tue, 26 Apr 2022 19:36:24 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5163B3191D for ; Tue, 26 Apr 2022 16:33:15 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-e2fa360f6dso307116fac.2 for ; Tue, 26 Apr 2022 16:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mPLQqqv78H4vpATnizZrr8k/pThUI48bHzxuZTk6fwo=; b=wX1c0JS3y92QFPGUeiWHj+woXNrE7erTJk1Ex1Fdj0oLhGeW9WijdzMooVfBdRU8/w xsy7sCPjHKmvPO6vxB5Gj0LrX9a4k5539SnsgDlw9uIP/3YZSbfSfPOODmfkhe+xjtuB qNDjL4sT24F6tM7p+iqXuUJk/mMzofIPrc/1ZZojc77kJmhbZuiKPWZrKvwALm3tqiBB yyi/tKSqfNHHhA7CmBivBsydaiVENxDTGhckVAMknF2PZIIkGxbkhyTDJZrwWs43AmUx 4riM15Fj3ccawuBPlYgeJt4IiZZUo/LvlxRCzE0qA9SXNCYbwcn1XLtmRJxkK6+cOoab u7ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mPLQqqv78H4vpATnizZrr8k/pThUI48bHzxuZTk6fwo=; b=ROqOKfbIbS3QP+GIJXwtYHBa5+bO1LmaPfjvw4FRzdDvrAlUVFsR/zQc9WC6wWjGzI wIL/1pslw+TUOkAkCv0TYd/hl7SohrgiLsMgbCknLGdzzQlGS3onuPA4QKvRcfDSZVZv qtnY4Q7r+g7PFINVwwGUQqggqe8Xj1kRzRq+2Lb4GGSSw8DEONgJ8mmtqUCQr7nx0OcD w4jf9UmWGu9DMp44xr/cq8Wi9ldE5OJphWn65OHYucWY4+HdJI+CPwCWQjXv8zec0ESI WzJCTbc7z8Oe1JBm/6vcnWDw5xXRQi/REqIWEDN5a2Bgy31NDAsUqjCwdCEbCrteq8Cw zsLg== X-Gm-Message-State: AOAM531cCeJwSF2cLQEYgmqSzf2ppJ7HgQb9rJcSzRFBt5OfbGGddx6c Sqc4zBIqPMVN24RwFdt8Yn8YDg== X-Received: by 2002:a05:6870:471f:b0:e9:5b13:3881 with SMTP id b31-20020a056870471f00b000e95b133881mr3603134oaq.106.1651015994714; Tue, 26 Apr 2022 16:33:14 -0700 (PDT) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id k2-20020a4adfa2000000b0033a3381a7f1sm6151658ook.44.2022.04.26.16.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 16:33:14 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] soc: qcom: rpmhpd: add sc8280xp & sa8540p rpmh power-domains Date: Tue, 26 Apr 2022 16:35:08 -0700 Message-Id: <20220426233508.1762345-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220426233508.1762345-1-bjorn.andersson@linaro.org> References: <20220426233508.1762345-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 The Qualcomm sc8280xp platform has 13 and the sa8540p platform has 11 power-domains. Add compatibles, the typically used ones power-domains and their relevant active-only variants, to the RPMh power-domain driver. Signed-off-by: Bjorn Andersson --- Changes since v1: - Added QPHY - Split out sa8540 - Sorted the entries alphabetically drivers/soc/qcom/rpmhpd.c | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index f8d28e902942..05fff8691ee3 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -180,6 +180,36 @@ static struct rpmhpd mxc_ao = { .res_name = "mxc.lvl", }; +static struct rpmhpd nsp = { + .pd = { .name = "nsp", }, + .res_name = "nsp.lvl", +}; + +static struct rpmhpd qphy = { + .pd = { .name = "qphy", }, + .res_name = "qphy.lvl", +}; + +/* SA8540P RPMH powerdomains */ +static struct rpmhpd *sa8540p_rpmhpds[] = { + [SC8280XP_CX] = &cx, + [SC8280XP_CX_AO] = &cx_ao, + [SC8280XP_EBI] = &ebi, + [SC8280XP_GFX] = &gfx, + [SC8280XP_LCX] = &lcx, + [SC8280XP_LMX] = &lmx, + [SC8280XP_MMCX] = &mmcx, + [SC8280XP_MMCX_AO] = &mmcx_ao, + [SC8280XP_MX] = &mx, + [SC8280XP_MX_AO] = &mx_ao, + [SC8280XP_NSP] = &nsp, +}; + +static const struct rpmhpd_desc sa8540p_desc = { + .rpmhpds = sa8540p_rpmhpds, + .num_pds = ARRAY_SIZE(sa8540p_rpmhpds), +}; + /* SDM845 RPMH powerdomains */ static struct rpmhpd *sdm845_rpmhpds[] = { [SDM845_CX] = &cx_w_mx_parent, @@ -378,10 +408,33 @@ static const struct rpmhpd_desc sc8180x_desc = { .num_pds = ARRAY_SIZE(sc8180x_rpmhpds), }; +/* SC8280xp RPMH powerdomains */ +static struct rpmhpd *sc8280xp_rpmhpds[] = { + [SC8280XP_CX] = &cx, + [SC8280XP_CX_AO] = &cx_ao, + [SC8280XP_EBI] = &ebi, + [SC8280XP_GFX] = &gfx, + [SC8280XP_LCX] = &lcx, + [SC8280XP_LMX] = &lmx, + [SC8280XP_MMCX] = &mmcx, + [SC8280XP_MMCX_AO] = &mmcx_ao, + [SC8280XP_MX] = &mx, + [SC8280XP_MX_AO] = &mx_ao, + [SC8280XP_NSP] = &nsp, + [SC8280XP_QPHY] = &qphy, +}; + +static const struct rpmhpd_desc sc8280xp_desc = { + .rpmhpds = sc8280xp_rpmhpds, + .num_pds = ARRAY_SIZE(sc8280xp_rpmhpds), +}; + static const struct of_device_id rpmhpd_match_table[] = { + { .compatible = "qcom,sa8540p-rpmhpd", .data = &sa8540p_desc }, { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, { .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc }, { .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc }, + { .compatible = "qcom,sc8280xp-rpmhpd", .data = &sc8280xp_desc }, { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc }, { .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc}, { .compatible = "qcom,sdx65-rpmhpd", .data = &sdx65_desc}, -- 2.35.1