[PATCH v2 3/3] ARM: shmobile: kzm9d: Use common clock framework

2013-10-07 Thread takasi-y
Use common clock framework version of clock drivers/clk/shmobile/clk-emev2.c instead of sh-clkfwk version arch/arm/mach-shmobile/clock-emev2.c when it is configured as a part of multi-platform. Signed-off-by: Takashi Yoshii --- arch/arm/mach-shmobile/board-kzm9d-reference.c | 5 ++--- 1 file

[PATCH v2 2/3] ARM: shmobile: emev2: Add clock tree description in DT

2013-10-07 Thread takasi-y
Add minimum clock tree description to .dts file. This provides same set of clocks as current sh-clkfwk version .c code does. Signed-off-by: Takashi Yoshii --- arch/arm/boot/dts/emev2.dtsi | 84 1 file changed, 84 insertions(+) diff --git

[PATCH v2 1/3] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-07 Thread takasi-y
Device tree clock binding document for EMMA Mobile EV2 SMU, And Common clock framework based implementation of it. Following nodes are defined to describe clock tree. - renesas,emev2-smu - renesas,emev2-smu-clkdiv - renesas,emev2-smu-gclk These bindings are designed manually based on

[PATCH v2 0/3] ARM: shmobile: kzm9d: migrate to common clock framework with DT

2013-10-07 Thread takasi-y
This patch series makes kzm9d to move to new clk implementation based on the common clock framework and device tree, when configured as a part of multi-platform. These patches do not remove sh-clkfwk version, even on emev2. Non multi-platform configuration still uses sh-clkfwk. Should be

[PATCH v2 0/3] ARM: shmobile: kzm9d: migrate to common clock framework with DT

2013-10-07 Thread takasi-y
This patch series makes kzm9d to move to new clk implementation based on the common clock framework and device tree, when configured as a part of multi-platform. These patches do not remove sh-clkfwk version, even on emev2. Non multi-platform configuration still uses sh-clkfwk. Should be

[PATCH v2 1/3] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-07 Thread takasi-y
Device tree clock binding document for EMMA Mobile EV2 SMU, And Common clock framework based implementation of it. Following nodes are defined to describe clock tree. - renesas,emev2-smu - renesas,emev2-smu-clkdiv - renesas,emev2-smu-gclk These bindings are designed manually based on

[PATCH v2 2/3] ARM: shmobile: emev2: Add clock tree description in DT

2013-10-07 Thread takasi-y
Add minimum clock tree description to .dts file. This provides same set of clocks as current sh-clkfwk version .c code does. Signed-off-by: Takashi Yoshii takas...@ops.dti.ne.jp --- arch/arm/boot/dts/emev2.dtsi | 84 1 file changed, 84 insertions(+)

[PATCH v2 3/3] ARM: shmobile: kzm9d: Use common clock framework

2013-10-07 Thread takasi-y
Use common clock framework version of clock drivers/clk/shmobile/clk-emev2.c instead of sh-clkfwk version arch/arm/mach-shmobile/clock-emev2.c when it is configured as a part of multi-platform. Signed-off-by: Takashi Yoshii takas...@ops.dti.ne.jp ---

Re: [PATCH 5/6] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-03 Thread takasi-y
Hi Magnus, Thank you for your commnets. > > +obj-$(CONFIG_ARCH_SHMOBILE)+= shmobile/ > > +obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += shmobile/ > > Here I believe it is enough that you only use > CONFIG_ARCH_SHMOBILE_MULTI. ... That is because it supports three configuration, 1. MULTI +

Re: [PATCH 3/6] sh: clkfwk: Select sh-/common- clkfwk alternatively

2013-10-03 Thread takasi-y
Hi Laurent, > While I agree with this patch, I believe the use of the HAVE_MACH_CLKDEV > configuration option to select whether to compile core.o in is a bit of an > abuse. Well, yes, indeed. It does not mean having include/mach/clkdev.h, but means somewhat such like !COMMON_CLK. # I think

Re: [PATCH 0/6] ARM: shmobile: kzm9d-reference: migrate to common clock framework with DT

2013-10-03 Thread takasi-y
Hi, > Documentation and implementation in one patch, > and dts in other patch, are normal style IMO That's strange! Considering the nature of DT, it must be wrong. ... was what I thought at first, but you are right. I found 3/4 (1021 in 1365) of commits (new + change - typo fix) under

Re: [PATCH 0/6] ARM: shmobile: kzm9d-reference: migrate to common clock framework with DT

2013-10-03 Thread takasi-y
Hi, Documentation and implementation in one patch, and dts in other patch, are normal style IMO That's strange! Considering the nature of DT, it must be wrong. ... was what I thought at first, but you are right. I found 3/4 (1021 in 1365) of commits (new + change - typo fix) under

Re: [PATCH 3/6] sh: clkfwk: Select sh-/common- clkfwk alternatively

2013-10-03 Thread takasi-y
Hi Laurent, While I agree with this patch, I believe the use of the HAVE_MACH_CLKDEV configuration option to select whether to compile core.o in is a bit of an abuse. snip Well, yes, indeed. It does not mean having include/mach/clkdev.h, but means somewhat such like !COMMON_CLK. # I think

Re: [PATCH 5/6] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-03 Thread takasi-y
Hi Magnus, Thank you for your commnets. +obj-$(CONFIG_ARCH_SHMOBILE)+= shmobile/ +obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += shmobile/ Here I believe it is enough that you only use CONFIG_ARCH_SHMOBILE_MULTI. ... That is because it supports three configuration, 1. MULTI +

[PATCH 4/6] ARM: shmobile: emev2: Define SMU clock DT bindings

2013-09-23 Thread takasi-y
Device tree clock binding document for EMMA Mobile EV2 SMU. Following nodes are defined to describe clock tree. - renesas,emev2-smu - renesas,emev2-smu-clkdiv - renesas,emev2-smu-gclk These bindings are designed manually based on 19UH0037EJ1000_SMU : System Management Unit User's Manual

[PATCH 3/6] sh: clkfwk: Select sh-/common- clkfwk alternatively

2013-09-23 Thread takasi-y
Make sh clock framework core depend on HAVE_MACH_CLKDEV, and set it - y on sh for backward compatibility - !CONFIG_COMMON_CLK on sh-mobile This is a preparation for migration to common clock framework from sh clock framework on sh-mobile. Signed-off-by: Takashi Yoshii --- arch/arm/Kconfig

[PATCH 1/6] clocksource: em_sti: convert to clk_prepare/unprepare

2013-09-23 Thread takasi-y
From: Shinya Kuribayashi Add calls to clk_prepare and unprepare so that EMMA Mobile EV2 can migrate to the common clock framework. Signed-off-by: Shinya Kuribayashi --- drivers/clocksource/em_sti.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/6] serial8250-em: convert to clk_prepare/unprepare

2013-09-23 Thread takasi-y
From: Shinya Kuribayashi Add calls to clk_prepare and unprepare so that EMMA Mobile EV2 can migrate to the common clock framework. Signed-off-by: Shinya Kuribayashi [takashi.yoshii...@renesas.com: edited for conflicts] Signed-off-by: Takashi Yoshii --- drivers/tty/serial/8250/8250_em.c | 6

[PATCH 6/6] ARM: shmobile: kzm9d-reference: Use common clock framework

2013-09-23 Thread takasi-y
Use common clock framework version of clock drivers/clk/shmobile/clk-emev2.c instead of sh-clkfwk version arch/arm/mach-shmobile/clock-emev2.c kzm9d(without -reference) still uses sh-clkfwk version. Because two of that framework can not live in one kernel binary, there will be SoCs and Boards

[PATCH 5/6] clk: emev2: Add support for emev2 SMU clocks with DT

2013-09-23 Thread takasi-y
Common clock framework version of emev2 clock support. smu_clkdiv and smu_gclk are handled. So far, reparent is not implemented, and is fixed to index #0. SMU and small numbers of clocks are described in emev2.dtsi. That function and numbers of clocks are equivalent to current sh-clkfwk version.

[PATCH 5/6] clk: emev2: Add support for emev2 SMU clocks with DT

2013-09-23 Thread takasi-y
Common clock framework version of emev2 clock support. smu_clkdiv and smu_gclk are handled. So far, reparent is not implemented, and is fixed to index #0. SMU and small numbers of clocks are described in emev2.dtsi. That function and numbers of clocks are equivalent to current sh-clkfwk version.

[PATCH 6/6] ARM: shmobile: kzm9d-reference: Use common clock framework

2013-09-23 Thread takasi-y
Use common clock framework version of clock drivers/clk/shmobile/clk-emev2.c instead of sh-clkfwk version arch/arm/mach-shmobile/clock-emev2.c kzm9d(without -reference) still uses sh-clkfwk version. Because two of that framework can not live in one kernel binary, there will be SoCs and Boards

[PATCH 2/6] serial8250-em: convert to clk_prepare/unprepare

2013-09-23 Thread takasi-y
From: Shinya Kuribayashi shinya.kuribayashi...@renesas.com Add calls to clk_prepare and unprepare so that EMMA Mobile EV2 can migrate to the common clock framework. Signed-off-by: Shinya Kuribayashi shinya.kuribayashi...@renesas.com [takashi.yoshii...@renesas.com: edited for conflicts]

[PATCH 1/6] clocksource: em_sti: convert to clk_prepare/unprepare

2013-09-23 Thread takasi-y
From: Shinya Kuribayashi shinya.kuribayashi...@renesas.com Add calls to clk_prepare and unprepare so that EMMA Mobile EV2 can migrate to the common clock framework. Signed-off-by: Shinya Kuribayashi shinya.kuribayashi...@renesas.com --- drivers/clocksource/em_sti.c | 4 ++-- 1 file changed, 2

[PATCH 3/6] sh: clkfwk: Select sh-/common- clkfwk alternatively

2013-09-23 Thread takasi-y
Make sh clock framework core depend on HAVE_MACH_CLKDEV, and set it - y on sh for backward compatibility - !CONFIG_COMMON_CLK on sh-mobile This is a preparation for migration to common clock framework from sh clock framework on sh-mobile. Signed-off-by: Takashi Yoshii

[PATCH 4/6] ARM: shmobile: emev2: Define SMU clock DT bindings

2013-09-23 Thread takasi-y
Device tree clock binding document for EMMA Mobile EV2 SMU. Following nodes are defined to describe clock tree. - renesas,emev2-smu - renesas,emev2-smu-clkdiv - renesas,emev2-smu-gclk These bindings are designed manually based on 19UH0037EJ1000_SMU : System Management Unit User's Manual