Merge tag 'audit-pr-20200226' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / display / rockchip / rockchip,rk3066-hdmi.txt
1 Rockchip specific extensions for rk3066 HDMI
2 ============================================
3
4 Required properties:
5 - compatible:
6         "rockchip,rk3066-hdmi";
7 - reg:
8         Physical base address and length of the controller's registers.
9 - clocks, clock-names:
10         Phandle to HDMI controller clock, name should be "hclk".
11 - interrupts:
12         HDMI interrupt number.
13 - power-domains:
14         Phandle to the RK3066_PD_VIO power domain.
15 - rockchip,grf:
16         This soc uses GRF regs to switch the HDMI TX input between vop0 and vop1.
17 - ports:
18         Contains one port node with two endpoints, numbered 0 and 1,
19         connected respectively to vop0 and vop1.
20         Contains one port node with one endpoint
21         connected to a hdmi-connector node.
22 - pinctrl-0, pinctrl-name:
23         Switch the iomux for the HPD/I2C pins to HDMI function.
24
25 Example:
26         hdmi: hdmi@10116000 {
27                 compatible = "rockchip,rk3066-hdmi";
28                 reg = <0x10116000 0x2000>;
29                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
30                 clocks = <&cru HCLK_HDMI>;
31                 clock-names = "hclk";
32                 power-domains = <&power RK3066_PD_VIO>;
33                 rockchip,grf = <&grf>;
34                 pinctrl-names = "default";
35                 pinctrl-0 = <&hdmii2c_xfer>, <&hdmi_hpd>;
36
37                 ports {
38                         #address-cells = <1>;
39                         #size-cells = <0>;
40                         hdmi_in: port@0 {
41                                 reg = <0>;
42                                 #address-cells = <1>;
43                                 #size-cells = <0>;
44                                 hdmi_in_vop0: endpoint@0 {
45                                         reg = <0>;
46                                         remote-endpoint = <&vop0_out_hdmi>;
47                                 };
48                                 hdmi_in_vop1: endpoint@1 {
49                                         reg = <1>;
50                                         remote-endpoint = <&vop1_out_hdmi>;
51                                 };
52                         };
53                         hdmi_out: port@1 {
54                                 reg = <1>;
55                                 hdmi_out_con: endpoint {
56                                         remote-endpoint = <&hdmi_con_in>;
57                                 };
58                         };
59                 };
60         };
61
62 &pinctrl {
63                 hdmi {
64                         hdmi_hpd: hdmi-hpd {
65                                 rockchip,pins = <0 RK_PA0 1 &pcfg_pull_default>;
66                         };
67                         hdmii2c_xfer: hdmii2c-xfer {
68                                 rockchip,pins = <0 RK_PA1 1 &pcfg_pull_none>,
69                                                 <0 RK_PA2 1 &pcfg_pull_none>;
70                         };
71                 };
72 };