Re: [PATCH v2 0/2] Add MediaTek display PWM driver

2015-05-24 Thread Yingjoe Chen
On Thu, 2015-05-21 at 21:29 +0800, YH Huang wrote: YH Huang (2): dt-bindings: pwm: add MediaTek display PWM bindings pwm: add MediaTek display PWM driver support .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 25 +++ drivers/pwm/Kconfig| 10 +

Re: [PATCH v2 4/9] clocksource: mediatek: Use GPT as sched clock source

2015-05-20 Thread Yingjoe Chen
On Wed, 2015-05-20 at 13:02 +0200, Matthias Brugger wrote: > 2015-05-16 9:58 GMT+02:00 Yingjoe Chen : > > When cpu is in deep idle, arch timer will stop counting. Setup GPT as > > sched clock source so it can keep counting in idle. > > > > Signed-off-by: Yingjoe

Re: [PATCH v8 2/3] I2C: mediatek: Add driver for MediaTek I2C controller

2015-05-20 Thread Yingjoe Chen
Hi Uwe, On Wed, 2015-05-20 at 10:57 +0200, Uwe Kleine-König wrote: > Hello, > > now that I understood the formula some more comments to the calculation. > > On Tue, May 19, 2015 at 12:40:08AM +0800, Eddie Huang wrote: > > +#define I2C_DEFAUT_SPEED 10 /* hz */ > DEFAULT? > > >

Re: [PATCH v2 5/9] ARM: mediatek: enable gpt6 on boot up to make arch timer working

2015-05-20 Thread Yingjoe Chen
On Wed, 2015-05-20 at 10:43 +0200, Matthias Brugger wrote: > 2015-05-19 21:51 GMT+02:00 Stephen Boyd : > > On 05/16/15 00:58, Yingjoe Chen wrote: > >> diff --git a/arch/arm/mach-mediatek/mediatek.c > >> b/arch/arm/mach-mediatek/mediatek.c > >> index a954900

Re: [PATCH v2 5/9] ARM: mediatek: enable gpt6 on boot up to make arch timer working

2015-05-20 Thread Yingjoe Chen
On Wed, 2015-05-20 at 10:43 +0200, Matthias Brugger wrote: 2015-05-19 21:51 GMT+02:00 Stephen Boyd sb...@codeaurora.org: On 05/16/15 00:58, Yingjoe Chen wrote: diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index a954900..6b38d67 100644 --- a/arch

Re: [PATCH v8 2/3] I2C: mediatek: Add driver for MediaTek I2C controller

2015-05-20 Thread Yingjoe Chen
Hi Uwe, On Wed, 2015-05-20 at 10:57 +0200, Uwe Kleine-König wrote: Hello, now that I understood the formula some more comments to the calculation. On Tue, May 19, 2015 at 12:40:08AM +0800, Eddie Huang wrote: +#define I2C_DEFAUT_SPEED 10 /* hz */ DEFAULT? +#define

Re: [PATCH v2 4/9] clocksource: mediatek: Use GPT as sched clock source

2015-05-20 Thread Yingjoe Chen
On Wed, 2015-05-20 at 13:02 +0200, Matthias Brugger wrote: 2015-05-16 9:58 GMT+02:00 Yingjoe Chen yingjoe.c...@mediatek.com: When cpu is in deep idle, arch timer will stop counting. Setup GPT as sched clock source so it can keep counting in idle. Signed-off-by: Yingjoe Chen yingjoe.c

Re: [PATCH v8 2/3] I2C: mediatek: Add driver for MediaTek I2C controller

2015-05-19 Thread Yingjoe Chen
On Tue, 2015-05-19 at 16:48 +0200, Matthias Brugger wrote: > 2015-05-18 20:43 GMT+02:00 Uwe Kleine-König : <...> > >> --- /dev/null > >> +++ b/drivers/i2c/busses/i2c-mt65xx.c > >> @@ -0,0 +1,675 @@ > >> +/* > >> + * Copyright (c) 2014 MediaTek Inc. > >> + * Author: Xudong.chen > >

Re: [PATCH v8 2/3] I2C: mediatek: Add driver for MediaTek I2C controller

2015-05-19 Thread Yingjoe Chen
On Tue, 2015-05-19 at 16:48 +0200, Matthias Brugger wrote: 2015-05-18 20:43 GMT+02:00 Uwe Kleine-König u.kleine-koe...@pengutronix.de: ... --- /dev/null +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -0,0 +1,675 @@ +/* + * Copyright (c) 2014 MediaTek Inc. + * Author: Xudong.chen

Re: [PATCH v2 2/9] ARM: add secondary_startup_arm prototype in header file

2015-05-18 Thread Yingjoe Chen
On Sat, 2015-05-16 at 22:19 +0100, Russell King - ARM Linux wrote: > On Sat, May 16, 2015 at 11:02:40AM +0200, Matthias Brugger wrote: > > 2015-05-16 9:58 GMT+02:00 Yingjoe Chen : > > > Put secondary_startup_arm() prototype in arch/arm/include/asm/smp.h > > > so users

Re: [PATCH v2 2/9] ARM: add secondary_startup_arm prototype in header file

2015-05-18 Thread Yingjoe Chen
On Sat, 2015-05-16 at 22:19 +0100, Russell King - ARM Linux wrote: On Sat, May 16, 2015 at 11:02:40AM +0200, Matthias Brugger wrote: 2015-05-16 9:58 GMT+02:00 Yingjoe Chen yingjoe.c...@mediatek.com: Put secondary_startup_arm() prototype in arch/arm/include/asm/smp.h so users doesn't have

Re: [PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-16 Thread Yingjoe Chen
On Wed, 2015-05-06 at 13:04 +0200, Matthias Brugger wrote: > Hi Joe, > > 2015-05-06 10:29 GMT+02:00 Matthias Brugger : > > 2015-05-06 9:59 GMT+02:00 Yingjoe Chen : > >> On Wed, 2015-05-06 at 15:19 +0800, Yingjoe Chen wrote: > >>> Hi Matthias, > >> &

[PATCH v2 6/9] devicetree: bindings: add new SMP enable method Mediatek SoC

2015-05-16 Thread Yingjoe Chen
This commit add new cpu enable method "mediatek,mt65xx-smp" and "mediatek,mt81xx-tz-smp". Signed-off-by: Yingjoe Chen --- Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.

[PATCH v2 3/9] clocksource: mediatek: do not enable GPT_CLK_EVT when setup

2015-05-16 Thread Yingjoe Chen
-by: Yingjoe Chen --- drivers/clocksource/mtk_timer.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/mtk_timer.c b/drivers/clocksource/mtk_timer.c index 68ab423..91206f9 100644 --- a/drivers/clocksource/mtk_timer.c +++ b/drivers/clocksource

[PATCH v2 4/9] clocksource: mediatek: Use GPT as sched clock source

2015-05-16 Thread Yingjoe Chen
When cpu is in deep idle, arch timer will stop counting. Setup GPT as sched clock source so it can keep counting in idle. Signed-off-by: Yingjoe Chen --- drivers/clocksource/mtk_timer.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clocksource/mtk_timer.c b/drivers

[PATCH v2 1/9] ARM: correct secondary_startup_arm mode

2015-05-16 Thread Yingjoe Chen
. Signed-off-by: Yingjoe Chen --- arch/arm/kernel/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 3637973..58ee8a2 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S @@ -346,8 +346,8 @@ __turn_mmu_on_loc

[PATCH v2 2/9] ARM: add secondary_startup_arm prototype in header file

2015-05-16 Thread Yingjoe Chen
Put secondary_startup_arm() prototype in arch/arm/include/asm/smp.h so users doesn't have to add extern prototype in their code. Signed-off-by: Yingjoe Chen --- arch/arm/include/asm/smp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h

[PATCH v2 5/9] ARM: mediatek: enable gpt6 on boot up to make arch timer working

2015-05-16 Thread Yingjoe Chen
From: Matthias Brugger We enable GTP6 which ungates the arch timer clock. In the future this should be done in the bootloader. Signed-off-by: Matthias Brugger Signed-off-by: Yingjoe Chen --- arch/arm/mach-mediatek/mediatek.c | 29 + 1 file changed, 29 insertions

[PATCH v2 7/9] ARM: mediatek: add smp bringup code

2015-05-16 Thread Yingjoe Chen
Add support for booting secondary CPUs on mt6589, mt8127 and mt8135. Signed-off-by: Yingjoe Chen --- arch/arm/mach-mediatek/Makefile | 3 + arch/arm/mach-mediatek/platsmp.c | 144 +++ 2 files changed, 147 insertions(+) create mode 100644 arch/arm/mach

[PATCH v2 9/9] ARM: dts: mt8127: enable basic SMP bringup for mt8127

2015-05-16 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8127 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen --- arch/arm/boot/dts/mt8127.dtsi | 16 1

[PATCH v2 8/9] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-05-16 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8135 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen --- arch/arm/boot/dts/mt8135.dtsi | 16 1

[PATCH v2 0/9] Add SMP bringup support for mt65xx socs

2015-05-16 Thread Yingjoe Chen
dead.org/pipermail/linux-mediatek/2015-May/000528.html Matthias Brugger (1): ARM: mediatek: enable gpt6 on boot up to make arch timer working Yingjoe Chen (8): ARM: correct secondary_startup_arm mode ARM: add secondary_startup_arm prototype in header file clocksource: mediatek: do not

[PATCH] ARM: dts: mt8127: correct uart instance address

2015-05-16 Thread Yingjoe Chen
This is based on v4.1-rc1 8<--- The instance address for uart nodes are incorrect. Correct them. Signed-off-by: Yingjoe Chen --- arch/arm/boot/dts/mt8127.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/a

[PATCH] ARM: dts: mt8127: correct uart instance address

2015-05-16 Thread Yingjoe Chen
This is based on v4.1-rc1 8--- The instance address for uart nodes are incorrect. Correct them. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/boot/dts/mt8127.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions

Re: [PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-16 Thread Yingjoe Chen
On Wed, 2015-05-06 at 13:04 +0200, Matthias Brugger wrote: Hi Joe, 2015-05-06 10:29 GMT+02:00 Matthias Brugger matthias@gmail.com: 2015-05-06 9:59 GMT+02:00 Yingjoe Chen yingjoe.c...@mediatek.com: On Wed, 2015-05-06 at 15:19 +0800, Yingjoe Chen wrote: Hi Matthias, ... I tried

[PATCH v2 0/9] Add SMP bringup support for mt65xx socs

2015-05-16 Thread Yingjoe Chen
-mediatek/2015-May/000528.html Matthias Brugger (1): ARM: mediatek: enable gpt6 on boot up to make arch timer working Yingjoe Chen (8): ARM: correct secondary_startup_arm mode ARM: add secondary_startup_arm prototype in header file clocksource: mediatek: do not enable GPT_CLK_EVT when setup

[PATCH v2 8/9] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-05-16 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8135 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/boot/dts/mt8135.dtsi

[PATCH v2 9/9] ARM: dts: mt8127: enable basic SMP bringup for mt8127

2015-05-16 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8127 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/boot/dts/mt8127.dtsi

[PATCH v2 2/9] ARM: add secondary_startup_arm prototype in header file

2015-05-16 Thread Yingjoe Chen
Put secondary_startup_arm() prototype in arch/arm/include/asm/smp.h so users doesn't have to add extern prototype in their code. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/include/asm/smp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/smp.h b

[PATCH v2 5/9] ARM: mediatek: enable gpt6 on boot up to make arch timer working

2015-05-16 Thread Yingjoe Chen
From: Matthias Brugger matthias@gmail.com We enable GTP6 which ungates the arch timer clock. In the future this should be done in the bootloader. Signed-off-by: Matthias Brugger matthias@gmail.com Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/mach-mediatek

[PATCH v2 7/9] ARM: mediatek: add smp bringup code

2015-05-16 Thread Yingjoe Chen
Add support for booting secondary CPUs on mt6589, mt8127 and mt8135. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/mach-mediatek/Makefile | 3 + arch/arm/mach-mediatek/platsmp.c | 144 +++ 2 files changed, 147 insertions(+) create mode

[PATCH v2 1/9] ARM: correct secondary_startup_arm mode

2015-05-16 Thread Yingjoe Chen
. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/kernel/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 3637973..58ee8a2 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S @@ -346,8

[PATCH v2 6/9] devicetree: bindings: add new SMP enable method Mediatek SoC

2015-05-16 Thread Yingjoe Chen
This commit add new cpu enable method mediatek,mt65xx-smp and mediatek,mt81xx-tz-smp. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b

[PATCH v2 3/9] clocksource: mediatek: do not enable GPT_CLK_EVT when setup

2015-05-16 Thread Yingjoe Chen
-by: Yingjoe Chen yingjoe.c...@mediatek.com --- drivers/clocksource/mtk_timer.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/mtk_timer.c b/drivers/clocksource/mtk_timer.c index 68ab423..91206f9 100644 --- a/drivers/clocksource/mtk_timer.c +++ b

[PATCH v2 4/9] clocksource: mediatek: Use GPT as sched clock source

2015-05-16 Thread Yingjoe Chen
When cpu is in deep idle, arch timer will stop counting. Setup GPT as sched clock source so it can keep counting in idle. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- drivers/clocksource/mtk_timer.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clocksource

[PATCH] arm64: dts: mt8173-evb: fix model name

2015-05-15 Thread Yingjoe Chen
Model name in mt8173-evb.dtsi doesn't follow dts convention(it should be human readable model name). Fix it. Signed-off-by: Yingjoe Chen --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173

Re: Mediatek pinctrl driver optimize and add Mediatek SoC Pinctrl/GPIO/EINT driver for mt6397/mt8127.

2015-05-15 Thread Yingjoe Chen
mmon code. > dt-bindings: mediatek: Modify pinctrl bindings for mt6397. > pinctrl: mediatek: Add Pinctrl/GPIO driver for mt6397. > pinctrl: dt bindings: mt6397: Add pinfunc header file for mt6397. > arm64: dts: mt8173-evb: Add pinctrl/GPIO node for mt6397. > ARM: dts: mt8135-ev

Re: Mediatek pinctrl driver optimize and add Mediatek SoC Pinctrl/GPIO/EINT driver for mt6397/mt8127.

2015-05-15 Thread Yingjoe Chen
bindings for mt6397. pinctrl: mediatek: Add Pinctrl/GPIO driver for mt6397. pinctrl: dt bindings: mt6397: Add pinfunc header file for mt6397. arm64: dts: mt8173-evb: Add pinctrl/GPIO node for mt6397. ARM: dts: mt8135-evbp1: Add pinctrl/GPIO node for mt6397. Yingjoe Chen (4): pinctrl

[PATCH] arm64: dts: mt8173-evb: fix model name

2015-05-15 Thread Yingjoe Chen
Model name in mt8173-evb.dtsi doesn't follow dts convention(it should be human readable model name). Fix it. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot

Re: [PATCH 2/3] spi: mediatek: Add spi bus for Mediatek MT8173

2015-05-13 Thread Yingjoe Chen
On Wed, 2015-05-13 at 12:10 +0100, Mark Brown wrote: > On Wed, May 13, 2015 at 05:26:06PM +0800, Yingjoe Chen wrote: > > On Tue, 2015-05-12 at 17:05 +0100, Mark Brown wrote: > > > > > > There were three compatible strings listed in the DT binding but only > > >

Re: [PATCH 2/3] spi: mediatek: Add spi bus for Mediatek MT8173

2015-05-13 Thread Yingjoe Chen
On Tue, 2015-05-12 at 17:05 +0100, Mark Brown wrote: > On Tue, May 12, 2015 at 08:39:16PM +0800, leilk liu wrote: <...> > > > > +static const struct of_device_id mtk_spi_of_match[] = { > > > > + { .compatible = "mediatek,mt6589-spi", .data = (void > > > > *)COMPAT_MT6589}, > > > > + {

Re: [PATCH 2/3] spi: mediatek: Add spi bus for Mediatek MT8173

2015-05-13 Thread Yingjoe Chen
On Tue, 2015-05-12 at 17:05 +0100, Mark Brown wrote: On Tue, May 12, 2015 at 08:39:16PM +0800, leilk liu wrote: ... +static const struct of_device_id mtk_spi_of_match[] = { + { .compatible = mediatek,mt6589-spi, .data = (void *)COMPAT_MT6589}, + { .compatible =

Re: [PATCH 2/3] spi: mediatek: Add spi bus for Mediatek MT8173

2015-05-13 Thread Yingjoe Chen
On Wed, 2015-05-13 at 12:10 +0100, Mark Brown wrote: On Wed, May 13, 2015 at 05:26:06PM +0800, Yingjoe Chen wrote: On Tue, 2015-05-12 at 17:05 +0100, Mark Brown wrote: There were three compatible strings listed in the DT binding but only two here. And I test it's ok on MT8135

Re: [PATCH] ARM: alignment: Use is_wide_instruction() to check wide instruction

2015-05-07 Thread Yingjoe Chen
On Fri, 2015-04-10 at 22:05 +0800, Yingjoe Chen wrote: > I first notice the comment is incorrect, then I realize there's another > macro which do exactly the same thing. > Tested with hand written userspace program with a few wide instructions > to make sure this still work as ex

Re: [PATCH] ARM: alignment: Use is_wide_instruction() to check wide instruction

2015-05-07 Thread Yingjoe Chen
On Fri, 2015-04-10 at 22:05 +0800, Yingjoe Chen wrote: I first notice the comment is incorrect, then I realize there's another macro which do exactly the same thing. Tested with hand written userspace program with a few wide instructions to make sure this still work as expect. 8

Re: [PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-06 Thread Yingjoe Chen
On Wed, 2015-05-06 at 15:19 +0800, Yingjoe Chen wrote: > Hi Matthias, <...> > > I tried on the mt8135 eval board but it fails to bring up the CPU. > > > > When booting: > > [1.048588] CPU1: failed to come online > > [2.049914] CPU2: failed to come

Re: [PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-06 Thread Yingjoe Chen
Hi Matthias, On Mon, 2015-05-04 at 09:48 +0200, Matthias Brugger wrote: > Hi Yingjoe, > > 2015-05-01 9:43 GMT+02:00 Yingjoe Chen : > > This series add SMP brinup support for mediatek SoCs. This is based > > on v4.1-rc1. > > > > There are 2 similar but

Re: [PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-06 Thread Yingjoe Chen
Hi Matthias, On Mon, 2015-05-04 at 09:48 +0200, Matthias Brugger wrote: Hi Yingjoe, 2015-05-01 9:43 GMT+02:00 Yingjoe Chen yingjoe.c...@mediatek.com: This series add SMP brinup support for mediatek SoCs. This is based on v4.1-rc1. There are 2 similar but different SMP bringup up

Re: [PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-06 Thread Yingjoe Chen
On Wed, 2015-05-06 at 15:19 +0800, Yingjoe Chen wrote: Hi Matthias, ... I tried on the mt8135 eval board but it fails to bring up the CPU. When booting: [1.048588] CPU1: failed to come online [2.049914] CPU2: failed to come online [3.051245] CPU3: failed to come online

Re: [PATCH 6/7] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-05-04 Thread Yingjoe Chen
On Mon, 2015-05-04 at 16:31 +0200, Sascha Hauer wrote: > On Fri, May 01, 2015 at 03:43:29PM +0800, Yingjoe Chen wrote: > > Add arch timer node to enable arch-timer support. MT8135 firmware > > doesn't correctly setup arch-timer frequency and CNTVOFF, add > > pro

Re: [PATCH 1/7] clocksource: mediatek: Don't run event_handler if it is NULL

2015-05-04 Thread Yingjoe Chen
On Mon, 2015-05-04 at 10:44 +0200, Daniel Lezcano wrote: > On 05/04/2015 10:34 AM, Matthias Brugger wrote: > > 2015-05-04 10:14 GMT+02:00 Daniel Lezcano : > >> On 05/01/2015 09:43 AM, Yingjoe Chen wrote: > >>> > >>> Spurious timer interrupt is noticed

Re: [PATCH 1/7] clocksource: mediatek: Don't run event_handler if it is NULL

2015-05-04 Thread Yingjoe Chen
On Mon, 2015-05-04 at 10:44 +0200, Daniel Lezcano wrote: On 05/04/2015 10:34 AM, Matthias Brugger wrote: 2015-05-04 10:14 GMT+02:00 Daniel Lezcano daniel.lezc...@linaro.org: On 05/01/2015 09:43 AM, Yingjoe Chen wrote: Spurious timer interrupt is noticed in mtk timer and cause kernel

Re: [PATCH 6/7] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-05-04 Thread Yingjoe Chen
On Mon, 2015-05-04 at 16:31 +0200, Sascha Hauer wrote: On Fri, May 01, 2015 at 03:43:29PM +0800, Yingjoe Chen wrote: Add arch timer node to enable arch-timer support. MT8135 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also

[PATCH 4/7] devicetree: bindings: add new SMP enable method Mediatek SoC

2015-05-01 Thread Yingjoe Chen
This commit add new cpu enable method "mediatek,mt65xx-smp" and "mediatek,mt81xx-tz-smp". Signed-off-by: Yingjoe Chen --- Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.

[PATCH 6/7] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-05-01 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8135 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen --- arch/arm/boot/dts/mt8135.dtsi | 16 1

[PATCH 3/7] arm: mediatek: enable gpt6 on boot up to make arch timer working

2015-05-01 Thread Yingjoe Chen
From: Matthias Brugger We enable GTP6 which ungates the arch timer clock. In the future this should be done in the bootloader. Signed-off-by: Matthias Brugger Signed-off-by: Yingjoe Chen --- arch/arm/mach-mediatek/mediatek.c | 29 + 1 file changed, 29 insertions

[PATCH 5/7] ARM: mediatek: add smp bringup code

2015-05-01 Thread Yingjoe Chen
Add support for booting secondary CPUs on mt6589, mt8127 and mt8135. Signed-off-by: Yingjoe Chen --- arch/arm/mach-mediatek/Makefile | 3 + arch/arm/mach-mediatek/platsmp.c | 145 +++ 2 files changed, 148 insertions(+) create mode 100644 arch/arm/mach

[PATCH 7/7] ARM: dts: mt8127: enable basic SMP bringup for mt8127

2015-05-01 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8127 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen --- arch/arm/boot/dts/mt8127.dtsi | 16 1

[PATCH 2/7] clocksource: mediatek: Use GPT as sched clock source

2015-05-01 Thread Yingjoe Chen
When cpu is in deep idle, arch timer will stop counting. Setup GPT as sched clock source so it can keep counting in idle. Signed-off-by: Yingjoe Chen --- drivers/clocksource/mtk_timer.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clocksource/mtk_timer.c b/drivers

[PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-01 Thread Yingjoe Chen
e SMP bringup for mt8135 and mt8127. Matthias Brugger (1): arm: mediatek: enable gpt6 on boot up to make arch timer working Yingjoe Chen (6): clocksource: mediatek: Don't run event_handler if it is NULL clocksource: mediatek: Use GPT as sched clock source devicetree: bindings: add new SMP en

[PATCH 1/7] clocksource: mediatek: Don't run event_handler if it is NULL

2015-05-01 Thread Yingjoe Chen
Spurious timer interrupt is noticed in mtk timer and cause kernel crash. In mtk_timer_interrupt(), only run event_handler if it is not NULL. Signed-off-by: Yingjoe Chen --- drivers/clocksource/mtk_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource

[PATCH v2 2/2] arm64: dts: mt8173: Fixup pinctrl nodes

2015-05-01 Thread Yingjoe Chen
The 8173 pinctrl node doesn't follow dts convention. Fix them. Also add a comment to explain pinctrl register usage to make it more clear. Signed-off-by: Yingjoe Chen Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 22 +- 1 file changed, 13

[PATCH v2 1/2] ARM: dts: mt8135: Add pinctrl/GPIO/EINT node for mt8135.

2015-05-01 Thread Yingjoe Chen
From: Hongzhou Yang Patches based on v4.1-rc1. Change according to Matthias' suggestion. - Remove comments on syscfg nodes - Sort nodes by instance address & name. ---8< Add pinctrl,GPIO and EINT node to mt8135.dtsi.

[PATCH v2 1/2] ARM: dts: mt8135: Add pinctrl/GPIO/EINT node for mt8135.

2015-05-01 Thread Yingjoe Chen
From: Hongzhou Yang hongzhou.y...@mediatek.com Patches based on v4.1-rc1. Change according to Matthias' suggestion. - Remove comments on syscfg nodes - Sort nodes by instance address name. ---8 Add pinctrl,GPIO and EINT node to

[PATCH v2 2/2] arm64: dts: mt8173: Fixup pinctrl nodes

2015-05-01 Thread Yingjoe Chen
The 8173 pinctrl node doesn't follow dts convention. Fix them. Also add a comment to explain pinctrl register usage to make it more clear. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com Reviewed-by: Daniel Kurtz djku...@chromium.org --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 22

[PATCH 6/7] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-05-01 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8135 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/boot/dts/mt8135.dtsi

[PATCH 2/7] clocksource: mediatek: Use GPT as sched clock source

2015-05-01 Thread Yingjoe Chen
When cpu is in deep idle, arch timer will stop counting. Setup GPT as sched clock source so it can keep counting in idle. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- drivers/clocksource/mtk_timer.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clocksource

[PATCH 7/7] ARM: dts: mt8127: enable basic SMP bringup for mt8127

2015-05-01 Thread Yingjoe Chen
Add arch timer node to enable arch-timer support. MT8127 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This also set cpu enable-method to enable SMP. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/boot/dts/mt8127.dtsi

[PATCH 3/7] arm: mediatek: enable gpt6 on boot up to make arch timer working

2015-05-01 Thread Yingjoe Chen
From: Matthias Brugger matthias@gmail.com We enable GTP6 which ungates the arch timer clock. In the future this should be done in the bootloader. Signed-off-by: Matthias Brugger matthias@gmail.com Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/mach-mediatek

[PATCH 5/7] ARM: mediatek: add smp bringup code

2015-05-01 Thread Yingjoe Chen
Add support for booting secondary CPUs on mt6589, mt8127 and mt8135. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm/mach-mediatek/Makefile | 3 + arch/arm/mach-mediatek/platsmp.c | 145 +++ 2 files changed, 148 insertions(+) create mode

[PATCH 4/7] devicetree: bindings: add new SMP enable method Mediatek SoC

2015-05-01 Thread Yingjoe Chen
This commit add new cpu enable method mediatek,mt65xx-smp and mediatek,mt81xx-tz-smp. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b

[PATCH 0/7] Add SMP bringup support for mt65xx socs

2015-05-01 Thread Yingjoe Chen
and mt8127. Matthias Brugger (1): arm: mediatek: enable gpt6 on boot up to make arch timer working Yingjoe Chen (6): clocksource: mediatek: Don't run event_handler if it is NULL clocksource: mediatek: Use GPT as sched clock source devicetree: bindings: add new SMP enable method Mediatek SoC ARM

[PATCH 1/7] clocksource: mediatek: Don't run event_handler if it is NULL

2015-05-01 Thread Yingjoe Chen
Spurious timer interrupt is noticed in mtk timer and cause kernel crash. In mtk_timer_interrupt(), only run event_handler if it is not NULL. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- drivers/clocksource/mtk_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH 1/2] ARM: dts: mt8135: Add pinctrl/GPIO/EINT node for mt8135.

2015-04-28 Thread Yingjoe Chen
ode to mt8135.dtsi. Signed-off-by: Yingjoe Chen Signed-off-by: Hongzhou Yang Acked-by: Linus Walleij --- arch/arm/boot/dts/mt8135-pinfunc.h | 1302 arch/arm/boot/dts/mt8135.dtsi | 31 + 2 files changed, 1333 insertions(+) create mode 100644 arch/arm/b

[PATCH 2/2] arm64: dts: mt8173: Fixup pinctrl nodes

2015-04-28 Thread Yingjoe Chen
The 8173 pinctrl node doesn't follow dts convention. Fix them. Also add a comment to explain pinctrl register usage to make it more clear. Signed-off-by: Yingjoe Chen --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git

[PATCH 1/2] ARM: dts: mt8135: Add pinctrl/GPIO/EINT node for mt8135.

2015-04-28 Thread Yingjoe Chen
pinctrl,GPIO and EINT node to mt8135.dtsi. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com Acked-by: Linus Walleij linus.wall...@linaro.org --- arch/arm/boot/dts/mt8135-pinfunc.h | 1302 arch/arm/boot

[PATCH 2/2] arm64: dts: mt8173: Fixup pinctrl nodes

2015-04-28 Thread Yingjoe Chen
The 8173 pinctrl node doesn't follow dts convention. Fix them. Also add a comment to explain pinctrl register usage to make it more clear. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 + 1 file changed, 9 insertions(+), 4

[tip:timers/core] time: Remove nonexistent function prototype

2015-04-22 Thread tip-bot for Yingjoe Chen
Commit-ID: 4796cf9b02b5bea141632e21d64556a7eb883a65 Gitweb: http://git.kernel.org/tip/4796cf9b02b5bea141632e21d64556a7eb883a65 Author: Yingjoe Chen AuthorDate: Fri, 10 Apr 2015 21:55:50 +0800 Committer: Thomas Gleixner CommitDate: Wed, 22 Apr 2015 12:03:39 +0200 time: Remove

[tip:timers/core] time: Remove nonexistent function prototype

2015-04-22 Thread tip-bot for Yingjoe Chen
Commit-ID: 4796cf9b02b5bea141632e21d64556a7eb883a65 Gitweb: http://git.kernel.org/tip/4796cf9b02b5bea141632e21d64556a7eb883a65 Author: Yingjoe Chen yingjoe.c...@mediatek.com AuthorDate: Fri, 10 Apr 2015 21:55:50 +0800 Committer: Thomas Gleixner t...@linutronix.de CommitDate: Wed, 22 Apr

Re: [PATCH] ARM: alignment: Use is_wide_instruction() to check wide instruction

2015-04-13 Thread Yingjoe Chen
On Mon, 2015-04-13 at 13:48 +0100, Dave Martin wrote: > On Fri, Apr 10, 2015 at 10:05:41PM +0800, Yingjoe Chen wrote: > > > > I first notice the comment is incorrect, then I realize there's another > > macro which do exactly the same thing. > > Tested with han

Re: [PATCH] ARM: alignment: Use is_wide_instruction() to check wide instruction

2015-04-13 Thread Yingjoe Chen
On Mon, 2015-04-13 at 13:48 +0100, Dave Martin wrote: On Fri, Apr 10, 2015 at 10:05:41PM +0800, Yingjoe Chen wrote: I first notice the comment is incorrect, then I realize there's another macro which do exactly the same thing. Tested with hand written userspace program with a few wide

Re: [PATCH 00/15] iommu: Move domain allocation into drivers

2015-03-23 Thread Yingjoe Chen
On Mon, 2015-03-23 at 12:49 +0100, Joerg Roedel wrote: > Hi Yingjoe, > > On Fri, Mar 20, 2015 at 05:24:18PM +0800, Yingjoe Chen wrote: > > What's the status of this patchset? > > While porting MTK IOMMU driver[1], we need to use a global variable > > because we ne

Re: [PATCH 00/15] iommu: Move domain allocation into drivers

2015-03-23 Thread Yingjoe Chen
On Mon, 2015-03-23 at 12:49 +0100, Joerg Roedel wrote: Hi Yingjoe, On Fri, Mar 20, 2015 at 05:24:18PM +0800, Yingjoe Chen wrote: What's the status of this patchset? While porting MTK IOMMU driver[1], we need to use a global variable because we need to do dma_alloc_coherent in our

Re: [PATCH 00/15] iommu: Move domain allocation into drivers

2015-03-20 Thread Yingjoe Chen
On Tue, 2015-01-27 at 00:51 +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Hi, > > here is patch-set to replace the existing domain_init and > domain_destroy iommu-ops with the new domain_alloc and > domain_free callbacks > > The new callbacks move the allocation of iommu domains into >

Re: [PATCH 00/15] iommu: Move domain allocation into drivers

2015-03-20 Thread Yingjoe Chen
On Tue, 2015-01-27 at 00:51 +0100, Joerg Roedel wrote: From: Joerg Roedel jroe...@suse.de Hi, here is patch-set to replace the existing domain_init and domain_destroy iommu-ops with the new domain_alloc and domain_free callbacks The new callbacks move the allocation of iommu domains

[PATCH v3] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-13 Thread Yingjoe Chen
_MT8135 selectable when COMPILE_TEST is enabled. Signed-off-by: Yingjoe Chen --- drivers/pinctrl/mediatek/Kconfig | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig index 49b8649..5983cf5 100644 --- a/drivers/

Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-13 Thread Yingjoe Chen
Hi Arnd, Thanks for your suggestion. On Mon, 2015-03-09 at 21:36 +0100, Arnd Bergmann wrote: > On Friday 06 March 2015 14:24:51 Yingjoe Chen wrote: > > Linus, > > This one make PINCTRL_MT8173 option user selectable and is based on > > mtk-staging in your tree. If you thi

Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-13 Thread Yingjoe Chen
Hi Arnd, Thanks for your suggestion. On Mon, 2015-03-09 at 21:36 +0100, Arnd Bergmann wrote: On Friday 06 March 2015 14:24:51 Yingjoe Chen wrote: Linus, This one make PINCTRL_MT8173 option user selectable and is based on mtk-staging in your tree. If you think this is OK, please applied

[PATCH v3] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-13 Thread Yingjoe Chen
when COMPILE_TEST is enabled. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com --- drivers/pinctrl/mediatek/Kconfig | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig index 49b8649..5983cf5 100644

Re: [PATCH 1/5] soc: mediatek: Add SMI driver

2015-03-10 Thread Yingjoe Chen
On Mon, 2015-03-09 at 22:56 +0100, Arnd Bergmann wrote: > On Monday 09 March 2015 11:26:52 Yingjoe Chen wrote: > > On Fri, 2015-03-06 at 18:48 +0800, yong...@mediatek.com wrote: > > > From: Yong Wu > > > > > > This patch add SMI(Smart Multi

Re: [PATCH 1/5] soc: mediatek: Add SMI driver

2015-03-10 Thread Yingjoe Chen
On Mon, 2015-03-09 at 18:59 +0100, Paul Bolle wrote: > Hi Yong, > > Yong Wu schreef op ma 09-03-2015 om 19:57 [+0800]: > > On Fri, 2015-03-06 at 12:30 +0100, Paul Bolle wrote: > > > On Fri, 2015-03-06 at 18:48 +0800, yong...@mediatek.com wrote: > > > > --- a/drivers/soc/mediatek/Kconfig > > > >

Re: [PATCH 1/5] soc: mediatek: Add SMI driver

2015-03-10 Thread Yingjoe Chen
On Mon, 2015-03-09 at 18:59 +0100, Paul Bolle wrote: Hi Yong, Yong Wu schreef op ma 09-03-2015 om 19:57 [+0800]: On Fri, 2015-03-06 at 12:30 +0100, Paul Bolle wrote: On Fri, 2015-03-06 at 18:48 +0800, yong...@mediatek.com wrote: --- a/drivers/soc/mediatek/Kconfig +++

Re: [PATCH 1/5] soc: mediatek: Add SMI driver

2015-03-10 Thread Yingjoe Chen
On Mon, 2015-03-09 at 22:56 +0100, Arnd Bergmann wrote: On Monday 09 March 2015 11:26:52 Yingjoe Chen wrote: On Fri, 2015-03-06 at 18:48 +0800, yong...@mediatek.com wrote: From: Yong Wu yong...@mediatek.com This patch add SMI(Smart Multimedia Interface) driver. This driver

Re: [PATCH 2/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-03-09 Thread Yingjoe Chen
On Tue, 2015-03-10 at 02:00 +0900, Tomasz Figa wrote: > On Mon, Mar 9, 2015 at 11:46 PM, Yingjoe Chen > wrote: > > On Mon, 2015-03-09 at 20:11 +0900, Tomasz Figa wrote: > > <...> > >> > +/* > >> > + * pimudev is a global var for dma_allo

Re: [PATCH 2/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-03-09 Thread Yingjoe Chen
On Mon, 2015-03-09 at 20:11 +0900, Tomasz Figa wrote: <...> > > +/* > > + * pimudev is a global var for dma_alloc_coherent. > > + * It is not accepatable, we will delete it if "domain_alloc" is enabled > > + */ > > +static struct device *pimudev; > > This is indeed not acceptable. Could you

Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-09 Thread Yingjoe Chen
On Fri, 2015-03-06 at 12:05 +0100, Paul Bolle wrote: > On Fri, 2015-03-06 at 14:24 +0800, Yingjoe Chen wrote: > > --- a/drivers/pinctrl/mediatek/Kconfig > > +++ b/drivers/pinctrl/mediatek/Kconfig > > > @@ -8,11 +8,13 @@ config PINCTRL_MTK_COMMON > > se

[PATCH] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-09 Thread Yingjoe Chen
build when COMPILE_TEST is enabled. Signed-off-by: Yingjoe Chen --- drivers/pinctrl/mediatek/Kconfig | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig index 49b8649..0e3a002 100644 --- a/drivers/pinctrl

Re: [PATCH 2/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-03-09 Thread Yingjoe Chen
On Mon, 2015-03-09 at 20:11 +0900, Tomasz Figa wrote: ... +/* + * pimudev is a global var for dma_alloc_coherent. + * It is not accepatable, we will delete it if domain_alloc is enabled + */ +static struct device *pimudev; This is indeed not acceptable. Could you replace

Re: [PATCH 2/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-03-09 Thread Yingjoe Chen
On Tue, 2015-03-10 at 02:00 +0900, Tomasz Figa wrote: On Mon, Mar 9, 2015 at 11:46 PM, Yingjoe Chen yingjoe.c...@mediatek.com wrote: On Mon, 2015-03-09 at 20:11 +0900, Tomasz Figa wrote: ... +/* + * pimudev is a global var for dma_alloc_coherent. + * It is not accepatable, we

Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-09 Thread Yingjoe Chen
On Fri, 2015-03-06 at 12:05 +0100, Paul Bolle wrote: On Fri, 2015-03-06 at 14:24 +0800, Yingjoe Chen wrote: --- a/drivers/pinctrl/mediatek/Kconfig +++ b/drivers/pinctrl/mediatek/Kconfig @@ -8,11 +8,13 @@ config PINCTRL_MTK_COMMON select OF_GPIO config PINCTRL_MT8135

<    1   2   3   4   5   6   7   >