# U-Boot and internal screen?

**URL:** <https://community.mnt.re/t/u-boot-and-internal-screen/295>\
**Category:** MNT Reform\
**Created:** [June 13, 2021, 7:28am UTC](https://community.mnt.re/t/u-boot-and-internal-screen/295 "2021-06-13T07:28:44Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![johkra](https://community.mnt.re/letter_avatar_proxy/v4/letter/j/9fc348/32.png) [@johkra](https://community.mnt.re/u/johkra)\
**Post date:** [July 17, 2021, 5:09pm UTC](https://community.mnt.re/t/u-boot-and-internal-screen/295/10 "2021-07-17T17:09:16Z")

</div>

I got colour bars. 🙂 The stripes patterns don’t work, but the other patterns do.

```auto
# Set DSI clock to 486 MHz
=> i2c mw 0x2c 0x0a 0x06
# Single Channel, 4 DSI lanes
=> i2c mw 0x2c 0x10 0x26
# Enhanced framing and ASSR
=> i2c mw 0x2c 0x5a 0x05
# 2 DP lanes w/o SSC
=> i2c mw 0x2c 0x93 0x20
# 2.7 Gbps DP data rate
=> i2c mw 0x2c 0x94 0x80
# Enable PLL and confirm PLL is locked
=> i2c mw 0x2c 0x0d 0x01
=> i2c md 0x2c 0x0a 1
000a: 87 .

```

```auto
# Enable ASSR on display
=> i2c mw 0x2c 0x64 0x01
=> i2c mw 0x2c 0x75 0x01
=> i2c mw 0x2c 0x76 0x0a
=> i2c mw 0x2c 0x77 0x01
=> i2c mw 0x2c 0x78 0x81
# Train link and confirm link is trained
=> i2c mw 0x2c 0x96 0x0a
=> i2c md 0x2c 0x96
0096: 01 .

```

The following timing values are likely wrong, I need to correct them using the calculations in section 9.2.1.2.2 in the data sheet and the EDID values above.

```auto
# Line length 1920
=> i2c mw 0x2c 0x20 0x80
=> i2c mw 0x2c 0x21 0x07
# Vertical display size 1080
=> i2c mw 0x2c 0x24 0x38
=> i2c mw 0x2c 0x25 0x04
# HSync pulse width 40
=> i2c mw 0x2c 0x2c 0x28
# VSync pulse width 4
=> i2c mw 0x2c 0x30 0x04
# Horizonal back porch 40
=> i2c mw 0x2c 0x35 0x28
# Vertical back porch 4
=> i2c mw 0x2c 0x36 0x04
# Horizonal front porch 40
=> i2c mw 0x2c 0x38 0x28
# Vertical front porch 4
=> i2c mw 0x2c 0x3a 0x04

```

```auto
# Enable color bar
=> i2c mw 0x2c 0x3c 0x10
# Enable video stream, ASSR, enhanced framing
=> i2c mw 0x2c 0x5a 0x0d

```

Section `9.2.1.2.5 Example Script` in the data sheet was extremely helpful in getting to this milestone, the above is an adaption of it. (After my own attempts didn’t get me a picture…)

---

_[View the full topic](https://community.mnt.re/t/u-boot-and-internal-screen/295)._
