Skip to content

Commit

Permalink
CM3: Update example dt-blobs for configuring the screen
Browse files Browse the repository at this point in the history
#498

dt-blobs hadn't been updated for CM3 so failed to boot the
board.

Adds a blob for display and 1 camera - the one that was
called disp1-cam1 actually enabled 2 cameras.
disp1-cam2 enables display and both cameras.

Links to prebuilt blobs also updated to point at
github.com/raspberrypi/documentation, not
github.com/adam-lee/documentation
  • Loading branch information
6by9 committed Feb 21, 2017
1 parent 151b9db commit 1f72994
Show file tree
Hide file tree
Showing 7 changed files with 3,011 additions and 97 deletions.
49 changes: 29 additions & 20 deletions hardware/computemodule/cmio-display.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**This document is a work in progress and is intended for advanced users.**

For the display to work with the Compute Module, the firmware needs to be October 23rd 2015 or newer (use `vcgencmd version` to check).
To work with the Compute Module 3, the firmware needs to be from October 2016 or later.

## Quickstart - Display Only

Expand All @@ -16,49 +17,57 @@ For the display to work with the Compute Module, the firmware needs to be Octobe

1. On the compute module, run:

```sudo wget https://goo.gl/Ah6XD5 -O /boot/dt-blob.bin```
```sudo wget https://goo.gl/iiVxuA -O /boot/dt-blob.bin```

1. Reboot for the `dt-blob.bin` file to be read.

## Quickstart - Display and Camera
This will enable `disp1` and `cam1`.
## Quickstart - Display and Camera(s)
This will enable `disp1` and `cam1`, with optionally `cam0`.

1. Connect the display to the DISP1 port on the Compute Module IO board through the 22W to 15W display adaptor.
1. Connect the camera to the CAM1 port on the Compute Module IO board through the 22W to 15W camera adaptor.
1. (Optional) Connect the camera to the CAM0 port on the Compute Module IO board through the 22W to 15W camera adaptor.
1. Connect these pins together with jumper wires:

```
GPIO0 - CD0_SDA
GPIO1 - CD0_SCL
GPIO4 - CAM0_IO1
GPIO5 - CAM0_IO0

GPIO28 - CD1_SDA
GPIO29 - CD1_SCL
GPIO30 - CAM1_IO1
GPIO31 - CAM1_IO0
GPIO0 - CD1_SDA
GPIO1 - CD1_SCL
GPIO4 - CAM1_IO1
GPIO5 - CAM1_IO0
```
Please note that the wiring is slightly different from that on the camera page in using GPIOs 4&5 instead of 2&3.

![GPIO connection for a single display and a single camera](images/CMIO-Cam-Disp-GPIO.jpg)
1. For `cam0`, add links:

1. On the compute module, run:
```
GPIO28 - CD0_SDA
GPIO29 - CD0_SCL
GPIO30 - CAM0_IO1
GPIO31 - CAM0_IO0
```

```sudo wget https://goo.gl/1V3ReK -O /boot/dt-blob.bin```
![GPIO connection for a single display and two cameras](images/CMIO-Cam-Disp-GPIO.jpg)
(Please note this image needs to be updated to show two cameras, or have the extra jumper leads removed)

1. Make the 7" display as the default by adding the following line into `/boot/config.txt`:
1. On the compute module, for display and one camera run:

```sudo wget https://goo.gl/gaqNrO -O /boot/dt-blob.bin```

For display and two cameras run:

```sudo wget https://goo.gl/htHv7m -O /boot/dt-blob.bin```

```
display_default_lcd=1
```
1. Reboot for the `dt-blob.bin` file to be read.

![Camera Preview on the 7 inch display](images/CMIO-Cam-Disp-Example.jpg)
(Please note this image needs to be updated to show two cameras, or have the extra jumper leads removed)

### Software support

There is no additional configuration required to enable the touch screen. The touch interface should out work of the box once the screen is successfully detected.


### Sources
- [dt-blob-disp1-cam1.dts](dt-blob-disp1-cam1.dts)
- [dt-blob-disp1-only.dts](dt-blob-disp1-only.dts)
- [dt-blob-disp1-cam1.dts](dt-blob-disp1-cam1.dts)
- [dt-blob-disp1-cam2.dts](dt-blob-disp1-cam2.dts)
Binary file modified hardware/computemodule/dt-blob-disp1-cam1.bin
Binary file not shown.
Loading

0 comments on commit 1f72994

Please sign in to comment.