Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2298325pxm; Thu, 24 Feb 2022 22:09:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgkE+cGHE1poxeAVcJWFlRmqsV47jJR2S41CjSMVWpnkfQfMM7TAAw+MhsdWOpz9fZwAHq X-Received: by 2002:a17:90b:3796:b0:1bc:c077:5be4 with SMTP id mz22-20020a17090b379600b001bcc0775be4mr1704852pjb.113.1645769395346; Thu, 24 Feb 2022 22:09:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645769395; cv=none; d=google.com; s=arc-20160816; b=bONy4CZdzcUuUs5Ww7orqO8fWEDcvBSpxLl2rE4TQ7VFtgt63Yr6xE37OuWPf9zvGb WzeSp+y0qeyRQbJwRLwW74LbvcVSmu2v37b23S+1lilVWsY0xYYFHwTbxuqdXxfF1iTx OSf7CpRJ0EfZ33jdOBxsOjMvkBlGz2ESU/Bc2+ffVCx8RW0F6GsUe8KGwYt8gBCvtPiV oYlKKW5RYqoNa+80RwxHG4NLSBfWSFXG7b3gL6cqT0QgzYRy2vjH8AShaf2C3avbMPNB 3MvOAFIt5KJ1QODpmYOn38whSeWWHLnZsOXZMeYITFGiXF/dD0LxTlWNNH3akhkrItx6 Ck8g== 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=U4r1xpGpcEW5aqEcjdiRX7MWjToKanTSLY+a7BjOYQE=; b=vjevq+dIfroKIX3Fhf5MnY7sQEVZOuOkBy53O/cTxRZUrZnzHq/LXWo93Qiy6FEBEC R2nhoEllddcc8GbIRKwHPp7knjFlXhWxyZLibakej2KLNWl5krIeoPTxX3BSB/zOe4bD pZO2C5ABAcn99ylfjFSpyHxeWzpG7mu1JjLFOqyzaYjbRF5MVvBJLs45JYz3QuH5/0Vu +Jk+q7SnBhA1T+SUit9A6ADKDc1Hfd8MVdDC5LKrNT9R3ysBYr/DTzWhxSnPY186ozlW ETLK0OfAFa88UK5QgJhYX7HcUgg66PPGHFwBZKpVgPtIQ4/m/TJzLw2rBgKNbL3LJYRY QZOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a5wKsdc+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020a17090abb9700b001bbe055fd00si1145199pjr.167.2022.02.24.22.09.38; Thu, 24 Feb 2022 22:09:55 -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=a5wKsdc+; 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 S237615AbiBYFm1 (ORCPT + 99 others); Fri, 25 Feb 2022 00:42:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237602AbiBYFmU (ORCPT ); Fri, 25 Feb 2022 00:42:20 -0500 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C1E330F66 for ; Thu, 24 Feb 2022 21:41:48 -0800 (PST) Received: by mail-oi1-x22e.google.com with SMTP id ay7so6283011oib.8 for ; Thu, 24 Feb 2022 21:41:48 -0800 (PST) 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=U4r1xpGpcEW5aqEcjdiRX7MWjToKanTSLY+a7BjOYQE=; b=a5wKsdc+0BgDLsPcUcnjEh6GDmf//Br+CbPGT9FWbULtu5ZiUd9GUJNMeBny9J2tW3 kpw8cCMi8KdTPIlem9TppVy/iiGChQyV/dtYAFwI3mUYCtYAFWXCEnk7Fu2ibG83WfX3 M1bGyKzUgxOUdGqkwBUeKs3p1Y1SqvQuF0jNDqkmusoyNIjLrGf+2D5Eb4CkY3PD01DW 2FDaLHwNP8eRv6XEvRiVV/ABiQpXdjDGuKFsa3hDjQC3VfPTyrl+Z2MNZg4oVF25EJ0r PO+cZ+JQDaSpP+JpZtJxUSSjch4vHp5RfAESEpYMIZvFCsKVA8eW9mozZ7KO0pqcgPAP xvXA== 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=U4r1xpGpcEW5aqEcjdiRX7MWjToKanTSLY+a7BjOYQE=; b=Yon90kN+sU4VSX1wkjpQabeSZhGKCKF1xe9gV3wjgc16jQ4oQok5IyLL5uGXGyukXS sOVM/MDhuJuk6aWQhdK6bCUIAiOxCt86ITOv0eOdTVzDNr2bODdtFGRO10m4+1rj/h7O w47DwEO9OPJywDr4hPoSM9vaS3sp7A2bR67EwCgfGmsoWXPSeiXu4EY76W6UPXWo1FvP 8PibyU4EQDGMLbAgDHAO4RTau+nt+CXvo3eX7RPR8s1HknmXkiRdQPTCU++E7FJ1r9xg 1mIiEvT2Iw00t6PXBWZ3PEBiOrXdK/Lp4ylscIPQMMdF82Qb1AkpoSHKw/ejImniVlnU mSlw== X-Gm-Message-State: AOAM531nQoDsKu9rpY1J2WLUViY3rGtdYUPSkk7ozTMXNtZTC00YOUEb eIn35XXrYnJ7g0ONBvVq7C9iuKdMcHd07A== X-Received: by 2002:a05:6808:118d:b0:2cc:ef90:3812 with SMTP id j13-20020a056808118d00b002ccef903812mr782943oil.48.1645767707961; Thu, 24 Feb 2022 21:41:47 -0800 (PST) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id bd32-20020a056870d7a000b000d43d4d2de1sm863567oab.5.2022.02.24.21.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 21:41:47 -0800 (PST) From: Bjorn Andersson To: Bjorn Andersson , Rajendra Nayak Cc: Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND 2/2] soc: qcom: rpmhpd: add sc8280xp rpmh power-domains Date: Thu, 24 Feb 2022 21:43:45 -0800 Message-Id: <20220225054345.2479565-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220225054345.2479565-1-bjorn.andersson@linaro.org> References: <20220225054345.2479565-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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 The Qualcomm sc8280xp platform has 8 power-domains. Add these, and their relevant active-only variants, to the RPMh power-domain driver. Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/rpmhpd.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 58f1dc9b9cb7..71602eb824f7 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -180,6 +180,11 @@ static struct rpmhpd mxc_ao = { .res_name = "mxc.lvl", }; +static struct rpmhpd nsp = { + .pd = { .name = "nsp", }, + .res_name = "nsp.lvl", +}; + /* SDM845 RPMH powerdomains */ static struct rpmhpd *sdm845_rpmhpds[] = { [SDM845_CX] = &cx_w_mx_parent, @@ -363,10 +368,31 @@ 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_MX] = &mx, + [SC8280XP_MX_AO] = &mx_ao, + [SC8280XP_EBI] = &ebi, + [SC8280XP_LCX] = &lcx, + [SC8280XP_LMX] = &lmx, + [SC8280XP_GFX] = &gfx, + [SC8280XP_MMCX] = &mmcx, + [SC8280XP_MMCX_AO] = &mmcx_ao, + [SC8280XP_NSP] = &nsp, +}; + +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,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,sm6350-rpmhpd", .data = &sm6350_desc }, -- 2.33.1