drm/rockchip: dw_hdmi-rockchip: get phy config from dts
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / display / rockchip / dw_hdmi-rockchip.txt
1 Rockchip specific extensions to the Synopsys Designware HDMI
2 ================================
3
4 Required properties:
5 - compatible: "rockchip,rk3288-dw-hdmi",
6               "rockchip,rk3399-dw-hdmi";
7 - reg: Physical base address and length of the controller's registers.
8 - clocks: phandle to hdmi iahb and isfr clocks.
9 - clock-names: should be "iahb" "isfr"
10 - rockchip,grf: this soc should set GRF regs to mux vopl/vopb.
11 - interrupts: HDMI interrupt number
12 - ports: contain a port node with endpoint definitions as defined in
13   Documentation/devicetree/bindings/media/video-interfaces.txt. For
14   vopb,set the reg = <0> and set the reg = <1> for vopl.
15 - reg-io-width: the width of the reg:1,4, the value should be 4 on
16   rk3288 platform
17
18 Optional properties
19 - ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
20 - clocks, clock-names: phandle to the HDMI CEC clock, name should be "cec",
21                        phandle to the VPLL clock, name should be "vpll",
22                        phandle to the GRF clock, name should be "grf".
23 - rockchip,phy-table: the parameter table of hdmi phy configuration.
24
25 Example:
26 hdmi: hdmi@ff980000 {
27         compatible = "rockchip,rk3288-dw-hdmi";
28         reg = <0xff980000 0x20000>;
29         reg-io-width = <4>;
30         ddc-i2c-bus = <&i2c5>;
31         rockchip,grf = <&grf>;
32         interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
33         clocks = <&cru  PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>;
34         clock-names = "iahb", "isfr";
35         status = "disabled";
36         ports {
37                 hdmi_in: port {
38                         #address-cells = <1>;
39                         #size-cells = <0>;
40                         hdmi_in_vopb: endpoint@0 {
41                                 reg = <0>;
42                                 remote-endpoint = <&vopb_out_hdmi>;
43                         };
44                         hdmi_in_vopl: endpoint@1 {
45                                 reg = <1>;
46                                 remote-endpoint = <&vopl_out_hdmi>;
47                         };
48                 };
49         };
50         rockchip,phy-table = <74250000 0x8009 0x0004 0x0272>,
51                 <165000000 0x802b 0x0004 0x0209>,
52                 <297000000 0x8039 0x0005 0x028d>,
53                 <594000000 0x8039 0x0000 0x019d>,
54                 <000000000 0x0000 0x0000 0x0000>;
55 };