Re: [RFC 1/9] ARM: OMAP2+: omap_device: create clock alias purely from DT data

2015-12-18 Thread Tony Lindgren
* Tero Kristo [151218 05:57]: > This avoids the need to add most of the clock aliases under > drivers/clk/ti/clk-xyz.c files. Yup is badly needed. Right now we have strange hidden dependencies in multiple subsystems to enable a single device driver: 1. Add a clock alias for a

[PATCH] clk: tegra: Fix clock sources for tegra210 EMC

2015-12-18 Thread Jon Hunter
The EMC clock sources for tegra210 currently incorrectly include pll_c2 and pll_c3. However, both of these should have been pll_mb as shown in the TRM. If tegra210 happens to be configured such that the pll_mb is the default clock for the EMC, as configured by the bootloader, then this will cause

[RFC 8/9] ARM: OMAP4: hwmod_data: use module clocks from DT

2015-12-18 Thread Tero Kristo
Replace the usage of prcm->clkstctrl with main_clk:s provided via DT. This is done in preparation to get rid of hwmod data from kernel. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 339 1 file changed, 95

[RFC 9/9] clk: ti: omap4: update clock aliases to reflect new module clocks

2015-12-18 Thread Tero Kristo
The clock data in DT has been updated, and the clock aliases must be updated to match. Signed-off-by: Tero Kristo --- drivers/clk/ti/clk-44xx.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/clk/ti/clk-44xx.c

[RFC 3/9] clk: ti: remove un-used definitions from public clk_hw_omap struct

2015-12-18 Thread Tero Kristo
Clksel support has been deprecated a while back, so remove these from the struct also. Signed-off-by: Tero Kristo --- include/linux/clk/ti.h |4 1 file changed, 4 deletions(-) diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index 223be69..ec5613a 100644

[RFC 4/9] clk: ti: mux: export mux clock APIs locally

2015-12-18 Thread Tero Kristo
get_parent and set_parent are going to be required by the support of module clocks, so export these locally. Signed-off-by: Tero Kristo --- drivers/clk/ti/clock.h |3 +++ drivers/clk/ti/mux.c |4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git

[RFC 6/9] clk: ti: add support for omap4 module clocks

2015-12-18 Thread Tero Kristo
Previously, hwmod core has been used for controlling the hwmod level clocks. This has certain drawbacks, like being unable to share the clocks for multiple users, missing usecounting and generally being totally incompatible with common clock framework. Add support for new clock type under the TI

[RFC 2/9] ARM: OMAP2+: hwmod: initialize main clocks directly from DT

2015-12-18 Thread Tero Kristo
This avoids the need to add clock aliases under drivers/clk/ti/clk-xyz.c files. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_hwmod.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c

[RFC 0/9] ARM: OMAP4: hwmod clkctrl conversion to DT + clock driver

2015-12-18 Thread Tero Kristo
Hi, This series adds support for hwmod gate clock type, and changes OMAP4 as an example to use the new clock type, converting the existing hwmod_data clkctrl definitions to clock nodes under device tree. Some additional magic is required for handling timer clocks, as the clock driver assumes it

[RFC 5/9] dt-bindings: clk: ti: Document module clock type

2015-12-18 Thread Tero Kristo
Document the new TI module clock type, which is intended to replace the internal clock control handling within omap_hwmod. Module clock is effectively a gate clock controlling both interface and functional clocks for a single hardware IP block. Signed-off-by: Tero Kristo ---

[RFC 1/9] ARM: OMAP2+: omap_device: create clock alias purely from DT data

2015-12-18 Thread Tero Kristo
This avoids the need to add most of the clock aliases under drivers/clk/ti/clk-xyz.c files. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_device.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-omap2/omap_device.c

Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2015-12-18 Thread Tony Lindgren
* Tero Kristo [151218 05:57]: > Previously, hwmod core has been used for controlling the hwmod level > clocks. This has certain drawbacks, like being unable to share the > clocks for multiple users, missing usecounting and generally being > totally incompatible with common clock

Re: [RFC 7/9] ARM: dts: omap4: add hwmod module clocks

2015-12-18 Thread Tony Lindgren
* Tero Kristo [151218 05:57]: > + mmu_dsp_mod_ck: mmu_dsp_mod_ck { > + #clock-cells = <0>; > + compatible = "ti,omap4-hw-mod-clock"; > + reg = <0x0420>; > + clocks = <_iva_m4x2_ck>; > + }; > + > + dsp_mod_ck: dsp_mod_ck

Re: [PATCH] clk: tegra: Fix clock sources for tegra210 EMC

2015-12-18 Thread Rhyland Klein
On 12/18/2015 8:45 AM, Jon Hunter wrote: > The EMC clock sources for tegra210 currently incorrectly include pll_c2 > and pll_c3. However, both of these should have been pll_mb as shown in > the TRM. If tegra210 happens to be configured such that the pll_mb is the > default clock for the EMC, as

Re: [PATCH v2 0/4] Add Cygnus audio clock support

2015-12-18 Thread Ray Jui
Hi Stephen/Michael, If these clock changes look fine to you, can they be merged for v4.5? Thanks, Ray On 12/3/2015 9:37 AM, Ray Jui wrote: Hi Stephen/Mike, Do these clock changes look okay to you? Thanks, Ray On 11/24/2015 4:13 PM, Florian Fainelli wrote: On 23/11/15 09:50, Ray Jui

Re: [PATCH] clk: rockchip: only enter pll slow-mode directly before reboots on rk3288

2015-12-18 Thread Doug Anderson
Heiko, On Fri, Dec 18, 2015 at 10:33 AM, Heiko Stübner wrote: > As commit 1d33929e2a2b ("clk: rockchip: switch PLLs to slow mode before > reboot for rk3288") states, switching the PLLs to slow-mode is only > necessary when rebooting using the soft-reset done through

Re: [PATCH v2 1/3] clk: bcm2835: Add bindings for the auxiliary peripheral clock gates.

2015-12-18 Thread Rob Herring
On Tue, Dec 15, 2015 at 03:35:57PM -0800, Eric Anholt wrote: > These will be used for enabling UART1, SPI1, and SPI2. > > Signed-off-by: Eric Anholt > --- > > v2: Make the binding cover both the IRQ and clock enable registers. > > .../bindings/clock/brcm,bcm2835-aux-clock.txt