Open main menu

DAVE Developer's Wiki β

Changes

Enabling SPI1 on Linux (Diva)

439 bytes added, 13:11, 19 January 2018
no edit summary
==== Option 2 ====
{{ImportantMessage|text=This configuration can be implemented on the DivaEVB-Lite using the on-board expansion connectors.}}
{|class="wikitable" style="text-align:right"
!Diva Connector Phisical Pin
!CPU Ball
!DivaEVB-Lite signal
|-
|SPI1_SCLK
|J1.109150|C18A13|J10.7
|-
|SPI1_D0
|J1.31140|E18B13|J9.15
|-
|SPI1_D1
|J1.29142|E17D12|J9.17
|-
|SPI1_CS0
|J1.144
|C12
|J9.19
|-
|SPI1_CS1
|J1.69
|A15
|J11.19
|}
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:
<diffpre>
diff --git a/arch/arm/mach-omap2/board-diva.c b/arch/arm/mach-omap2/board-diva.c
index f6b77fc..a8b3996 100644
{usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
</diffpre>
<diffpre>
diff --git a/arch/arm/mach-omap2/diva_pinmux_table.h b/arch/arm/mach-omap2/diva_pinmux_table.h
index 5a2646a..9509b46 100644
* the following mux configurations are un-tested but are left here for
* reference. They are all comment-out to avoid "defined but not used" warning
</diffpre>
The kernel must be rebuilt to make these modifications effective.
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:
<diffpre>
diff --git a/arch/arm/mach-omap2/board-diva.c b/arch/arm/mach-omap2/board-diva.c
index 42898e9..8f7810d 100644
{w1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
</diffpre{{ImportantMessage|text=With this pinmux configuration, the SPI1 signals are shared with the McASP0 signals. Thus, for a proper setup, the MCASP0 interface initialization must be disabled in <code>evm_dev_cfg diva_dev_cfg[]</code> (please see the patch above).}}
<diffpre>
diff --git a/arch/arm/mach-omap2/diva_pinmux_table.h b/arch/arm/mach-omap2/diva_pinmux_table.h
index f6647b0..d2722a3 100644
/* Module pin mux for rgmii1 */
static struct pinmux_config rgmii1_pin_mux[] = {
</diffpre>
The kernel must be rebuilt to make these modifications effective.
8,221
edits