Difference between revisions of "SK-RZG1M:RZGEXT"

From eLinux.org
Jump to: navigation, search
(SW mode table added)
Line 180: Line 180:
  
 
==Building the Yocto image==
 
==Building the Yocto image==
To build Yocto image with Ethernet AVB support for Porter board, follow this procedure carfully:
+
To build Yocto image with Ethernet AVB support for RZ/G1M board, follow this procedure carfully:
 
<ol>
 
<ol>
 
<li>
 
<li>

Revision as of 09:27, 28 June 2016

Introduction

This is the official Wiki for Renesas RZ/G1M Expansion Board.

Please refer to RZ-G/Boards/SK-RZG1M for Renesas RZ/G1M board.

Hardware

This section contains information about RZ/G1M Expansion Board hardware.

Board Layout

Rzg1m expansion (bot).png

Rzg1m expansion (top).png

Hardware Features

  • Ethernet AVB phy
    • KSZ9031 phy
  • LVDS camera interface
    • MAX9272 deserializer
    • 8-bit wide video bus connected to VI2 interface of R-Car M2 CPU
    • 5V or 12V selectable supply voltage for camera with current limiting
  • CMOS camera interface (x2)
    • 8-bit wide bus with Hsync and Vsync
    • Up to 100 MHz pixelclock
  • High quality 24-bit audio codec PCM3168A
    • 6 input channels (3 stereo jacks for microphone connection)
    • 8 line out channels (RCA connectors)
    • 8 HP outputs (3 stereo jack connectors for direct headphones connection)
    • 44100/48000 Hz sampling frequency
  • RS-232 interface with flow control
  • Additional connector with 2xUART, SSI and several GPIOs

CMOS camera interface 2 (CN20) share VIN2 with LVDS camera deserializer. So only one type of camera can be used simultaneously.
CMOS camera interface 1 (CN19) share pins with WthAVB interface. So only EthAVB or CMOS camera can be used simultaneously.

Jumper Positions

J1 - voltage select for LVDS camera

"5V" - supply 5V to LVDS camera
"12V" - supply 12V from CN4 to LVDS camera
open - do not supply power to LVDS camera

SW1 Switch Positions

SW1.1
OFF - CMOS Camera on VIN2 active (CN20)
ON - LVDS Camera on VIN2 active (CN5)

SW1.2
OFF - CMOS Camera on VIN1 active (CN19)
ON - EthernetAVB port active (CN1)

SW1.1 SW1.2 Mode
off off CMOS(CN20)+CMOS(CN19)
off on CMOS(CN20)+EthAVB
on off LVDS(CN5)+CMOS(CN19)
on on LVDS(CN5)+EthAVB

LEDs Explanation

LED1 - EthAVB activity
LED2 - EthAVB link
LED3 - LVDS camera deserializer status
LED4 - LVDS camera deserializer LOCK indicator
LED5 - +3.3V overcurrent on CN23

CN19/CN20 Pinout

N Dir Description
1 - +3.3V
2 - GND
3 <-- I2C-SCL
4 <-> I2C-SDA
5 --> VI*_VSYNC
6 --> VI*_HSYNC
7 --> VI*_CLK
8 <-- 24MHz CLK
9 --> VI*_DATA7
10 --> VI*_DATA6
11 --> VI*_DATA5
12 --> VI*_DATA4
13 --> VI*_DATA3
14 --> VI*_DATA2
15 --> VI*_DATA1
16 --> VI*_DATA0
17 <-- Power Down
18 <-- Reset
19 - n.u. (alternative Reset)
20 - n.u. (alternative Power Down)

Pinout is compatible with several camera modules from ArduCAM.

Additional Connector

RZ/G1M Expansion Board Additional Connector


+3.3V output current limited at 250mA

Multi-Channel Audio

Hardware

PCM3168A: 24-Bit, 96-kHz/192-kHz, 6-In/8-Out Audio Codec with Differential Input/Output
TPA6133A2: Stereo Headphone Amplifiers for Headphones outputs
OPA2134: High Performance Audio Operational Amplifiers for Line-outs and Microphone/Line-ins

I2S TDM interface data format


Connected to R-Car M2 processor through SSI3 and 4 in I2S TDM mode (Time Division Multiplexed Audio Interface).

Software

From SW point of view PCM3168A codec is represented as 8-ch playback and 8-ch capture device. Due to share of WS and BCLK pins between SSI3 and SSI4 both playback and capture can be done with same sample rate only (48000 or 44100).
Using a PulseAudio soundcard can be splitted to several sink/sources.

EthernetAVB

This section provides information about Ethernet for Audio Video Bridging (AVB) for R-Car M2 Porter board.

R-Car M2 SoC provides Ethernet AVB functionality with 1000Mbps speed. This IP block shares pins with Ethernet MAC so only one of these interfaces can be used. R-Car M2 Porter board provides Ethernet MAC with KSZ8041RNLI PHY and Ethernet AVB connector (CN3). You can find this connector on the Porter hardware page. Thus it is necessary to disconnect KSZ8041RNLI PHY before using Ethernet AVB. To achieve this you should remove resistor R321. Resistors R1005 and R1006 allows to connect PHY reset pin to different SoC pins. Please, check that resistor R1005 is installed and R1006 is not.

KSZ8041RNLI reset resistor


This resistor connects KSZ8041RNLI PHY reset pin with R-Car M2 SoC. Without this resistor MAC PHY remains in the reset mode and does not use shared pins.

Ethernet AVB clock jumper


Next step you should set JP7 in open state. Pext01 board generates own 125MHz refclock.

Modification

You need to connect test point CP104 to the test point TP17 to make VIN1 work properly.

Connection between CP104 and TP17
(marked with red)


Schematics

RZ/G1M Expansion Board schematics can be found in File:Skrzg1m-ext02-V1-Schematic.pdf

Building the Yocto image

To build Yocto image with Ethernet AVB support for RZ/G1M board, follow this procedure carfully:

  1. Do all steps specified on R-Car/Boards/Yocto and stop before executing bitbake core-image-weston or bitbake core-image-x11
  2. Edit $WORK/build/conf/local.conf with your favorite text editor, and add at the end:
    MACHINE_FEATURES_append = "skrzg1m-ext02", "lvds", "avb" 
    
  3. Complete all steps on R-Car/Boards/Yocto.

To boot Linux kernel use uImage with:

r8a7743-skrzg1m-ext02-avb-lvds.dtb 
r8a7743-skrzg1m-ext02-cmos1-lvds.dtb
r8a7743-skrzg1m-ext02-avb-cmos2.dtb
r8a7743-skrzg1m-ext02-cmos1-cmos2.dtb

or uImage+dtb.

Installing RZ/G1M Expansion Board

Use the following procedure to install RZ/G1M Expansion Board to the RZ/G1M Board.
1. Find EXIO and Ethernet AVB connectors on both RZ/G1M and RZ/G1M Expansion boards.

2. Align and carefully push them to each other until Ethernet AVB and EXIO connectors are fully inserted.

RZ/G1M Expansion Board connected to the RZ/G1M Board with MT9D111 and OV5642 cameras


3. When boards are reliably mounted to each other, use 12V power supply splitter cables to connect RZ/G1M and RZ/G1M Expansion board's power plugs to the same adapter.

Some peripheral components:

Power supply splitter
Camera module with MT9D111
Camera module with OV5642