Re: [PATCH v6 00/22] Mediatek MT8192 clock support

2021-01-12 Thread James Liao
/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

[PATCH] arm64: dts: mt8192: Add cpu-idle-states

2020-12-21 Thread 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

[PATCH] arm64: dts: mt8183: Enable CPU idle-states

2019-05-29 Thread James Liao
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

Re: [PATCH v5 9/9] clk: mediatek: Allow changing PLL rate when it is off

2019-03-04 Thread James Liao
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

Re: [PATCH v5 7/9] clk: mediatek: Add configurable pcw_chg_reg to mtk_pll_data

2019-03-04 Thread James Liao
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 + >

Re: [PATCH v5 6/9] clk: mediatek: Add flags support for mtk_gate data

2019-03-04 Thread James Liao
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

Re: [PATCH v5 3/9] clk: mediatek: Add configurable pcwibits and fmin to mtk_pll_data

2019-03-04 Thread James Liao
>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

Re: [PATCH v5 1/9] clk: mediatek: Disable tuner_en before change PLL rate

2019-03-04 Thread James Liao
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 ++

Re: [PATCH v5 2/9] clk: mediatek: Add new clkmux register API

2019-03-04 Thread James Liao
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

[PATCH v2] arm64: dts: mediatek: Add cpuidle support for MT2712

2017-10-06 Thread James Liao
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

[PATCH] arm64: dts: mediatek: Add cpuidle support for MT2712

2017-08-30 Thread James Liao
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

Re: [PATCH] clk: Convert to using %pOF instead of full_name

2017-07-19 Thread James Liao
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

[PATCH 1/3] arm: dts: mt2701: Sort DT nodes by register address

2016-12-27 Thread James Liao
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

[PATCH 0/3] Add clock and power domain DT nodes for Mediatek MT2701

2016-12-27 Thread James Liao
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

[PATCH 3/3] arm: dts: mt2701: Add power domain controller device node

2016-12-27 Thread James Liao
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

[PATCH 2/3] arm: dts: mt2701: Add subsystem clock controller device nodes

2016-12-27 Thread James Liao
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

[PATCH] arm: dts: mt2701: Sort DT nodes by register address

2016-12-01 Thread James Liao
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

[PATCH v3] clk: mediatek: Allow changing PLL rate when it is off

2016-11-03 Thread James Liao
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

Re: [PATCH v14 1/4] clk: mediatek: Add MT2701 clock support

2016-11-01 Thread James Liao
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

Re: [PATCH v14 1/4] clk: mediatek: Add MT2701 clock support

2016-10-30 Thread James Liao
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

Re: [PATCH v9 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2016-10-30 Thread James Liao
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. > >

Re: [PATCH v9 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-10-28 Thread James Liao
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

[PATCH v9 3/4] soc: mediatek: Add MT2701 power dt-bindings

2016-10-20 Thread 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| 13 +++ include/dt-bindings/power/mt2701-power.h | 27

[PATCH v9 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2016-10-20 Thread James Liao
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

[PATCH v9 4/4] soc: mediatek: Add MT2701 scpsys driver

2016-10-20 Thread James Liao
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

[PATCH v9 0/4] Mediatek MT2701 SCPSYS power domain support

2016-10-20 Thread James Liao
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

[PATCH v9 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-10-20 Thread James Liao
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

Re: [PATCH v8 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-09-26 Thread James Liao
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 > > --- > >

Re: [PATCH] clk: mediatek: clk-mt8173: Unmap region obtained by of_iomap

2016-09-20 Thread James Liao
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

Re: [PATCH v12 2/4] reset: mediatek: Add MT2701 reset driver

2016-08-26 Thread James Liao
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-

Re: [PATCH v12 1/4] clk: mediatek: Add MT2701 clock support

2016-08-26 Thread James Liao
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_

Re: [PATCH v10 8/9] arm: dts: mt2701: Add clock controller device nodes

2016-08-18 Thread James Liao
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

Re: [PATCH v9 06/10] clk: mediatek: Add MT2701 clock support

2016-08-14 Thread James Liao
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

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-08-14 Thread James Liao
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

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-08-12 Thread James Liao
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

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-08-08 Thread James Liao
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-

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-08-02 Thread James Liao
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

[PATCH v8 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2016-07-19 Thread James Liao
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

[PATCH v8 4/4] soc: mediatek: Add MT2701 scpsys driver

2016-07-19 Thread James Liao
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

[PATCH v8 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-07-19 Thread James Liao
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

[PATCH v8 3/4] soc: mediatek: Add MT2701 power dt-bindings

2016-07-19 Thread 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| 13 +++ include/dt-bindings/power/mt2701-power.h | 27

[PATCH v8 0/4] Mediatek MT2701 SCPSYS power domain support

2016-07-19 Thread James Liao
/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

Re: [PATCH v7 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-07-11 Thread James Liao
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) > >>>

Re: [PATCH v7 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-07-11 Thread James Liao
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:

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-07-11 Thread James Liao
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

Re: [PATCH v7 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-07-05 Thread James Liao
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

Re: [PATCH v7 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2016-07-05 Thread James Liao
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

Re: [PATCH v7 4/4] soc: mediatek: Add MT2701 scpsys driver

2016-07-05 Thread James Liao
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 > >

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-07-03 Thread James Liao
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

[PATCH v7 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2016-05-16 Thread James Liao
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

[PATCH v7 4/4] soc: mediatek: Add MT2701 scpsys driver

2016-05-16 Thread James Liao
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

[PATCH v7 0/4] Mediatek MT2701 SCPSYS power domain support

2016-05-16 Thread James Liao
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

[PATCH v7 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-05-16 Thread James Liao
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

[PATCH v7 3/4] soc: mediatek: Add MT2701 power dt-bindings

2016-05-16 Thread 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| 13 +++ include/dt-bindings/power/mt2701-power.h | 27

Re: [PATCH v7 7/9] clk: mediatek: Enable critical clocks for MT2701

2016-05-10 Thread James Liao
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

Re: [PATCH v7 4/9] clk: mediatek: Add MT2701 clock support

2016-05-09 Thread James Liao
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 > > >

Re: [PATCH v7 7/9] clk: mediatek: Enable critical clocks for MT2701

2016-05-09 Thread James Liao
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

Re: [PATCH v7 4/9] clk: mediatek: Add MT2701 clock support

2016-05-08 Thread James Liao
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 &

Re: [PATCH v7 7/9] clk: mediatek: Enable critical clocks for MT2701

2016-05-08 Thread James Liao
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

Re: [PATCH v7 8/9] clk: mediatek: Add config options for MT2701 subsystem clocks

2016-05-08 Thread James Liao
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 >

Re: [PATCH v6 3/4] soc: mediatek: Add MT2701 power dt-bindings

2016-04-17 Thread 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

Re: [PATCH v6 3/4] soc: mediatek: Add MT2701 power dt-bindings

2016-04-14 Thread James Liao
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

[PATCH v6 3/4] soc: mediatek: Add MT2701 power dt-bindings

2016-04-14 Thread 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

[PATCH v6 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-04-14 Thread James Liao
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

[PATCH v7 2/9] dt-bindings: ARM: Mediatek: Document bindings for MT2701

2016-04-14 Thread James Liao
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

[PATCH v6 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2016-04-14 Thread James Liao
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

[PATCH v7 6/9] reset: mediatek: Add MT2701 reset driver

2016-04-14 Thread James Liao
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

[PATCH v6 4/4] soc: mediatek: Add MT2701 scpsys driver

2016-04-14 Thread James Liao
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

[PATCH v7 3/9] clk: mediatek: Add dt-bindings for MT2701 clocks

2016-04-14 Thread James Liao
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

[PATCH v7 1/9] clk: mediatek: Refine the makefile to support multiple clock drivers

2016-04-14 Thread James Liao
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

[PATCH v7 5/9] reset: mediatek: Add MT2701 reset controller dt-binding file

2016-04-14 Thread James Liao
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

[PATCH v7 7/9] clk: mediatek: Enable critical clocks for MT2701

2016-04-14 Thread James Liao
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

[PATCH v7 4/9] clk: mediatek: Add MT2701 clock support

2016-04-14 Thread James Liao
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

[PATCH v7 8/9] clk: mediatek: Add config options for MT2701 subsystem clocks

2016-04-14 Thread James Liao
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

[PATCH v6 0/4] Mediatek MT2701 SCPSYS power domain support

2016-04-14 Thread James Liao
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

[PATCH v7 9/9] arm: dts: mt2701: Add clock controller device nodes

2016-04-14 Thread James Liao
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

[PATCH v7 0/9] Add clock support for Mediatek MT2701

2016-04-14 Thread James Liao
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

[PATCH] Revert "soc: mediatek: SCPSYS: Fix double enabling of regulators"

2016-04-12 Thread James Liao
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

[PATCH] arm: dts: mt2701: Add clock controller device nodes

2016-03-27 Thread James Liao
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

Re: [PATCH v6 4/7] clk: mediatek: Add MT2701 clock support

2016-03-21 Thread James Liao
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

Re: [PATCH 05/41] clk: mediatek: Remove CLK_IS_ROOT

2016-03-01 Thread James Liao
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

Re: [PATCH v6 4/7] clk: mediatek: Add MT2701 clock support

2016-02-24 Thread James Liao
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)

Re: [PATCH v6 7/7] clk: mediatek: Enable critical clocks for MT2701

2016-02-23 Thread James Liao
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. > > &

[PATCH v5 4/4] soc: mediatek: Add MT2701 scpsys driver

2016-02-16 Thread James Liao
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

[PATCH v5 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-02-16 Thread James Liao
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

[PATCH v5 2/4] soc: mediatek: Init MT8173 scpsys driver earlier

2016-02-16 Thread James Liao
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

[PATCH v5 0/4] Mediatek MT2701 SCPSYS power domain support

2016-02-16 Thread James Liao
.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

[PATCH v5 3/4] soc: mediatek: Add MT2701 power dt-bindings

2016-02-16 Thread James Liao
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

Re: [PATCH v2] clk: Move vendor's Kconfig into CCF menu section

2016-02-15 Thread James Liao
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

Re: [PATCH v6 7/7] clk: mediatek: Enable critical clocks for MT2701

2016-02-15 Thread James Liao
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

Re: [PATCH v6 4/7] clk: mediatek: Add MT2701 clock support

2016-02-15 Thread James Liao
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

Re: [PATCH v4 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-02-15 Thread James Liao
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

[PATCH v6 0/7] Add clock support for Mediatek MT2701

2016-02-05 Thread James Liao
] 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

[PATCH v6 4/7] clk: mediatek: Add MT2701 clock support

2016-02-05 Thread James Liao
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

[PATCH v6 3/7] clk: mediatek: Add dt-bindings for MT2701 clocks

2016-02-05 Thread James Liao
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

[PATCH v6 5/7] reset: mediatek: Add MT2701 reset controller dt-binding file

2016-02-05 Thread James Liao
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

[PATCH v6 2/7] dt-bindings: ARM: Mediatek: Document bindings for MT2701

2016-02-05 Thread James Liao
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

[PATCH v6 6/7] reset: mediatek: Add MT2701 reset driver

2016-02-05 Thread James Liao
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

[PATCH v6 1/7] clk: mediatek: Refine the makefile to support multiple clock drivers

2016-02-05 Thread James Liao
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

[PATCH v6 7/7] clk: mediatek: Enable critical clocks for MT2701

2016-02-05 Thread James Liao
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   2   3   >