/mediatek/clk-mt8192-mm.c
> create mode 100644 drivers/clk/mediatek/clk-mt8192-msdc.c
> create mode 100644 drivers/clk/mediatek/clk-mt8192-scp_adsp.c
> create mode 100644 drivers/clk/mediatek/clk-mt8192-vdec.c
> create mode 100644 drivers/clk/mediatek/clk-mt8192-venc.c
> create mode 100644 drivers/clk/mediatek/clk-mt8192.c
> create mode 100644 include/dt-bindings/clock/mt8192-clk.h
> ___
> Linux-mediatek mailing list
> linux-media...@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-mediatek
All patches in this series:
Reviewed-by: James Liao
Add idle states for cpu-off and cluster-off.
Signed-off-by: James Liao
---
arch/arm64/boot/dts/mediatek/mt8192.dtsi | 44
1 file changed, 44 insertions(+)
This patch bases on v5.10 and [1], adds idle-states for MT8192 CPUs.
[1]
https://lore.kernel.org/linux-arm
Enable mcdi-cpu and mcdi-cluster on MT8183 CPUs.
Signed-off-by: James Liao
---
This patch bases on v5.1-rc1 and [1], adds idle-states for MT8183 CPUs.
[1] https://patchwork.kernel.org/patch/10962375/
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 30 ++
1 file changed
On Tue, 2019-03-05 at 13:05 +0800, Weiyi Lu wrote:
> From: James Liao
>
> Some modules may need to change its clock rate before turn on it.
> So changing PLL's rate when it is off should be allowed.
> This patch removes PLL enabled check before set rate, so that
> PLLs can
2-bit.
> Add configurable pcw_chg_reg to set the pcw change control register
> address or using the default control register CON1 if without
> setting in pll data.
>
> Signed-off-by: Weiyi Lu
Reviewed-by: James Liao
> ---
> drivers/clk/mediatek/clk-mtk.h | 1 +
>
i Lu
Reviewed-by: James Liao
> ---
> drivers/clk/mediatek/clk-gate.c | 5 +++--
> drivers/clk/mediatek/clk-gate.h | 3 ++-
> drivers/clk/mediatek/clk-mtk.c | 3 ++-
> drivers/clk/mediatek/clk-mtk.h | 1 +
> 4 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a
>1.5Ghz, add a variable to indicate platform-dependent.
>
> Signed-off-by: Owen Chen
> Signed-off-by: Weiyi Lu
> Acked-by: Sean Wang
Reviewed-by: James Liao
> ---
> drivers/clk/mediatek/clk-mtk.h | 2 ++
> drivers/clk/mediatek/clk-pll.c | 15 +++
> 2
changing PLL rate
> and be restored after new settings applied.
>
> Fixes: e2f744a82d725 (clk: mediatek: Add MT2712 clock support)
> Cc:
> Signed-off-by: Owen Chen
> Signed-off-by: Weiyi Lu
Reviewed-by: James Liao
> ---
> drivers/clk/mediatek/clk-pll.c | 48 ++
The sw design need to add a new API to handle this hw change with
> a new mtk_clk_mux/mtk_mux struct in new file "clk-mux.c", "clk-mux.h".
>
> Signed-off-by: Owen Chen
> Signed-off-by: Weiyi Lu
Reviewed-by: James Liao
> ---
> drivers/c
Add CPU idle state nodes to enable C1/C2 idle states.
Signed-off-by: James Liao
---
changes since v1:
- Rebase to 4.14-rc1.
arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 25 +
1 file changed, 25 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi
b
Add CPU idle state nodes to enable C1/C2 idle states.
Signed-off-by: James Liao
---
This patch bases on latest Matthias v4.13-next/dts64 branch [1],
add CPU idle states for MT2712.
[1] https://github.com/mbgg/linux-mediatek.git
arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 25
k-cpumux.c| 2 +-
> drivers/clk/mediatek/clk-mtk.c | 2 +-
> drivers/clk/mediatek/reset.c | 2 +-
For clk/mediatek:
Acked-by: James Liao
Best regards,
James
This patch rearrange MT2701 DT nodes to keep them in ascending order.
Signed-off-by: James Liao
---
arch/arm/boot/dts/mt2701.dtsi | 36 ++--
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701
This patch series base on v4.10-rc1, include MT2701 power domain and clock
DT nodes.
An early patch [1] which was not applied in v4.10-rc1 also included in this
patch series.
[1] https://patchwork.kernel.org/patch/9457625/
James Liao (3):
arm: dts: mt2701: Sort DT nodes by register address
Add power domain controller node (scpsys) for MT2701.
Signed-off-by: James Liao
---
arch/arm/boot/dts/mt2701.dtsi | 12
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi
index 150c48d..bdf8954 100644
--- a/arch/arm/boot/dts
Add MT2701 subsystem clock controllers, inlcude mmsys, imgsys,
vdecsys, hifsys, ethsys and bdpsys.
Signed-off-by: James Liao
---
arch/arm/boot/dts/mt2701.dtsi | 36
1 file changed, 36 insertions(+)
diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot
This patch rearrange MT2701 DT nodes to keep them in ascending order.
Signed-off-by: James Liao
---
This patch is based on latest v4.9-next/dts branch of [1], to fix MT2701
DT nodes ordering.
[1] https://github.com/mbgg/linux-mediatek/tree/v4.9-next/dts
arch/arm/boot/dts/mt2701.dtsi | 36
le bit is 0.
Signed-off-by: James Liao
Acked-by: Michael Turquette
---
Please refer to previous comments in [1] and [2].
changes since v2:
- Rebase to v4.9-rc1.
changes since v1:
- Add more explanation in commit messages.
[1] https://patchwork.kernel.org/patch/7983221/
[2] https://patchwork.kern
Hi Stephen,
On Mon, 2016-10-31 at 11:06 -0700, Stephen Boyd wrote:
> On 10/31, James Liao wrote:
> > On Thu, 2016-10-27 at 18:17 -0700, Stephen Boyd wrote:
> > > On 10/21, Erin Lo wrote:
> > > > @@ -244,3 +256,31 @@ void mtk_clk_register_composites(const stru
Hi Stephen,
On Thu, 2016-10-27 at 18:17 -0700, Stephen Boyd wrote:
> On 10/21, Erin Lo wrote:
> > diff --git a/drivers/clk/mediatek/clk-mt2701-bdp.c
> > b/drivers/clk/mediatek/clk-mt2701-bdp.c
> > new file mode 100644
> > index 000..dbf6ab2
> > --- /dev/null
> > +++ b/drivers/clk/mediatek/clk
On Mon, 2016-10-31 at 01:08 +0100, Matthias Brugger wrote:
> Hi James,
>
> On 10/20/2016 10:56 AM, James Liao wrote:
> > Some power domain comsumers may init before module_init.
> > So the power domain provider (scpsys) need to be initialized
> > earlier too.
> >
Hi Matthias,
Sorry for late reply due to our email service.
On Tue, 2016-10-25 at 16:04 +0200, Matthias Brugger wrote:
> Hi James,
>
> On 10/20/2016 10:56 AM, James Liao wrote:
> > -static int scpsys_probe(struct platform_device *pdev)
> > +static void init_clks(struct
From: Shunli Wang
Add power dt-bindings for MT2701.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Acked-by: Rob Herring
Reviewed-by: Kevin Hilman
---
.../devicetree/bindings/soc/mediatek/scpsys.txt| 13 +++
include/dt-bindings/power/mt2701-power.h | 27
scpsys driver
before subsys_init.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c
b/drivers/soc/mediatek/mtk-scpsys.c
index fa9ee69
From: Shunli Wang
Add scpsys driver for MT2701.
mtk-scpsys now supports MT8173 (arm64) and MT2701 (arm). So it should
be enabled on both arm64 and arm platforms.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/Kconfig | 2
dd comments for changing scpsys init level to subsys_init.
[1]
http://lists.infradead.org/pipermail/linux-mediatek/2015-December/003416.html
James Liao (2):
soc: mediatek: Refine scpsys to support multiple platform
soc: mediatek: Init MT8173 scpsys driver earlier
Shunli Wang (2):
soc: media
Refine scpsys driver common code to support multiple SoC / platform.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 348 +++---
1 file changed, 210 insertions(+), 138 deletions(-)
diff --git a/drivers/soc/mediatek
On Wed, 2016-09-21 at 12:25 +0200, Matthias Brugger wrote:
>
> On 19/07/16 09:04, James Liao wrote:
> > Refine scpsys driver common code to support multiple SoC / platform.
> >
> > Signed-off-by: James Liao
> > Reviewed-by: Kevin Hilman
> > ---
> >
On Tue, 2016-09-20 at 14:00 +0530, Arvind Yadav wrote:
> From: Arvind Yadav
>
> Free memory mapping, if init is not successful.
>
> Signed-off-by: Arvind Yadav
Reviewed-by: James Liao
> ---
> drivers/clk/mediatek/clk-mt8173.c |4 +++-
> 1 file changed, 3 i
On Wed, 2016-08-24 at 10:50 -0700, Stephen Boyd wrote:
> On 08/22, Erin Lo wrote:
> > diff --git a/drivers/clk/mediatek/clk-mt2701-hif.c
> > b/drivers/clk/mediatek/clk-mt2701-hif.c
> > index 18b4ab5..702fd74 100644
> > --- a/drivers/clk/mediatek/clk-mt2701-hif.c
> > +++ b/drivers/clk/mediatek/clk-
Hi Stephen,
On Wed, 2016-08-24 at 10:49 -0700, Stephen Boyd wrote:
> On 08/22, Erin Lo wrote:
> > +
> > +static void __init mtk_infrasys_init_early(struct device_node *node)
> > +{
> > + int r, i;
> > +
> > + if (!infra_clk_data) {
> > + infra_clk_data = mtk_alloc_clk_data(CLK_INFRA_
On Thu, 2016-08-18 at 17:18 -0700, Stephen Boyd wrote:
> On 08/16, Erin Lo wrote:
> > From: James Liao
> >
> > Add clock controller nodes for MT2701, include topckgen, infracfg,
> > pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and
> > bdpsys. Th
Hi Stephen,
On Fri, 2016-08-12 at 17:44 -0700, Stephen Boyd wrote:
> On 06/22, Erin Lo wrote:
> > diff --git a/drivers/clk/mediatek/clk-mt2701-bdp.c
> > b/drivers/clk/mediatek/clk-mt2701-bdp.c
> > new file mode 100644
> > index 000..81f628c
> > --- /dev/null
> > +++ b/drivers/clk/mediatek/clk
Hi Stephen,
On Fri, 2016-08-12 at 17:39 -0700, Stephen Boyd wrote:
> On 08/12, James Liao wrote:
> > On Wed, 2016-08-10 at 14:09 -0700, Stephen Boyd wrote:
> > > (Including lists)
> > >
> > > On 08/09, James Liao wrote:
> > > > On
On Wed, 2016-08-10 at 14:09 -0700, Stephen Boyd wrote:
> (Including lists)
>
> On 08/09, James Liao wrote:
> > On Wed, 2016-08-03 at 13:46 +0800, James Liao wrote:
> >>
> >> Hi Mike,
> >>
> >> Do you have new patches to fix new clock parents? If
On Wed, 2016-08-03 at 13:46 +0800, James Liao wrote:
> On Mon, 2016-07-11 at 16:24 +0800, James Liao wrote:
> > Hi Mike,
> >
> > On Fri, 2016-07-08 at 16:32 -0700, Michael Turquette wrote:
> > > Hi James,
> > >
> > > Quoting James Liao (2016-07-
On Mon, 2016-07-11 at 16:24 +0800, James Liao wrote:
> Hi Mike,
>
> On Fri, 2016-07-08 at 16:32 -0700, Michael Turquette wrote:
> > Hi James,
> >
> > Quoting James Liao (2016-07-03 20:51:48)
> > > On Fri, 2016-07-01 at 18:21 -0700, Stephen Boyd w
scpsys driver
before subsys_init.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c
b/drivers/soc/mediatek/mtk-scpsys.c
index 1f3555a
From: Shunli Wang
Add scpsys driver for MT2701.
mtk-scpsys now supports MT8173 (arm64) and MT2701 (arm). So it should
be enabled on both arm64 and arm platforms.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/Kconfig | 2
Refine scpsys driver common code to support multiple SoC / platform.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 363 +++---
1 file changed, 220 insertions(+), 143 deletions(-)
diff --git a/drivers/soc/mediatek
From: Shunli Wang
Add power dt-bindings for MT2701.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Acked-by: Rob Herring
Reviewed-by: Kevin Hilman
---
.../devicetree/bindings/soc/mediatek/scpsys.txt| 13 +++
include/dt-bindings/power/mt2701-power.h | 27
/linux-mediatek/2015-December/003416.html
James Liao (2):
soc: mediatek: Refine scpsys to support multiple platform
soc: mediatek: Init MT8173 scpsys driver earlier
Shunli Wang (2):
soc: mediatek: Add MT2701 power dt-bindings
soc: mediatek: Add MT2701 scpsys driver
.../devicetree/bindin
Hi Matthias,
On Mon, 2016-07-11 at 15:10 +0200, Matthias Brugger wrote:
>
> On 11/07/16 10:56, James Liao wrote:
>
> [...]
>
> >>>>> @@ -467,28 +386,54 @@ static int scpsys_probe(struct platform_device
> >>>>> *pdev)
> >>>
Hi Matthias,
On Thu, 2016-07-07 at 13:20 +0200, Matthias Brugger wrote:
>
> On 06/07/16 07:39, James Liao wrote:
> > Hi Matthias,
> >
> > On Sat, 2016-07-02 at 18:33 +0200, Matthias Brugger wrote:
> >>
> >> On 05/16/2016 11:28 AM, James Liao wrote:
Hi Mike,
On Fri, 2016-07-08 at 16:32 -0700, Michael Turquette wrote:
> Hi James,
>
> Quoting James Liao (2016-07-03 20:51:48)
> > On Fri, 2016-07-01 at 18:21 -0700, Stephen Boyd wrote:
> > > (Resending to everyone)
> > >
> > > On 06/2
Hi Matthias,
On Sat, 2016-07-02 at 18:33 +0200, Matthias Brugger wrote:
>
> On 05/16/2016 11:28 AM, James Liao wrote:
> > Refine scpsys driver common code to support multiple SoC / platform.
> >
> > Signed-off-by: James Liao
> > Reviewed-by: Kevin Hilman
> &g
On Sat, 2016-07-02 at 18:35 +0200, Matthias Brugger wrote:
>
> On 05/16/2016 11:28 AM, James Liao wrote:
> > Some power domain comsumers may init before module_init.
> > So the power domain provider (scpsys) need to be initialized
> > earlier too.
> >
> > Tak
On Sat, 2016-07-02 at 18:41 +0200, Matthias Brugger wrote:
>
> On 05/16/2016 11:28 AM, James Liao wrote:
> > From: Shunli Wang
> >
> > Add scpsys driver for MT2701.
> >
> > mtk-scpsys now supports MT8173 (arm64) and MT2701 (arm). So it should
> >
On Fri, 2016-07-01 at 18:21 -0700, Stephen Boyd wrote:
> (Resending to everyone)
>
> On 06/22, Erin Lo wrote:
> > From: James Liao
> >
> > This patch fixed wrong state of parent clocks if they are registered
> > after critical clocks.
> >
> > Signe
scpsys driver
before subsys_init.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c
b/drivers/soc/mediatek/mtk-scpsys.c
index 5870a24
From: Shunli Wang
Add scpsys driver for MT2701.
mtk-scpsys now supports MT8173 (arm64) and MT2701 (arm). So it should
be enabled on both arm64 and arm platforms.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/Kconfig | 2
ing document to support MT2701.
changes since v1:
- Make MTK_SCPSYS in Kconfig invisible from users.
- Add comments for changing scpsys init level to subsys_init.
[1]
http://lists.infradead.org/pipermail/linux-mediatek/2015-December/003416.html
James Liao (2):
soc: mediatek: Refine scpsys to s
Refine scpsys driver common code to support multiple SoC / platform.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 363 +++---
1 file changed, 220 insertions(+), 143 deletions(-)
diff --git a/drivers/soc/mediatek
From: Shunli Wang
Add power dt-bindings for MT2701.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Acked-by: Rob Herring
Reviewed-by: Kevin Hilman
---
.../devicetree/bindings/soc/mediatek/scpsys.txt| 13 +++
include/dt-bindings/power/mt2701-power.h | 27
Hi Stephen, Mike, Lee,
On Mon, 2016-05-09 at 15:13 -0700, Stephen Boyd wrote:
> On 05/09, James Liao wrote:
> > Hi Stephen,
> >
> > On Fri, 2016-05-06 at 16:12 -0700, Stephen Boyd wrote:
> > > On 04/14, James Liao wrote:
> > > > Some system clock
Hi Stephen,
On Mon, 2016-05-09 at 15:29 -0700, Stephen Boyd wrote:
> On 05/09, James Liao wrote:
> > On Fri, 2016-05-06 at 16:11 -0700, Stephen Boyd wrote:
> > > On 04/14, James Liao wrote:
> > > > diff --git a/drivers/clk/mediatek/clk-mt2701.c
> > >
On Mon, 2016-05-09 at 15:13 -0700, Stephen Boyd wrote:
> On 05/09, James Liao wrote:
> > Hi Stephen,
> >
> > On Fri, 2016-05-06 at 16:12 -0700, Stephen Boyd wrote:
> > > On 04/14, James Liao wrote:
> > > > Some system clocks should be turned on by de
Hi Stephen,
On Fri, 2016-05-06 at 16:11 -0700, Stephen Boyd wrote:
> On 04/14, James Liao wrote:
> > diff --git a/drivers/clk/mediatek/clk-mt2701.c
> > b/drivers/clk/mediatek/clk-mt2701.c
> > new file mode 100644
> > index 000..b4db141
> > --- /dev/null
&
Hi Stephen,
On Fri, 2016-05-06 at 16:12 -0700, Stephen Boyd wrote:
> On 04/14, James Liao wrote:
> > Some system clocks should be turned on by default on MT2701.
> > This patch enable these clocks when related clocks have
> > been registered.
> >
&g
HI Stephen,
On Fri, 2016-05-06 at 16:02 -0700, Stephen Boyd wrote:
> On 04/14, James Liao wrote:
> > MT2701 subsystem clocks are optional and should be enabled only if
> > their subsystem drivers are ready to control these clocks.
> >
> > Signed-off-by: James Liao
>
Hi Yingjoe,
On Fri, 2016-04-15 at 22:42 +0800, Yingjoe Chen wrote:
> On Fri, 2016-04-15 at 10:02 +0800, James Liao wrote:
> > On Thu, 2016-04-14 at 18:56 +0800, Yingjoe Chen wrote:
> > > On Thu, 2016-04-14 at 16:16 +0800, James Liao wrote:
> > > > From: Shunli Wang
Hi Yingjoe,
On Thu, 2016-04-14 at 18:56 +0800, Yingjoe Chen wrote:
> On Thu, 2016-04-14 at 16:16 +0800, James Liao wrote:
> > From: Shunli Wang
> >
> > Add power dt-bindings for MT2701.
> >
> > Signed-off-by: Shunli Wang
> > Signed-off-by: James Liao
From: Shunli Wang
Add power dt-bindings for MT2701.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Acked-by: Rob Herring
Reviewed-by: Kevin Hilman
---
.../devicetree/bindings/soc/mediatek/scpsys.txt| 12 ++
include/dt-bindings/power/mt2701-power.h | 27
Refine scpsys driver common code to support multiple SoC / platform.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 363 +++---
1 file changed, 220 insertions(+), 143 deletions(-)
diff --git a/drivers/soc/mediatek
This patch adds the binding documentation for apmixedsys, bdpsys,
ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and
vdecsys for Mediatek MT2701.
Signed-off-by: James Liao
Tested-by: John Crispin
Acked-by: Rob Herring
---
.../bindings/arm/mediatek/mediatek,apmixedsys.txt | 3
scpsys driver
before subsys_init.
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/mtk-scpsys.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c
b/drivers/soc/mediatek/mtk-scpsys.c
index 5870a24
From: Shunli Wang
In infrasys and perifsys, there are many reset
control bits for kinds of modules. These bits are
used as actual reset controllers to be registered
into kernel's generic reset controller framework.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Cr
From: Shunli Wang
Add scpsys driver for MT2701.
mtk-scpsys now supports MT8173 (arm64) and MT2701 (arm). So it should
be enabled on both arm64 and arm platforms.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Reviewed-by: Kevin Hilman
---
drivers/soc/mediatek/Kconfig | 2
From: Shunli Wang
Add MT2701 clock dt-bindings, include topckgen, apmixedsys,
infracfg, pericfg and subsystem clocks.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
---
include/dt-bindings/clock/mt2701-clk.h | 486 +
1 file
Add a Kconfig to define clock configuration for each SoC, and
modify the Makefile to build drivers that only selected in config.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
---
drivers/clk/Kconfig | 1 +
drivers/clk/mediatek/Kconfig | 23
From: Shunli Wang
Dt-binding file about reset controller is used to provide
kinds of definition, which is referenced by dts file and
IC-specified reset controller driver code.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
Acked-by: Philipp Zabel
---
include
Some system clocks should be turned on by default on MT2701.
This patch enable these clocks when related clocks have
been registered.
Signed-off-by: James Liao
---
drivers/clk/mediatek/clk-mt2701.c | 23 +--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a
From: Shunli Wang
Add MT2701 clock support, include topckgen, apmixedsys,
infracfg, pericfg and subsystem clocks.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
---
drivers/clk/mediatek/Kconfig |8 +
drivers/clk/mediatek/Makefile |1 +
drivers
MT2701 subsystem clocks are optional and should be enabled only if
their subsystem drivers are ready to control these clocks.
Signed-off-by: James Liao
---
drivers/clk/mediatek/Kconfig | 44 ++-
drivers/clk/mediatek/clk-mt2701.c | 36
PSYS in Kconfig invisible from users.
- Add comments for changing scpsys init level to subsys_init.
[1]
http://lists.infradead.org/pipermail/linux-mediatek/2015-December/003416.html
James Liao (2):
soc: mediatek: Refine scpsys to support multiple platform
soc: mediatek: Init MT8173 scpsys
Add clock controller nodes for MT2701, include topckgen, infracfg,
pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and
bdpsys. This patch also add two oscillators that provide clocks for
MT2701.
Signed-off-by: James Liao
---
arch/arm/boot/dts/mt2701.dtsi | 42
definition.
- Replace read-modify-write with regmap_update_bits() in clock operations.
- Move mt2701-resets.h to include/dt-bindings/reset/.
- Add hifsys reset patch from John Crispin.
changes since v1:
- Document MT2701 compatible strings.
[1] https://patchwork.kernel.org/patch/8147901/
James Liao (5
lators may stay in a wrong state.
There is no regulator double enabling issue on mainline kernel, so
we can refert commit [1] safely.
Signed-off-by: James Liao
---
drivers/soc/mediatek/mtk-scpsys.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/soc/me
Add clock controller nodes for MT2701, include topckgen, infracfg,
pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and
bdpsys. This patch also add two oscillators that provide clocks for
MT2701.
Signed-off-by: James Liao
---
This patch is based on v4.6-rc1 and MT2701 clock patches [1
Hi Mike,
Sorry to use this old email to ask questions. Do you have any concern to
apply this patch series into next version of kernel? Or do you really
need a new patch series with less CLK_OF_DECLARE()?
Best regards,
James
On Thu, 2016-02-25 at 14:24 +0800, James Liao wrote:
> Hi M
On Tue, 2016-03-01 at 10:59 -0800, Stephen Boyd wrote:
> This flag is a no-op now. Remove usage of the flag.
>
> Cc: James Liao
> Signed-off-by: Stephen Boyd
Acked-by: James Liao
Best regards,
James
> ---
> drivers/clk/mediatek/clk-mtk.c | 4 ++--
> 1 file change
Hi Mike,
On Wed, 2016-02-24 at 13:25 -0800, Michael Turquette wrote:
> Hi James,
>
> Quoting James Liao (2016-02-15 01:19:42)
> > Hi Mike,
> >
> > On Wed, 2016-02-10 at 12:08 -0800, Michael Turquette wrote:
> > > Quoting James Liao (2016-02-05 01:37:27)
Hi Mike,
On Mon, 2016-02-15 at 17:50 +0800, James Liao wrote:
> On Thu, 2016-02-11 at 13:35 -0800, Michael Turquette wrote:
> > Hi James,
> >
> > Quoting James Liao (2016-02-05 01:37:30)
> > > Some system clocks should be turned on by default on MT2701.
> > &
From: Shunli Wang
Add scpsys driver for MT2701.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
---
drivers/soc/mediatek/mtk-scpsys.c | 108 +-
1 file changed, 107 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c
b/drivers
Refine scpsys driver common code to support multiple SoC / platform.
Signed-off-by: James Liao
---
drivers/soc/mediatek/mtk-scpsys.c | 363 +++---
1 file changed, 220 insertions(+), 143 deletions(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c
b/drivers/soc
scpsys driver
before subsys_init.
Signed-off-by: James Liao
---
drivers/soc/mediatek/mtk-scpsys.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c
b/drivers/soc/mediatek/mtk-scpsys.c
index 6d2874d..ebfc887 100644
--- a/drivers
.html
James Liao (2):
soc: mediatek: Refine scpsys to support multiple platform
soc: mediatek: Init MT8173 scpsys driver earlier
Shunli Wang (2):
soc: mediatek: Add MT2701 power dt-bindings
soc: mediatek: Add MT2701 scpsys driver
.../devicetree/bindings/soc/mediatek/scpsys.txt
From: Shunli Wang
Add power dt-bindings for MT2701.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
---
.../devicetree/bindings/soc/mediatek/scpsys.txt| 6 +++--
include/dt-bindings/power/mt2701-power.h | 27 ++
2 files changed, 31 insertions(+), 2
Hi Krzysztof,
On Tue, 2016-02-16 at 13:59 +0900, Krzysztof Kozlowski wrote:
> 2016-01-28 17:58 GMT+09:00 James Liao :
> > Move all vendor's Kconfig into CCF menu section to prevent
> > new drivers putting their Kconfig files in a wrong place.
> >
> > Some Kconigs
Hi Mike,
On Thu, 2016-02-11 at 13:35 -0800, Michael Turquette wrote:
> Hi James,
>
> Quoting James Liao (2016-02-05 01:37:30)
> > Some system clocks should be turned on by default on MT2701.
> > This patch enable these clocks when related clocks have
> > been registe
Hi Mike,
On Wed, 2016-02-10 at 12:08 -0800, Michael Turquette wrote:
> Quoting James Liao (2016-02-05 01:37:27)
> > +CLK_OF_DECLARE(mtk_topckgen, "mediatek,mt2701-topckgen",
> > mtk_topckgen_init);
> > +CLK_OF_DECLARE(mtk_infrasys, "mediatek,mt27
Hi Matthias,
On Wed, 2016-02-03 at 10:00 +0100, Matthias Brugger wrote:
> On 03/02/16 06:22, James Liao wrote:
> > On Tue, 2016-02-02 at 11:44 +0100, Matthias Brugger wrote:
> >> On 02/02/16 07:56, James Liao wrote:
> >>> On Sun, 2016-01-31 at 12:51 +0100, Matthias B
] https://patchwork.kernel.org/patch/8147901/
James Liao (3):
clk: mediatek: Refine the makefile to support multiple clock drivers
dt-bindings: ARM: Mediatek: Document bindings for MT2701
clk: mediatek: Enable critical clocks for MT2701
Shunli Wang (4):
clk: mediatek: Add dt-bindings for
From: Shunli Wang
Add MT2701 clock support, include topckgen, apmixedsys,
infracfg, pericfg and subsystem clocks.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
---
drivers/clk/mediatek/Kconfig |8 +
drivers/clk/mediatek/Makefile |1 +
drivers
From: Shunli Wang
Add MT2701 clock dt-bindings, include topckgen, apmixedsys,
infracfg, pericfg and subsystem clocks.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
---
include/dt-bindings/clock/mt2701-clk.h | 482 +
1 file
From: Shunli Wang
Dt-binding file about reset controller is used to provide
kinds of definition, which is referenced by dts file and
IC-specified reset controller driver code.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
Acked-by: Philipp Zabel
---
include
This patch adds the binding documentation for apmixedsys, bdpsys,
ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and
vdecsys for Mediatek MT2701.
Signed-off-by: James Liao
Tested-by: John Crispin
---
.../bindings/arm/mediatek/mediatek,apmixedsys.txt | 3 ++-
.../bindings/arm
From: Shunli Wang
In infrasys and perifsys, there are many reset
control bits for kinds of modules. These bits are
used as actual reset controllers to be registered
into kernel's generic reset controller framework.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Cr
Add a Kconfig to define clock configuration for each SoC, and
modify the Makefile to build drivers that only selected in config.
Signed-off-by: Shunli Wang
Signed-off-by: James Liao
Tested-by: John Crispin
---
drivers/clk/Kconfig | 1 +
drivers/clk/mediatek/Kconfig | 23
Some system clocks should be turned on by default on MT2701.
This patch enable these clocks when related clocks have
been registered.
Signed-off-by: James Liao
---
drivers/clk/mediatek/clk-mt2701.c | 23 +--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a
1 - 100 of 276 matches
Mail list logo