Difference between revisions of "Tests:MSIOF-SPI-CS-GPIO"

From eLinux.org
Jump to: navigation, search
(Add Software Test Environment)
m (Correct header levels)
Line 29: Line 29:
 
To ease wiring, you can use [[Samtec-Breakout-Adapters]].
 
To ease wiring, you can use [[Samtec-Breakout-Adapters]].
  
== Software Test Environment ==
+
= Software Test Environment =
  
=== Kernel Source Tree ===
+
== Kernel Source Tree ==
  
 
Please use the following Git repository:
 
Please use the following Git repository:
Line 37: Line 37:
 
* Branch: "topic/msiof-cs-gpios-integration" (This is a merge of "topic/renesas-overlays", "topic/25lc040-dt-v2", and "topic/msiof-multi-slave", meant for testing).
 
* Branch: "topic/msiof-cs-gpios-integration" (This is a merge of "topic/renesas-overlays", "topic/25lc040-dt-v2", and "topic/msiof-multi-slave", meant for testing).
  
=== Kernel Configuration ===
+
== Kernel Configuration ==
  
 
* Build and install a kernel using "shmobile_defconfig", with the following additional options enabled:
 
* Build and install a kernel using "shmobile_defconfig", with the following additional options enabled:
Line 52: Line 52:
 
</pre>
 
</pre>
  
=== Test Utilities ===
+
== Test Utilities ==
  
 
* <code>overlay</code>, from [[R-Car/DT-Overlays]],
 
* <code>overlay</code>, from [[R-Car/DT-Overlays]],

Revision as of 08:50, 14 December 2017

This document describes testing MSIOF SPI using GPIO chipselects for SPI on the Renesas Koelsch board.

Hardware Test Environment

All testing has been done on the Renesas Koelsch development board, using three Microchip 25LC040 (or compatible) SPI EEPROMs.

If you use another AT25-compatible SPI flash, you have to update the properties in "arch/arm/boot/dts/r8a7791-koelsch-exio-a-msiof1-25lc040-x3.dtso".

Breadboard Setup

BreadBoardWith3x25lc040.png

Wiring to Koelsch

Power wiring between CN26 on Koelsch and the breadboard:

  • Connect pin 5 ("GND") to GND,
  • Connect pin 7 ("D3.3V") to VCC.

Signal wiring between MSIOF1 on EXIO Connector A on Koelsch and the breadboard:

  • Connect pin 46 ("MSIOF1 SCK") to SCK,
  • Connect pin 54 ("MSIOF1 TX/MOSI") to MOSI,
  • Connect pin 56 ("MSIOF1 RX/MISO") to MISO,
  • Connect pin 48 ("GP0_23") to CS0#,
  • Connect pin 50 ("GP0_24") to CS1#,
  • Connect pin 52 ("GP0_25") to CS2#.

To ease wiring, you can use Samtec-Breakout-Adapters.

Software Test Environment

Kernel Source Tree

Please use the following Git repository:

Kernel Configuration

  • Build and install a kernel using "shmobile_defconfig", with the following additional options enabled:
CONFIG_EEPROM_AT25=y
CONFIG_OF_OVERLAY=y
CONFIG_OF_CONFIGFS=y
CONFIG_DYNAMIC_DEBUG=y
  • Make sure to copy the DT overlay to the target board:
scp arch/arm/boot/dts/r8a7791-koelsch-exio-a-msiof1-25lc040-x3.dtbo koelsch:/lib/firmware/

Test Utilities