RK 方案VOP 显示接口的链接关系以及DTS如何配置

这图显示各vp 支持情况 如下图VP0 支持DSI0 DSI1 EDP LVDS HDMI 显示接口,如果我们一方案需要点MIPI 屏 和HDMI out, 如果VP0 链接MIPI DSI0 那么VP0 就不能再选择了,只能VP1 链接HDMI out 了。因为VP2不至此HDMI,所有就只有选择VP1 链接HDMI

在这里插入图片描述

 vop: vop@fe040000 {
  compatible = "rockchip,rk3568-vop";
  reg = <0x0 0xfe040000 0x0 0x3000>, <0x0 0xfe044000 0x0 0x1000>;
  reg-names = "regs", "gamma_lut";
  rockchip,grf = <&grf>;
  interrupts = <0 148 4>;
  clocks = <&cru 221>, <&cru 222>, <&cru 223>, <&cru 224>, <&cru 225>;
  clock-names = "aclk_vop", "hclk_vop", "dclk_vp0", "dclk_vp1", "dclk_vp2";
  iommus = <&vop_mmu>;
  power-domains = <&power 9>;
  status = "disabled";

  vop_out: ports {
   #address-cells = <1>;
   #size-cells = <0>;

   vp0: port@0 {
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0>;

    vp0_out_dsi0: endpoint@0 {
     reg = <0>;
     remote-endpoint = <&dsi0_in_vp0>;
    };

    vp0_out_dsi1: endpoint@1 {
     reg = <1>;
     remote-endpoint = <&dsi1_in_vp0>;
    };

    vp0_out_edp: endpoint@2 {
     reg = <2>;
     remote-endpoint = <&edp_in_vp0>;
    };

    vp0_out_hdmi: endpoint@3 {
     reg = <3>;
     remote-endpoint = <&hdmi_in_vp0>;
    };
   };

   vp1: port@1 {
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <1>;

    vp1_out_dsi0: endpoint@0 {
     reg = <0>;
     remote-endpoint = <&dsi0_in_vp1>;
    };

    vp1_out_dsi1: endpoint@1 {
     reg = <1>;
     remote-endpoint = <&dsi1_in_vp1>;
    };

    vp1_out_edp: endpoint@2 {
     reg = <2>;
     remote-endpoint = <&edp_in_vp1>;
    };

    vp1_out_hdmi: endpoint@3 {
     reg = <3>;
     remote-endpoint = <&hdmi_in_vp1>;
    };

    vp1_out_lvds: endpoint@4 {
     reg = <4>;
     remote-endpoint = <&lvds_in_vp1>;
    };
   };

   vp2: port@2 {
    #address-cells = <1>;
    #size-cells = <0>;

    reg = <2>;

    vp2_out_lvds: endpoint@0 {
     reg = <0>;
     remote-endpoint = <&lvds_in_vp2>;
    };

    vp2_out_rgb: endpoint@1 {
     reg = <1>;
     remote-endpoint = <&rgb_in_vp2>;
    };
   };
  };
 };

DTS 配置如下 ,hdmi_in_vp1 / dsi0_in_vp0打开

&hdmi {
 status = "okay";
 rockchip,phy-table =
  <92812500 0x8009 0x0000 0x0270>,
  <165000000 0x800b 0x0000 0x026d>,
  <185625000 0x800b 0x0000 0x01ed>,
  <297000000 0x800b 0x0000 0x01ad>,
  <594000000 0x8029 0x0000 0x0088>,
  <000000000 0x0000 0x0000 0x0000>;
};


&hdmi_in_vp0 {
 status = "disabled";
};

&hdmi_in_vp1 {
 status = "okay";
};





&dsi0 {
 status = "okay";
};

&dsi0_in_vp0 {
 status = "okay";
};

&dsi0_in_vp1 {
 status = "disabled";
};

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

baidu_37552881

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值