最近更改

2017-01-06
2016-02-29
2014-10-14
2013-04-23

最新文件发布

This Project Has Not Released Any Files

Wiki Guide

Sidebar

Overo Earthのハードウェア情報

基本スペック

  • Processor: Texas Instruments OMAP 3503 Applications Processor: - ARM Cortex-A8 CPU Sitara ARM Cortex-A8 & ARM9 Microprocessor - OMAP3503/15 ARM Cortex-A8 Perf. Line - OMAP3503 - TI.com <http://focus.ti.com/docs/prod/folders/print/omap3503.html>
  • Clock(MHz): 600 MHz
  • Performance: Up to 1200 Dhrystone MIPS
  • Memory: 256MB RAM 256MB Flash

SPI

CPUには4CHあり。

SPI1

PintoTH/Tobi外部コネクタに出ている CS0/CS1信号があるので、2つスレーブをつなぐことが出来る。

参考

Old Nabble - Gumstix - spidev <http://old.nabble.com/spidev-td27230456.html>

PXA270/255用なのでVerdex用 Sample code/C/SPI - GumstixDocsWiki http://docwiki.gumstix.org/Sample_code/C/SPI

Linux kernelのSPI関連文書

/home/ntaka/dev/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.36-r100/git/Documentation

spi-summary <http://www.kernel.org/doc/Documentation/spi/spi-summary>

下記、分かりやすい解説ページ。SPIドライバの作り方。spike-adの基本になったドライバ。

Writing a Linux SPI driver - Part 1 <http://www.jumpnowtek.com/index.php?option=com_content&view=article&id=57&Itemid=62>

omap2_mcspi.c

overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.36-r100/git/drivers/spi/omap2_mcspi.c

git.kernel.org - linux/kernel/git/torvalds/linux-2.6.git/history - drivers/spi/omap2_mcspi.c

struct spi_message

Writing a Linux SPI driver - Part 2 <http://www.jumpnowtek.com/index.php?option=com_content&view=article&id=71&Itemid=67>

SPI_MODE_0とは?

spike-adはADS1259とSPIモード0で通信する。

spi_device->mode = SPI_MODE_0;
SPIモードの定義
Linux/include/linux/spi/spi.h <http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/include/linux/spi/spi.h#L77>
 75 #define SPI_CPHA        0x01                    /* clock phase */
 76 #define SPI_CPOL        0x02                    /* clock polarity */
 77 #define SPI_MODE_0      (0|0)                   /* (original MicroWire) */
 78 #define SPI_MODE_1      (0|SPI_CPHA)
 79 #define SPI_MODE_2      (SPI_CPOL|0)

Serial Peripheral Interface Bus - Wikipedia, the free encyclopedia <http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus#Microwire>

At CPOL=0 the base value of the clock is zero For CPHA=0, data are captured on the clock's rising edge (low→high transition) and data are propagated on a falling edge (high→low clock transition).

UART

CPUには3CHあり。

UART1

PintoTH/Tobi外部コネクタに出ている

UART2

u-bootにパッチ当てることで使用できる

Old Nabble - Gumstix - Using UART 2 on an Overo <http://old.nabble.com/Using-UART-2-on-an-Overo-td22534595.html>

ピン 機能
GPIO146_PWM11 UART2_TX
GPIO147_PWM8 UART2_RX

UART3

PintoTH/Tobi外部コネクタに出ている

Serial Console用

I2C

CPU 3CHあり。

I2C3

PintoTH/Tobi外部コネクタに出ている

  • デバイス名 /dev/i2c-3

GPIO

GPIOのkernel空間での扱いと割り込み

irqlat.c at master from scottellis/overo-irqlat - GitHub <https://github.com/scottellis/overo-irqlat/blob/master/irqlat.c>

割り込み

Old Nabble - Gumstix - GPIO Interrupts: Newbie <http://old.nabble.com/GPIO-Interrupts%3A-Newbie-td28670395.html>

ピン機能設定

Pullup/downの設定とモード(接続するモジュール)の設定が必要。 通常はu-bootで設定しているが、違う設定が必要な場合はu-bootの書き換えが必要。 UART2を使う場合など。

OMAP35 Techincal Reference

  • 7.4.4 Pad Functional Multiplexing and Configuration
  • 7.6.3 PADCONFS Register Descriptions for the meaning of bit fields in the registers.
  • Pullup/down
    • 7.4.4.2 Pull Selection
  • モード
    • 7.4.4.1 Mode Selection
    • 7.4.4.3 Pad Multiplexing Register Fields
    • モードに対応するピンの機能一覧
      • Table 7-4. Core Control Module Pad Configuration Register Fields