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

2015-01-09 Thread pi-cheng.chen
t; Vproc b. Vsram - Vproc < 200 mV To address these needs, we use cpufreq-dt but do voltage scaling in the cpufreq notifier. pi-cheng.chen (2): cpufreq-dt: check CPU clock/power domain during initializing cpufreq: add cpufreq driver for Mediatek MT8173 SoC drivers/cpufreq/Kconfig.arm

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

2015-01-09 Thread pi-cheng.chen
Vproc and Vsram need to be controlled concurrently and 2 limitations should be followed: a. Vsram > Vproc b. Vsram - Vproc < 200 mV To address these needs, we reuse cpufreq-dt but do voltage scaling in the cpufreq notifier. Signed-off-by: pi-cheng.chen --- drivers/cpufreq/

[PATCH 1/2] cpufreq-dt: check CPU clock/power domain during initializing

2015-01-09 Thread pi-cheng.chen
Currently the DT based cpufreq driver is missing some way to check which CPUs share clocks. In the 1st patch, CPU clock/power domain information is added to the platform_data of cpufreq-dt so that cpufreq-dt driver could check which CPUs share clock/power. Signed-off-by: pi-cheng.chen

[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 --- drivers/clk/mediatek/Makefile | 2 +- drivers/clk/mediatek/clk-cpumux.c | 122 + drivers/clk/mediatek/clk-cpumux.h | 31 + drivers/clk/mediatek/clk-mt8173.c | 23

[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 --- drivers/cpufreq/Kconfig.arm | 6 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/mt8173-cpufreq.c | 509 +++ 3

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

2015-04-20 Thread pi-cheng.chen
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 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 --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 9 + arch/arm64/boot/dts/mediatek/mt8173.dtsi| 6 ++ 2 files changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts

[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 --- arch/arm64/boot/dts/mediatek/mt8173

[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 --- .../devicetree/bindings/cpufreq/cpufreq-mtk.txt | 17 + 1 file changed, 17 insertions(+) create mode

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

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

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

2015-03-04 Thread pi-cheng.chen
age 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 dri

[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 --- drivers/cpufreq/Kconfig.arm | 6 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/mtk-cpufreq.c | 346

[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 --- drivers/clk/mediatek/Makefile