From: Stephan Gerhold <stephan@gerhold.net> To: Bartosz Dudziak <bartosz.dudziak@snejp.pl> Cc: Rob Herring <robh+dt@kernel.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org>, Russell King <linux@armlinux.org.uk>, David Sterba <dsterba@suse.com>, Jens Axboe <axboe@kernel.dk>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Kumar Gala <galak@codeaurora.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 2/2] cpuidle: qcom: Add SPM register data for MSM8226 Date: Mon, 31 May 2021 16:43:11 +0200 [thread overview] Message-ID: <YLT18iBg20DZYyA4@gerhold.net> (raw) In-Reply-To: <20210530121803.13102-3-bartosz.dudziak@snejp.pl> On Sun, May 30, 2021 at 02:18:03PM +0200, Bartosz Dudziak wrote: > Add MSM8226 register data to SPM AVS Wrapper 2 (SAW2) power controller > driver. > > Signed-off-by: Bartosz Dudziak <bartosz.dudziak@snejp.pl> I checked that the values added here match the ones I see in msm8226-pm-v2.dtsi in the downstream kernel, so FWIW: Reviewed-by: Stephan Gerhold <stephan@gerhold.net> Thanks, Stephan > --- > drivers/cpuidle/cpuidle-qcom-spm.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/cpuidle/cpuidle-qcom-spm.c b/drivers/cpuidle/cpuidle-qcom-spm.c > index adf91a6e4d..c0e7971da2 100644 > --- a/drivers/cpuidle/cpuidle-qcom-spm.c > +++ b/drivers/cpuidle/cpuidle-qcom-spm.c > @@ -87,6 +87,18 @@ static const struct spm_reg_data spm_reg_8974_8084_cpu = { > .start_index[PM_SLEEP_MODE_SPC] = 3, > }; > > +/* SPM register data for 8226 */ > +static const struct spm_reg_data spm_reg_8226_cpu = { > + .reg_offset = spm_reg_offset_v2_1, > + .spm_cfg = 0x0, > + .spm_dly = 0x3C102800, > + .seq = { 0x60, 0x03, 0x60, 0x0B, 0x0F, 0x20, 0x10, 0x80, 0x30, 0x90, > + 0x5B, 0x60, 0x03, 0x60, 0x3B, 0x76, 0x76, 0x0B, 0x94, 0x5B, > + 0x80, 0x10, 0x26, 0x30, 0x0F }, > + .start_index[PM_SLEEP_MODE_STBY] = 0, > + .start_index[PM_SLEEP_MODE_SPC] = 5, > +}; > + > static const u8 spm_reg_offset_v1_1[SPM_REG_NR] = { > [SPM_REG_CFG] = 0x08, > [SPM_REG_SPM_CTL] = 0x20, > @@ -259,6 +271,8 @@ static struct spm_driver_data *spm_get_drv(struct platform_device *pdev, > } > > static const struct of_device_id spm_match_table[] = { > + { .compatible = "qcom,msm8226-saw2-v2.1-cpu", > + .data = &spm_reg_8226_cpu }, > { .compatible = "qcom,msm8974-saw2-v2.1-cpu", > .data = &spm_reg_8974_8084_cpu }, > { .compatible = "qcom,apq8084-saw2-v2.1-cpu", > -- > 2.25.1 >
WARNING: multiple messages have this Message-ID (diff)
From: Stephan Gerhold <stephan@gerhold.net> To: Bartosz Dudziak <bartosz.dudziak@snejp.pl> Cc: Rob Herring <robh+dt@kernel.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org>, Russell King <linux@armlinux.org.uk>, David Sterba <dsterba@suse.com>, Jens Axboe <axboe@kernel.dk>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Kumar Gala <galak@codeaurora.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 2/2] cpuidle: qcom: Add SPM register data for MSM8226 Date: Mon, 31 May 2021 16:43:11 +0200 [thread overview] Message-ID: <YLT18iBg20DZYyA4@gerhold.net> (raw) In-Reply-To: <20210530121803.13102-3-bartosz.dudziak@snejp.pl> On Sun, May 30, 2021 at 02:18:03PM +0200, Bartosz Dudziak wrote: > Add MSM8226 register data to SPM AVS Wrapper 2 (SAW2) power controller > driver. > > Signed-off-by: Bartosz Dudziak <bartosz.dudziak@snejp.pl> I checked that the values added here match the ones I see in msm8226-pm-v2.dtsi in the downstream kernel, so FWIW: Reviewed-by: Stephan Gerhold <stephan@gerhold.net> Thanks, Stephan > --- > drivers/cpuidle/cpuidle-qcom-spm.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/cpuidle/cpuidle-qcom-spm.c b/drivers/cpuidle/cpuidle-qcom-spm.c > index adf91a6e4d..c0e7971da2 100644 > --- a/drivers/cpuidle/cpuidle-qcom-spm.c > +++ b/drivers/cpuidle/cpuidle-qcom-spm.c > @@ -87,6 +87,18 @@ static const struct spm_reg_data spm_reg_8974_8084_cpu = { > .start_index[PM_SLEEP_MODE_SPC] = 3, > }; > > +/* SPM register data for 8226 */ > +static const struct spm_reg_data spm_reg_8226_cpu = { > + .reg_offset = spm_reg_offset_v2_1, > + .spm_cfg = 0x0, > + .spm_dly = 0x3C102800, > + .seq = { 0x60, 0x03, 0x60, 0x0B, 0x0F, 0x20, 0x10, 0x80, 0x30, 0x90, > + 0x5B, 0x60, 0x03, 0x60, 0x3B, 0x76, 0x76, 0x0B, 0x94, 0x5B, > + 0x80, 0x10, 0x26, 0x30, 0x0F }, > + .start_index[PM_SLEEP_MODE_STBY] = 0, > + .start_index[PM_SLEEP_MODE_SPC] = 5, > +}; > + > static const u8 spm_reg_offset_v1_1[SPM_REG_NR] = { > [SPM_REG_CFG] = 0x08, > [SPM_REG_SPM_CTL] = 0x20, > @@ -259,6 +271,8 @@ static struct spm_driver_data *spm_get_drv(struct platform_device *pdev, > } > > static const struct of_device_id spm_match_table[] = { > + { .compatible = "qcom,msm8226-saw2-v2.1-cpu", > + .data = &spm_reg_8226_cpu }, > { .compatible = "qcom,msm8974-saw2-v2.1-cpu", > .data = &spm_reg_8974_8084_cpu }, > { .compatible = "qcom,apq8084-saw2-v2.1-cpu", > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-05-31 14:45 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-30 12:18 [PATCH v2 0/2] cpuidle: qcom: Add SPM register data for MSM8226 Bartosz Dudziak 2021-05-30 12:18 ` Bartosz Dudziak 2021-05-30 12:18 ` [PATCH v2 1/2] dt-bindings: arm: msm: Add SAW2 " Bartosz Dudziak 2021-05-30 12:18 ` Bartosz Dudziak 2021-06-04 21:31 ` Rob Herring 2021-06-04 21:31 ` Rob Herring 2021-05-30 12:18 ` [PATCH v2 2/2] cpuidle: qcom: Add SPM register data " Bartosz Dudziak 2021-05-30 12:18 ` Bartosz Dudziak 2021-05-31 14:43 ` Stephan Gerhold [this message] 2021-05-31 14:43 ` Stephan Gerhold 2021-06-08 13:54 ` [PATCH v2 0/2] " Stephan Gerhold 2021-06-08 13:54 ` Stephan Gerhold
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=YLT18iBg20DZYyA4@gerhold.net \ --to=stephan@gerhold.net \ --cc=agross@kernel.org \ --cc=axboe@kernel.dk \ --cc=bartosz.dudziak@snejp.pl \ --cc=bjorn.andersson@linaro.org \ --cc=devicetree@vger.kernel.org \ --cc=dsterba@suse.com \ --cc=galak@codeaurora.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-arm-msm@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=lorenzo.pieralisi@arm.com \ --cc=robh+dt@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.