Difference between revisions of "Enabling SPI1 and SPI3 on Linux (Naon)"

From DAVE Developer's Wiki
Jump to: navigation, search
m
m (Patch download)
Line 75: Line 75:
 
=== Patch download ===
 
=== Patch download ===
  
* U-Boot:  
+
* U-Boot: [[File:U-boot-nelk-spi1-cs1-spi3-cs1.patch.zip]]
* Linux:
+
* Linux: [[File:Linux-nelk-spi1-cs1-spi3-cs1.patch.zip]]

Revision as of 09:49, 3 September 2013

Info Box
Naon am387x-dm814x.png Applies to Naon
Tux.png Applies to Linux

Introduction[edit | edit source]

This article shows how to enable the SPI1 and SPI3 interfaces which can be used in a standard Linux application.

Pin Mux Option[edit | edit source]

SPI1 signals are available at different Naon pins. The following configuration can be used:

Option 1[edit | edit source]

Signal Naon Connector Phisical Pin CPU Ball

U-Boot patches[edit | edit source]

200px-Emblem-important.svg.png

The patches below applies to NELK 4.0.0 and above U-Boot source tree.


The files arch/arm/mach-omap2/board-diva.c and arch/arm/mach-omap2/diva_pinmux_table.h must be modified according to the following patches:

U-Boot must be rebuilt to make these modifications effective.


Linux kernel patches[edit | edit source]

200px-Emblem-important.svg.png

The patches below applies to NELK 4.0.0 and above Linux source tree.


The files arch/arm/mach-omap2/board-diva.c and arch/arm/mach-omap2/diva_pinmux_table.h must be modified according to the following patches:

The kernel must be rebuilt to make these modifications effective.


Using the interfaces[edit | edit source]

Users can access the peripherals connected to the SP1 and SPI3 buses through the spidev interface. For further information, please refer to

Patch download[edit | edit source]