aBUGSworstnightmare
Posts: 1102
Joined: Tue Jun 30, 2015 1:35 pm

Re: RPi 3 missing from dt-blob.dts

Tue Apr 26, 2016 7:40 am

o.k. it's not using the overlay but this blob does the job:

Code: Select all

# ---------------------------------------------
# For use with KD50G21-40NT-A1 module only
# on RPi 3 V1.1 - Jessie
# ---------------------------------------------
dtparam=audio=on
gpu_mem=256
max_usb_current=1

# ---------------------------------------------
# Overscan Information
# --------------------------------------------- 
overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0
framebuffer_width=800
framebuffer_height=480

# ---------------------------------------------
# DPI interface comsumes all GPIO of the RPi
# Disable SPI and I2C 
# ---------------------------------------------
dtparam=spi=off
dtparam=i2c_arm=off

# ---------------------------------------------
# Enable DPI
# --------------------------------------------- 
enable_dpi_lcd=1

# ---------------------------------------------
# Make DPI default output
# ---------------------------------------------
display_default_lcd=1

# ---------------------------------------------
# custom HDMI mode
# https://www.raspberrypi.org/forums/viewtopic.php?p=613926#p613926
# https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=24679
# ---------------------------------------------
dpi_group=2
dpi_mode=87

# ---------------------------------------------
# DPI output format definitions
# https://www.raspberrypi.org/forums/viewtopic.php?p=628061#p628061
# DPI structure: https://www.raspberrypi.org/forums/viewtopic.php?p=617719#p617719
# ---------------------------------------------
# output_format:
#   1: DPI_OUTPUT_FORMAT_9BIT_666
#   2: DPI_OUTPUT_FORMAT_16BIT_565_CFG1
#   3: DPI_OUTPUT_FORMAT_16BIT_565_CFG2
#   4: DPI_OUTPUT_FORMAT_16BIT_565_CFG3
#   5: DPI_OUTPUT_FORMAT_18BIT_666_CFG1
#   6: DPI_OUTPUT_FORMAT_18BIT_666_CFG2
#   7: DPI_OUTPUT_FORMAT_24BIT_888
#
# rgb_order:
#   1: DPI_RGB_ORDER_RGB
#   2: DPI_RGB_ORDER_BGR
#   3: DPI_RGB_ORDER_GRB
#   4: DPI_RGB_ORDER_BRG
#
# output_enable_mode:
#   0: DPI_OUTPUT_ENABLE_MODE_DATA_VALID
#   1: DPI_OUTPUT_ENABLE_MODE_COMBINED_SYNCS
#
# invert_pixel_clock:
#   0: RGB Data changes on rising edge and is stable at falling edge
#   1: RGB Data changes on falling edge and is stable at rising edge
#
# hsync polarity: 
#   0: default for HDMI mode
#   1: inverted
#
# vsync polarity:
#   0: default for HDMI mode
#   1: inverted
#
# output_enable_polarity:
#   0: default for HDMI mode
#   1: inverted
#
# hsync phase:
#   0: rising edge
#   1: falling edge
#
# vsync phase:
#   0: rising edge
#   1: falling edge
#
# output_enable phase:
#   0: rising edge
#   1: falling edge
# ---------------------------------------------
dpi_output_format=454661


# ---------------------------------------------
# HDMI timing definitions
#https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=24679
# ---------------------------------------------
# hdmi_timings= <h_active_pixels>
#		  LCD module horizontal resolution
#
#               <h_sync_polarity>
# 		  0: active low
#		  1: active high
#
#               <h_front_porch> 
#		<h_sync_pulse>
#		<h_back_porch>
#		<v_active_lines>
#		  LCD module vertical resolution
#
#		<v_sync_polarity>
# 		  0: active low
#		  1: active high
#
#		<v_front_porch>
#		<v_sync_pulse>
#		<v_back_porch>
#
#		<v_sync_offset_a>
#		<v_sync_offset_b>
#		<pixel_rep>
#
#		<frame_rate>
#		  screen refrech rate (50/60Hz supported only!)#
#
#		<interlaced>
#
#		<pixel_freq>
#		  calculates as: <h_active_pixels> * <v_active_lines> * <frame_rate>
#
#		<aspect_ratio>
#		  HDMI_ASPECT_4_3 = 1
#		  HDMI_ASPECT_14_9 = 2
#		  HDMI_ASPECT_16_9 = 3
#		  HDMI_ASPECT_5_4 = 4
#		  HDMI_ASPECT_16_10 = 5
#		  HDMI_ASPECT_15_9 = 6
#		  HDMI_ASPECT_21_9 = 7
#		  HDMI_ASPECT_64_27 = 8
# ---------------------------------------------
#hdmi_timing for KD50G21-40NT-A1 configuration notes
#h_active_pixels = 800
#h_sync_polarity = 0
#h_front_porch = 40
#h_sync_pulse = 48 
#h_back_porch = 88
#v_active_lines = 480
#v_sync_polarity = 0
#v_front_porch = 13
#v_sync_pulse = 3
#v_back_porch = 32
#v_sync_offset_a = 0
#v_sync_offset_b = 0
#pixel_rep = 0
#frame_rate = 60
#interlaces = 0
#pixel_freq = 32000000
#aspect_ratio = 6
# ---------------------------------------------
hdmi_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6
adafruit5in_18bitdpi_blob.zip
Compiled blob for 18-bit DPI use with Adafruit Kippah 5in TFT display (18-bit colours)
(4.3 KiB) Downloaded 226 times
Compiled it on latest Jessie; should work with ubuntu mate as well.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1909
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: RPi 3 missing from dt-blob.dts

Tue Apr 26, 2016 7:58 am

The vga666 overlay is effectively a dpi18 overlay.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5945
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPi 3 missing from dt-blob.dts

Tue Apr 26, 2016 8:39 am

PhilE wrote:The vga666 overlay is effectively a dpi18 overlay.
Except missing the Clock and DEN lines on GPIO 0 & 1.
I had taken your dpi24 overlay and trimmed out the last 6 GPIOs to make a true dpi18 overlay, but haven't set my DPI screen up again to test.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Milliways
Posts: 323
Joined: Fri Apr 25, 2014 12:18 am

Re: RPi 3 missing from dt-blob.dts

Thu Jan 19, 2017 5:41 am

6by9 wrote:Update done. https://github.com/raspberrypi/firmware ... t-blob.dts now has pins_3b1 and pins_3b2 sections for the Pi3.

Please note that you will have to use "sudo rpi-update" to get the latest firmware as well to match this blob. Old firmware with a compiled version of this blob will almost certainly result in invalid pin setup.

PS Nice displays :D
I have tried to download the file https://github.com/raspberrypi/firmware ... t-blob.dts

There seems to be no Download option, although there is a `Open this file in GitHub Desktop` button. Clicking this just seems to want to install GitHub Desktop, although it is already installed.

I can't make head nor tail of GitHub Desktop! I have tried reading the instructions, but it only seems to want to create new branches, and I am more comfortable just using git at the command line.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5945
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPi 3 missing from dt-blob.dts

Thu Jan 19, 2017 6:52 am

Milliways wrote:I have tried to download the file https://github.com/raspberrypi/firmware ... t-blob.dts

There seems to be no Download option, although there is a `Open this file in GitHub Desktop` button. Clicking this just seems to want to install GitHub Desktop, although it is already installed.

I can't make head nor tail of GitHub Desktop! I have tried reading the instructions, but it only seems to want to create new branches, and I am more comfortable just using git at the command line.
Hit the "raw" button to get the raw data.

Code: Select all

wget https://raw.githubusercontent.com/raspberrypi/firmware/master/extra/dt-blob.dts
Or if you prefer the command line then clone the repo

Code: Select all

git clone --depth 1 https://github.com/raspberrypi/firmware.git
There's also an option at the root of the repo (https://github.com/raspberrypi/firmware) to download a ZIP copy of the whole repo. Same's true for any project on github.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

TSTRasp
Posts: 10
Joined: Fri Aug 18, 2017 3:28 am

Re: RPi 3 missing from dt-blob.dts

Sun Aug 20, 2017 5:35 am

Hello, I am a poor guy struggling on a 4.3" DPI display on Pi 3 (viewtopic.php?f=38&t=191081&p=1200453#p1200453).

I am really inspired by reading this post. I followed aBUGSworstnightmare's instruction exactly today, only with Raspbian Stretch other than Jessie. However, I found I can only see something when I set dpi_mode=16. It will be completely nothing if I use dpi_mode=87.

Could someone help me out please? What might be the difference between these dpi modes? Thanks.

T

aBUGSworstnightmare
Posts: 1102
Joined: Tue Jun 30, 2015 1:35 pm

Re: RPi 3 missing from dt-blob.dts

Mon Aug 21, 2017 5:52 am

No need to mess around with the dt-blob! Simply use the 24bit DPI interface to configure the I/O.
# enable 24-bit DPI interface
dtoverlay=dpi24

# ---------------------------------------------
# Enable DPI
# ---------------------------------------------
enable_dpi_lcd=1

# ---------------------------------------------
# Make DPI default output
# ---------------------------------------------
display_default_lcd=1

procount
Posts: 1309
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: RPi 3 missing from dt-blob.dts

Wed Jan 10, 2018 11:03 am

Someone asked me about using the Adafruit Kippah with PINN, but the dt_blob that Adafruit refer to (ref to aBUGsworstnightmare in this thread ) is not compatible:
https://learn.adafruit.com/adafruit-dpi ... stallation
We've only tested this device tree overlay/firmware with Raspbian. Since its a bit of a hack, it doesn't work with the native pre-boot 'NooBS' screen. However, it does come up immediately with Raspbian (e.g. you get to see the rainbow square screen)
Have things moved on? Is it possible to use the dpi24 overlay with NOOBS/PINN now for this display? Or is there some issue with the old firmware we use in NOOBS/PINN that might still be a problem? Can anyone test?

(NOTE: PINN works with the VGA666 overlay for Gert's VGA board, but I needed to do a little mod first to prevent the GPIO from triggering safe mode when the VGA666 board is fitted, but it still requires 'disablesafemode' option in recovery.cmdline. These DPI devices might still not work with NOOBS directly).
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5945
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPi 3 missing from dt-blob.dts

Wed Jan 10, 2018 11:31 am

procount wrote:
Wed Jan 10, 2018 11:03 am
Someone asked me about using the Adafruit Kippah with PINN, but the dt_blob that Adafruit refer to (ref to aBUGsworstnightmare in this thread ) is not compatible:
https://learn.adafruit.com/adafruit-dpi ... stallation
We've only tested this device tree overlay/firmware with Raspbian. Since its a bit of a hack, it doesn't work with the native pre-boot 'NooBS' screen. However, it does come up immediately with Raspbian (e.g. you get to see the rainbow square screen)
Have things moved on? Is it possible to use the dpi24 overlay with NOOBS/PINN now for this display? Or is there some issue with the old firmware we use in NOOBS/PINN that might still be a problem? Can anyone test?

(NOTE: PINN works with the VGA666 overlay for Gert's VGA board, but I needed to do a little mod first to prevent the GPIO from triggering safe mode when the VGA666 board is fitted, but it still requires 'disablesafemode' option in recovery.cmdline. These DPI devices might still not work with NOOBS directly).
The Adafruit dt-blob.bin has no entries for Pi0W or CM3, so that would be my guess as to why you are having issues.

The dpi24 (or dpi18 seeing as it is only RGB666) overlay should work, but will only start displaying anything when Linux has started and assigned GPIOs. AIUI PINN is run as a bootloader/controller before Linux, therefore that isn't really a useful solution for you.
DPI isn't really any different from Gert's VGA666 other than also needing GPIOs 0&1 for additional control signals.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

procount
Posts: 1309
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: RPi 3 missing from dt-blob.dts

Wed Jan 10, 2018 12:59 pm

Actually, PINN (like NOOBS) is a small buildroot linux environment in it's own right, and VGA666 overlay does work with it. So I will advise to try those overlays instead and see if they work. Thanks.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

Return to “Device Tree”