xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-inno-hdmi-phy.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1ROCKCHIP HDMI PHY WITH INNO IP BLOCK
2
3Required properties:
4 - compatible : "rockchip,rk3228-hdmi-phy",
5		"rockchip,rk3328-hdmi-phy";
6 - reg : the address offset of register for hdmi phy configuration.
7 - #phy-cells : must be 0. See ./phy-bindings.txt for details.
8 - clocks and clock-names:
9	- the "sysclk" clock is required by the phy module, used to system
10	  control and register configuration
11	- the "refclk" clock is reference crystal oscillator clock input
12	  to PLL
13 - #clock-cells: should be 0.
14 - clock-output-names : shall be the corresponding names of the outputs.
15 - rockchip,phy-table: the parameter table of hdmi phy configuration.
16
17Example:
18
19	hdmi_phy: hdmi-phy@12030000 {
20		compatible = "rockchip,rk3228-hdmi-phy";
21		reg = <0x12030000 0x10000>;
22		#phy-cells = <0>;
23		clocks = <&cru PCLK_HDMI_PHY>, <&xin24m>;
24		clock-names = "sysclk", "refclk";
25		#clock-cells = <0>;
26		clock-output-names = "hdmiphy_phy";
27		rockchip,phy-table =
28			<165000000 0x07 0x0a 0x0a 0x0a 0x00 0x00 0x08
29				   0x08 0x08 0x00 0xac 0xcc 0xcc 0xcc>,
30			<340000000 0x0b 0x0d 0x0d 0x0d 0x07 0x15 0x08
31				   0x08 0x08 0x3f 0xac 0xcc 0xcd 0xdd>,
32			<594000000 0x10 0x1a 0x1a 0x1a 0x07 0x15 0x08
33				   0x08 0x08 0x00 0xac 0xcc 0xcc 0xcc>;
34		status = "disabled";
35	};
36
37Then the PHY can be used in other nodes such as:
38
39	hdmi: hdmi@200a0000 {
40		compatible = "rockchip,rk3228-dw-hdmi";
41		...
42		phys = <&hdmi_phy>;
43		phy-names = "hdmi_phy";
44		...
45	};
46