[PATCH 1/2] cpufreq: mediatek: Add MT8173 cpufreq driver

2015-04-20 Thread pi-cheng.chen
This patch implements MT8173 specific cpufreq driver with OPP table defined in the driver code. Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- drivers/cpufreq/Kconfig.arm | 6 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/mt8173-cpufreq.c | 509

[PATCH 2/2] ARM64: mt8173: dts Add MT8173 cpufreq driver support

2015-04-20 Thread pi-cheng.chen
This patch adds voltage supplies and clocks used by MT8173 cpufreq driver. Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 9 + arch/arm64/boot/dts/mediatek/mt8173.dtsi| 6 ++ 2 files changed, 15 insertions(+) diff --git

[PATCH v3 0/2] cpufreq: add cpufreq driver for Mediatek MT8173 SoC

2015-04-20 Thread pi-cheng.chen
in the driver source code until new OPP binding is ready Changes in v2: - Add intermediate frequency support in cpufreq-dt driver - Use voltage scaling code of cpufreq-dt for little cluster instead of implementaion in notifier of mtk-cpufreq driver - Code refinement for mtk-cpufreq driver pi

[PATCH v2] clk: mediatek: Export CPU mux clocks for CPU frequency control

2015-04-20 Thread pi-cheng.chen
use of .determine_rate callback Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- drivers/clk/mediatek/Makefile | 2 +- drivers/clk/mediatek/clk-cpumux.c | 122 + drivers/clk/mediatek/clk-cpumux.h | 31 + drivers/clk/mediatek

[PATCH v2 2/4] cpufreq: dt-bindings: add bindings for mtk-cpufreq driver

2015-03-04 Thread pi-cheng.chen
Add dt-binding for mtk-cpufreq driver so that the driver could get SoC specific information (intermediate_clk for now) from device tree. Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- .../devicetree/bindings/cpufreq/cpufreq-mtk.txt | 17 + 1 file changed, 17

[PATCH v2 4/4] ARM64: dts: mediatek: add cpufreq dts for MT8173 SoC

2015-03-04 Thread pi-cheng.chen
This patch illustrates how to enable mtk-cpufreq driver for a Mediatek SoC in device tree using MT8173 as an example. This patch was tested on MT8173 EVB with several patches which are not yet posted on public mailing list. Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- arch/arm64

[PATCH v2 1/4] cpufreq-dt: add clock domain and intermediate frequency support

2015-03-04 Thread pi-cheng.chen
are quite similar, consolidate the flow as a new function to keep readibility. Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- drivers/cpufreq/cpufreq-dt.c | 68 +++- include/linux/cpufreq-dt.h | 7 + 2 files changed, 68 insertions(+), 7

[PATCH v2 3/4] cpufreq: mediatek: add Mediatek cpufreq driver

2015-03-04 Thread pi-cheng.chen
In this patch, some SoC specific voltage scaling flow is implemented in the cpufreq notifier of mtk-cpufreq driver. Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- drivers/cpufreq/Kconfig.arm | 6 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/mtk-cpufreq.c | 346

[PATCH v2 0/4] cpufreq: add cpufreq driver for Mediatek MT8173 SoC

2015-03-04 Thread pi-cheng.chen
scaling code of cpufreq-dt for little cluster instead of implementaion in notifier of mtk-cpufreq driver 3. Code refinement for mtk-cpufreq driver pi-cheng.chen (4): cpufreq-dt: add clock domain and intermediate frequency support cpufreq: dt-bindings: add bindings for mtk-cpufreq driver

[PATCH] clk: mediatek: Export CPU mux clocks for CPU frequency control

2015-03-04 Thread pi-cheng.chen
This patch adds CPU mux clocks which are used by Mediatek cpufreq driver for intermediate clock source switching. This patch is based on Mediatek clock driver patches[1]. [1] http://thread.gmane.org/gmane.linux.kernel/1892436 Signed-off-by: pi-cheng.chen pi-cheng.c...@linaro.org --- drivers/clk