ARM: dts: rk322x: add hdmi support
authorWeiYong Bi <bivvy.bi@rock-chips.com>
Thu, 4 May 2017 08:12:01 +0000 (16:12 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 20 Jun 2017 08:27:24 +0000 (16:27 +0800)
Change-Id: Idc8aded6bccb39ea2649cd846f029dbb9ceee219
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
arch/arm/boot/dts/rk322x.dtsi

index c1eaad4a9bdb90638a103439f844b2af1b20ff81..8a7f3101d0c3f7c7583efa907bd005b71c78cfcb 100644 (file)
                status = "disabled";
        };
 
+       hdmi_phy: hdmi-phy@12030000 {
+               compatible = "rockchip,rk3228-hdmi-phy";
+               reg = <0x12030000 0x10000>;
+               #phy-cells = <0>;
+               clocks = <&cru PCLK_HDMI_PHY>, <&xin24m>;
+               clock-names = "sysclk", "refclk";
+               #clock-cells = <0>;
+               clock-output-names = "hdmiphy_phy";
+               status = "disabled";
+       };
+
        gpu: gpu@0x20001000 {
                compatible = "arm,mali400";
                reg = <0x20001000 0x200>,
                vop_out: port {
                        #address-cells = <1>;
                        #size-cells = <0>;
+
+                       vop_out_hdmi: endpoint@0 {
+                               reg = <0>;
+                               remote-endpoint = <&hdmi_in_vop>;
+                       };
                };
        };
 
                ports = <&vop_out>;
        };
 
+       hdmi: hdmi@200a0000 {
+               compatible = "rockchip,rk3228-dw-hdmi";
+               reg = <0x200a0000 0x20000>;
+               reg-io-width = <4>;
+               interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru SCLK_HDMI_HDCP>, <&cru PCLK_HDMI_CTRL>;
+               clock-names = "isfr", "iahb";
+               pinctrl-names = "default";
+               pinctrl-0 = <&hdmii2c_xfer &hdmi_hpd>;
+               resets = <&cru SRST_HDMI_P>;
+               reset-names = "hdmi";
+               phys = <&hdmi_phy>;
+               phy-names = "hdmi_phy";
+               rockchip,grf = <&grf>;
+               status = "disabled";
+
+               port {
+                       hdmi_in_vop: endpoint {
+                               remote-endpoint = <&vop_out_hdmi>;
+                       };
+               };
+       };
+
        sdmmc: dwmmc@30000000 {
                compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc";
                reg = <0x30000000 0x4000>;
                        };
                };
 
+               hdmi {
+                       hdmi_hpd: hdmi-hpd {
+                               rockchip,pins = <0 15 RK_FUNC_1 &pcfg_pull_down>;
+                       };
+
+                       hdmii2c_xfer: hdmii2c-xfer {
+                               rockchip,pins = <0 6 RK_FUNC_2 &pcfg_pull_none>,
+                                               <0 7 RK_FUNC_2 &pcfg_pull_none>;
+                       };
+               };
+
                i2c0 {
                        i2c0_xfer: i2c0-xfer {
                                rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>,