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