xref: /openbmc/linux/Documentation/devicetree/bindings/phy/phy-rockchip-inno-hdmi.txt (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1*4e3fe1cbSZheng YangROCKCHIP HDMI PHY WITH INNO IP BLOCK
2*4e3fe1cbSZheng Yang
3*4e3fe1cbSZheng YangRequired properties:
4*4e3fe1cbSZheng Yang - compatible : should be one of the listed compatibles:
5*4e3fe1cbSZheng Yang	* "rockchip,rk3228-hdmi-phy",
6*4e3fe1cbSZheng Yang	* "rockchip,rk3328-hdmi-phy";
7*4e3fe1cbSZheng Yang - reg : Address and length of the hdmi phy control register set
8*4e3fe1cbSZheng Yang - clocks : phandle + clock specifier for the phy clocks
9*4e3fe1cbSZheng Yang - clock-names : string, clock name, must contain "sysclk" for system
10*4e3fe1cbSZheng Yang	  control and register configuration, "refoclk" for crystal-
11*4e3fe1cbSZheng Yang	  oscillator reference PLL clock input and "refpclk" for pclk-
12*4e3fe1cbSZheng Yang	  based refeference PLL clock input.
13*4e3fe1cbSZheng Yang - #clock-cells: should be 0.
14*4e3fe1cbSZheng Yang - clock-output-names : shall be the name for the output clock.
15*4e3fe1cbSZheng Yang - interrupts : phandle + interrupt specified for the hdmiphy interrupt
16*4e3fe1cbSZheng Yang - #phy-cells : must be 0. See ./phy-bindings.txt for details.
17*4e3fe1cbSZheng Yang
18*4e3fe1cbSZheng YangOptional properties for rk3328-hdmi-phy:
19*4e3fe1cbSZheng Yang - nvmem-cells = phandle + nvmem specifier for the cpu-version efuse
20*4e3fe1cbSZheng Yang - nvmem-cell-names : "cpu-version" to read the chip version, required
21*4e3fe1cbSZheng Yang	  for adjustment to some frequency settings
22*4e3fe1cbSZheng Yang
23*4e3fe1cbSZheng YangExample:
24*4e3fe1cbSZheng Yang	hdmi_phy: hdmi-phy@12030000 {
25*4e3fe1cbSZheng Yang		compatible = "rockchip,rk3228-hdmi-phy";
26*4e3fe1cbSZheng Yang		reg = <0x12030000 0x10000>;
27*4e3fe1cbSZheng Yang		#phy-cells = <0>;
28*4e3fe1cbSZheng Yang		clocks = <&cru PCLK_HDMI_PHY>, <&xin24m>, <&cru DCLK_HDMIPHY>;
29*4e3fe1cbSZheng Yang		clock-names = "sysclk", "refoclk", "refpclk";
30*4e3fe1cbSZheng Yang		#clock-cells = <0>;
31*4e3fe1cbSZheng Yang		clock-output-names = "hdmi_phy";
32*4e3fe1cbSZheng Yang		status = "disabled";
33*4e3fe1cbSZheng Yang	};
34*4e3fe1cbSZheng Yang
35*4e3fe1cbSZheng YangThen the PHY can be used in other nodes such as:
36*4e3fe1cbSZheng Yang
37*4e3fe1cbSZheng Yang	hdmi: hdmi@200a0000 {
38*4e3fe1cbSZheng Yang		compatible = "rockchip,rk3228-dw-hdmi";
39*4e3fe1cbSZheng Yang		...
40*4e3fe1cbSZheng Yang		phys = <&hdmi_phy>;
41*4e3fe1cbSZheng Yang		phy-names = "hdmi";
42*4e3fe1cbSZheng Yang		...
43*4e3fe1cbSZheng Yang	};
44