238e3405f8ebd1883521ad7952acb2307d5fe373
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / phy / phy-rockchip-inno-mipi-dphy.txt
1 ROCKCHIP MIPI DPHY WITH INNO IP BLOCK
2
3 Required properties:
4  - compatible : should be "rockchip,rk3368-mipi-dphy";
5  - reg : the address offset of register for mipi-dphy configuration.
6  - #phy-cells : must be 0. See ./phy-bindings.txt for details.
7  - clocks and clock-names:
8         - the "pclk" clock is required by the phy module, used to register
9           configuration
10         - the "ref" clock is used to get the rate of the reference clock
11           provided to the PHY module
12  - rockchip,dsi-panel : phandle to MIPI DSI panel node, used to get the display
13                         timing of the panel provided to the PHY module.
14
15 Example:
16
17 For Rockchip RK3368
18
19 mipi_dphy: mipi-dphy@ff968000 {
20         compatible = "rockchip,rk3368-mipi-dphy";
21         reg = <0x0 0xff968000 0x0 0x4000>;
22         #phy-cells = <0>;
23         clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>;
24         clock-names = "ref", "pclk";
25         rockchip,dsi-panel = <&dsi_panel>;
26 };
27
28 Then the PHY can be used in other nodes such as:
29
30 mipi-dsi-host@ff960000 {
31         phys = <&mipi_dphy>;
32         phy-names = "mipi_dphy";
33
34         dsi_panel: panel {
35                 dsi,lanes = 4;
36                 ...
37         };
38 };