imx6 device tree lvds屏配置

来源:互联网 发布:手机激光测距软件 编辑:程序博客网 时间:2024/06/03 16:47

imx6qdl-sabresd.dtsi中lvds接口显示配置如下:

&ldb {
 status = "okay";

 lvds-channel@0 {
  fsl,data-mapping = "spwg";
  fsl,data-width = <18>;
  primary;
  ipu_id = <1>;
  disp_id = <0>;
  status = "okay";

  display-timings {
   native-mode = <&timing0>;
   timing0: hsd100pxn1 {
    clock-frequency = <65000000>;
    hactive = <1024>;
    vactive = <768>;
    hback-porch = <220>;
    hfront-porch = <40>;
    vback-porch = <21>;
    vfront-porch = <7>;
    hsync-len = <60>;
    vsync-len = <10>;
   };
  };
 };

 lvds-channel@1 {
  fsl,data-mapping = "spwg";
  fsl,data-width = <18>;
/* primary; */
  status = "okay";

  display-timings {
   native-mode = <&timing1>;
   timing1: hsd100pxn1 {
    clock-frequency = <65000000>;
    hactive = <1024>;
    vactive = <768>;
    hback-porch = <220>;
    hfront-porch = <40>;
    vback-porch = <21>;
    vfront-porch = <7>;
    hsync-len = <60>;
    vsync-len = <10>;
   };
  };
 };
};

0 0
原创粉丝点击