[PATCH v1 4/9] arm: dts: mt2712: Add clock controller device nodes

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add clock controller nodes for MT2712, include topckgen, infracfg, pericfg, mcucfg and apmixedsys. This patch also add six oscillators that provide clocks for MT2712. Signed-off-by: Weiyi Lu ---

[PATCH v1 4/9] arm: dts: mt2712: Add clock controller device nodes

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add clock controller nodes for MT2712, include topckgen, infracfg, pericfg, mcucfg and apmixedsys. This patch also add six oscillators that provide clocks for MT2712. Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 115 ++ 1

[PATCH v1 2/9] clk: mediatek: Add dt-bindings for MT2712 clocks

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add MT2712 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt2712-clk.h | 428 + 1 file changed,

[PATCH v1 6/9] soc: mediatek: add bus protection extend API

2017-08-15 Thread weiyi.lu
From: Weiyi Lu MT2712 add "set/clear" bus control register to each control register set instead of providing only one "enable" control register, we could avoid the read-modify-write racing by using extend API with such new design. Also there exists the second bus control

[PATCH v1 2/9] clk: mediatek: Add dt-bindings for MT2712 clocks

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add MT2712 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt2712-clk.h | 428 + 1 file changed, 428 insertions(+) create mode 100644

[PATCH v1 6/9] soc: mediatek: add bus protection extend API

2017-08-15 Thread weiyi.lu
From: Weiyi Lu MT2712 add "set/clear" bus control register to each control register set instead of providing only one "enable" control register, we could avoid the read-modify-write racing by using extend API with such new design. Also there exists the second bus control register set, we could

[PATCH v1 5/9] dt-bindings: soc: add MT2712 power dt-bindings

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add power dt-bindings for MT2712. Signed-off-by: Weiyi Lu --- .../devicetree/bindings/soc/mediatek/scpsys.txt| 3 +++ include/dt-bindings/power/mt2712-power.h | 26 ++ 2 files changed, 29

[PATCH v1 5/9] dt-bindings: soc: add MT2712 power dt-bindings

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add power dt-bindings for MT2712. Signed-off-by: Weiyi Lu --- .../devicetree/bindings/soc/mediatek/scpsys.txt| 3 +++ include/dt-bindings/power/mt2712-power.h | 26 ++ 2 files changed, 29 insertions(+) create mode 100644

[PATCH v1 3/9] clk: mediatek: Add MT2712 clock support

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add MT2712 clock support, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 50 ++ drivers/clk/mediatek/Makefile|8

[PATCH v1 3/9] clk: mediatek: Add MT2712 clock support

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add MT2712 clock support, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 50 ++ drivers/clk/mediatek/Makefile|8 + drivers/clk/mediatek/clk-mt2712-bdp.c|

[PATCH v1 7/9] soc: mediatek: add dependent clock jpgdec/audio for scpsys

2017-08-15 Thread weiyi.lu
From: Weiyi Lu There are dependent clock jpgdec/audio in scpsys on MT2712, and will exist three dependent clocks on MT2712 VDEC. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH v1 7/9] soc: mediatek: add dependent clock jpgdec/audio for scpsys

2017-08-15 Thread weiyi.lu
From: Weiyi Lu There are dependent clock jpgdec/audio in scpsys on MT2712, and will exist three dependent clocks on MT2712 VDEC. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v1 8/9] soc: mediatek: add MT2712 scpsys support

2017-08-15 Thread weiyi.lu
From: Weiyi Lu add scpsys driver for MT2712 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 118 -- 1 file changed, 113 insertions(+), 5 deletions(-) diff --git

[PATCH v1 8/9] soc: mediatek: add MT2712 scpsys support

2017-08-15 Thread weiyi.lu
From: Weiyi Lu add scpsys driver for MT2712 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 118 -- 1 file changed, 113 insertions(+), 5 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index

[PATCH v1 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT2712

2017-08-15 Thread weiyi.lu
From: Weiyi Lu This patch adds the binding documentation for apmixedsys, bdpsys, imgsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, pericfg, topckgen, vdecsys and vencsys for Mediatek MT2712. Signed-off-by: Weiyi Lu ---

[PATCH v1 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT2712

2017-08-15 Thread weiyi.lu
From: Weiyi Lu This patch adds the binding documentation for apmixedsys, bdpsys, imgsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, pericfg, topckgen, vdecsys and vencsys for Mediatek MT2712. Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 +

[PATCH v1 0/9] Mediatek MT2712 clock and scpsys support

2017-08-15 Thread weiyi.lu
This patch set is composed of clock control (PATCH 1-4) and scpsys control (PATCH 5-9) Weiyi Lu (9): [PATCH v1 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT2712 [PATCH v1 2/9] clk: mediatek: Add dt-bindings for MT2712 clocks [PATCH v1 3/9] clk: mediatek: Add MT2712 clock support

[PATCH v1 0/9] Mediatek MT2712 clock and scpsys support

2017-08-15 Thread weiyi.lu
This patch set is composed of clock control (PATCH 1-4) and scpsys control (PATCH 5-9) Weiyi Lu (9): [PATCH v1 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT2712 [PATCH v1 2/9] clk: mediatek: Add dt-bindings for MT2712 clocks [PATCH v1 3/9] clk: mediatek: Add MT2712 clock support

[PATCH v1 9/9] arm: dts: Add power controller device node of MT2712

2017-08-15 Thread weiyi.lu
From: Weiyi Lu add power controller node for MT2712 Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH v1 9/9] arm: dts: Add power controller device node of MT2712

2017-08-15 Thread weiyi.lu
From: Weiyi Lu add power controller node for MT2712 Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index