imx8mq evk device tree with sn65dsi83 issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mq evk device tree with sn65dsi83 issue

39 Views
Ichi_
Contributor I

Hi all

The yocto linux version : 6.6.23

I have canceled adv7535 settings(Makefile) and add sn65dsi83 in imx8mq-evk.dts, but it looks some duplicate definitions.

Does any one have any suggestions about sn65dsi83 with 6.6.23 porting?Thanks.

 

The Error message as below:

ERROR (duplicate_label): /soc@0/bus@30800000/dsi@30a00000/ports/port@0/endpoint: Duplicate label 'mipi_dsi_in' on /soc@0/bus@30800000/dsi@30a00000/ports/port@0/endpoint and /soc@0/bus@30800000/dsi@30a00000/ports/port@0/endpoint@1

ERROR (duplicate_label): /soc@0/bus@32c00000/display-controller@32e00000/port/endpoint: Duplicate label 'dcss_out' on /soc@0/bus@32c00000/display-controller@32e00000/port/endpoint and /soc@0/bus@32c00000/display-controller@32e00000/port@0/endpoint

 

1.freescale/Makefile (canceled adv7535)

#dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-lcdif-rm67191.dtb imx8mq-evk-lcdif-adv7535.dtb
#dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-lcdif-rm67199.dtb
#dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-dcss-rm67191.dtb imx8mq-evk-dcss-adv7535.dtb
#dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-dcss-rm67199.dtb

 

2.The imx8mq-evk.dts file changed as below:

/{

.

.

        lvds_backlight0: lvds_backlight@0 {
        compatible = "pwm-backlight";
        pwms = <&pwm1 0 50000>; /* 20 Khz */

        brightness-levels = < 0 1 2 3 4 5 6 7 8 9
        10 11 12 13 14 15 16 17 18 19
        20 21 22 23 24 25 26 27 28 29
        30 31 32 33 34 35 36 37 38 39
        40 41 42 43 44 45 46 47 48 49
        50 51 52 53 54 55 56 57 58 59
        60 61 62 63 64 65 66 67 68 69
        70 71 72 73 74 75 76 77 78 79
        80 81 82 83 84 85 86 87 88 89
        90 91 92 93 94 95 96 97 98 99
        100>;
        default-brightness-level = <80>;
        status = "okay";
        };

};

.

.

&i2c1 {

.

.

dsi_lvds_bridge: sn65dsi84@2c {
    compatible = "ti,sn65dsi83";
    reg = <0x2c>;
    ti,dsi-lanes = <4>;
    ti,lvds-format = <2>;
    ti,lvds-channels = <1>;
    ti,lvds-bpp = <24>;
    ti,width-mm = <344>;
    ti,height-mm = <194>;
    ti,burst-mode;
    enable-gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
    panel-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_mipi_dsi_en>;
    status = "okay";

    display-timings {
    lvds {
    clock-frequency = <76000000>;
    hactive = <1366>;
    vactive = <768>;
    hfront-porch = <174>;
    hsync-len = <12>;
    hback-porch = <8>;
    vfront-porch = <18>;
    vsync-len = <12>;
    vback-porch = <8>;
    vsync-active = <0>;
    hsync-active = <0>;
    de-active = <0>;
    pixelclk-active = <0>;
    };
  };
port@0 {
    dsi_lvds_bridge_in: endpoint {
    remote-endpoint = <&mipi_dsi_out>;
    };
  };
};

};

.

.

&dcss {
status = "okay";

/*port {
dcss_out: endpoint {
remote-endpoint = <&hdmi_in>;
};
};*/


clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>,
<&clk IMX8MQ_CLK_DISP_AXI_ROOT>,
<&clk IMX8MQ_CLK_DISP_RTRM_ROOT>,
<&clk IMX8MQ_CLK_DC_PIXEL>,
<&clk IMX8MQ_CLK_DISP_DTRC>;
clock-names = "apb", "axi", "rtrm", "pix", "dtrc";
assigned-clocks = <&clk IMX8MQ_CLK_DC_PIXEL>,
<&clk IMX8MQ_VIDEO_PLL1_BYPASS>,
<&clk IMX8MQ_VIDEO_PLL1_REF_SEL>,
<&clk IMX8MQ_CLK_DISP_AXI>,
<&clk IMX8MQ_CLK_DISP_RTRM>;
assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>,
<&clk IMX8MQ_VIDEO_PLL1>,
<&clk IMX8MQ_CLK_27M>,
<&clk IMX8MQ_SYS1_PLL_800M>,
<&clk IMX8MQ_SYS1_PLL_800M>;
assigned-clock-rates = <600000000>, <0>, <0>,
<800000000>,
<400000000>;

port@0 {
dcss_out: endpoint {
remote-endpoint = <&mipi_dsi_in>;
};
};
};

 

&mipi_dsi {
status = "okay";

    ports {
#address-cells = <1>
#size-cells = <

        port@0 {
        reg = <0>;
        mipi_dsi_in: endpoint {
        remote-endpoint = <&dcss_out>;
        };
    };

    port@1 {
        reg = <1>;
        mipi_dsi_out: endpoint {
        remote-endpoint = <&dsi_lvds_bridge_in>;
        };
    };
  };
};

0 Kudos
Reply
2 Replies

21 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Ichi_ 

Please upload the dts file here.


Best Regards
Zhiming

0 Kudos
Reply

16 Views
Ichi_
Contributor I

Hi Zhiming_Liu

The imx8-evk.dts and Makefile.7z has been uploaded.

Thanks

0 Kudos
Reply