video: rockchip: hdmi: support rk3399 hdmi
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / video / rockchip_hdmi.txt
1 Device-Tree bindings for rockchip hdmi driver
2
3 Required properties:
4 - compatible: value should be following:
5         "rockchip,rk3036-hdmi",
6         "rockchip,rk312x-hdmi",
7         "rockchip,rk3288-hdmi",
8         "rockchip,rk3366-hdmi",
9         "rockchip,rk3368-hdmi",
10         "rockchip,rk3399-hdmi",
11 - reg: physical base address of the hdmi and length of memory mapped
12         region.
13 - interrupts: interrupt number to the cpu.
14 - pinctrl-names: must contain a "default" entry.
15 - pinctrl-0: pin control group to be used for this controller.
16 - pinctrl-1: pin control group to be used for gpio.
17 - clocks: must include clock specifiers corresponding to entries in the
18         clock-names property.
19 - clocks-names: list of clock names sorted in the same order as the clocks
20                property. Must contain "pclk_hdmi" and "hdcp_clk_hdmi".
21 - rockchip,hdmi_audio_source: hdmi audio source that is described as follow
22         <0>: hdmi audio source from the I2S interface
23         <1>: hdmi audio source from the SPDIF interface                         
24 - rockchip,hdmi_video_source: hdmi video source that is described as follow
25         <DISPLAY_SOURCE_LCDC0> hdmi video source from LCDC0/VOP0
26         <DISPLAY_SOURCE_LCDC1> hdmi video source from LCDC1/VOP1
27 - rockchip,hdcp_enable: hdmi hdcp function is described as follow
28         <0>: hdcp function is disabled.
29         <1>: hdcp function is enabled.
30 - rockchip,cec_enable: hdmi cec function is described as follow
31         <0>: cec function is disabled.
32         <1>: cec function is enabled.
33 - rockchip,defaultmode: hdmi default output video mode.
34 Example:
35
36         hdmi: hdmi@ff980000 {
37                 compatible = "rockchip,rk3288-hdmi";
38                 reg = <0xff980000 0x20000>;
39                 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
40                 pinctrl-names = "default", "gpio";
41                 pinctrl-0 = <&i2c5_sda &i2c5_scl>;
42                 pinctrl-1 = <&i2c5_gpio>;
43                 clocks = <&clk_gates16 9>, <&clk_gates5 12>;
44                 clock-names = "pclk_hdmi", "hdcp_clk_hdmi";
45                 rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC0>;
46                 rockchip,hdmi_audio_source = <0>;
47                 rockchip,hdcp_enable = <0>;
48                 rockchip,cec_enable = <0>;
49         };
50