linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpufreq: imx-cpufreq-dt: Add i.MX8MN support
@ 2019-07-08  3:03 Anson.Huang
  2019-07-08  3:50 ` Viresh Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Anson.Huang @ 2019-07-08  3:03 UTC (permalink / raw)
  To: rjw, viresh.kumar, shawnguo, s.hauer, kernel, festevam, linux-pm,
	linux-arm-kernel, linux-kernel
  Cc: Linux-imx

From: Anson Huang <Anson.Huang@nxp.com>

i.MX8MN is a new SoC of i.MX8M series, it also uses speed
grading and market segment fuses for OPP definitions, add
support for this SoC.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 drivers/cpufreq/imx-cpufreq-dt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/cpufreq/imx-cpufreq-dt.c b/drivers/cpufreq/imx-cpufreq-dt.c
index b54fd26..4f85f31 100644
--- a/drivers/cpufreq/imx-cpufreq-dt.c
+++ b/drivers/cpufreq/imx-cpufreq-dt.c
@@ -44,10 +44,11 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
 	 * According to datasheet minimum speed grading is not supported for
 	 * consumer parts so clamp to 1 to avoid warning for "no OPPs"
 	 *
-	 * Applies to 8mq and 8mm.
+	 * Applies to i.MX8M series SoCs.
 	 */
 	if (mkt_segment == 0 && speed_grade == 0 && (
 			of_machine_is_compatible("fsl,imx8mm") ||
+			of_machine_is_compatible("fsl,imx8mn") ||
 			of_machine_is_compatible("fsl,imx8mq")))
 		speed_grade = 1;
 
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] cpufreq: imx-cpufreq-dt: Add i.MX8MN support
  2019-07-08  3:03 [PATCH] cpufreq: imx-cpufreq-dt: Add i.MX8MN support Anson.Huang
@ 2019-07-08  3:50 ` Viresh Kumar
  2019-07-10 10:11   ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2019-07-08  3:50 UTC (permalink / raw)
  To: Anson.Huang
  Cc: linux-pm, festevam, s.hauer, rjw, linux-kernel, Linux-imx,
	kernel, shawnguo, linux-arm-kernel

On 08-07-19, 11:03, Anson.Huang@nxp.com wrote:
> From: Anson Huang <Anson.Huang@nxp.com>
> 
> i.MX8MN is a new SoC of i.MX8M series, it also uses speed
> grading and market segment fuses for OPP definitions, add
> support for this SoC.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
>  drivers/cpufreq/imx-cpufreq-dt.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/cpufreq/imx-cpufreq-dt.c b/drivers/cpufreq/imx-cpufreq-dt.c
> index b54fd26..4f85f31 100644
> --- a/drivers/cpufreq/imx-cpufreq-dt.c
> +++ b/drivers/cpufreq/imx-cpufreq-dt.c
> @@ -44,10 +44,11 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
>  	 * According to datasheet minimum speed grading is not supported for
>  	 * consumer parts so clamp to 1 to avoid warning for "no OPPs"
>  	 *
> -	 * Applies to 8mq and 8mm.
> +	 * Applies to i.MX8M series SoCs.
>  	 */
>  	if (mkt_segment == 0 && speed_grade == 0 && (
>  			of_machine_is_compatible("fsl,imx8mm") ||
> +			of_machine_is_compatible("fsl,imx8mn") ||
>  			of_machine_is_compatible("fsl,imx8mq")))
>  		speed_grade = 1;

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

@Rafael: Can you pick this one directly, no point sending another pull request
for just one patch. Thanks.

-- 
viresh

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] cpufreq: imx-cpufreq-dt: Add i.MX8MN support
  2019-07-08  3:50 ` Viresh Kumar
@ 2019-07-10 10:11   ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2019-07-10 10:11 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Anson.Huang, linux-pm, shawnguo, s.hauer, linux-kernel,
	Linux-imx, kernel, festevam, linux-arm-kernel

On Monday, July 8, 2019 5:50:57 AM CEST Viresh Kumar wrote:
> On 08-07-19, 11:03, Anson.Huang@nxp.com wrote:
> > From: Anson Huang <Anson.Huang@nxp.com>
> > 
> > i.MX8MN is a new SoC of i.MX8M series, it also uses speed
> > grading and market segment fuses for OPP definitions, add
> > support for this SoC.
> > 
> > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> > ---
> >  drivers/cpufreq/imx-cpufreq-dt.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/cpufreq/imx-cpufreq-dt.c b/drivers/cpufreq/imx-cpufreq-dt.c
> > index b54fd26..4f85f31 100644
> > --- a/drivers/cpufreq/imx-cpufreq-dt.c
> > +++ b/drivers/cpufreq/imx-cpufreq-dt.c
> > @@ -44,10 +44,11 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
> >  	 * According to datasheet minimum speed grading is not supported for
> >  	 * consumer parts so clamp to 1 to avoid warning for "no OPPs"
> >  	 *
> > -	 * Applies to 8mq and 8mm.
> > +	 * Applies to i.MX8M series SoCs.
> >  	 */
> >  	if (mkt_segment == 0 && speed_grade == 0 && (
> >  			of_machine_is_compatible("fsl,imx8mm") ||
> > +			of_machine_is_compatible("fsl,imx8mn") ||
> >  			of_machine_is_compatible("fsl,imx8mq")))
> >  		speed_grade = 1;
> 
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
> 
> @Rafael: Can you pick this one directly, no point sending another pull request
> for just one patch. Thanks.

Done, thanks!




_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-10 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08  3:03 [PATCH] cpufreq: imx-cpufreq-dt: Add i.MX8MN support Anson.Huang
2019-07-08  3:50 ` Viresh Kumar
2019-07-10 10:11   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).