From: WeiYong Bi Date: Thu, 4 May 2017 08:12:01 +0000 (+0800) Subject: ARM: dts: rk322x: add hdmi support X-Git-Tag: release-20171130_firefly~4^2~376 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c57c03134612cc5a429874d706b7a3729f86d91e;p=firefly-linux-kernel-4.4.55.git ARM: dts: rk322x: add hdmi support Change-Id: Idc8aded6bccb39ea2649cd846f029dbb9ceee219 Signed-off-by: WeiYong Bi --- diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index c1eaad4a9bdb..8a7f3101d0c3 100644 --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/arch/arm/boot/dts/rk322x.dtsi @@ -539,6 +539,17 @@ 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>, @@ -607,6 +618,11 @@ vop_out: port { #address-cells = <1>; #size-cells = <0>; + + vop_out_hdmi: endpoint@0 { + reg = <0>; + remote-endpoint = <&hdmi_in_vop>; + }; }; }; @@ -626,6 +642,30 @@ ports = <&vop_out>; }; + hdmi: hdmi@200a0000 { + compatible = "rockchip,rk3228-dw-hdmi"; + reg = <0x200a0000 0x20000>; + reg-io-width = <4>; + interrupts = , + ; + 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>; @@ -953,6 +993,17 @@ }; }; + 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>,