当前位置: 代码迷 >> 综合 >> imx6 device tree lvds屏配置
  详细解决方案

imx6 device tree lvds屏配置

热度:66   发布时间:2023-12-11 20:58:18.0

修改kernel源码文件夹中arch/arm/boot/dts/imx6qdl-sabresd.dtsi(此文件作为头文件被imx6q-sabresd.dts包含)中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>;
   };
  };
 };

};

在源码文件夹生成dtb:

$make imx6q-sabresd.dtb

  相关解决方案