arm64: dts: rk3368: Add hdmi support
authorWeiYong Bi <bivvy.bi@rock-chips.com>
Tue, 25 Apr 2017 00:46:45 +0000 (08:46 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 26 Apr 2017 08:29:39 +0000 (16:29 +0800)
Change-Id: I6d0ff68e2fbd852ae796e73de30e5cd577e924ed
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368.dtsi

index 29b9db7cb48c4578ae5edbe7c627a44a963d7e02..9499d6c08e282be9186cb62d7f82d2342970c89b 100644 (file)
                                reg = <1>;
                                remote-endpoint = <&edp_in_vop>;
                        };
+
+                       vop_out_hdmi: endpoint@2 {
+                               reg = <2>;
+                               remote-endpoint = <&hdmi_in_vop>;
+                       };
                };
        };
 
                };
        };
 
+       hdmi: hdmi@ff980000 {
+               compatible = "rockchip,rk3368-dw-hdmi";
+               reg = <0x0 0xff980000 0x0 0x20000>;
+               reg-io-width = <4>;
+               interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>, <&cru SCLK_HDMI_CEC>;
+               clock-names = "iahb", "isfr", "cec";
+               pinctrl-names = "default";
+               pinctrl-0 = <&hdmi_i2c_xfer>, <&hdmi_cec>;
+               resets = <&cru SRST_HDMI>;
+               reset-names = "hdmi";
+               power-domains = <&power RK3368_PD_VIO>;
+               rockchip,grf = <&grf>;
+               status = "disabled";
+
+               ports {
+                       port {
+                               hdmi_in_vop: endpoint {
+                                       remote-endpoint = <&vop_out_hdmi>;
+                               };
+                       };
+               };
+       };
+
        hevc_mmu: iommu@ff9a0440 {
                compatible = "rockchip,iommu";
                reg = <0x0 0xff9a0440 0x0 0x40>,
                        };
                };
 
+               hdmi {
+                       hdmi_cec: hdmi-cec {
+                               rockchip,pins = <3 23 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+
+                       hdmi_i2c_xfer: hdmi-i2c-xfer {
+                               rockchip,pins = <3 26 RK_FUNC_1 &pcfg_pull_none>,
+                                               <3 27 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+               };
+
                i2c0 {
                        i2c0_xfer: i2c0-xfer {
                                rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>,