phy: rockchip-inno-mipi-dphy: export PLL clock

Change-Id: I1eb96241930e380997dd66f3a3b479fe53a72a98
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
WeiYong Bi
2017-07-13 16:19:08 +08:00
committed by Huang, Tao
parent 0b20916b09
commit fd964decbc
2 changed files with 439 additions and 412 deletions

View File

@@ -11,8 +11,9 @@ Required properties:
configuration
- the "ref" clock is used to get the rate of the reference clock
provided to the PHY module
- rockchip,dsi-panel : phandle to MIPI DSI panel node, used to get the display
timing of the panel provided to the PHY module.
- clock-output-names: from common clock binding.
See ../clocks/clock-bindings.txt for details.
- #clock-cells : from common clock binding; shall be set to 0.
Optional properties
- resets : phandle to the reset of MIPI DSI PHY APB clock.
@@ -22,25 +23,25 @@ Example:
For Rockchip RK3368
mipi_dphy: mipi-dphy@ff968000 {
compatible = "rockchip,rk3368-mipi-dphy";
reg = <0x0 0xff968000 0x0 0x4000>;
#phy-cells = <0>;
clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>;
clock-names = "ref", "pclk";
resets = <&cru SRST_MIPIDPHYTX>;
reset-names = "apb";
rockchip,dsi-panel = <&dsi_panel>;
};
mipi_dphy: mipi-dphy@ff968000 {
compatible = "rockchip,rk3368-mipi-dphy";
reg = <0x0 0xff968000 0x0 0x4000>;
clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>;
clock-names = "ref", "pclk";
clock-output-names = "mipi_dphy_pll";
#clock-cells = <0>;
resets = <&cru SRST_MIPIDPHYTX>;
reset-names = "apb";
#phy-cells = <0>;
};
Then the PHY can be used in other nodes such as:
mipi-dsi-host@ff960000 {
phys = <&mipi_dphy>;
phy-names = "mipi_dphy";
dsi_panel: panel {
dsi,lanes = 4;
dsi@ff960000 {
...
clocks = <&cru PCLK_MIPI_DSI0>, <&mipi_dphy>;
clock-names = "pclk", "hs_clk";
phys = <&mipi_dphy>;
phy-names = "mipi_dphy";
...
};
};

File diff suppressed because it is too large Load Diff