Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1269662

[PATCH V2] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b

From Michael Trimarchi <michael@amarulasolutions.com>
Newsgroups linux.kernel
Subject [PATCH V2] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b
Date 2015-11-15 11:40 +0100
Message-ID <qv2SZ-9B-9@gated-at.bofh.it> (permalink)
References <qsyPn-18x-15@gated-at.bofh.it> <qv2Jj-6m-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b Michael Trimarchi <michael@amarulasolutions.com> - 2015-11-08 15:10 +0100
  Re: [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b Michael Trimarchi <michael@amarulasolutions.com> - 2015-11-15 11:30 +0100
    [PATCH V2] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b Michael Trimarchi <michael@amarulasolutions.com> - 2015-11-15 11:40 +0100
      Re: [PATCH V2] clk: imx: clk-imx6q: Let OSC to be routed to  anaclk2/2b Shawn Guo <shawnguo@kernel.org> - 2015-11-25 06:30 +0100
  Re: [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b Lucas Stach <l.stach@pengutronix.de> - 2015-11-17 10:40 +0100

csiph-web