From patchwork Tue Feb 14 09:54:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 56811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2873312wrn; Tue, 14 Feb 2023 01:56:39 -0800 (PST) X-Google-Smtp-Source: AK7set9/dSw29Rmx7xd31iNrcnDToNBNHsqBPsfO+2L1gHheuZ+HSTjvE27e72ho5Q9jWEQx8LRD X-Received: by 2002:a17:906:209d:b0:878:7471:6da7 with SMTP id 29-20020a170906209d00b0087874716da7mr3436911ejq.66.1676368599567; Tue, 14 Feb 2023 01:56:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676368599; cv=none; d=google.com; s=arc-20160816; b=qWaDd9rH5BXr1UA2pxsGkfAb2tAKw6sAL012eqlm2z8lBELTpkZ6bx+wbsLHmty8+o KhHS6vlbAuwEOgyiPfeM/0flg5otAwd0R41ufh2ASn5tzVT7/FSHy6EGReBpB+sVbDRo NEcvcaY7wJoC/F66EBcNhRlNdyHCYxaNRmowddJOPE3AK6wP71fJmkjcyZkJl/AlNePA M8KfMgESheN6I6o6+wcU9KsRiO1fppUczr7v/eJrG8I5H44un31JHRSi/au8Kcnia3aM /TNsw5RRk3p7XDHJXwax/E/1m+7RWB5l/6/kaHWAxd7dDYVg17e2bAGJCDJHFSs9xW3+ OgGQ== 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=alcmQEv21lf+ZQxfpXql4sGdLArmHdHiJ6Fsno5k1fs=; b=Q+ytlEY3UQ3Xp78XT8YimDhCIvJLBy1VXdSqWnVrAViqTCyvUzVGJ5xP+0GTUN5lxy QE2OglMeUJY7g7kpO0mLQcHfK4w9yQnUd8QTl87m96zF+I8Llrz4fkEEzLn7fFkG5gJG 6YMFAVaQVZl1QHWhQ9uetUr8xJWA0fs9UnnUUNPwVk+aN63Jqf8qW3IwwDCAXizlPicf OTQDWWKCdlf+v+8zOqVEyPEKXV14hupdYuKmorGT9bQItjuVK81mvP1uHH1+FqErBPS3 BNxKRbIXx+DcZIH4s2sAiUQlFBUKNi5mod5aFzWD6Z0yF+I00amC8aSk9drdb0UMk809 vQRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J8CiysRG; 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 d10-20020a17090692ca00b008775c0dd569si14096268ejx.418.2023.02.14.01.56.16; Tue, 14 Feb 2023 01:56:39 -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=J8CiysRG; 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 S231655AbjBNJzN (ORCPT + 99 others); Tue, 14 Feb 2023 04:55:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbjBNJyq (ORCPT ); Tue, 14 Feb 2023 04:54:46 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C5CC640 for ; Tue, 14 Feb 2023 01:54:44 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id rp23so38632024ejb.7 for ; Tue, 14 Feb 2023 01:54:44 -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=alcmQEv21lf+ZQxfpXql4sGdLArmHdHiJ6Fsno5k1fs=; b=J8CiysRGB/U8cQz2Di2tXKgm2Ue5izuOlZRhd6dr/iapz7cZ16ru/pOfBojJf2beLw 0xHbu+jBA7BsSBdXgTJXVUajvNRkruOvY2Y9Z3CgMc6NH7zCGYBtKWWDl87ouXHq3wAU JK6u+wIOxqZiFr9J42aXYwzrdrHI7M1L1hqobIPr8DOl1BTIgLYUjniOhFpO4TcmEXph W3W6acRqUE3ZzB5KUI2ediLyVknVhOdvBwD3rup1ZxzdBgE0aruse+CTAQDroiB9Cy2H LtYHv9dmKNnJCg0yIHsxJAgtn2ITy6GjSEcF864iMFbc0p1KeVikpXBe9IR8p1GamMKK lIGw== 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=alcmQEv21lf+ZQxfpXql4sGdLArmHdHiJ6Fsno5k1fs=; b=M0u3b3vUvZhJkguypritcC52V5oV6Ws5MdIhAz1Zfin4/WSc/Zmq9ZN21m05sEO64D CdExj8HWu3uV/Ej6UoFxPWJkXvyqMcv1ri2saTr/m5W74sOT6lEMAZg8a17hs36ob+iB yBq1yuXoIlsOSGobdeWQoNvsflR7ht/TDvALcKw3AV3HF3YHw9oCytRRK59WHP4VmyMJ KV6svfvL0q4YHF40nyxvUwzkFPxhZvF/H5U7et52O8NPx/YAp4JjB0hzcey9AAn+1O+P nMVywcSkWMdiSWZNe/GXPYqrkW8fW/W7XIFICi6PWOqMHwADNfCacuW5Hvc9TGz/SKUj cV9w== X-Gm-Message-State: AO0yUKXKxIpLK1nHgG2FKNZa8ZRXNqzA91LRxU3L4mjOEPG8KOjr8CgA gbe7AlDmSGHjd6XWm3sOx7348A== X-Received: by 2002:a17:906:33ca:b0:864:223:40b with SMTP id w10-20020a17090633ca00b008640223040bmr2954742eja.33.1676368482998; Tue, 14 Feb 2023 01:54:42 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id b12-20020a170906038c00b0088f464ac276sm7936172eja.30.2023.02.14.01.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 01:54:42 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] soc: qcom: rpmhpd: Add SA8155P power domains Date: Tue, 14 Feb 2023 10:54:34 +0100 Message-Id: <20230214095435.2192153-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214095435.2192153-1-konrad.dybcio@linaro.org> References: <20230214095435.2192153-1-konrad.dybcio@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=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?1757799880439365762?= X-GMAIL-MSGID: =?utf-8?q?1757799880439365762?= Add the power domains exposed by RPMh in the Qualcomm SA8155P platform. Turns out they differ from SM8150. Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/rpmhpd.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index f20e2a49a669..63c35a32065b 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -342,6 +342,21 @@ static const struct rpmhpd_desc sm8150_desc = { .num_pds = ARRAY_SIZE(sm8150_rpmhpds), }; +static struct rpmhpd *sa8155p_rpmhpds[] = { + [SA8155P_CX] = &cx_w_mx_parent, + [SA8155P_CX_AO] = &cx_ao_w_mx_parent, + [SA8155P_EBI] = &ebi, + [SA8155P_GFX] = &gfx, + [SA8155P_MSS] = &mss, + [SA8155P_MX] = &mx, + [SA8155P_MX_AO] = &mx_ao, +}; + +static const struct rpmhpd_desc sa8155p_desc = { + .rpmhpds = sa8155p_rpmhpds, + .num_pds = ARRAY_SIZE(sa8155p_rpmhpds), +}; + /* SM8250 RPMH powerdomains */ static struct rpmhpd *sm8250_rpmhpds[] = { [SM8250_CX] = &cx_w_mx_parent, @@ -519,6 +534,7 @@ 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,sa8155p-rpmhpd", .data = &sa8155p_desc }, { .compatible = "qcom,sa8540p-rpmhpd", .data = &sa8540p_desc }, { .compatible = "qcom,sa8775p-rpmhpd", .data = &sa8775p_desc }, { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },