clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b
authorMichael Trimarchi <michael@amarulasolutions.com>
Sun, 15 Nov 2015 10:38:04 +0000 (11:38 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 25 Nov 2015 05:20:18 +0000 (13:20 +0800)
commit2e133f61882baefaf89dc79c56a7975d80360ef4
treec62ef73bd5bb73419971f199959c58f1baced96a
parent4824b61c666831e1051530c7f0ff68b0ae6c2511
clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b

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>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx6q.c