arm64: dts: rockchip: Add eDP node for rk3368
authorWeiYong Bi <bivvy.bi@rock-chips.com>
Sat, 25 Mar 2017 03:20:36 +0000 (11:20 +0800)
committerWeiYong Bi <bivvy.bi@rock-chips.com>
Mon, 27 Mar 2017 09:43:11 +0000 (17:43 +0800)
Change-Id: I0fa5ddc12cdbb2bf1d9fb0667222ead15071bdec
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368.dtsi

index 49dd3edf00cb7386c022b2c2917d0677cf7e1845..43ea7b2617bc019a2ef7281b8d3042e1d46b5ca4 100644 (file)
                #address-cells = <1>;
                #size-cells = <1>;
 
+               edp_phy: edp-phy {
+                       compatible = "rockchip,rk3368-dp-phy";
+                       clocks = <&cru SCLK_EDP_24M>;
+                       clock-names = "24m";
+                       resets = <&cru SRST_EDP_24M>;
+                       reset-names = "edp_24m";
+                       #phy-cells = <0>;
+                       status = "disabled";
+               };
+
                io_domains: io-domains {
                        compatible = "rockchip,rk3368-io-voltage-domain";
                        status = "disabled";
                                reg = <0>;
                                remote-endpoint = <&mipi_in_vop>;
                        };
+
+                       vop_out_edp: endpoint@1 {
+                               reg = <1>;
+                               remote-endpoint = <&edp_in_vop>;
+                       };
                };
        };
 
                status = "disabled";
        };
 
+       edp: edp@ff970000 {
+               compatible = "rockchip,rk3368-edp";
+               reg = <0x0 0xff970000 0x0 0x8000>;
+               interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
+               clock-names = "dp", "pclk";
+               resets = <&cru SRST_EDP>;
+               reset-names = "dp";
+               power-domains = <&power RK3368_PD_VIO>;
+               rockchip,grf = <&grf>;
+               phys = <&edp_phy>;
+               phy-names = "dp";
+               pinctrl-names = "default";
+               pinctrl-0 = <&edp_hpd>;
+               status = "disabled";
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       edp_in: port@0 {
+                               reg = <0>;
+
+                               edp_in_vop: endpoint {
+                                       remote-endpoint = <&vop_out_edp>;
+                               };
+                       };
+               };
+       };
+
        hevc_mmu: iommu@ff9a0440 {
                compatible = "rockchip,iommu";
                reg = <0x0 0xff9a0440 0x0 0x40>,
                        drive-strength = <12>;
                };
 
+               edp {
+                       edp_hpd: edp-hpd {
+                               rockchip,pins = <2 23 RK_FUNC_2 &pcfg_pull_none>;
+                       };
+               };
+
                emmc {
                        emmc_clk: emmc-clk {
                                rockchip,pins = <2 4 RK_FUNC_2 &pcfg_pull_none>;