RGB Bridge Display Device Tree

The MIPI-2-RGB (TC358867) device node including the display’s timings as given in the standard Example Device Tree File form.

&mipi_dsi {
     status = "okay";

     panel-bridge@0 {
             compatible = "toshiba,tc358867xbg";
             reg = <0>;

             port {
                     tc358867_in: endpoint {
                             remote-endpoint = <&dsi_out>;
                     };
             };

             display-timings {
                     lcd {
                             // all EDT displays - Leave clock at 25175000!!!
                             clock-frequency = <25175000>;
                             hactive = <320>;
                             vactive = <240>;
                             hback-porch = <38>;
                             hfront-porch = <20>;
                             vback-porch = <14>;
                             vfront-porch = <4>;
                             hsync-len = <30>;
                             vsync-len = <4>;
                             hsync-active = <0>;
                             vsync-active = <0>;
                             de-active = <1>;
                             pixelclk-active = <0>;
                     };
             };

     };

     port@1 {
             dsi_out: endpoint {
                     remote-endpoint = <&tc358867_in>;
             };
     };
};

Display Timing

The Actualy display timing part of the DT.

display-timings {
        lcd {
                // all EDT displays - Leave clock at 25175000!!!
                clock-frequency = <25175000>;
                hactive = <320>;
                vactive = <240>;
                hback-porch = <38>;
                hfront-porch = <20>;
                vback-porch = <14>;
                vfront-porch = <4>;
                hsync-len = <30>;
                vsync-len = <4>;
                hsync-active = <0>;
                vsync-active = <0>;
                de-active = <1>;
                pixelclk-active = <0>;
        };
};

Example Device Tree File

As found in the local yocto sources:

../yocto/gatesgarth/sources/meta-karo-nxp/recipes-kernel/linux/linux-imx-5.10/mx8/dts/freescale/imx8m-qs8m-tc358867.dtsi

or as they can be viewed on github.