Re: [PATCH v10] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2021-03-12 Thread Hector Yuan
On Sun, 2021-01-31 at 11:34 +0100, Matthias Brugger wrote: > > On 29/12/2020 07:17, Hector Yuan wrote: > > The CPUfreq HW present in some Mediatek chipsets offloads the steps > > necessary for changing the frequency of CPUs. > > The driver implements the

[PATCH v11 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2021-03-12 Thread Hector Yuan
ml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

[PATCH v11 1/2] cpufreq: mediatek-hw: Add support for CPUFREQ HW

2021-03-12 Thread Hector Yuan
From: "Hector.Yuan" Add cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 370 + 3 files changed, 383 insertions(+)

[PATCH v11] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2021-03-12 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. >From v8 to v9, there are three more modifications. 1. Based on patchset[1], align binding with scmi

[PATCH v10 1/2] cpufreq: mediatek-hw: Add support for CPUFREQ HW

2020-12-28 Thread Hector Yuan
From: "Hector.Yuan" Add cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 370 + 3 files changed, 383 insertions(+)

[PATCH v10] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-12-28 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on MT6779 DTS patchset[1] submitted by Hanks Chen. >From v8 to v9, there are three

[PATCH v10 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-12-28 Thread Hector Yuan
ml @@ -0,0 +1,116 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

[PATCH v9] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-12-09 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on MT6779 DTS patchset[1] submitted by Hanks Chen. >From v8 to v9, there are three

[PATCH v9 1/2] cpufreq: mediatek-hw: Add support for CPUFREQ HW

2020-12-09 Thread Hector Yuan
From: "Hector.Yuan" Add cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 370 + 3 files changed, 383 insertions(+)

[PATCH v9 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-12-09 Thread Hector Yuan
ml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

Re: [PATCH v8 1/3] cpufreq: mediatek-hw: Add support for CPUFREQ HW

2020-11-19 Thread Hector Yuan
On Thu, 2020-11-19 at 12:41 +, Lukasz Luba wrote: > Hi Hector, > > On 10/26/20 8:19 AM, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add cpufreq HW support. > > > > Signed-off-by: Hector.Yuan > > [snip] > > > + >

[PATCH v8 1/3] cpufreq: mediatek-hw: Add support for CPUFREQ HW

2020-10-26 Thread Hector Yuan
From: "Hector.Yuan" Add cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 343 + 3 files changed, 356 insertions(+)

[PATCH v8] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-10-26 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on MT6779 DTS patch[1] submitted by Hanks Chen. From v7 to v8, there are three more

[PATCH v8 3/3] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-26 Thread Hector Yuan
ml @@ -0,0 +1,113 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

[PATCH v8 2/3] dt-bindings: arm: cpus: Document 'mediatek,freq-domain' property

2020-10-26 Thread Hector Yuan
From: "Hector.Yuan" Add devicetree documentation for 'mediatek,freq-domain' property specific to Mediatek CPUs. This property is used to reference the CPUFREQ node along with the domain id. Signed-off-by: Hector.Yuan --- Documentation/devicetree/bindings/arm/cpus.yaml |6 ++ 1 file

Re: [PATCH v1] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-10-26 Thread Hector Yuan
On Fri, 2020-10-23 at 14:57 +0530, Viresh Kumar wrote: > On 23-10-20, 17:08, Hector Yuan wrote: > > On Fri, 2020-10-23 at 13:58 +0530, Viresh Kumar wrote: > > > On 23-10-20, 16:24, Hector Yuan wrote: > > > > This patchset includes 6 patches and depends on the MT6779 D

Re: [PATCH v1 3/6] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-26 Thread Hector Yuan
On Fri, 2020-10-23 at 14:05 +0530, Viresh Kumar wrote: > On 23-10-20, 16:24, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- > > ..

Re: [PATCH v1 2/6] dt-bindings: arm: cpus: Document 'mtk,freq-domain' property

2020-10-26 Thread Hector Yuan
On Fri, 2020-10-23 at 13:59 +0530, Viresh Kumar wrote: > On 23-10-20, 16:24, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree documentation for 'mtk,freq-domain' property specific > > to Mediatek CPUs. This property is used to reference the C

Re: [PATCH v1 3/6] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-26 Thread Hector Yuan
On Fri, 2020-10-23 at 11:15 -0500, Rob Herring wrote: > On Fri, 23 Oct 2020 16:24:50 +0800, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- &

Re: [PATCH v1 2/6] dt-bindings: arm: cpus: Document 'mtk,freq-domain' property

2020-10-26 Thread Hector Yuan
On Fri, 2020-10-23 at 11:20 -0500, Rob Herring wrote: > +Sudeep > > On Fri, Oct 23, 2020 at 04:24:49PM +0800, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree documentation for 'mtk,freq-domain' property specific > > to Mediat

Re: [PATCH v1] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-10-23 Thread Hector Yuan
On Fri, 2020-10-23 at 13:58 +0530, Viresh Kumar wrote: > On 23-10-20, 16:24, Hector Yuan wrote: > > This patchset includes 6 patches and depends on the MT6779 DTS patch[1] > > submitted by Hanks Chen. > > The first 3 patches are for CPUFREQ HW driver and device tre

[PATCH v1 3/6] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-23 Thread Hector Yuan
ml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

[PATCH v1 6/6] cpufreq: mediatek-hw: Add cooling dev flag

2020-10-23 Thread Hector Yuan
From: "Hector.Yuan" Add cooling device flag for thermal throttle Signed-off-by: Hector.Yuan --- drivers/cpufreq/mediatek-cpufreq-hw.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c b/drivers/cpufreq/mediatek-cpufreq-hw.c index

[PATCH v1 4/6] cpufreq: mediatek-hw: register EM power table

2020-10-23 Thread Hector Yuan
From: "Hector.Yuan" Register energy model table for EAS and thermal cooling device usage Signed-off-by: Hector.Yuan --- drivers/cpufreq/mediatek-cpufreq-hw.c | 58 ++--- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git

[PATCH v1 1/6] cpufreq: mediatek-hw: Add support for CPUFREQ HW

2020-10-23 Thread Hector Yuan
From: "Hector.Yuan" Add cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 276 + 3 files changed, 289 insertions(+)

[PATCH v1] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-10-23 Thread Hector Yuan
This patchset includes 6 patches and depends on the MT6779 DTS patch[1] submitted by Hanks Chen. The first 3 patches are for CPUFREQ HW driver and device tree binding, which are already sent before separately [2][3]. For binding part, I add a new patch to add property in cpu schema. Besides, we

[PATCH v1 5/6] cpufreq: mediatek-hw: Add SVS CPU initialization

2020-10-23 Thread Hector Yuan
From: "Hector.Yuan" Use pm_qos to block cpu-idle state for SVS initializing. CPUs must be in power on state when doing SVS. Add polling ack while coufreq hw is ready.(SVS init done) Signed-off-by: Hector.Yuan --- drivers/cpufreq/mediatek-cpufreq-hw.c | 32 1

[PATCH v1 2/6] dt-bindings: arm: cpus: Document 'mtk,freq-domain' property

2020-10-23 Thread Hector Yuan
From: "Hector.Yuan" Add devicetree documentation for 'mtk,freq-domain' property specific to Mediatek CPUs. This property is used to reference the CPUFREQ node along with the domain id. Signed-off-by: Hector.Yuan --- Documentation/devicetree/bindings/arm/cpus.yaml |6 ++ 1 file

Re: [PATCH v3 1/2] dt-bindings: arm: cpus: Document 'qcom,freq-domain' property

2020-10-20 Thread Hector Yuan
Hi, Manivannan On Tue, 2020-10-20 at 21:09 +0530, Manivannan Sadhasivam wrote: > Add devicetree documentation for 'qcom,freq-domain' property specific > to Qualcomm CPUs. This property is used to reference the CPUFREQ node > along with Domain ID (0/1). > > Signed-off-by: Manivannan Sadhasivam >

[PATCH v2] cpufreq: mediatek-hw: Register EM power table

2020-10-15 Thread Hector Yuan
Register to energy model framework with CPU power efficiency table. This patch depends on Mediatek cpufreq HW driver patch submitted by Hector Yuan. https://lkml.org/lkml/2020/9/10/13 Hector.Yuan (1): cpufreq: mediatek-hw: Register EM power table drivers/cpufreq/mediatek-cpufreq-hw.c

[PATCH v2 1/1] cpufreq: mediatek-hw: Register EM power table

2020-10-15 Thread Hector Yuan
From: "Hector.Yuan" Register CPU power table to energy model framework Signed-off-by: Hector.Yuan --- drivers/cpufreq/mediatek-cpufreq-hw.c | 58 ++--- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c

Re: [PATCH v1 1/1] cpufreq: mediatek-hw: Register EM power table

2020-10-08 Thread Hector Yuan
On Fri, 2020-10-09 at 09:49 +0530, Viresh Kumar wrote: > On 08-10-20, 20:13, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Register CPU power table to energy model framework > > > > Signed-off-by: Hector.Yuan > > ---

Re: [PATCH v1 1/1] cpufreq: mediatek-hw: Register EM power table

2020-10-08 Thread Hector Yuan
On Thu, 2020-10-08 at 13:55 +0100, Lukasz Luba wrote: > Hi Hector, > > On 10/8/20 1:13 PM, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Register CPU power table to energy model framework > > > > Signed-off-by: Hector.Yuan > >

[PATCH v1] cpufreq: mediatek-hw: Register EM power table

2020-10-08 Thread Hector Yuan
Register to energy model framework with CPU power efficiency table. This patch depends on Mediatek cpufreq HW driver patch submitted by Hector Yuan. https://lkml.org/lkml/2020/9/10/13 Hector.Yuan (1): cpufreq: mediatek-hw: Register EM power table drivers/cpufreq/mediatek-cpufreq-hw.c

[PATCH v1 1/1] cpufreq: mediatek-hw: Register EM power table

2020-10-08 Thread Hector Yuan
From: "Hector.Yuan" Register CPU power table to energy model framework Signed-off-by: Hector.Yuan --- drivers/cpufreq/mediatek-cpufreq-hw.c | 50 + 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-04 Thread Hector Yuan
On Fri, 2020-09-25 at 15:25 +0800, Hector Yuan wrote: > Hi, Rob sir: > > Yes, my patch follows > Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt way to > define frequency domain. > Is it OK to you if I use the same way to do? > And if there exist any schema p

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-25 Thread Hector Yuan
/devicetree/bindings/thermal/thermal-cooling-devices.yaml to use the cpu node. https://elixir.bootlin.com/linux/v5.9-rc6/source/Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml Thanks a lot. On Fri, 2020-09-25 at 11:45 +0530, Viresh Kumar wrote: > On 25-09-20, 10:27, Hector Yuan wr

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-24 Thread Hector Yuan
g-points", "operating-points-v2"; }; Thank you for the opinions. On Wed, 2020-09-23 at 21:10 +0800, Hector Yuan wrote: > On Tue, 2020-09-22 at 14:28 -0600, Rob Herring wrote: > > On Thu, Sep 10, 2020 at 12:31:02PM +0800, Hector Yuan wrote: > > > From: "Hector.

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-23 Thread Hector Yuan
On Wed, 2020-09-23 at 21:10 +0800, Hector Yuan wrote: > On Tue, 2020-09-22 at 14:28 -0600, Rob Herring wrote: > > On Thu, Sep 10, 2020 at 12:31:02PM +0800, Hector Yuan wrote: > > > From: "Hector.Yuan" > > > > > > Add devicetree bindings f

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-23 Thread Hector Yuan
On Tue, 2020-09-22 at 14:28 -0600, Rob Herring wrote: > On Thu, Sep 10, 2020 at 12:31:02PM +0800, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- &

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-20 Thread Hector Yuan
Hi, Rob sir: Sorry to bother you, may I have your review comment for the binding part? Appreciated. On Thu, 2020-09-10 at 12:31 +0800, Hector Yuan wrote: > From: "Hector.Yuan" > > Add devicetree bindings for MediaTek HW driver. > > Signed-off-by: Hector.Yuan >

Re: [PATCH v7] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-16 Thread Hector Yuan
Hi, Rob sir: Sorry to bother you, may I have your review comment for the binding part? Appreciated. On Wed, 2020-09-16 at 19:39 +0800, Hector Yuan wrote: > Hi, Rob sir: > > Sorry to bother you, may I have your review comment for the binding > part? > Appreciated. > > On

Re: [PATCH v7] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-16 Thread Hector Yuan
Hi, Rob sir: Sorry to bother you, may I have your review comment for the binding part? Appreciated. On Thu, 2020-09-10 at 11:04 +0530, Viresh Kumar wrote: > On 10-09-20, 13:30, Hector Yuan wrote: > > On Thu, 2020-09-10 at 10:33 +0530, Viresh Kumar wrote: > > > On 10-09-20,

Re: [PATCH v7] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
On Thu, 2020-09-10 at 10:33 +0530, Viresh Kumar wrote: > On 10-09-20, 12:31, Hector Yuan wrote: > > The CPUfreq HW present in some Mediatek chipsets offloads the steps > > necessary for changing the frequency of CPUs. > > The driver implements the cpufreq driver interf

[PATCH v7] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on the MT6779 DTS patch submitted by Hanks Chen https://lkml.org/lkml/2020/8/4/1094

[PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-09 Thread Hector Yuan
ml @@ -0,0 +1,141 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

[PATCH v7 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
From: "Hector.Yuan" Add MT6779 cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 277 + 3 files changed, 290 insertions(+)

Re: [PATCH v6 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
On Thu, 2020-09-10 at 09:12 +0530, Viresh Kumar wrote: > On 09-09-20, 21:34, Hector Yuan wrote: > > +static unsigned int mtk_cpufreq_hw_get(unsigned int cpu) > > +{ > > + struct cpufreq_mtk *c; > > + struct cpufreq_policy *policy; > > + unsigne

[PATCH v6 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-09 Thread Hector Yuan
ml @@ -0,0 +1,141 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

[PATCH v6] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on the MT6779 DTS patch submitted by Hanks Chen https://lkml.org/lkml/2020/8/4/1094

[PATCH v6 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
From: "Hector.Yuan" Add MT6779 cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 283 + 3 files changed, 296 insertions(+)

Re: [PATCH v5 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
On Wed, 2020-09-09 at 16:59 +0530, Viresh Kumar wrote: > On 09-09-20, 17:51, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add MT6779 cpufreq HW support. > > > > Signed-off-by: Hector.Yuan > > --- > > drivers/cpufreq/Kconfi

[PATCH v5 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
From: "Hector.Yuan" Add MT6779 cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 289 + 3 files changed, 302 insertions(+)

[PATCH v5] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-09 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on the MT6799 DTS patch submitted by Hanks Chen https://lkml.org/lkml/2020/8/4/1094

[PATCH v5 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-09 Thread Hector Yuan
ml @@ -0,0 +1,141 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

Re: [PATCH v4 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-08 Thread Hector Yuan
On Tue, 2020-09-08 at 16:43 +0530, Viresh Kumar wrote: > On 08-09-20, 19:10, Hector Yuan wrote: > > OK, I will define the corresponding exit function. > > Also please add remove() corresponding to probe(). > OK, thanks for your kind reminder.

Re: [PATCH v4 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-08 Thread Hector Yuan
On Tue, 2020-09-08 at 15:37 +0530, Viresh Kumar wrote: > On 08-09-20, 15:35, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- > > ..

Re: [PATCH v4 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-08 Thread Hector Yuan
On Tue, 2020-09-08 at 15:57 +0530, Viresh Kumar wrote: > On 08-09-20, 15:35, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add MT6779 cpufreq HW support. > > > > Signed-off-by: Hector.Yuan > > --- > > drivers/cpufreq/Kconfi

[PATCH v4 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-08 Thread Hector Yuan
From: "Hector.Yuan" Add MT6779 cpufreq HW support. Signed-off-by: Hector.Yuan --- drivers/cpufreq/Kconfig.arm | 12 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 294 + 3 files changed, 307 insertions(+)

[PATCH v4 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-08 Thread Hector Yuan
ml @@ -0,0 +1,141 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d

[PATCH v4] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-08 Thread Hector Yuan
This patch depends on the MT6799 DTS patch submitted by Hanks Chen https://lkml.org/lkml/2020/8/4/1094 Hector.Yuan (2): cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW .../bindings/cpufreq/cpufreq-mediatek-hw.yaml

Re: [PATCH v2 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-08-27 Thread Hector Yuan
On Thu, 2020-08-27 at 09:56 +0530, Viresh Kumar wrote: > On 26-08-20, 20:57, Hector Yuan wrote: > > On Mon, 2020-08-24 at 15:36 +0530, Viresh Kumar wrote: > > > On 13-08-20, 15:07, Hector Yuan wrote: > > > > CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM=m > > &

Re: [PATCH v2 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-08-26 Thread Hector Yuan
On Mon, 2020-08-24 at 15:36 +0530, Viresh Kumar wrote: > On 13-08-20, 15:07, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add MT6779 cpufreq HW support. > > > > Signed-off-by: Hector.Yuan > > --- > > arch/arm64/configs/defco

Re: [PATCH v2 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-08-26 Thread Hector Yuan
On Mon, 2020-08-24 at 20:04 -0600, Rob Herring wrote: > On Thu, Aug 13, 2020 at 03:07:55PM +0800, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- &

[PATCH v1] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-08-13 Thread Hector Yuan
The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. This patch depends on the MT6779 DTS patch submitted by Hanks Chen https://lkml.org/lkml/2020/8/4/1094

[PATCH v2 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-08-13 Thread Hector Yuan
From: "Hector.Yuan" Add MT6779 cpufreq HW support. Signed-off-by: Hector.Yuan --- arch/arm64/configs/defconfig |1 + drivers/cpufreq/Kconfig.arm | 11 ++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/mediatek-cpufreq-hw.c | 255

[PATCH v2 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-08-13 Thread Hector Yuan
ml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +d