Re: Add mt6755 basic chip support

2016-06-19 Thread Mars Cheng
On Tue, 2016-06-14 at 10:20 +0800, Mars Cheng wrote: > This patch adds basic support for Mediatek's new 8-core chip, mt6755. > It is also named as Helio P10. It is based on 4.7-rc1 > > Mars Cheng (2): > Document: DT: Add bindings for mediatek MT6755 SoC Platform > ar

Re: [PATCH 2/2] arm64: dts: mediatek: add mt6755 support

2016-06-20 Thread Mars Cheng
On Mon, 2016-06-20 at 10:31 +0200, Matthias Brugger wrote: > > On 14/06/16 04:20, Mars Cheng wrote: > > This adds basic chip support for MT6755 SoC. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm64/boot/dts/mediatek/Makefile |1 + >

Re: [PATCH 2/2] arm64: dts: mediatek: add mt6755 support

2016-06-20 Thread Mars Cheng
On Mon, 2016-06-20 at 19:09 +0200, Matthias Brugger wrote: > >>> + uart_clk: dummy26m { > >>> + compatible = "fixed-clock"; > >>> + clock-frequency = <2600>; > >>> + #clock-cells = <0>; > >>> + }; > >>> + > >> > >> We can do that, but I would prefer to see the clock dri

[PATCH 1/4] Document: DT: Add bindings for mediatek MT6797 SoC Platform

2016-09-08 Thread Mars Cheng
This adds DT binding documentation for Mediatek MT6797. Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt |4 .../bindings/arm/mediatek/mediatek,apmixedsys.txt |1 + .../bindings/arm/mediatek/mediatek,imgsys.txt |1 + .../bindings/arm

[PATCH 3/4] arm64: dts: mediatek: add mt6797 support

2016-09-08 Thread Mars Cheng
This adds basic chip support for MT6797 SoC. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6797-evb.dts | 36 + arch/arm64/boot/dts/mediatek/mt6797.dtsi| 193 +++ 3 files changed, 230

[PATCH 4/4] clk: mediatek: Add MT6797 clock support

2016-09-08 Thread Mars Cheng
Add MT6797 clock support, include topckgen, apmixedsys, infracfg and subsystem clocks. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/mt6797.dtsi | 66 ++- drivers/clk/mediatek/Kconfig | 36 ++ drivers/clk/mediatek/Makefile|5 + drivers/clk/mediatek

[PATCH 0/4] Add MT6797 SoC basic support

2016-09-08 Thread Mars Cheng
This patch set adds basic chip support for mediatek's first 10-core chip, X20, also known as MT6797. - Based on 4.8-rc1 - Based on the MT2701 patch by Erin Lo[1] - Modify irq-mtk-sysirq to support 2 base address [1] https://lkml.org/lkml/2016/8/22/128 Mars Cheng (4): Document: DT

[PATCH 2/4] irqchip: mtk-sysirq: support second intpol base

2016-09-08 Thread Mars Cheng
Original mtk-sysirq does not support multiple intpol bases. However, there are some mtk chips need it. Signed-off-by: Mars Cheng --- drivers/irqchip/irq-mtk-sysirq.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/drivers/irqchip/irq

Re: [PATCH 3/4] arm64: dts: mediatek: add mt6797 support

2016-09-08 Thread Mars Cheng
On Thu, 2016-09-08 at 14:15 +0100, Marc Zyngier wrote: > On 08/09/16 11:49, Mars Cheng wrote: > > This adds basic chip support for MT6797 SoC. > > > > Signed-off-by: Mars Cheng > > --- [...] > > > + gic: interrupt-controller@1900 { >

Re: [PATCH 1/4] Document: DT: Add bindings for mediatek MT6797 SoC Platform

2016-09-08 Thread Mars Cheng
Hi Marc Thanks for your review. the response inlined. On Thu, 2016-09-08 at 13:37 +0100, Marc Zyngier wrote: > On 08/09/16 11:49, Mars Cheng wrote: > > This adds DT binding documentation for Mediatek MT6797. > > > > Signed-off-by: Mars Cheng > > --- [...] > >

Re: [PATCH 0/5] Add clk and scpsys support for MT6755

2017-08-15 Thread Mars Cheng
Hi Rob, Stephen, Matthias gentle ping. Thanks. On Tue, 2017-08-08 at 16:13 +0800, Mars Cheng wrote: > Mars Cheng (3): > clk: mediatek: add mt6755 clock ID > clk: mediatek: add clk support for MT6755 > soc: mediatek: add MT6755 scpsys support > > wendell.lin (2): >

Re: [PATCH] arm64: dts: Delete unused dummy clocks

2017-06-20 Thread Mars Cheng
Hi Matthias On Tue, 2017-06-20 at 12:28 +0200, Matthias Brugger wrote: > After adding the clock subsystem to the SOC, the dummy > clocks clk26m and clk32k are not longer needed. Delete them. > > Signed-off-by: Matthias Brugger > --- > arch/arm64/boot/dts/mediatek/mt6797.dtsi | 14 --

Re: [PATCH v4 1/1] arm64: dts: mediatek: add mt6765 support

2018-07-11 Thread Mars Cheng
Hi Matthias On Tue, 2018-07-10 at 12:52 +0200, Matthias Brugger wrote: > > On 10/07/18 01:04, Mars Cheng wrote: [...] > > pmic/pwrap/i2c/rtc/kpd/spi/wdt/cqdma/auxadc/pwm/cmdq/disp. We have > > dedicated owners to handle them and will cowork tightly with members to > > ma

[PATCH v4 1/1] arm64: dts: mediatek: add mt6765 support

2018-07-08 Thread Mars Cheng
This adds basic chip support for MT6765 SoC. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 ++ arch/arm64/boot/dts/mediatek/mt6765.dtsi| 156 +++ 3 files changed, 190

[PATCH v4 0/1] Add basic SoC support for mt6765

2018-07-08 Thread Mars Cheng
t patchs 2. fix mt6765.dtsi warnings with W=12 3. remove uncessary PPI affinity for timer 4. add gicc base for gic dt node Changes in V2: 1. fix clk properties in uart dts node 2. fix typo in submit title 3. add simple-bus in mt6765.dtsi 4. use correct SPDX license format Mars Cheng (1):

Re: [PATCH v4 1/1] arm64: dts: mediatek: add mt6765 support

2018-07-09 Thread Mars Cheng
Hi Matthias/Marc On Mon, 2018-07-09 at 17:43 +0100, Marc Zyngier wrote: > On 09/07/18 11:20, Matthias Brugger wrote: > > > > > > On 09/07/18 08:05, Mars Cheng wrote: > >> This adds basic chip support for MT6765 SoC. > >> > >> Signed-off-by

[PATCH v2 2/2] arm64: dts: mediatek: add mt6765 support

2018-06-25 Thread Mars Cheng
This adds basic chip support for MT6765 SoC. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 ++ arch/arm64/boot/dts/mediatek/mt6765.dtsi| 158 +++ 3 files changed, 192

[PATCH 0/2] Add basic SoC support for MT6765

2018-06-25 Thread Mars Cheng
This patch adds basic SoC support for Mediatek's new 8-core SoC, MT6765, which is mainly for smartphone application. Change in V2: 1. fix clk properties in uart dts node 2. fix typo in submit title 3. add simple-bus in mt6765.dtsi 4. use correct SPDX license format Mars Cheng (2):

[PATCH v2 1/2] dt-bindings: mediatek: Add bindings for mediatek MT6765 Platform

2018-06-25 Thread Mars Cheng
This adds dt-binding documentation for Mediatek MT6765. Only include very basic items, gic, uart timer and cpu. Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt |4 .../interrupt-controller/mediatek,sysirq.txt |1 + .../devicetree/bindings

Re: [PATCH v2 2/2] arm64: dts: mediatek: add mt6765 support

2018-06-26 Thread Mars Cheng
Hi Marc On Tue, 2018-06-26 at 08:53 +0100, Marc Zyngier wrote: > On Tue, 26 Jun 2018 03:04:06 +0100, > Mars Cheng wrote: > > > > This adds basic chip support for MT6765 SoC. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm64/boot/dts/mediat

Re: [PATCH 2/2] arm64: dts: mediatek: add mt6765 support

2018-06-19 Thread Mars Cheng
Hi Matthias On Fri, 2018-06-15 at 10:54 +0200, Matthias Brugger wrote: > > On 13/06/18 00:40, Mars Cheng wrote: > > + > > + uart0: serial@11002000 { > > + compatible = "mediatek,mt6765-uart", > > +"mediatek,mt6577

Re: [PATCH v2 1/2] dt-bindings: mediatek: Add bindings for mediatek MT6765 Platform

2018-07-03 Thread Mars Cheng
Hi Rob On Tue, 2018-07-03 at 16:11 -0600, Rob Herring wrote: > On Tue, Jun 26, 2018 at 10:04:05AM +0800, Mars Cheng wrote: > > This adds dt-binding documentation for Mediatek MT6765. Only > > include very basic items, gic, uart timer and cpu. > > > >

Re: [PATCH v2 2/2] arm64: dts: mediatek: add mt6765 support

2018-07-03 Thread Mars Cheng
Hi Rob On Mon, 2018-07-02 at 15:50 -0600, Rob Herring wrote: > On Mon, Jun 25, 2018 at 8:04 PM Mars Cheng wrote: > > > > This adds basic chip support for MT6765 SoC. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm64/boot/dts/mediatek/Makefile

[PATCH 0/4] Add basic SoC support for mt6765

2018-07-03 Thread Mars Cheng
in V2: 1. fix clk properties in uart dts node 2. fix typo in submit title 3. add simple-bus in mt6765.dtsi 4. use correct SPDX license format Mars Cheng (4): dt-bindings: mediatek: add support for mt6765 reference board dt-bindings: mtk-uart: add mt6765 uart bindings dt-bindings: inte

[PATCH v3 2/4] dt-bindings: mtk-uart: add mt6765 uart bindings

2018-07-03 Thread Mars Cheng
Add documentation for mt6765 uart dt-bindings Signed-off-by: Mars Cheng --- .../devicetree/bindings/serial/mtk-uart.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bindings/serial/mtk-uart.txt

[PATCH v3 1/4] dt-bindings: mediatek: add support for mt6765 reference board

2018-07-03 Thread Mars Cheng
Update binding document for mt6765 reference board Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt |4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm/mediatek.txt

[PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support

2018-07-03 Thread Mars Cheng
This adds basic chip support for MT6765 SoC. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 ++ arch/arm64/boot/dts/mediatek/mt6765.dtsi| 155 +++ 3 files changed, 189

[PATCH v3 3/4] dt-bindings: interrupt-controller: add binding for mt6765

2018-07-03 Thread Mars Cheng
Update the dt-binding documentation of sysirq for mt6765 Signed-off-by: Mars Cheng --- .../interrupt-controller/mediatek,sysirq.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,sysirq.txt b/Documentation

Re: [PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support

2018-07-04 Thread Mars Cheng
Hi Marc On Wed, 2018-07-04 at 08:35 +0100, Marc Zyngier wrote: > On 04/07/18 02:52, Mars Cheng wrote: > > This adds basic chip support for MT6765 SoC. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm64/boot/dts/mediatek/Makefile |1 + > &g

Re: [PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support

2018-07-04 Thread Mars Cheng
Hi Marc On Wed, 2018-07-04 at 08:59 +0100, Marc Zyngier wrote: > On 04/07/18 08:47, Mars Cheng wrote: > > Hi Marc > > > > On Wed, 2018-07-04 at 08:35 +0100, Marc Zyngier wrote: > >> On 04/07/18 02:52, Mars Cheng wrote: > >>> This adds basic chip support

[PATCH 2/2] arm64: dts: mediatek: add mt6765 support

2018-06-12 Thread Mars Cheng
This adds basic chip support for MT6765 SoC. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 39 +++ arch/arm64/boot/dts/mediatek/mt6765.dtsi| 148 +++ 3 files changed, 188

Add basic SoC support for MT6765

2018-06-12 Thread Mars Cheng
This patch adds basic SoC support for Mediatek's new 8-core SoC, MT6765, which is mainly for smartphone application. We are going to add more drivers of it in the next weeks. Mars Cheng (2): ndings: mediatek: Add bindings for mediatek MT6765 Platform arm64: dts: mediatek: add m

[PATCH 1/2] ndings: mediatek: Add bindings for mediatek MT6765 Platform

2018-06-12 Thread Mars Cheng
This adds dt-binding documentation for Mediatek MT6765. Only include very basic items, gic, uart timer and cpu. Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt |4 .../interrupt-controller/mediatek,sysirq.txt |1 + .../devicetree/bindings

Re: [PATCH 2/2] arm64: dts: mediatek: add mt6765 support

2018-06-12 Thread Mars Cheng
Hi Rob > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt6765-evb.dts > > @@ -0,0 +1,39 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2018 MediaTek Inc. > > + * Author: Mars.C > > + * > > + * This program is free software; you can redistribute it and/or modify

Re: [PATCH 1/2] ndings: mediatek: Add bindings for mediatek MT6765 Platform

2018-06-12 Thread Mars Cheng
On Tue, 2018-06-12 at 18:51 -0600, Rob Herring wrote: > On Tue, Jun 12, 2018 at 4:40 PM, Mars Cheng wrote: > > This adds dt-binding documentation for Mediatek MT6765. Only > > include very basic items, gic, uart timer and cpu. > > Check your subject... Hi Rob oops, my bad

Re: [PATCH v2 0/3] Mark clocks as critical for MT6797

2019-01-07 Thread Mars Cheng
? > > > > > > > My fault, I'll resend 3/3 with the comments you made. Added Kevin-CW now... > > I never saw anything on the list. Did I miss anything? I have the first > two patches in my local queue still but I never merged it to clk-next > because nobody replied or resent anything. Please resend the whole > series because I've lost track of what's going on now. Sorry. > > sorry for late response. Kelvin-CW and I are responsible for 6797 clk.You have my Ack: Acked-by: Mars Cheng Thanks. > ___ > Linux-mediatek mailing list > linux-media...@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek

[PATCH v5 02/11] dt-bindings: mediatek: Add smi dts binding for Mediatek MT6765 SoC

2018-07-17 Thread Mars Cheng
This patch adds MT6765 smi binding document Signed-off-by: Mars Cheng Signed-off-by: Owen Chen --- .../memory-controllers/mediatek,smi-common.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.txt b

[PATCH v5 05/11] clk: mediatek: add mt6765 clock IDs

2018-07-17 Thread Mars Cheng
Signed-off-by: Mars Cheng Signed-off-by: Owen Chen --- include/dt-bindings/clock/mt6765-clk.h | 313 1 file changed, 313 insertions(+) create mode 100644 include/dt-bindings/clock/mt6765-clk.h diff --git a/include/dt-bindings/clock/mt6765-clk.h b/include/dt

[PATCH v5 10/11] clk: mediatek: Add MT6765 clock support

2018-07-17 Thread Mars Cheng
From: Owen Chen Add MT6765 clock support, include topckgen, apmixedsys, infracfg, and subsystem clocks. Signed-off-by: Owen Chen Signed-off-by: Mars Cheng --- drivers/clk/mediatek/Kconfig | 87 +++ drivers/clk/mediatek/Makefile|7 + drivers/clk/mediatek/clk

[PATCH v5 08/11] clk: mediatek: fix pll setting

2018-07-17 Thread Mars Cheng
From: Owen Chen 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, add a variable to indicate this change and backward-compatible. 2. fmin: The pll freqency lower-bound is vary from 1GMhz to 1.5Ghz, add a variable to indicate platform-dependent. Signed-off-by: Owen Chen

[PATCH v5 11/11] arm64: dts: mediatek: add mt6765 support

2018-07-17 Thread Mars Cheng
This adds basic chip support for MT6765 SoC. Signed-off-by: Mars Cheng Signed-off-by: Owen Chen Acked-by: Marc Zyngier --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 arch/arm64/boot/dts/mediatek/mt6765.dtsi| 253

[PATCH v5 09/11] clk: mediatek: add new clkmux register API

2018-07-17 Thread Mars Cheng
From: Owen Chen MT6765 add "set/clr" register for each clkmux setting, and one update register to trigger value change. It is designed to prevent read-modify-write racing issue. The sw design need to add a new API to handle this hw change with a new mtk_clk_mux/mtk_clk_upd struct in new file "clk

[PATCH v5 06/11] soc: mediatek: add new flow for mtcmos power.

2018-07-17 Thread Mars Cheng
. Therefore we add a set/clr APIs with more customize arguments. Signed-off-by: Owen Chen Signed-off-by: Mars Cheng --- drivers/soc/mediatek/Makefile |2 +- drivers/soc/mediatek/mtk-infracfg.c | 178 +++--- drivers/soc/mediatek/mtk-scpsys-ext.c | 405

[PATCH v5 01/11] dt-bindings: clock: mediatek: document clk bindings for Mediatek MT6765 SoC

2018-07-17 Thread Mars Cheng
This patch adds the binding documentation for apmixedsys, audsys, camsys, imgsys, infracfg, mipi0a, topckgen, vcodecsys Signed-off-by: Mars Cheng Signed-off-by: Owen Chen --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt |1 + .../bindings/arm/mediatek/mediatek,audsys.txt |1

[PATCH v5 0/11] Add basic SoC support for mt6765

2018-07-17 Thread Mars Cheng
nse format Mars Cheng (7): dt-bindings: clock: mediatek: document clk bindings for Mediatek MT6765 SoC dt-bindings: mediatek: Add smi dts binding for Mediatek MT6765 SoC dt-bindings: mediatek: add MT6765 power dt-bindings soc: mediatek: add MT6765 scpsys support clk: mediatek: add mt6765

[PATCH v5 03/11] dt-bindings: mediatek: add MT6765 power dt-bindings

2018-07-17 Thread Mars Cheng
This adds power dt-bindings for MT6765 Signed-off-by: Mars Cheng Signed-off-by: Owen Chen --- .../devicetree/bindings/soc/mediatek/scpsys.txt|6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt b/Documentation/devicetree

[PATCH v5 04/11] soc: mediatek: add MT6765 scpsys support

2018-07-17 Thread Mars Cheng
This adds scpsys support for MT6765 Signed-off-by: Mars Cheng Signed-off-by: Owen Chen --- drivers/soc/mediatek/mtk-scpsys.c| 88 ++ include/dt-bindings/power/mt6765-power.h | 14 + 2 files changed, 102 insertions(+) create mode 100644 include/dt

[PATCH v5 07/11] soc: mediatek: add MT6765 subdomain support

2018-07-17 Thread Mars Cheng
add extend data, parent_n for domain-subdomain corresponse. Signed-off-by: Mars Cheng Signed-off-by: Owen Chen --- drivers/soc/mediatek/mtk-scpsys-ext.c | 132 - 1 file changed, 131 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-scpsys

Re: [PATCH v5 05/11] clk: mediatek: add mt6765 clock IDs

2018-07-17 Thread Mars Cheng
Hi Matthias On Tue, 2018-07-17 at 12:24 +0200, Matthias Brugger wrote: > > On 17/07/18 10:52, Mars Cheng wrote: > > Signed-off-by: Mars Cheng > > Signed-off-by: Owen Chen > > Please provide a commit message. > > Thanks, > Matthias Got it, i

Re: [PATCH v5 04/11] soc: mediatek: add MT6765 scpsys support

2018-07-18 Thread Mars Cheng
Hi Sean On Tue, 2018-07-17 at 21:00 +0800, Sean Wang wrote: > On Tue, 2018-07-17 at 16:52 +0800, Mars Cheng wrote: > > This adds scpsys support for MT6765 > > > > it looks like 4/11 have to depend on 6/11 and 7/11 to get a full function on > scpsys for MT6765. > &

Re: [Patch 0/2] Add mt6580 basic chip support

2015-06-14 Thread Mars Cheng
Hi all May I know if I miss anything to let this patch be reviewed? I will do my best to fix the problems. Thanks a lot. On Wed, 2015-06-03 at 16:18 +0800, Mars Cheng wrote: > This series add support to mediatek's new SoC, mt6580, a 4-core CA7. > Only basic I/O, including inter

Re: [PATCH 2/2] ARM: dts: mediatek: add mt6580 basic support

2015-06-24 Thread Mars Cheng
On Tue, 2015-06-23 at 12:29 -0700, Matthias Brugger wrote: > On Wednesday, June 03, 2015 04:18:53 PM Mars Cheng wrote: > > This enables mt6580 basic support: interrupt, timer & uart. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm/boot/dts/Makefile

Re: [PATCH 2/2] ARM: dts: mediatek: add mt6580 basic support

2015-06-24 Thread Mars Cheng
On Tue, 2015-06-23 at 21:45 +0200, Matthias Brugger wrote: > > + soc { > > Please drop the soc node as well and just add the components directly. > > Thanks, > Matthias May I know the reason to remove the soc node? I follow other .dtsi to add this node. Thanks. -- To unsubscribe from thi

Re: [PATCH 2/2] ARM: dts: mediatek: add mt6580 basic support

2015-06-24 Thread Mars Cheng
On Wed, 2015-06-24 at 22:25 +0200, Matthias Brugger wrote: > On Wednesday, June 24, 2015 07:59:13 PM Mars Cheng wrote: > > On Tue, 2015-06-23 at 21:45 +0200, Matthias Brugger wrote: > > > > + soc { > > > > > > Please drop the soc node as we

[Patch 0/2] Add mt6580 basic chip support

2015-06-03 Thread Mars Cheng
This series add support to mediatek's new SoC, mt6580, a 4-core CA7. Only basic I/O, including interrupt, timer & uart. Mars Cheng (2): Document: DT: Add bindings for mediatek MT6580 SoC Platform ARM: dts: mediatek: add mt6580 basic support Documentation/devicetree/bindings/arm/med

[PATCH 1/2] Document: DT: Add bindings for mediatek MT6580 SoC Platform

2015-06-03 Thread Mars Cheng
This adds a DT binding documentation for the MT6580 SoC from Mediatek. Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings

[PATCH 2/2] ARM: dts: mediatek: add mt6580 basic support

2015-06-03 Thread Mars Cheng
This enables mt6580 basic support: interrupt, timer & uart. Signed-off-by: Mars Cheng --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/mt6580-evbp1.dts | 34 ++ arch/arm/boot/dts/mt6580.dtsi | 130 + 3 files changed,

Re: [PATCH v4 3/3] clk: mediatek: Mark bus and DRAM related clocks as critical

2019-02-27 Thread Mars Cheng
Hi Stephen On Tue, 2019-02-26 at 09:55 -0800, Stephen Boyd wrote: > Quoting matthias@kernel.org (2019-02-14 08:32:42) > > From: Jasper Mattsson > > > > Currently, DRAM-related clocks are not marked with CLK_IS_CRITICAL > > for MT6797. This causes memory corruption when the system is > > boot

Re: [PATCH v2 0/2] Add mt6795 basic chip support

2015-07-22 Thread Mars Cheng
On Tue, 2015-07-14 at 14:58 +0800, Mars Cheng wrote: > This patch adds basic chip support for Mediatek 8-core chip, mt6795. > It is also named as Helio X10. It is based on: > 1. 4.2-rc1 > 2. [PATCH v4 0/2] Add mt6580 basic chip support > Hi all Need anything to get this patch rev

[PATCH 0/2] Add mt6795 basic chip support

2015-07-08 Thread Mars Cheng
modifications too. To cleanly apply this patch, please apply mt6580 patch set first. Mars Cheng (2): Document: DT: Add bindings for mediatek MT6795 SoC Platform arm64: dts: mediatek: add mt6795 support Documentation/devicetree/bindings/arm/mediatek.txt | 9 +- .../bindings/arm/mediatek/mediatek

[PATCH 1/2] Document: DT: Add bindings for mediatek MT6795 SoC Platform

2015-07-08 Thread Mars Cheng
This adds DT binding documentation for Mediatek MT6795. Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt | 9 +++-- .../devicetree/bindings/arm/mediatek/mediatek,sysirq.txt | 3 ++- Documentation/devicetree/bindings/serial/mtk-uart.txt

[PATCH 2/2] arm64: dts: mediatek: add mt6795 support

2015-07-08 Thread Mars Cheng
This adds basic chip support for MT6795 SoC Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6795-evb.dts | 34 ++ arch/arm64/boot/dts/mediatek/mt6795.dtsi| 164 3 files changed, 199

Re: [PATCH 2/2] arm64: dts: mediatek: add mt6795 support

2015-07-08 Thread Mars Cheng
> > + chosen { > > + bootargs = "console=ttyS0,921600n8 earlyprintk"; > > PLease get rid of bootargs here; earlyprintk doesn't do anything on > arm64 (it's earlycon these days), and you can specify the serial > configuration in stdout-path, so please use that instead. > Got it. Will r

[PATCH v2 1/2] Document: DT: Add bindings for mediatek MT6580 SoC Platform

2015-06-30 Thread Mars Cheng
This adds a DT binding documentation for the MT6580 SoC from Mediatek. Change-Id: I608738d330d356291b581203befcfe69c3a846c1 Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 0/2] Add mt6580 basic chip support

2015-06-30 Thread Mars Cheng
This patch add basic support for Mediatek's new 4-core chip, mt6580. Change in v2: 1. Use stdout-path in device tree to indicate console 2. Remove board-specific bootargs Mars Cheng (2): Document: DT: Add bindings for mediatek MT6580 SoC Platform ARM: dts: mediatek: add 6580 su

[PATCH v2 2/2] ARM: dts: mediatek: add 6580 support

2015-06-30 Thread Mars Cheng
This adds basic chip support for Mediatek 6580. Change-Id: Ic5c93eb5d1e6e23503dabd28d41c30a7f02e9c18 Signed-off-by: Mars Cheng --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/mt6580-evbp1.dts | 35 +++ arch/arm/boot/dts/mt6580.dtsi | 125

Re: [PATCH 2/2] ARM: dts: mediatek: add mt6580 basic support

2015-07-01 Thread Mars Cheng
Hi Matthias May I double confirm with you that soc node is MUST removed? If yes, we will upstream dtsi with this format for other new chips. Thanks. On Thu, 2015-06-25 at 08:15 +0800, Mars Cheng wrote: > On Wed, 2015-06-24 at 22:25 +0200, Matthias Brugger wrote: > > On Wednesday, June

[PATCH 1/1] arm64: Use _rcuidle for smp_cross_call() tracepoints

2019-02-12 Thread Mars Cheng
fix similar issue for aarch64 as the commit 7c64cc0531fa ("arm: Use _rcuidle for smp_cross_call() tracepoints") fixed in aarch32 Signed-off-by: Mars Cheng --- arch/arm64/kernel/smp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/

[PATCH 1/1] tracing: Fix event_trace_printk loss on printk_format.

2019-02-12 Thread Mars Cheng
ted in the sys/kernel/debug/tracing/printk_formats section. We can also refer to commit 3debb0a9ddb1 ("tracing: Fix trace_printk() to print when not using bprintk()")that it had similar issue on path of trace_printk(). Signed-off-by: Andress Kuo Signed-off-by: Mars Cheng --- include/

Re: [PATCH 04/11] pinctrl: mediatek: update pinmux defintions for mt6779

2019-08-21 Thread Mars Cheng
On Wed, 2019-08-21 at 13:50 -0500, Rob Herring wrote: > On Mon, Aug 05, 2019 at 05:11:53PM +0800, Mars Cheng wrote: > > Add devicetree bindings for Mediatek mt6779 SoC Pin Controller. > > checkpatch.pl reports typo in subject. > > Otherwise, > > Reviewed-by: Rob He

Re: [PATCH v2 11/11] arm64: dts: add dts nodes for MT6779

2019-08-21 Thread Mars Cheng
Hi Marc > >>> + soc { > >>> + #address-cells = <2>; > >>> + #size-cells = <2>; > >>> + compatible = "simple-bus"; > >>> + ranges; > >>> + > >>> + gic: interrupt-controller@0c00 { > >>> + compatible = "arm,gic-v3"; > >>> +

[PATCH v2 09/11] clk: mediatek: Add dt-bindings for MT6779 clocks

2019-08-19 Thread Mars Cheng
From: mtk01761 Add MT6779 clock dt-bindings, include topckgen, apmixedsys, infracfg, and subsystem clocks. Signed-off-by: mtk01761 --- include/dt-bindings/clock/mt6779-clk.h | 436 1 file changed, 436 insertions(+) create mode 100644 include/dt-bindings/clock

[PATCH v2 08/11] dt-bindings: mediatek: bindings for MT6779 clk

2019-08-19 Thread Mars Cheng
From: mtk01761 This patch adds the binding documentation for apmixedsys, audiosys, camsys, imgsys, ipesys, infracfg, mfgcfg, mmsys, topckgen, vdecsys, and vencsys for Mediatek MT6779. Signed-off-by: mtk01761 --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt |1 + .../bindings/arm/medi

[PATCH v2 05/11] pinctrl: mediatek: avoid virtual gpio trying to set reg

2019-08-19 Thread Mars Cheng
for virtual gpios, they should not do reg setting and should behave as expected for eint function. Signed-off-by: Mars Cheng --- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 20 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h |1 + drivers/pinctrl/mediatek

[PATCHv2 00/11] Add basic SoC Support for Mediatek MT6779 SoC

2019-08-19 Thread Mars Cheng
This patchset is based on v5.3-rc1. Basic SoC support for the new Mediatek SoC, MT6779, which targets for smartphone. It provides ccf, pinctrl, uart, timer, gic...etc. Change History: v2: 1. add Reviewed-by tags 2. fix checkpatch warnings with strict level v1: first patchset Mars Cheng (8

[PATCH v2 07/11] pinctrl: mediatek: add mt6779 eint support

2019-08-19 Thread Mars Cheng
add driver setting to support mt6779 eint Signed-off-by: Mars Cheng --- drivers/pinctrl/mediatek/pinctrl-mt6779.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6779.c b/drivers/pinctrl/mediatek/pinctrl-mt6779.c index 145bf22..49ff3cc 100644

[PATCH v2 03/11] dt-bindings: irq: mtk,sysirq: add support for mt6779

2019-08-19 Thread Mars Cheng
Add binding documentation of mediatek,sysirq for mt6779 SoC. Signed-off-by: Mars Cheng --- .../interrupt-controller/mediatek,sysirq.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,sysirq.txt b/Documentation

[PATCH v2 01/11] dt-bindings: mediatek: add support for mt6779 reference board

2019-08-19 Thread Mars Cheng
Update binding document for mt6779 reference board Signed-off-by: Mars Cheng Reviewed-by: Rob Herring --- .../devicetree/bindings/arm/mediatek.yaml |4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation

[PATCH v2 10/11] clk: mediatek: Add MT6779 clock support

2019-08-19 Thread Mars Cheng
From: mtk01761 Add MT6779 clock support, include topckgen, apmixedsys, infracfg, and subsystem clocks. Signed-off-by: mtk01761 --- drivers/clk/mediatek/Kconfig | 56 ++ drivers/clk/mediatek/Makefile |9 + drivers/clk/mediatek/clk-mt6779-aud.c | 117 +++ drivers/clk/m

[PATCH v2 02/11] dt-bindings: mtk-uart: add mt6779 uart bindings

2019-08-19 Thread Mars Cheng
Add documentation for mt6779 uart dt-bindings Signed-off-by: Mars Cheng --- .../devicetree/bindings/serial/mtk-uart.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bindings/serial/mtk-uart.txt

[PATCH v2 04/11] pinctrl: mediatek: update pinmux definitions for mt6779

2019-08-19 Thread Mars Cheng
Add devicetree bindings for Mediatek mt6779 SoC Pin Controller. Signed-off-by: Mars Cheng Signed-off-by: Andy Teng --- include/dt-bindings/pinctrl/mt6779-pinfunc.h | 1242 ++ 1 file changed, 1242 insertions(+) create mode 100644 include/dt-bindings/pinctrl/mt6779

[PATCH v2 11/11] arm64: dts: add dts nodes for MT6779

2019-08-19 Thread Mars Cheng
this adds initial MT6779 dts settings fo board support, including cpu, gic, timer, ccf, pinctrl, uart...etc. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile|1 + arch/arm64/boot/dts/mediatek/mt6779-evb.dtsi | 31 arch/arm64/boot/dts/mediatek/mt6779.dts

[PATCH v2 06/11] pinctrl: mediatek: add pinctrl support for MT6779 SoC

2019-08-19 Thread Mars Cheng
This adds MT6779 pinctrl driver based on MediaTek pinctrl-paris core. Signed-off-by: Mars Cheng Signed-off-by: Andy Teng --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt6779.c | 775

Re: [PATCH v2 11/11] arm64: dts: add dts nodes for MT6779

2019-08-19 Thread Mars Cheng
Hi Marc On Mon, 2019-08-19 at 10:40 +0100, Marc Zyngier wrote: > On 19/08/2019 10:21, Mars Cheng wrote: > > this adds initial MT6779 dts settings fo board support, > > including cpu, gic, timer, ccf, pinctrl, uart...etc. > > > > Signed-off-by: Mars Cheng >

[PATCH 02/11] dt-bindings: mtk-uart: add mt6779 uart bindings

2019-08-05 Thread Mars Cheng
Add documentation for mt6779 uart dt-bindings Signed-off-by: Mars Cheng --- .../devicetree/bindings/serial/mtk-uart.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bindings/serial/mtk-uart.txt

[PATCH 01/11] dt-bindings: mediatek: add support for mt6779 reference board

2019-08-05 Thread Mars Cheng
Update binding document for mt6779 reference board Signed-off-by: Mars Cheng --- .../devicetree/bindings/arm/mediatek.yaml |4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH 10/11] clk: mediatek: Add MT6779 clock support

2019-08-05 Thread Mars Cheng
From: Wendell Lin Add MT6779 clock support, include topckgen, apmixedsys, infracfg, and subsystem clocks. Signed-off-by: Wendell Lin --- drivers/clk/mediatek/Kconfig | 56 ++ drivers/clk/mediatek/Makefile |9 + drivers/clk/mediatek/clk-mt6779-aud.c | 125 +++ drivers

[PATCH 04/11] pinctrl: mediatek: update pinmux defintions for mt6779

2019-08-05 Thread Mars Cheng
Add devicetree bindings for Mediatek mt6779 SoC Pin Controller. Signed-off-by: Mars Cheng Signed-off-by: Andy Teng --- include/dt-bindings/pinctrl/mt6779-pinfunc.h | 1242 ++ 1 file changed, 1242 insertions(+) create mode 100644 include/dt-bindings/pinctrl/mt6779

[PATCH 08/11] dt-bindings: mediatek: bindings for MT6779 clk

2019-08-05 Thread Mars Cheng
From: Wendell Lin This patch adds the binding documentation for apmixedsys, audiosys, camsys, imgsys, ipesys, infracfg, mfgcfg, mmsys, topckgen, vdecsys, and vencsys for Mediatek MT6779. Signed-off-by: Wendell Lin --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt |1 + .../bindings/ar

[PATCH 09/11] clk: mediatek: Add dt-bindings for MT6779 clocks

2019-08-05 Thread Mars Cheng
From: Wendell Lin Add MT6779 clock dt-bindings, include topckgen, apmixedsys, infracfg, and subsystem clocks. Signed-off-by: Wendell Lin --- include/dt-bindings/clock/mt6779-clk.h | 436 1 file changed, 436 insertions(+) create mode 100644 include/dt-bindings

[PATCH 06/11] pinctrl: mediatek: add pinctrl support for MT6779 SoC

2019-08-05 Thread Mars Cheng
This adds MT6779 pinctrl driver based on MediaTek pinctrl-paris core. Signed-off-by: Mars Cheng Signed-off-by: Andy Teng --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt6779.c | 775

[PATCH 05/11] pinctrl: mediatek: avoid virtual gpio trying to set reg

2019-08-05 Thread Mars Cheng
for virtual gpios, they should not do reg setting and should behave as expected for eint function. Signed-off-by: Mars Cheng --- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 20 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h |1 + drivers/pinctrl/mediatek

[PATCH 03/11] dt-bindings: irq: mtk,sysirq: add support for mt6779

2019-08-05 Thread Mars Cheng
Add binding documentation of mediatek,sysirq for mt6779 SoC. Signed-off-by: Mars Cheng --- .../interrupt-controller/mediatek,sysirq.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,sysirq.txt b/Documentation

[PATCH 11/11] arm64: dts: add dts nodes for MT6779

2019-08-05 Thread Mars Cheng
this adds initial MT6779 dts settings fo board support, including cpu, gic, timer, ccf, pinctrl, uart...etc. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile|1 + arch/arm64/boot/dts/mediatek/mt6779-evb.dtsi | 99 +++ arch/arm64/boot/dts/mediatek/mt6779

[PATCH 00/11] Add basic SoC Support for Mediatek MT6779 SoC

2019-08-05 Thread Mars Cheng
This patchset is based on v5.3-rc1. Basic SoC support for the new Mediatek SoC, MT6779, which targets for smartphone. It provides ccf, pinctrl, uart, timer, gic...etc. We will also upstream other parts of this SoC very soon. Mars Cheng (8): dt-bindings: mediatek: add support for mt6779

[PATCH 07/11] pinctrl: mediatek: add mt6779 eint support

2019-08-05 Thread Mars Cheng
add driver setting to support mt6779 eint Signed-off-by: Mars Cheng --- drivers/pinctrl/mediatek/pinctrl-mt6779.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6779.c b/drivers/pinctrl/mediatek/pinctrl-mt6779.c index 145bf22..49ff3cc 100644

Re: [PATCH 1/1] tracing: Fix event_trace_printk loss on printk_format.

2019-02-12 Thread Mars Cheng
Hi Steve On Tue, 2019-02-12 at 20:41 -0500, Steven Rostedt wrote: > On Tue, 12 Feb 2019 19:41:57 +0800 > Mars Cheng wrote: > > > From: Andress Kuo > > > > If fmt on event_trace_printk is not a constant, It means that something not > > guaranteed, so the co

Re: [PATCH 1/1] tracing: Fix event_trace_printk loss on printk_format.

2019-02-12 Thread Mars Cheng
Hi Steve On Wed, 2019-02-13 at 12:54 +0800, Mars Cheng wrote: > Hi Steve > > On Tue, 2019-02-12 at 20:41 -0500, Steven Rostedt wrote: > > On Tue, 12 Feb 2019 19:41:57 +0800 > > Mars Cheng wrote: > > > > > From: Andress Kuo > > > > > > If

Re: [PATCH v3 00/12] Add Basic SoC support for MT6797

2017-03-22 Thread Mars Cheng
Hi Matthias, Rob, Marc, Stephen gentle ping for this patch set. Thanks. On Sun, 2017-03-19 at 23:26 +0800, Mars Cheng wrote: > This patch set adds basic SoC support for mediatek's first 10-core > chip, X20, also known as MT6797. > > - based on 4.11-rc1 > - support multi

[PATCH v3 01/12] dt-bindings: mediatek: multiple bases support for sysirq

2017-03-19 Thread Mars Cheng
This describes how to specify multiple base addresses for sysirq in mediatek platforms. Signed-off-by: Mars Cheng --- .../interrupt-controller/mediatek,sysirq.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt

  1   2   >