Firefly Open Source Community

   Login   |   Register   |
New_Topic
12
New Topic
Print Previous Topic Next Topic

AIO-3399J LVDS

211

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
211
Posted at 6/11/2018 18:20:54        Only Author  11#
Hi,

I use this settings:


&dsi {
        status = "okay";
        dsi_panel: panel {
                compatible ="simple-panel-dsi";
                reg = <0>;
                //ddc-i2c-bu
                //power-supply = <&vcc_lcd>;
                backlight = <&backlight>;
                enable-gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
                dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
                dsi,format = <MIPI_DSI_FMT_RGB888>;
                bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; //MEDIA_BUS_FMT_RGB666_1X18
                dsi,lvds-force-clk = <800>; // 800/2/3 ~= 65Mhz
                dsi,lanes = <4>;

        dsi,channel = <0>;

        enable-delay-ms = <35>;
        prepare-delay-ms = <6>;

        unprepare-delay-ms = <0>;
        disable-delay-ms = <20>;

        size,width = <120>;
        size,height = <170>;

        status = "okay";

                panel-init-sequence = [
                        29 00 06 3C 01 05 00 03 00
                        29 00 06 14 01 03 00 00 00
                        29 00 06 64 01 03 00 00 00
                        29 00 06 68 01 03 00 00 00
                        29 00 06 6C 01 03 00 00 00
                        29 00 06 70 01 03 00 00 00
                        29 00 06 34 01 1F 00 00 00
                        29 00 06 10 02 1F 00 00 00
                        29 00 06 04 01 01 00 00 00
                        29 00 06 04 02 01 00 00 00
                        29 00 06 50 04 20 01 F0 03
                        29 00 06 54 04 08 00 08 00
                        29 00 06 58 04 20 03 20 00
                        29 00 06 5C 04 04 00 0B 00
                        29 00 06 60 04 00 05 11 00
                        29 00 06 64 04 01 00 00 00
                        29 00 06 A0 04 06 80 44 00

                        29 00 06 A0 04 06 80 04 00
                        29 00 06 04 05 04 00 00 00
                        29 00 06 80 04 00 01 02 03
                        29 00 06 84 04 04 07 05 08
                        29 00 06 88 04 09 0A 0E 0F
                        29 00 06 8C 04 0B 0C 0D 10
                        29 00 06 90 04 16 17 11 12
                        29 00 06 94 04 13 14 15 1B
                        29 00 06 98 04 18 19 1A 06
                        29 00 06 9C 04 31 00 00 00
                ];

                panel-exit-sequence = [
                        05 05 01 28
                        05 78 01 10
                ];

                disp_timings: display-timings {
                        native-mode = <&timing0>;
                        timing0: timing0 {
                                clock-frequency = <65000000>;
                                hactive = <960>; //800
                                vactive = <1080>; // 1280
                                hsync-len = <10>;   //8//20, 50
                                hback-porch = <0>;  //8//50, 56
                                hfront-porch = <95>;//32//50, 30 //1580
                                vsync-len = <10>; //4
                                vback-porch = <0>; //11
                                vfront-porch = <20>; //17
                                hsync-active = <0>;
                                vsync-active = <0>;
                                de-active = <0>;
                                pixelclk-active = <0>;
                                swap-rb = <0>;
                                swap-rg = <0>;
                                swap-gb = <0>;
                        };
                };
        };
};

Nothing wasn't change when I try use different bus-format:s. I look that my display use VESA standard.

And how I tell config that I use two channel LVDS?

What about panel-init-sequence? I dont find any detail for that in display manual?

Link for manual: http://www.display-solution.com/ ... TN02.0_20160418.pdf


Thanks.
Pekka

Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 6/12/2018 14:39:51        Only Author  12#
peksuj Posted at 6/11/2018 18:20
Hi,

I use this settings:

This display match attached file. rk3399-firefly-aio-lvds-Dual.rar (3.59 KB, Down times: 26)





Reply

Use props Report

211

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
211
Posted at 6/13/2018 13:56:26        Only Author  13#
Hi,

Thanks for that file. I get error when compiling that: "rk3399-firefly-port.dtsi: No such file or directory". I l
search that in kernel from github but didnt find it. Can I use some other dtsi file?

I try to test changing include files, more errors. Try to use &dsi section to old lvds file but problems with lcd pins...

I think we are very close to success

Thanks,
Pekka
Reply

Use props Report

211

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
211
Posted at 6/13/2018 14:44:53        Only Author  14#
I also try use "screen-type = <SCREEN_DUAL_MIPI>;" wich I found in kernel/Documentation/devicetree/bindings/video/rockchip_mipidsi_lcd.txt. But get error for that instance...

I use Your sending dts &dsi section and add to &pinctrl section "lcd_panel_pwr_en" function. It now compile but only single LVDS and no picture in display and trying to make two views in display.

I think that I need go back to Raspberry Pi... I use now about 100 hour and three week only trying to get dual LVDS port to work...


Pekka
Reply

Use props Report

211

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
211
Posted at 6/18/2018 13:58:06        Only Author  15#
Hi,

How I can get second LVDS channel to work? I cant get there any signals. I look output with osciloscope and I find signals in first channel but nothing in second channel.


Thanks,
Pekka
Reply

Use props Report

Return to List
12
You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list