Changes

Jump to: navigation, search

Enabling SPI1 and SPI3 on Linux (Naon)

1,580 bytes added, 09:47, 3 September 2013
Created page with "{{InfoBoxTop}} {{Applies To Naon}} {{Applies To Linux}} {{InfoBoxBottom}} === Introduction === This article shows how to enable the SPI1 and SPI3 interfaces which can be use..."
{{InfoBoxTop}}
{{Applies To Naon}}
{{Applies To Linux}}
{{InfoBoxBottom}}

=== Introduction ===

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

=== Pin Mux Option ===

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

==== Option 1 ====
{|class="wikitable" style="text-align:right"
!Signal
!Naon Connector Phisical Pin
!CPU Ball
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|}

=== U-Boot patches ===

{{ImportantMessage|text=The patches below applies to NELK 4.0.0 and above U-Boot source tree.}}


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

<diff>
</diff>

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



=== Linux kernel patches ===

{{ImportantMessage|text=The patches below applies to NELK 4.0.0 and above Linux source tree.}}


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

<diff>
</diff>

The kernel must be rebuilt to make these modifications effective.


=== Using the interfaces ===

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

* https://www.kernel.org/doc/Documentation/spi/spidev
* https://www.kernel.org/doc/Documentation/spi/spidev_test.c

=== Patch download ===

* U-Boot:
* Linux:

Navigation menu