[PATCH v5 4/8] clk: rockchip: add new pll-type for rk3036 and similar socs

2015-10-25 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Re

[PATCH v5 0/8] Build and support rk3036 SoC platform

2015-10-25 Thread Xing Zheng
tion of rk3036 clock controller Changes in v5: Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Reviewed-by: Heiko Stuebner <he...@sntech.de> Heiko Stuebner (1): ARM: rockchip: add support smp for rk3036 Xing Zheng (7): dt-bindings: add documentation of rk3036 clock controller

[PATCH v4 4/8] clk: rockchip: add new pll-type for rk3036 and similar socs

2015-10-24 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Re

[PATCH v4 0/8] Build and support rk3036 SoC platform

2015-10-24 Thread Xing Zheng
) ARM: dts: rockchip: add core rk3036 dts 4) clk: rockchip: add new pll-type for rk3036 and similar socs 3) clk: rockchip: add clock controller for rk3036 2) clk: rockchip: add dt-binding header for rk3036 1) dt-bindings: add documentation of rk3036 clock controller Changes in v4: Signed-off-by

[PATCH v7 4/6] clk: rockchip: add clock controller for rk3036

2015-11-04 Thread Xing Zheng
Add the clock tree definition for the new rk3036 SoC. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Reviewed-by: Heiko Stuebner <he...@sntech.de> --- Changes in v7: None drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3

[PATCH v7 0/6] Build and support rk3036 SoC platform

2015-11-04 Thread Xing Zheng
for rk3036 3) clk: rockchip: add new pll-type for rk3036 and similar socs 2) clk: rockchip: add dt-binding header for rk3036 1) dt-bindings: add documentation of rk3036 clock controller Changes in v7: Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Reviewed-by: Heiko Stuebner <he.

[PATCH v7 3/6] clk: rockchip: add new pll-type for rk3036 and similar socs

2015-11-04 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Re

[PATCH v6 0/8] Build and support rk3036 SoC platform

2015-11-04 Thread Xing Zheng
similar socs 2) clk: rockchip: add dt-binding header for rk3036 1) dt-bindings: add documentation of rk3036 clock controller Changes in v6: Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Reviewed-by: Heiko Stuebner <he...@sntech.de> Heiko Stuebner (1): ARM: rockchip: add support smp

[PATCH v6 3/8] clk: rockchip: add new pll-type for rk3036 and similar socs

2015-11-04 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Re

Re: [PATCH 1/3] clk: add flag for clocks that need to be enabled on rate changes

2015-10-12 Thread Xing Zheng
type :-) . Xing Zheng now also independently stumbled upon this issue with his rk3036 work. And came to the same conclusion that the gate must be enabled as well as the downstream mux be set to the fractional divider for it to actually accept a new setting. Yes, I discussed such problems with Heiko

[PATCH v2 3/9] clk: rockchip: add clock controller for rk3036

2015-09-17 Thread Xing Zheng
Add the clock tree definition for the new rk3036 SoC. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v2: None drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3036.c | 504 + drivers/clk/rockchip

[PATCH v2 0/9] Build and support rk3036 SoC platform

2015-09-17 Thread Xing Zheng
controller for rk3036 2) clk: rockchip: add dt-binding header for rk3036 1) ARM: dts: rockchip: add core rk3036 dts Changes in v2: Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Xing Zheng (9): ARM: dts: rockchip: add core rk3036 dts clk: rockchip: add dt-binding header for rk3036

Re: [PATCH v1 3/3] clk: rockchip: add clock controller for rk3036

2015-09-17 Thread Xing Zheng
On 2015年08月28日 17:54, Heiko Stuebner wrote: Hi, Am Freitag, 28. August 2015, 13:46:48 schrieb Xing Zheng: Add the clock tree definition for the new rk3036 SoC, but there are some issues to be fixed: 1. soc will crash if gpll run rate_change_remuxed 2. rk3036_clk_suspend and rk3036_clk_resume

[PATCH v2 4/9] clk: rockchip: add new clock type and controller for rk3036

2015-09-17 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- C

[PATCH v3 5/8] clk: rockchip: add new clock type and controller for rk3036

2015-09-28 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Re

[PATCH v2 0/5] fix some clock configuration for the RK3036 platform

2016-01-07 Thread Xing Zheng
Hi: In the development work, we found that some of the previous incorrect clock configuration on the RK3036 platform, we should fix them. Xing Zheng (5): clk: rockchip: rk3036: fix the FLAGs for clock mux clk: rockchip: rk3036: fix uarts clock error clk: rockchip: rk3036: fix the div

[PATCH v2 5/5] clk: rockchip: rk3036: add HCLK_MAC id for emac

2016-01-07 Thread Xing Zheng
We need to add HCLK_MAC id explicitly because that it is referred by hclk in the emac driver. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3036.c |2 +- include/dt-bindings/clock/rk3036-cru.h |1 + 2 files changed, 2 insertions(+), 1 de

[RESEND PATCH v1 2/4] clk: rockchip: rk3036: fix uarts clock error

2015-12-28 Thread Xing Zheng
Due to a copy-paste error the uart1 and uart2 clock div set incorrect, we should to fix it. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3036.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk

[RESEND PATCH v1 0/4] fix some clock configuration for the RK3036 platform

2015-12-28 Thread Xing Zheng
Hi: In the development work, we found that some of the previous incorrect clock configuration on the RK3036 platform, we should fix them. Xing Zheng (4): clk: rockchip: rk3036: fix the FLAGs for clock mux clk: rockchip: rk3036: fix uarts clock error clk: rockchip: rk3036: rename emac

[RESEND PATCH v1 3/4] clk: rockchip: rk3036: rename emac ext source clock

2015-12-28 Thread Xing Zheng
There is only support rmii in the RK3036, so we should use the correct ext clock name. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3036.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3036.c b/d

[RESEND PATCH v1 1/4] clk: rockchip: rk3036: fix the FLAGs for clock mux

2015-12-28 Thread Xing Zheng
The DFLAGS are used for the clock dividers, the CLKSEL_CON flags of COMPOSITE_NODIV type should be MFLAGS. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3036.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH 1/2] clk: rockchip: rk3036: rename emac ext source clock

2015-12-23 Thread Xing Zheng
There is only support rmii in the RK3036, so we should use the correct ext clock name. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3036.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3036.c b/d

[PATCH 2/2] clk: rockchip: rk3036: fix and add node id for emac clock

2015-12-23 Thread Xing Zheng
the accurate rate for mac_ref which need to 50MHz probability, we should let it under the APLL and are able to set the freq which integer multiples of 50MHz, so we add these emac node for reference. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk

Re: [PATCH v7 0/6] Build and support rk3036 SoC platform

2015-11-23 Thread Xing Zheng
OK, Thanks Heiko. :-) On 2015年11月24日 08:03, Heiko Stübner wrote: Hi Xing Zheng, Am Donnerstag, 5. November 2015, 15:33:54 schrieb Xing Zheng: Hi, We need to support rk3036 soc platform via upstream, there are some primary parts for the initial release of minimum system: dts, clk-pll, smp