Dual Display: Difference between revisions
No edit summary |
m (Text replacement - "http://variwiki" to "https://variwiki") |
||
(34 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{PageHeader|Dual Display - Android Application Tech Note}} {{DocImage|category1=Android|category2=VAR-SOM-MX6}}[[Category: VAR-SOM-MX6]][[Category: VAR-SOM-MX6]]__toc__ | {{PageHeader|Dual Display - Android Application Tech Note}} {{DocImage|category1=Android|category2=VAR-SOM-MX6}}[[Category: VAR-SOM-MX6]][[Category: VAR-SOM-MX6]]__toc__ | ||
=Dual Display on VAR-SOM-SOLO/DUAL / DART-MX6 : Android Application Tech Note | =Dual Display on VAR-SOM-SOLO/DUAL / DART-MX6: Android Application Tech Note= | ||
==Overview== | ==Overview== | ||
i.MX6 platforms are capable of handling multiple displays.<br> | |||
You can drive two displays simultaneously.<br> | You can drive two displays simultaneously.<br> | ||
See page : 15 - 19 [http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf] <br> | See page: 15 - 19 [http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf] <br> | ||
Starting with Android 4.3 multiple displays are supported. Android Application can | Starting with Android 4.3 multiple displays are supported. <br> | ||
Android Application can leverage the use of multiple displays for rendering content<br> | |||
DART-MX6 / Solo both have LVDS0 and LVDS1 output available on the development board.<br> | DART-MX6 / Solo both have LVDS0 and LVDS1 output available on the development board.<br> | ||
Line 12: | Line 13: | ||
For both channels: LVDS0/1 - LVDS Clock +4 Data lanes are accessible via Carrier board Headers. | For both channels: LVDS0/1 - LVDS Clock +4 Data lanes are accessible via Carrier board Headers. | ||
* VAR-SOLOCustomBoard: | * VAR-SOLOCustomBoard: | ||
LVDS0 - LVDS Clock +4 Data lanes are accessible via Carrier board Headers. | LVDS0 - LVDS Clock +4 Data lanes are accessible via Carrier board Headers.<br> | ||
LVDS1 - LVDS Clock +3 Data lanes are accessible via Carrier board Headers (only 18 bit LCD can be interfaced)<br> | LVDS1 - LVDS Clock +3 Data lanes are accessible via Carrier board Headers (only 18 bit LCD can be interfaced)<br> | ||
For maximum supported resolution and combinations refer to [http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf] page no 16 for more details and combination | For maximum, supported resolution and combinations refer to [http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf] page no 16 for more details and combination. | ||
'''Note:<br>''' | |||
*Not all the display modes combinations tested / verified. <br> | |||
The dual display setup can be in different combinations, the configuration can be like <br> | |||
1. Clone display (Primary is always cloned) <br> | |||
2. Independent display(s) <br> | |||
Use case Two LVDS - LVDS0 and LVDS1 port on SOLO | In the case of 1. The kernel will not register another framebuffer for the 2nd panel. <br> | ||
However, will clone internally from the SOC itself via IPU framebuffer driver from the interface specific drivers. Aka LDB, HDMI, RGB.<br> | |||
In the case of 2. | |||
The kernel registers 2nd FB to the platform.<br> | |||
This combination allows user/application to render different content on the different display(s). | |||
Use case like Two LVDS - LVDS0 and LVDS1 port on SOLO | |||
* Hardware Setup | * Hardware Setup | ||
2 x LVDS Panel : [https://www.variscite.com/products/accessories/vlcd-cap-gld-lvds/ https://www.variscite.com/products/accessories/vlcd-cap-gld-lvds/] | 2 x LVDS Panel: [https://www.variscite.com/products/accessories/vlcd-cap-gld-lvds/ https://www.variscite.com/products/accessories/vlcd-cap-gld-lvds/] | ||
Reference : [https://www.variscite.com/wp-content/uploads/2017/12/VLCD-CAP-GLD-LVDS.pdf https://www.variscite.com/wp-content/uploads/2017/12/VLCD-CAP-GLD-LVDS.pdf] | Reference: [https://www.variscite.com/wp-content/uploads/2017/12/VLCD-CAP-GLD-LVDS.pdf https://www.variscite.com/wp-content/uploads/2017/12/VLCD-CAP-GLD-LVDS.pdf] | ||
* Connect 1st panel to LVDS1 - which is enabled by default with the software. Connect straight LVDS panel header to LVDS1 as this doesn’t require special handling. | * Connect 1st panel to LVDS1 - which is enabled by default with the software. | ||
Connect straight LVDS panel header to LVDS1 as this doesn’t require special handling. | |||
* Connect 2nd panel to LVDS0 - which requires changes in the software. | * Connect 2nd panel to LVDS0 - which requires changes in the software. | ||
Line 50: | Line 57: | ||
Using wires connect LVDS0 to LVDS header in the LCD panel with the following combination. | Using wires connect LVDS0 to LVDS header in the LCD panel with the following combination.<br> | ||
Pin to pin as shown in the below with color coded. | Pin to pin as shown in the below with color coded. | ||
Line 58: | Line 65: | ||
<center>PIN - J16</center> | <center>PIN - J16</center> | ||
| style=" | | style="border-top:0.026cm solid #000001;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| PIN | ||
| style=" | | style="border-top:0.026cm solid #000001;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| PIN | ||
| colspan="2" style=" | | colspan="2" style="border-top:0.026cm solid #000001;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <center>LVDS LCD Panel Header</center> | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #000001;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| PIN | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">1</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''3.3 V''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''3.3 V''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">2</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">1</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''VCC - 3V''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''VCC - 3V''' | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">2</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">3</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">4</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">3</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">4</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">5</div> | ||
| style="background-color:#00ffff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX0_N | | style="background-color:#00ffff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX0_N | ||
| style="background-color:#9900ff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX0_P | | style="background-color:#9900ff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX0_P | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">6</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">5</div> | ||
| style="background-color:#00ffff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN0_N | | style="background-color:#00ffff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN0_N | ||
| style="background-color:#9900ff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN0_P | | style="background-color:#9900ff;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN0_P | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">6</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">7</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style="background-color:#4a86e8;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX1_N | | style="background-color:#4a86e8;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX1_N | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">8</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">7</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style="background-color:#4a86e8;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN1_N | | style="background-color:#4a86e8;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN1_N | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">8</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">9</div> | ||
| style="background-color:#f6b26b;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX1_P | | style="background-color:#f6b26b;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX1_P | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">10</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">9</div> | ||
| style="background-color:#f6b26b;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN1_P | | style="background-color:#f6b26b;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN1_P | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">10</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">11</div> | ||
| style="background-color:#cc4125;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX2_N | | style="background-color:#cc4125;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX2_N | ||
| style="background-color:#b45f06;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX2_P | | style="background-color:#b45f06;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX2_P | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">12</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">11</div> | ||
| style="background-color:#cc4125;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN2_N | | style="background-color:#cc4125;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN2_N | ||
| style="background-color:#b45f06;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN2_P | | style="background-color:#b45f06;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RIN2_P | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">12</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">13</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style="background-color:#a64d79;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_CLK_N | | style="background-color:#a64d79;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_CLK_N | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">14</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">13</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style="background-color:#a64d79;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RCLK_N | | style="background-color:#a64d79;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RCLK_N | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">14</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">15</div> | ||
| style="background-color:#7f6000;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_CLK_P | | style="background-color:#7f6000;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_CLK_P | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">16</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">15</div> | ||
| style="background-color:#7f6000;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RCLK_P | | style="background-color:#7f6000;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| RCLK_P | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">16</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">17</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX3_N | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| LVDS0_TX3_P | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">18</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">17</div> | ||
| style="background-color:#274e13;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''5V_CC_Backlight''' | | style="background-color:#274e13;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''5V_CC_Backlight''' | ||
| style="background-color:#274e13;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''5V_CC_Backlight''' | | style="background-color:#274e13;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''5V_CC_Backlight''' | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">18</div> | ||
|- | |- | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #000001;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">19</div> | ||
| style="background-color:#274e13;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''VCC_5V''' | | style="background-color:#274e13;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''VCC_5V''' | ||
| style="background-color:#666666;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| PWM_BACK_LIGHT | | style="background-color:#666666;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| PWM_BACK_LIGHT | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">20</div> | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">19</div> | ||
| style="background-color:#666666;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| PWM_INPUT | | style="background-color:#666666;border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| PWM_INPUT | ||
| style=" | | style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| '''GND''' | ||
| colspan="0" style=" | | colspan="0" style="border-top:0.026cm solid #cccccc;border-bottom:0.026cm solid #000001;border-left:0.026cm solid #cccccc;border-right:0.026cm solid #000001;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"| <div align="right">20</div> | ||
|} | |} | ||
Note : | Note: | ||
* LVDS0 provides 3 lanes but LCD just needs 2 lane LVDS input. | * LVDS0 provides 3 lanes but LCD just needs 2 lane LVDS input. | ||
* <span style="color:red">'''Warning!''' </span> Be careful about PIN 19 of LVDS0 header, please make sure it is connected to PIN17 or PIN18 of the LCD panel header only. Connecting this pin to other pins of LCD or shorting to GND may cause permanent damage to LCD or board. | * <span style="color:red">'''Warning!''' </span> Be careful about PIN 19 of LVDS0 header, please make sure it is connected to PIN17 or PIN18 of the LCD panel header only.<br> | ||
Connecting this pin to other pins of LCD or shorting to GND may cause permanent damage to LCD or board. | |||
=Software Changes for Multiple | =Software Changes for Multiple Displays= | ||
'''Android Oreo 8.0 and Android 7.1.2: ''' | '''Android Oreo 8.0 and Android 7.1.2:<br>''' | ||
Note: Other Android versions may work, but not verified. | |||
* Software Preparation for Dual Display (Two LVDS): | * Software Preparation for Dual Display (Two LVDS): | ||
==U-Boot: On U-Boot you need below patch to be applied | ==U-Boot Changes:<br> == | ||
On U-Boot you need below patch to be applied | |||
'''For Android 8.0:''' <pre>vendor/variscite/uboot-imx/</pre> | '''For Android 8.0:''' <pre>vendor/variscite/uboot-imx/</pre> | ||
Line 208: | Line 217: | ||
#define CONFIG_EXTRA_ENV_SETTINGS \ | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''Note:''' Here we enable channel 0 for solo, as 18 bit and enable fb1 set the device to LDB(LVDS). | |||
==Kernel Changes:<br>== | |||
On kernel side you require below patch in device tree to make it work. | |||
'''For Android 8.0:'''<pre>~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build/kernel_imx</pre> | '''For Android 8.0:'''<pre>~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build/kernel_imx</pre> | ||
Line 235: | Line 244: | ||
touch: ft5x06_ts@38 { | touch: ft5x06_ts@38 { | ||
compatible = "edt,edt-ft5x06"; | compatible = "edt,edt-ft5x06"; | ||
@@ -28, | @@ -28,21 +36,21 @@ | ||
lvds-channel@0 { | lvds-channel@0 { | ||
fsl,data-mapping = "spwg"; | fsl,data-mapping = "spwg"; | ||
- fsl,data-width = <24>; | - fsl,data-width = <24>; | ||
+ fsl,data-width = <18>; | + fsl,data-width = <18>; | ||
status = "okay"; | status = "okay"; | ||
Line 266: | Line 274: | ||
}; | }; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | ==Software Preparation for Dual Display (LVDS + HDMI):== | ||
* Kernel: | * Kernel: | ||
'''For Android 8.0: '''<pre>~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build/kernel_imx</pre> | '''For Android 8.0: '''<pre>~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build/kernel_imx</pre> | ||
Compile the kernel | Compile the kernel. | ||
'''For Android 7.1.2:'''<pre>~/var_n_712_200/n_712_200_build/kernel_imx</pre> | '''For Android 7.1.2:'''<pre>~/var_n_712_200/n_712_200_build/kernel_imx</pre> | ||
Compile the kernel | Compile the kernel. | ||
Install the boot image to respective platform and then at U-Boot prompt change the bootargs | Install the boot image to respective platform and then at U-Boot prompt change the bootargs | ||
Line 325: | Line 295: | ||
=> reset | => reset | ||
== Android Framework changes (Optional for Android 8.0 only):<br> == | |||
If you wish to have activities to be launched on secondary panel | If you wish to have activities to be launched on secondary panel | ||
add the following line to tablet_core_hardware.xml | |||
<pre><feature name="android.software.activities_on_secondary_displays" /></pre> | |||
The above mentioned file is located at "/system/etc/permissions/" on the system partition. <br> | |||
For Android 8.0: android_build/variscite/var_mx6/tablet_core_hardware.xml | And in the source side, the file is located at | ||
'''For Android 8.0:''' <pre>android_build/variscite/var_mx6/tablet_core_hardware.xml</pre> | |||
This feature is required for setLaunchDisplayId(<display number>) to work. | This feature is required for setLaunchDisplayId(<display number>) to work. | ||
== Compiling Boot Image:<br>== | |||
Compile the Kernel boot image for your platform following below wiki pages. | |||
'''For Android 8.0: ''' | '''For Android 8.0:''' | ||
[ | [https://variwiki.com/index.php?title=VAR-SOM-MX6_Android&release=RELEASE_O8.0.0_1.0.0_VAR-SOM-MX6#Build_Android_Images https://variwiki.com/index.php?title=VAR-SOM-MX6_Android&release=RELEASE_O8.0.0_1.0.0_VAR-SOM-MX6#Build_Android_Images] | ||
'''For Android 7.1.2:''' | '''For Android 7.1.2:''' | ||
[ | [https://variwiki.com/index.php?title=VAR-SOM-MX6_Android&release=RELEASE_N7.1.2_2.0.0_VAR-SOM-MX6#Build_Android_Images https://variwiki.com/index.php?title=VAR-SOM-MX6_Android&release=RELEASE_N7.1.2_2.0.0_VAR-SOM-MX6#Build_Android_Images]<br> | ||
and program the image to VAR-SOM-SOLO/DUAL or DART-MX6 | and program the image to VAR-SOM-SOLO/DUAL or DART-MX6 | ||
=Testing Multiple | =Testing Multiple Displays on Android= | ||
By default, Android operates in clone mode, but if you wish to have two different content on two different panels; your Android application must explicitly | By default, Android operates in clone mode, but if you wish to have two different content on two different panels;<br> | ||
your Android application must explicitly specify which display it wants to render the particular surface.<br> | |||
Customers are advised to use the presentation mode for testing/prototyping. | You can use the presentation mode. Customers are advised to use the presentation mode for testing/prototyping.<br> | ||
More information about the presentation mode | More information about the presentation mode can be found here: [https://developer.android.com/reference/android/app/Presentation https://developer.android.com/reference/android/app/Presentation] <br> | ||
You can find the reference code for application as below<br> | |||
'''Reference:''' | |||
<pre><Your_Android_Build>/development/samples/ApiDemos->./src/com/example/android/apis/app/PresentationWithMediaRouterActivity.java</pre> | |||
If you wish to build apk for ApiDemos use below steps. | If you wish to build apk for ApiDemos use below steps. | ||
'''For Android 8.0: ''' | '''For Android 8.0:''' | ||
$ cd ~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build | $ cd ~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build | ||
Line 371: | Line 341: | ||
This should generate <pre>out/target/product/var_mx6/testcases/ApiDemos/ApiDemos.apk</pre> copy apk to your present directory from which you can install on the platform | This should generate <pre>out/target/product/var_mx6/testcases/ApiDemos/ApiDemos.apk</pre> copy apk to your present directory from which you can install on the platform | ||
Connect OTG USB cable and use adb to install on host machine (Windows / Linux) using below command. | |||
Connect OTG and use adb to install using below command. | |||
$ adb install ApiDemos.apk | $ adb install ApiDemos.apk | ||
Line 392: | Line 361: | ||
Note: For LVDS + HDMI case, at command prompt run below commands | *'''Note:''' For LVDS + HDMI case, at command prompt run below commands | ||
<pre># echo 0 > /sys/class/graphics/fb2/blank</pre> | <pre># echo 0 > /sys/class/graphics/fb2/blank</pre> | ||
Latest revision as of 11:54, 10 June 2020
Dual Display on VAR-SOM-SOLO/DUAL / DART-MX6: Android Application Tech Note
Overview
i.MX6 platforms are capable of handling multiple displays.
You can drive two displays simultaneously.
See page: 15 - 19 http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf
Starting with Android 4.3 multiple displays are supported.
Android Application can leverage the use of multiple displays for rendering content
DART-MX6 / Solo both have LVDS0 and LVDS1 output available on the development board.
- VAR-DT6CustomBoard:
For both channels: LVDS0/1 - LVDS Clock +4 Data lanes are accessible via Carrier board Headers.
- VAR-SOLOCustomBoard:
LVDS0 - LVDS Clock +4 Data lanes are accessible via Carrier board Headers.
LVDS1 - LVDS Clock +3 Data lanes are accessible via Carrier board Headers (only 18 bit LCD can be interfaced)
For maximum, supported resolution and combinations refer to http://cache.freescale.com/files/training/doc/ftf/2014/FTF-CON-F0119.pdf page no 16 for more details and combination.
Note:
- Not all the display modes combinations tested / verified.
The dual display setup can be in different combinations, the configuration can be like
1. Clone display (Primary is always cloned)
2. Independent display(s)
In the case of 1. The kernel will not register another framebuffer for the 2nd panel.
However, will clone internally from the SOC itself via IPU framebuffer driver from the interface specific drivers. Aka LDB, HDMI, RGB.
In the case of 2.
The kernel registers 2nd FB to the platform.
This combination allows user/application to render different content on the different display(s).
Use case like Two LVDS - LVDS0 and LVDS1 port on SOLO
- Hardware Setup
2 x LVDS Panel: https://www.variscite.com/products/accessories/vlcd-cap-gld-lvds/
Reference: https://www.variscite.com/wp-content/uploads/2017/12/VLCD-CAP-GLD-LVDS.pdf
- Connect 1st panel to LVDS1 - which is enabled by default with the software.
Connect straight LVDS panel header to LVDS1 as this doesn’t require special handling.
- Connect 2nd panel to LVDS0 - which requires changes in the software.
This example uses an identical LVDS panel however you can have an asymmetric combination as well.
Top level setup should look like below
In the schematic, you will see connectors like below.
Using wires connect LVDS0 to LVDS header in the LCD panel with the following combination.
Pin to pin as shown in the below with color coded.
PIN | PIN | PIN | PIN | |||
1
|
3.3 V | 3.3 V | 2
|
1
|
VCC - 3V | VCC - 3V | 2
|
3
|
GND | GND | 4
|
3
|
GND | GND | 4
|
5
|
LVDS0_TX0_N | LVDS0_TX0_P | 6
|
5
|
RIN0_N | RIN0_P | 6
|
7
|
GND | LVDS0_TX1_N | 8
|
7
|
GND | RIN1_N | 8
|
9
|
LVDS0_TX1_P | GND | 10
|
9
|
RIN1_P | GND | 10
|
11
|
LVDS0_TX2_N | LVDS0_TX2_P | 12
|
11
|
RIN2_N | RIN2_P | 12
|
13
|
GND | LVDS0_CLK_N | 14
|
13
|
GND | RCLK_N | 14
|
15
|
LVDS0_CLK_P | GND | 16
|
15
|
RCLK_P | GND | 16
|
17
|
LVDS0_TX3_N | LVDS0_TX3_P | 18
|
17
|
5V_CC_Backlight | 5V_CC_Backlight | 18
|
19
|
VCC_5V | PWM_BACK_LIGHT | 20
|
19
|
PWM_INPUT | GND | 20
|
Note:
- LVDS0 provides 3 lanes but LCD just needs 2 lane LVDS input.
- Warning! Be careful about PIN 19 of LVDS0 header, please make sure it is connected to PIN17 or PIN18 of the LCD panel header only.
Connecting this pin to other pins of LCD or shorting to GND may cause permanent damage to LCD or board.
Software Changes for Multiple Displays
Android Oreo 8.0 and Android 7.1.2:
Note: Other Android versions may work, but not verified.
- Software Preparation for Dual Display (Two LVDS):
U-Boot Changes:
On U-Boot you need below patch to be applied
For Android 8.0:
vendor/variscite/uboot-imx/
For Android 7.1.2:
bootable/bootloader/uboot-imx/
diff --git a/board/variscite/mx6var_som/mx6var_som.c b/board/variscite/mx6var_som/mx6var_som.c
index 526a11f..729c966 100644
--- a/board/variscite/mx6var_som/mx6var_som.c
+++ b/board/variscite/mx6var_som/mx6var_som.c
@@ -907,7 +907,7 @@ static void setup_display(void)
| IOMUXC_GPR2_BIT_MAPPING_CH1_SPWG
| IOMUXC_GPR2_DATA_WIDTH_CH1_18BIT
| IOMUXC_GPR2_BIT_MAPPING_CH0_SPWG
- | IOMUXC_GPR2_DATA_WIDTH_CH0_24BIT
+ | IOMUXC_GPR2_DATA_WIDTH_CH0_18BIT
| IOMUXC_GPR2_LVDS_CH0_MODE_ENABLED_DI0
| IOMUXC_GPR2_LVDS_CH1_MODE_ENABLED_DI0;
writel(reg, &iomux->gpr[2]);
diff --git a/include/configs/mx6var_som.h b/include/configs/mx6var_som.h
index 1db7afb..b27f7ee 100644
--- a/include/configs/mx6var_som.h
+++ b/include/configs/mx6var_som.h
@@ -195,7 +195,7 @@
"video=mxcfb0:dev=ldb; " \
"fi; " \
"setenv bootargs ${bootargs} " \
- "video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off;\0"
+ "video=mxcfb1:dev=ldb video=mxcfb2:off video=mxcfb3:off;\0"
#define CONFIG_EXTRA_ENV_SETTINGS \
- Note: Here we enable channel 0 for solo, as 18 bit and enable fb1 set the device to LDB(LVDS).
Kernel Changes:
On kernel side you require below patch in device tree to make it work.
For Android 8.0:
~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build/kernel_imx
For Android 7.1.2:
~/var_n_712_200/n_712_200_build/kernel_imx
diff --git a/arch/arm/boot/dts/imx6qdl-var-solocb-dt6cb-displays.dtsi b/arch/arm/boot/dts/imx6qdl-var-solocb-dt6cb-displays.dtsi
index 8876245..b329e9d 100644
--- a/arch/arm/boot/dts/imx6qdl-var-solocb-dt6cb-displays.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-var-solocb-dt6cb-displays.dtsi
@@ -12,6 +12,14 @@
interface_pix_fmt = "RGB666";
};
+&mxcfb2 {
+ disp_dev = "ldb";
+ interface_pix_fmt = "RGB666";
+ default_bpp = <16>;
+ int_clk = <0>;
+ late_init = <0>;
+};
+
&i2c3 {
touch: ft5x06_ts@38 {
compatible = "edt,edt-ft5x06";
@@ -28,21 +36,21 @@
lvds-channel@0 {
fsl,data-mapping = "spwg";
- fsl,data-width = <24>;
+ fsl,data-width = <18>;
status = "okay";
display-timings {
native-mode = <&timing0>;
timing0: hsd100pxn1 {
- clock-frequency = <35714000>;
+ clock-frequency = <32000000>;
hactive = <800>;
vactive = <480>;
- hback-porch = <24>;
- hfront-porch = <15>;
- vback-porch = <13>;
- vfront-porch = <20>;
- hsync-len = <20>;
- vsync-len = <13>;
+ hback-porch = <39>;
+ hfront-porch = <39>;
+ vback-porch = <29>;
+ vfront-porch = <13>;
+ hsync-len = <47>;
+ vsync-len = <2>;
};
};
};
Software Preparation for Dual Display (LVDS + HDMI):
- Kernel:
For Android 8.0:
~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build/kernel_imx
Compile the kernel.
For Android 7.1.2:
~/var_n_712_200/n_712_200_build/kernel_imx
Compile the kernel.
Install the boot image to respective platform and then at U-Boot prompt change the bootargs
U-Boot prompt commands:
=> setenv videoargs 'setenv bootargs ${bootargs} video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:dev=ldb video=mxcfb2:off video=mxcfb3:off;' => saveenv => reset
Android Framework changes (Optional for Android 8.0 only):
If you wish to have activities to be launched on secondary panel add the following line to tablet_core_hardware.xml
<feature name="android.software.activities_on_secondary_displays" />
The above mentioned file is located at "/system/etc/permissions/" on the system partition.
And in the source side, the file is located at
For Android 8.0:
android_build/variscite/var_mx6/tablet_core_hardware.xml
This feature is required for setLaunchDisplayId(<display number>) to work.
Compiling Boot Image:
Compile the Kernel boot image for your platform following below wiki pages.
For Android 8.0:
For Android 7.1.2:
https://variwiki.com/index.php?title=VAR-SOM-MX6_Android&release=RELEASE_N7.1.2_2.0.0_VAR-SOM-MX6#Build_Android_Images
and program the image to VAR-SOM-SOLO/DUAL or DART-MX6
Testing Multiple Displays on Android
By default, Android operates in clone mode, but if you wish to have two different content on two different panels;
your Android application must explicitly specify which display it wants to render the particular surface.
You can use the presentation mode. Customers are advised to use the presentation mode for testing/prototyping.
More information about the presentation mode can be found here: https://developer.android.com/reference/android/app/Presentation
You can find the reference code for application as below
Reference:
<Your_Android_Build>/development/samples/ApiDemos->./src/com/example/android/apis/app/PresentationWithMediaRouterActivity.java
If you wish to build apk for ApiDemos use below steps.
For Android 8.0:
$ cd ~/var_o_800_100/imx-o8.0.0_1.0.0_ga/android_build $ source build/envsetup.sh $ lunch var_mx6-eng $ or $ lunch var_mx6-userdebug $ cd development/samples/ApiDemos $ mm
This should generate
out/target/product/var_mx6/testcases/ApiDemos/ApiDemos.apk
copy apk to your present directory from which you can install on the platform
Connect OTG USB cable and use adb to install on host machine (Windows / Linux) using below command.
$ adb install ApiDemos.apk
For Android 7.1.2:
$ cd ~/var_n_712_200/n_712_200_build $ source build/envsetup.sh $ lunch var_mx6-eng $ or $ lunch var_mx6-user $ cd development/samples/ApiDemos $ mm
This will generate apk on
out/target/product/var_mx6/data/app/ApiDemos/ApiDemos.apk
path which you can install on the platform.
Copy apk to your present directory from which you can install on the platform.
$ adb install ApiDemos.apk
- Note: For LVDS + HDMI case, at command prompt run below commands
# echo 0 > /sys/class/graphics/fb2/blank
By default, Android will clone the primary display to secondary unless you specify in the application layer for which display to use using presentation mode.
- Your screen should look like this after installation
- Click on API Demos
- Click on App should give you screen as below
- Click on Activity Should give you screen as below
- Click on Presentation with Media Router
Now you should see different outputs on each display, as seen below: