Sugar Zhang 7ddb8b2d97 clk: rockchip: rk3568: Allow config i2s mclk as out/in
This patch exports I2Sx_IOE to allow user to config mclk
direction from DT.

e.g.

i2s2 mclk as output:

&ext_codec {
	clocks = <&cru I2S2_MCLKOUT>;
	clock-names = "mclk";
	assigned-clocks = <&cru I2S2_MCLK_IOE>, <&cru I2S2_MCLKOUT>;
	assigned-clock-rates = <0>, <12288000>;
	assigned-clock-parents = <&cru I2S2_MCLKOUT>;
};

clk summary:

gpll                           6        9        0  1188000000
  clk_i2s2_2ch_src             0        0        0   594000000
    clk_i2s2_2ch_frac          0        0        0    12288000
      clk_i2s2_2ch             0        0        0    12288000
        mclk_i2s2_2ch          0        0        0    12288000
          i2s2_mclkout         0        0        0    12288000
            i2s2_mclk_ioe      0        0        0    12288000

i2s2 mclk as input:

&ext_codec {
	clocks = <&i2s2_mclkin>;
	clock-names = "mclk";
	assigned-clocks = <&cru I2S2_MCLK_IOE>, <&cru CLK_I2S2_2CH>;
	assigned-clock-parents = <&i2s2_mclkin>, <&i2s2_mclkin>;
};

clk summary:

i2s2_mclkin                    0        0        0    12288000
  clk_i2s2_2ch                 0        0        0    12288000
    mclk_i2s2_2ch              0        0        0    12288000
  i2s2_mclk_ioe                0        0        0    12288000

Change-Id: I57d10ea02b65bf14d2c2f9ff403f06ec4c33c610
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-03-11 12:08:29 +08:00
2019-02-10 00:33:21 +08:00
2021-03-03 19:13:54 +08:00
2019-02-10 00:33:21 +08:00
2019-02-10 00:33:21 +08:00
2019-08-29 19:45:37 +08:00
2019-08-29 19:45:37 +08:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%