Message ID | 20230109174511.1740856-15-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2290235wrt; Mon, 9 Jan 2023 09:50:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTIHAk1GU/IyyxvDmfr8FzdrPl0wXtErAbtA8i4Vu/ze5Saw5wJGtJM/wzuBUiHvgc5oMs X-Received: by 2002:a05:6a00:26c8:b0:582:b3c9:efe with SMTP id p8-20020a056a0026c800b00582b3c90efemr23100480pfw.19.1673286607823; Mon, 09 Jan 2023 09:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673286607; cv=none; d=google.com; s=arc-20160816; b=Vw/UQu8xL42axy3Sr0hmq6dj82VM35pvR+DHkuHvxpLfGroCJa5TSYIrb83rBPWnEK mavrgJ1IFF1HC1hjtqPQtvqwMOudiqthBkFfqV99q54/3hUDjXJMp6MuIv0IOPPvk6zF TZeID78QIEdlYIULsgbtx2LlYBP+LqXdxTmrOPDWdcghTBAEVFzFfE+VxlmHhCjFvgnC JPBe1k/Nqqk+uM5ZBQdX1B58pygJiKP2bNwFQLHHmKgCNmKXwdopddTtjBjVtWtZv/aw zIfp2Qmpk9PNQcd2ddyoYg8Y3UIDkwdBvDI8yIWAkLQmucV0YOBMChIGPCeDbRponFLz cNJg== 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=WUcGV5fbtjxqFE0T6p3J3bmXfyuMT3kH12S7+49//HE=; b=ztSpc1ZJfuHsaiDrrYlJBIm9IadaflGGnbMyzk7gKYMiQ6UzjWz6PlnJXvFGS8D/Ga GLlscjIgqgyUeMFVAvKk2+8GtSSXVNKsnPUVu71mJzlDmyFuFE8XKhlSV3y17qPi8ozH tNAR/hFn43qrg7TBQzQ5y/dF0OJXftXs4cVmT9abDM46ufosc4HuyfjeAO58fOdgdYgy RvQnVpZz1zsls08gXOWoRjdUJsbPuQIX23dO/e/F4Qb3E0M1ovEslcf9FlkdGIYvcLw3 rjYhlPNdA1mSp9c2Vs1VZsDTY6EZ5G34gU+RIdq/ut7wmdluWT7VzvpE2KnJxEvowONP 6r7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=6MwA8kcV; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r5-20020aa79885000000b0057f905fb1easi9725735pfl.335.2023.01.09.09.49.55; Mon, 09 Jan 2023 09:50:07 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=6MwA8kcV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231133AbjAIRsP (ORCPT <rfc822;syz17693488234@gmail.com> + 99 others); Mon, 9 Jan 2023 12:48:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbjAIRqK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Jan 2023 12:46:10 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66562232 for <linux-kernel@vger.kernel.org>; Mon, 9 Jan 2023 09:45:51 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id d17so9015949wrs.2 for <linux-kernel@vger.kernel.org>; Mon, 09 Jan 2023 09:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; 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=WUcGV5fbtjxqFE0T6p3J3bmXfyuMT3kH12S7+49//HE=; b=6MwA8kcVFm4Dtxz03gS3O9kr+VDwecpPiUxj83LoGLmyZetVHS2kt0hKyJ1TDXFNlj 2kjEjWgFJJViaRLqoNdNqwStVUl53rFwx5Gedn54jRycLv/8zwYqhfrhoylLJE8pictL SV/4JqCv4ZZ+SgsahBfgvhMo9oZN5NdjSa79NGncPRxtmP8Vr6ONPej3FuswYGYA6cur 0x/3SMmalfMeJVsCrLfFPcTc96IeoTajsGnfwEKz/9H9UEmbp8qE8tCxMZmnfsZ5yotN JVHx/e7U2F6iIgfdRQIvruw56UAPLQcYl1iXAux1uUkqoWmW1akxEnL3sh4AU8Xg7+m9 MOtg== 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=WUcGV5fbtjxqFE0T6p3J3bmXfyuMT3kH12S7+49//HE=; b=WU9bY01MHSHTATq6h7QNkimcXrHOwlz4WUKkKjQC+41mrmPp0LRRbfisUZnF9pqBcP xZXoIaF2Q6pwMa3GmVimT6/y/UvaXqyBIWftNMFlf9yhEFh8trABoMky+obNXmg/DdJ6 P0DRufl9OPXkCcIcMcvZuAky9iBSbUSMNDDU4lSnQDTOw2z6SSTu1Cv0H8yD1GNDWiPk PFwmQqi6RH3MD1JroPXL6dAUl1Mzw7Quh9pRbRzNhiRDAHO6mgx2nHdPFC9D4ACVIjqa 6ZmR684Fuk+XEUw68Rok06u8dufKci+HTRbegZQgd/6nOV2RsV8MvfvtygZ7kMNsoLME zmDg== X-Gm-Message-State: AFqh2krc7uhxRPKvw/9hfTS15Jcwv5rUje2s6vY6ymFW3jU8pvoTXgTL P1/x5te8dPTBmDomtJqUW6Wx9w== X-Received: by 2002:adf:f183:0:b0:255:96ed:950b with SMTP id h3-20020adff183000000b0025596ed950bmr39349795wro.60.1673286351007; Mon, 09 Jan 2023 09:45:51 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:c88:901e:c74c:8e80]) by smtp.gmail.com with ESMTPSA id m1-20020a5d6241000000b002bbdaf21744sm6142902wrv.113.2023.01.09.09.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 09:45:50 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Georgi Djakov <djakov@kernel.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Joerg Roedel <joro@8bytes.org>, Manivannan Sadhasivam <mani@kernel.org>, Jassi Brar <jassisinghbrar@gmail.com>, Linus Walleij <linus.walleij@linaro.org>, Catalin Marinas <catalin.marinas@arm.com>, Richard Cochran <richardcochran@gmail.com>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Vinod Koul <vkoul@kernel.org>, Alex Elder <elder@kernel.org> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH 14/18] soc: qcom: rmphpd: add power domains for sa8775p Date: Mon, 9 Jan 2023 18:45:07 +0100 Message-Id: <20230109174511.1740856-15-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230109174511.1740856-1-brgl@bgdev.pl> References: <20230109174511.1740856-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754568177838828584?= X-GMAIL-MSGID: =?utf-8?q?1754568177838828584?= |
Series |
arm64: qcom: add support for sa8775p-ride
|
|
Commit Message
Bartosz Golaszewski
Jan. 9, 2023, 5:45 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Add power domain description for sa8775p and a new compatible to match it. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- drivers/soc/qcom/rpmhpd.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+)
Comments
On 9.01.2023 18:45, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add power domain description for sa8775p and a new compatible to match it. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > drivers/soc/qcom/rpmhpd.c | 34 ++++++++++++++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c > index 4c2d2c296790..f20e2a49a669 100644 > --- a/drivers/soc/qcom/rpmhpd.c > +++ b/drivers/soc/qcom/rpmhpd.c > @@ -187,6 +187,16 @@ static struct rpmhpd nsp = { > .res_name = "nsp.lvl", > }; > > +static struct rpmhpd nsp0 = { > + .pd = { .name = "nsp0", }, > + .res_name = "nsp0.lvl", > +}; > + > +static struct rpmhpd nsp1 = { > + .pd = { .name = "nsp1", }, > + .res_name = "nsp1.lvl", > +}; > + > static struct rpmhpd qphy = { > .pd = { .name = "qphy", }, > .res_name = "qphy.lvl", > @@ -212,6 +222,29 @@ static const struct rpmhpd_desc sa8540p_desc = { > .num_pds = ARRAY_SIZE(sa8540p_rpmhpds), > }; > > +/* SA8775P RPMH power domains */ > +static struct rpmhpd *sa8775p_rpmhpds[] = { > + [SA8775P_CX] = &cx, > + [SA8775P_CX_AO] = &cx_ao, > + [SA8775P_EBI] = &ebi, > + [SA8775P_GFX] = &gfx, > + [SA8775P_LCX] = &lcx, > + [SA8775P_LMX] = &lmx, > + [SA8775P_MMCX] = &mmcx, > + [SA8775P_MMCX_AO] = &mmcx_ao, > + [SA8775P_MXC] = &mxc, > + [SA8775P_MXC_AO] = &mxc_ao, > + [SA8775P_MX] = &mx, > + [SA8775P_MX_AO] = &mx_ao, > + [SA8775P_NSP0] = &nsp0, > + [SA8775P_NSP1] = &nsp1, > +}; > + > +static const struct rpmhpd_desc sa8775p_desc = { > + .rpmhpds = sa8775p_rpmhpds, > + .num_pds = ARRAY_SIZE(sa8775p_rpmhpds), > +}; > + > /* SDM670 RPMH powerdomains */ > static struct rpmhpd *sdm670_rpmhpds[] = { > [SDM670_CX] = &cx_w_mx_parent, > @@ -487,6 +520,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,sa8540p-rpmhpd", .data = &sa8540p_desc }, > + { .compatible = "qcom,sa8775p-rpmhpd", .data = &sa8775p_desc }, > { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, > { .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc }, > { .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc },
On 09/01/2023 19:45, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add power domain description for sa8775p and a new compatible to match it. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- > drivers/soc/qcom/rpmhpd.c | 34 ++++++++++++++++++++++++++++++++++ > 1 file changed, 34 insertions(+) [skipped] > +/* SA8775P RPMH power domains */ > +static struct rpmhpd *sa8775p_rpmhpds[] = { > + [SA8775P_CX] = &cx, > + [SA8775P_CX_AO] = &cx_ao, > + [SA8775P_EBI] = &ebi, > + [SA8775P_GFX] = &gfx, > + [SA8775P_LCX] = &lcx, > + [SA8775P_LMX] = &lmx, > + [SA8775P_MMCX] = &mmcx, > + [SA8775P_MMCX_AO] = &mmcx_ao, > + [SA8775P_MXC] = &mxc, > + [SA8775P_MXC_AO] = &mxc_ao, Is there any parent/child relationship between mmcx/mxc and other domains? > + [SA8775P_MX] = &mx, > + [SA8775P_MX_AO] = &mx_ao, > + [SA8775P_NSP0] = &nsp0, > + [SA8775P_NSP1] = &nsp1, > +}; > + > +static const struct rpmhpd_desc sa8775p_desc = { > + .rpmhpds = sa8775p_rpmhpds, > + .num_pds = ARRAY_SIZE(sa8775p_rpmhpds), > +}; > + > /* SDM670 RPMH powerdomains */ > static struct rpmhpd *sdm670_rpmhpds[] = { > [SDM670_CX] = &cx_w_mx_parent, > @@ -487,6 +520,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,sa8540p-rpmhpd", .data = &sa8540p_desc }, > + { .compatible = "qcom,sa8775p-rpmhpd", .data = &sa8775p_desc }, > { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, > { .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc }, > { .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc },
diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 4c2d2c296790..f20e2a49a669 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -187,6 +187,16 @@ static struct rpmhpd nsp = { .res_name = "nsp.lvl", }; +static struct rpmhpd nsp0 = { + .pd = { .name = "nsp0", }, + .res_name = "nsp0.lvl", +}; + +static struct rpmhpd nsp1 = { + .pd = { .name = "nsp1", }, + .res_name = "nsp1.lvl", +}; + static struct rpmhpd qphy = { .pd = { .name = "qphy", }, .res_name = "qphy.lvl", @@ -212,6 +222,29 @@ static const struct rpmhpd_desc sa8540p_desc = { .num_pds = ARRAY_SIZE(sa8540p_rpmhpds), }; +/* SA8775P RPMH power domains */ +static struct rpmhpd *sa8775p_rpmhpds[] = { + [SA8775P_CX] = &cx, + [SA8775P_CX_AO] = &cx_ao, + [SA8775P_EBI] = &ebi, + [SA8775P_GFX] = &gfx, + [SA8775P_LCX] = &lcx, + [SA8775P_LMX] = &lmx, + [SA8775P_MMCX] = &mmcx, + [SA8775P_MMCX_AO] = &mmcx_ao, + [SA8775P_MXC] = &mxc, + [SA8775P_MXC_AO] = &mxc_ao, + [SA8775P_MX] = &mx, + [SA8775P_MX_AO] = &mx_ao, + [SA8775P_NSP0] = &nsp0, + [SA8775P_NSP1] = &nsp1, +}; + +static const struct rpmhpd_desc sa8775p_desc = { + .rpmhpds = sa8775p_rpmhpds, + .num_pds = ARRAY_SIZE(sa8775p_rpmhpds), +}; + /* SDM670 RPMH powerdomains */ static struct rpmhpd *sdm670_rpmhpds[] = { [SDM670_CX] = &cx_w_mx_parent, @@ -487,6 +520,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,sa8540p-rpmhpd", .data = &sa8540p_desc }, + { .compatible = "qcom,sa8775p-rpmhpd", .data = &sa8775p_desc }, { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, { .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc }, { .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc },