All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b
@ 2015-11-08 14:07 Michael Trimarchi
  2015-11-15 10:19 ` Michael Trimarchi
  2015-11-17  9:37 ` [PATCH] " Lucas Stach
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Trimarchi @ 2015-11-08 14:07 UTC (permalink / raw)
  To: shawnguo; +Cc: kernel, mturquette, sboyd, linux-clk, linux-kernel, michael

OSC can be used as USB hub source clock. An example we can route to
CLK2_P imx6 pin

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
 drivers/clk/imx/clk-imx6q.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c
index b2c1c04..8fe0015 100644
--- a/drivers/clk/imx/clk-imx6q.c
+++ b/drivers/clk/imx/clk-imx6q.c
@@ -70,7 +70,8 @@ static const char *cko_sels[] = { "cko1", "cko2", };
 static const char *lvds_sels[] = {
 	"dummy", "dummy", "dummy", "dummy", "dummy", "dummy",
 	"pll4_audio", "pll5_video", "pll8_mlb", "enet_ref",
-	"pcie_ref_125m", "sata_ref_100m",
+	"pcie_ref_125m", "sata_ref_100m",  "usbphy1", "usbphy2",
+	"dummy", "dummy", "dummy", "dummy", "osc",
 };
 static const char *pll_bypass_src_sels[] = { "osc", "lvds1_in", "lvds2_in", "dummy", };
 static const char *pll1_bypass_sels[] = { "pll1", "pll1_bypass_src", };
-- 
2.6.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b
  2015-11-08 14:07 [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b Michael Trimarchi
@ 2015-11-15 10:19 ` Michael Trimarchi
  2015-11-15 10:38   ` [PATCH V2] " Michael Trimarchi
  2015-11-17  9:37 ` [PATCH] " Lucas Stach
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Trimarchi @ 2015-11-15 10:19 UTC (permalink / raw)
  To: shawnguo; +Cc: kernel, mturquette, sboyd, linux-clk, linux-kernel

Hi

On Sun, Nov 08, 2015 at 03:07:22PM +0100, Michael Trimarchi wrote:
> OSC can be used as USB hub source clock. An example we can route to
> CLK2_P imx6 pin
> 

Do I need to include an example in the commit message?

	usb_hub: usb-hub {
		compatible = "smsc,usb3503a";
		clocks = <&clks IMX6QDL_CLK_LVDS2_GATE>;
		clock-names = "refclk";
	};
};

&clks {
	assigned-clocks = <&clks IMX6QDL_CLK_LVDS2_SEL>;
	assigned-clock-parents = <&clks IMX6QDL_CLK_OSC>;
};

 osc                                      5            5    24000000          0 0  
    cko2_sel                              0            0    24000000          0 0  
       cko2_podf                          0            0    24000000          0 0  
          cko2                            0            0    24000000          0 0  
             cko                          0            0    24000000          0 0  
    lvds2_sel                             1            1    24000000          0 0  
       lvds2_gate                         1            1    24000000          0 0  

Best regards
Michael

> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> ---
>  drivers/clk/imx/clk-imx6q.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c
> index b2c1c04..8fe0015 100644
> --- a/drivers/clk/imx/clk-imx6q.c
> +++ b/drivers/clk/imx/clk-imx6q.c
> @@ -70,7 +70,8 @@ static const char *cko_sels[] = { "cko1", "cko2", };
>  static const char *lvds_sels[] = {
>  	"dummy", "dummy", "dummy", "dummy", "dummy", "dummy",
>  	"pll4_audio", "pll5_video", "pll8_mlb", "enet_ref",
> -	"pcie_ref_125m", "sata_ref_100m",
> +	"pcie_ref_125m", "sata_ref_100m",  "usbphy1", "usbphy2",
> +	"dummy", "dummy", "dummy", "dummy", "osc",
>  };
>  static const char *pll_bypass_src_sels[] = { "osc", "lvds1_in", "lvds2_in", "dummy", };
>  static const char *pll1_bypass_sels[] = { "pll1", "pll1_bypass_src", };
> -- 
> 2.6.3
> 

-- 
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH V2] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b
  2015-11-15 10:19 ` Michael Trimarchi
@ 2015-11-15 10:38   ` Michael Trimarchi
  2015-11-25  5:21     ` Shawn Guo
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Trimarchi @ 2015-11-15 10:38 UTC (permalink / raw)
  To: shawnguo; +Cc: kernel, mturquette, sboyd, linux-clk, linux-kernel

OSC can be used as USB hub source clock. An example we can route to
CLK2_P imx6 pin.

This show a usage example:

[...]
	usb_hub: usb-hub {
		compatible = "smsc,usb3503a";
		clocks = <&clks IMX6QDL_CLK_LVDS2_GATE>;
		clock-names = "refclk";
	};
};

[...]
&clks {
        assigned-clocks = <&clks IMX6QDL_CLK_LVDS2_SEL>;
        assigned-clock-parents = <&clks IMX6QDL_CLK_OSC>;
};

/sys/kernel/debug/clk/clk_summary

osc                                 5            5    24000000          0 0
[...]
    lvds2_sel                       1            1    24000000          0 0
       lvds2_gate                   1            1    24000000          0 0
[...]

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
Changes in v2:
	- rework the commit message to give a better description

 drivers/clk/imx/clk-imx6q.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c
index b2c1c04..8fe0015 100644
--- a/drivers/clk/imx/clk-imx6q.c
+++ b/drivers/clk/imx/clk-imx6q.c
@@ -70,7 +70,8 @@ static const char *cko_sels[] = { "cko1", "cko2", };
 static const char *lvds_sels[] = {
 	"dummy", "dummy", "dummy", "dummy", "dummy", "dummy",
 	"pll4_audio", "pll5_video", "pll8_mlb", "enet_ref",
-	"pcie_ref_125m", "sata_ref_100m",
+	"pcie_ref_125m", "sata_ref_100m",  "usbphy1", "usbphy2",
+	"dummy", "dummy", "dummy", "dummy", "osc",
 };
 static const char *pll_bypass_src_sels[] = { "osc", "lvds1_in", "lvds2_in", "dummy", };
 static const char *pll1_bypass_sels[] = { "pll1", "pll1_bypass_src", };
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b
  2015-11-08 14:07 [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b Michael Trimarchi
  2015-11-15 10:19 ` Michael Trimarchi
@ 2015-11-17  9:37 ` Lucas Stach
  1 sibling, 0 replies; 5+ messages in thread
From: Lucas Stach @ 2015-11-17  9:37 UTC (permalink / raw)
  To: Michael Trimarchi
  Cc: shawnguo, mturquette, sboyd, linux-kernel, kernel, linux-clk

Am Sonntag, den 08.11.2015, 15:07 +0100 schrieb Michael Trimarchi:
> OSC can be used as USB hub source clock. An example we can route to
> CLK2_P imx6 pin
> 
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>

I don't think the more verbose commit message of V2 adds any more value,
so I'm explicitly looking at V1. Change looks in line with the TRM, so:

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

> ---
>  drivers/clk/imx/clk-imx6q.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c
> index b2c1c04..8fe0015 100644
> --- a/drivers/clk/imx/clk-imx6q.c
> +++ b/drivers/clk/imx/clk-imx6q.c
> @@ -70,7 +70,8 @@ static const char *cko_sels[] = { "cko1", "cko2", };
>  static const char *lvds_sels[] = {
>  	"dummy", "dummy", "dummy", "dummy", "dummy", "dummy",
>  	"pll4_audio", "pll5_video", "pll8_mlb", "enet_ref",
> -	"pcie_ref_125m", "sata_ref_100m",
> +	"pcie_ref_125m", "sata_ref_100m",  "usbphy1", "usbphy2",
> +	"dummy", "dummy", "dummy", "dummy", "osc",
>  };
>  static const char *pll_bypass_src_sels[] = { "osc", "lvds1_in", "lvds2_in", "dummy", };
>  static const char *pll1_bypass_sels[] = { "pll1", "pll1_bypass_src", };

-- 
Pengutronix e.K.             | Lucas Stach                 |
Industrial Linux Solutions   | http://www.pengutronix.de/  |


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH V2] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b
  2015-11-15 10:38   ` [PATCH V2] " Michael Trimarchi
@ 2015-11-25  5:21     ` Shawn Guo
  0 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2015-11-25  5:21 UTC (permalink / raw)
  To: Michael Trimarchi; +Cc: kernel, mturquette, sboyd, linux-clk, linux-kernel

On Sun, Nov 15, 2015 at 11:38:04AM +0100, Michael Trimarchi wrote:
> OSC can be used as USB hub source clock. An example we can route to
> CLK2_P imx6 pin.
> 
> This show a usage example:
> 
> [...]
> 	usb_hub: usb-hub {
> 		compatible = "smsc,usb3503a";
> 		clocks = <&clks IMX6QDL_CLK_LVDS2_GATE>;
> 		clock-names = "refclk";
> 	};
> };
> 
> [...]
> &clks {
>         assigned-clocks = <&clks IMX6QDL_CLK_LVDS2_SEL>;
>         assigned-clock-parents = <&clks IMX6QDL_CLK_OSC>;
> };
> 
> /sys/kernel/debug/clk/clk_summary
> 
> osc                                 5            5    24000000          0 0
> [...]
>     lvds2_sel                       1            1    24000000          0 0
>        lvds2_gate                   1            1    24000000          0 0
> [...]
> 
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-25  5:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-08 14:07 [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b Michael Trimarchi
2015-11-15 10:19 ` Michael Trimarchi
2015-11-15 10:38   ` [PATCH V2] " Michael Trimarchi
2015-11-25  5:21     ` Shawn Guo
2015-11-17  9:37 ` [PATCH] " Lucas Stach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.