summaryrefslogtreecommitdiff
path: root/recipes-devtools
diff options
context:
space:
mode:
authorStefan Müller-Klieser <S.Mueller-Klieser@phytec.de>2017-03-28 14:55:35 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2017-03-28 15:24:59 +0200
commit80184796d1f12862700054ea29c35c765889cdb2 (patch)
tree381f9f3015e0fa28ede295b81cd2fee346807a8e /recipes-devtools
parentf7b758d96f7081f86485e3c9168c5eda6e20824b (diff)
downloadmeta-yogurt-80184796d1f12862700054ea29c35c765889cdb2.tar.bz2
meta-yogurt-80184796d1f12862700054ea29c35c765889cdb2.zip
mraa: update Mira documentation
- fix pinout for X17 - interface description Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/mraa/mraa/0002-phyboard-mira-add-platform-support.patch350
1 files changed, 141 insertions, 209 deletions
diff --git a/recipes-devtools/mraa/mraa/0002-phyboard-mira-add-platform-support.patch b/recipes-devtools/mraa/mraa/0002-phyboard-mira-add-platform-support.patch
index ffde484..cb0a8aa 100644
--- a/recipes-devtools/mraa/mraa/0002-phyboard-mira-add-platform-support.patch
+++ b/recipes-devtools/mraa/mraa/0002-phyboard-mira-add-platform-support.patch
@@ -1,26 +1,27 @@
-From 0232fde91922de1b73b86a2b9328ecca6c76ca89 Mon Sep 17 00:00:00 2001
+From c509e56fced476b63f9ec7e3e54e97b673783c12 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20M=C3=BCller-Klieser?= <s.mueller-klieser@phytec.de>
Date: Tue, 14 Feb 2017 15:16:56 +0100
-Subject: [PATCH 2/2] phyboard-mira: add platform support
+Subject: [PATCH] phyboard-mira: add platform support
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
+
---
README.md | 1 +
api/mraa/types.h | 1 +
api/mraa/types.hpp | 1 +
docs/index.java.md | 1 +
docs/index.md | 1 +
- docs/phyboard-mira.md | 222 ++++++++++++++++++++++++++++++++++++++
- include/arm/mira.h | 51 +++++++++
+ docs/phyboard-mira.md | 153 ++++++++++++++++++++++++++++
+ include/arm/mira.h | 51 ++++++++++
src/CMakeLists.txt | 1 +
src/arm/arm.c | 7 +-
- src/arm/mira.c | 205 +++++++++++++++++++++++++++++++++++
+ src/arm/mira.c | 205 ++++++++++++++++++++++++++++++++++++++
src/arm/phyboard.c | 1 +
src/python/python2/docs/index.rst | 1 +
- 12 files changed, 492 insertions(+), 1 deletion(-)
+ 12 files changed, 423 insertions(+), 1 deletion(-)
create mode 100644 docs/phyboard-mira.md
create mode 100644 include/arm/mira.h
create mode 100644 src/arm/mira.c
@@ -87,15 +88,30 @@ index ea9633a..8c86003 100644
- @ref joule
diff --git a/docs/phyboard-mira.md b/docs/phyboard-mira.md
new file mode 100644
-index 0000000..726760d
+index 0000000..2dc0446
--- /dev/null
+++ b/docs/phyboard-mira.md
-@@ -0,0 +1,222 @@
+@@ -0,0 +1,153 @@
+phyBOARD-Mira {#phyboard-mira}
+=============
+
+The phyBOARD-Mira for phyCORE-i.MX6
+
++phyBOARD-Mira offers a feature set and form-factor that is similar to
++that of phyBOARD-Wega. The phyCORE-i.MX 6 SOM provides the CPU core on
++the Mira, and is populated by the NXP ARM Cortex-A9 i.MX 6 series
++application processors. Mira offers standard interfaces that include
++Ethernet, USB, RS-232/RS-485, CAN, a microSD card slot and miniPCIe.
++Supplemental I/O and external hardware connectivity is enabled by
++expansion modules that interface to the Mira expansion bus. Mira also
++supports HDMI, LVDS, parallel, resistive and capacitive touch, as well
++as other HMI connectivity options.
++
++- Available with i.MX 6Solo or i.MX 6Quad Core
++- Mini PCIe
++- 1x phyCAM-S+ Camera interface
++- Flexible display selection from 7"
++
+For further information and instruction please visit:
+http://www.phytec.de/produkt/single-board-computer/phyboard-mira/
+
@@ -103,216 +119,132 @@ index 0000000..726760d
+Interface notes
+---------------
+
++**Muxing**
++One note about the i.MX 6 and pinmuxing: The i.MX 6 has up to seven
++signals which can be routed to a pin. We support our default muxing
++option for the X17 expansion connector. The available hardware
++interfaces can be extended by muxing different signals to the pins,
++which would require an adaptation of the device tree.
++
+**SPI**
-+Spi0 can be used over pins on X69 connector. There are no more spi-devices.
-+Independent of the given index in mraa_phyboard_spi_init_pre() function,
-+it will be always initialized spi0.
++Spi 1 can be used on the X17 connector. The spi nor flash on the module
++is connected to the same spi controller. So you have two chip select
++lines. Spidev0 is configured to use address 0 to connect to external
++devices. Address 1 is in use by the nor flash. Spi 2 could be muxed on
++the X17.
+
+**I2C**
-+/* TODO */
++There are 3 i2c busses active on the Mira per default. Bus 3 is used for
++the system devices and is available on the module. Bus 2 is used for
++the HDMI expansion board. Bus 1 is used for the Mira baseboard devices
++an the expansion connector X17. There are already some addresses in
++use on this bus:
++- 0x68 RTC
++- 0x62 LED Dimmer
++- 0x44 Touch
++So before connecting any devices, please use "i2cdetect 0" to see if any
++device is blocking an i2c address already.
+
+**UART**
-+Uart0 can be used over pins on X69 connector or serial port on Evaluation Board.
-+The other Uarts not have been tested yet. This is a small TODO for future.
++Uart 2 is used as debug and login console on the X17 connector. It could
++also be used with mraa. Uart 1 can be muxed on the X17.
+
++**GPIO**
++All remaining free signal pins on the X17 are muxed as GPIOs and can be
++accessed with mraa. If you are coming from microcontroller development,
++I will give a quick reminder that GPIOs in Linux userspace are a
++different world than GPIOs in a microcontroller. You will always have
++a very large maximum input and output latency. So the applications
++for userspace GPIOs are very restricted.
+
-+Pin Assignment of X69 Expansion Connector
++
++Pin Assignment of X17 Expansion Connector
+-----------------------------------------
+
-+| Physical Pin | Signal Name | Type | SL | Description |
-+|--------------|---------------------|------|-------|-------------------------|
-+| 1 | VCC3V3 | OUT | 3.3 V | 3.3V power supply |
-+| 2 | VCC5V | OUT | 5.0 V | 5V power supply |
-+| 3 | VDIG1_1P8V | OUT | 1.8 V | 1.8V power supply |
-+| | | | | (max. 300mA) |
-+| 4 | GND | - | - | Ground |
-+| 5 | X_SPIO_CS0 | OUT | 3.3 V | SPI 0 chip select 0 |
-+| 6 | X_SPIO_MOSI | OUT | 3.3 V | SPI 0 master output / |
-+| | | | | slave input |
-+| 7 | X_SPIO_MISO | IN | 3.3 V | SPI 0 master input / |
-+| | | | | slave output |
-+| 8 | X_SPIO_CLK | OUT | 3.3 V | SPI 0 clock output |
-+| 9 | GND | - | - | Ground |
-+| 10 | X_UART0_RXD | IN | 3.3 V | UART 0 receive data |
-+| | | | | (std. debug iface) |
-+| 11 | X_I2C0_SDA | I/O | 3.3 V | I2C0 Data |
-+| 12 | X_UART0_TXD | OUT | 3.3 V | UART 0 transmit data |
-+| | | | | (std. debug iface) |
-+| 13 | X_I2C0_SCL | I/O | 3.3 V | I2C0 Clock |
-+| 14 | GND | - | - | Ground |
-+| 15 | X_JTAG_TMS | IN | 3.3 V | JTAG Chain Test |
-+| | | | | Mode Select signal |
-+| 16 | X_nJTAG_TRST | IN | 3.3 V | JTAG Chain Test Reset |
-+| 17 | X_JTAG_TDI | IN | 3.3 V | JTAG Chain Test |
-+| | | | | Data Input |
-+| 18 | X_JTAG_TDO | OUT | 3.3 V | JTAG Chain Test |
-+| | | | | Data Output |
-+| 19 | GND | - | - | Ground |
-+| 20 | X_JTAG_TCK | IN | 3.3 V | JTAG Chain Test |
-+| | | | | Clock signal |
-+| 21 | X_USB_DP_EXP | I/O | 3.3 V | USB data plus |
-+| | | | | (for USB0 or USB1) |
-+| 22 | X_USB_DM_EXP | I/O | 3.3 V | USB data minus |
-+| | | | | (for USB0 or USB1) |
-+| 23 | nRESET_OUT | OUT | 3.3 V | Reset |
-+| 24 | GND | - | - | Ground |
-+| 25 | X_MMC2_CMD | I/O | 3.3 V | MMC command |
-+| 26 | X_MMC2_DATO | I/O | 3.3 V | MMC data 0 |
-+| 27 | X_MMC2_CLK | I/O | 3.3 V | MMC clock |
-+| 28 | X_MMC2_DAT1 | I/O | 3.3 V | MMC data 1 |
-+| 29 | GND | - | - | Ground |
-+| 30 | X_MMC2_DAT2 | I/O | 3.3 V | MMC data 2 |
-+| 31 | X_UART2_RX_GPIO3_9 | I/O | 3.3 V | UART 2 receive data |
-+| | | | | or GPIO3_9 |
-+| 32 | X_MMC2_DAT3 | I/O | 3.3 V | MMC data 3 |
-+| 33 | X_UART2_TX_GPIO3_10 | I/O | 3.3 V | UART 2 transmit data |
-+| | | | | or GPIO3_10 |
-+| 34 | GND | - | - | Ground |
-+| 35 | X_UART3_RX_GPIO2_18 | I/O | 3.3 V | UART 3 receive data |
-+| | | | | or GPIO2_18 |
-+| 36 | X_UART3_TX_GPIO2_19 | I/O | 3.3 V | UART 3 transmit data |
-+| | | | | or GPIO2_19 |
-+| 37 | X_INTR1_GPIO0_20 | I/O | 3.3 V | Interrupt 1 or GPIO0_20 |
-+| 38 | X_GPIO0_7 | I/O | 3.3 V | GPIO0_7 |
-+| 39 | X_AM335_EXT_WAKEUP | IN | 3.3 V | External wakeup |
-+| 40 | X_INT_RTCn | OUT | 3.3 V | Interrupt from the RTC |
-+| 41 | GND | - | - | Ground |
-+| 42 | X_GPIO3_7_nPMOD_PW | I/O | 3.3 V | GPIO3_7; Caution! Also |
-+| | RFAIL | | | connected to power fail |
-+| | | | | signal through R415. |
-+| 43 | nRESET_IN | IN | 3.3 V | Push-button reset |
-+| 44 | X_GPIO1_31 | I/O | 3.3 V | GPIO1_31 |
-+| 45 | X_AM335_NMIn | IN | 3.3 V | AM335x |
-+| | | | | non-maskable interrupt |
-+| 46 | GND | - | - | Ground |
-+| 47 | X_AIN4 | IN | 1.8 V | Analog input 4 |
-+| 48 | X_AIN5 | IN | 1.8 V | Analog input 5 |
-+| 49 | X_AIN6 | IN | 1.8 V | Analog input 6 |
-+| 50 | X_AIN7 | IN | 1.8 V | Analog input 7 |
-+| 51 | GND | - | - | Ground |
-+| 52 | X_GPIO_CKSYNC | I/O | 3.3 V | GPIO Clock |
-+| | | | | Synchronization |
-+| 53 | X_USB_ID_EXP | IN | 1.8 V | USB port identification |
-+| | | | | (for USB0 or USB1) |
-+| 54 | USB_VBUS_EXP | OUT | 5.0 V | USB bus voltage |
-+| | | | | (for USB0 or USB1) |
-+| 55 | X_USB1_CE | OUT | 3.3 V | USB 1 charger enable |
-+| 56 | GND | - | - | Ground |
-+| 57 | VCC_BL | OUT | NS | Backlight power supply |
-+| 58 | X_BP_POWER | IN | 5.0 V | Power On for Power |
-+| | | | | Management IC for AM335x|
-+| 59 | GND | - | - | Ground |
-+| 60 | VCC5V_IN | IN | 5.0 V | 5 V input supply voltage|
-+
-+
-+Pin Assignment of X70 A/V Connector
-+-----------------------------------
-+
-+| Physical Pin | Signal Name | Type | SL | Description |
-+|--------------|---------------------|------|-------|-------------------------|
-+| 1 | GND | - | - | Ground |
-+| 2 | X_LCD_D21 | OUT | 3.3 V | LCD D21 |
-+| 3 | X_LCD_D18 | OUT | 3.3 V | LCD D18 |
-+| 4 | X_LCD_D16 | OUT | 3.3 V | LCD D16 |
-+| 5 | X_LCD_D0 | OUT | 3.3 V | LCD D0 |
-+| 6 | GND | - | - | Ground |
-+| 7 | X_LCD_D1 | OUT | 3.3 V | LCD D1 |
-+| 8 | X_LCD_D2 | OUT | 3.3 V | LCD D2 |
-+| 9 | X_LCD_D3 | OUT | 3.3 V | LCD D3 |
-+| 10 | X_LCD_D4 | OUT | 3.3 V | LCD D4 |
-+| 11 | GND | - | - | Ground |
-+| 12 | X_LCD_D22 | OUT | 3.3 V | LCD D22 |
-+| 13 | X_LCD_D19 | OUT | 3.3 V | LCD D19 |
-+| 14 | X_LCD_D5 | OUT | 3.3 V | LCD D5 |
-+| 15 | X_LCD_D6 | OUT | 3.3 V | LCD D6 |
-+| 16 | GND | - | - | Ground |
-+| 17 | X_LCD_D7 | OUT | 3.3 V | LCD D7 |
-+| 18 | X_LCD_D8 | OUT | 3.3 V | LCD D8 |
-+| 19 | X_LCD_D9 | OUT | 3.3 V | LCD D9 |
-+| 20 | X_LCD_D10 | OUT | 3.3 V | LCD D10 |
-+| 21 | GND | - | - | Ground |
-+| 22 | X_LCD_D23 | OUT | 3.3 V | LCD D23 |
-+| 23 | X_LCD_D20 | OUT | 3.3 V | LCD D20 |
-+| 24 | X_LCD_D17 | OUT | 3.3 V | LCD D17 |
-+| 25 | X_LCD_D11 | OUT | 3.3 V | LCD D11 |
-+| 26 | GND | - | - | Ground |
-+| 27 | X_LCD_D12 | OUT | 3.3 V | LCD D12 |
-+| 28 | X_LCD_D13 | OUT | 3.3 V | LCD D13 |
-+| 29 | X_LCD_D14 | OUT | 3.3 V | LCD D14 |
-+| 30 | X_LCD_D15 | OUT | 3.3 V | LCD D15 |
-+| 31 | GND | - | - | Ground |
-+| 32 | X_LCD_PCLK | OUT | 3.3 V | LCD Pixel Clock |
-+| 33 | X_LCD_BIAS_EN | OUT | 3.3 V | LCD BIAS |
-+| 34 | X_LCD_HSYNC | OUT | 3.3 V | LCD Horizontal |
-+| | | | | Synchronization |
-+| 35 | X_LCD_VSYNC | OUT | 3.3 V | LCD Vertical |
-+| | | | | Synchronisation |
-+| 36 | GND | - | - | Ground |
-+| 37 | GND | - | - | Ground |
-+| 38 | X_PWM1_OUT | OUT | 3.3 V | Pulse Width Modulation |
-+| 39 | VCC_BL | OUT | NS | Backlight power supply |
-+| 40 | VCC5V | OUT | 5.0 V | 5 V power supply |
-+
-+
-+Pin Assignment of X71 A/V Connector
-+-----------------------------------
-+
-+| Physical Pin | Signal Name | Type | SL | Description |
-+|--------------|---------------------|------|-------|-------------------------|
-+| 1 | X_I2S_CLK | I/O | 3.3 V | I2S Clock |
-+| 2 | X_I2S_FRM | I/O | 3.3 V | I2S Frame |
-+| 3 | X_I2S_ADC | I/O | 3.3 V | I2S Analog-Digital |
-+| | | | | converter (microphone) |
-+| 4 | X_I2S_DAC | I/O | 3.3 V | I2S Digital-Analog |
-+| | | | | converter (speaker) |
-+| 5 | X_AV_INT_GPIO1_30 | I/O | 3.3 V | A/V interrupt; GPIO1_30 |
-+| 6 | nUSB1_OC_GPIO3_19 or| I/O | 3.3 V | GPIO3_19 or McASP0 |
-+| | X_MCASP0_AHCLKX_GPIO3_21| | | high frequency clock |
-+| 7 | GND | - | - | Ground |
-+| 8 | nRESET_OUT | OUT | 3.3 V | Reset |
-+| 9 | TS_X+ | IN | 1.8 V | Touch X+ |
-+| 10 | TS_X- | IN | 1.8 V | Touch X- |
-+| 11 | TS_Y+ | IN | 1.8 V | Touch Y+ |
-+| 12 | TS_Y- | IN | 1.8 V | Touch Y- |
-+| 13 | VCC3V3 | OUT | 3.3 V | 3.3 V power supply |
-+| 14 | GND | - | - | Ground |
-+| 15 | X_I2C0_SCL | I/O | 3.3 V | I2C Clock |
-+| 16 | X_I2C0_SDA | I/O | 3.3 V | I2C Data |
-+
-+Jumper J77 connects either signal X_MCASP0_AHCLKX_GPIO3_21 or signal
-+nUSB1_OC_GPIO3_19 to pin 6 of X71.
-+The following table shows the available configurations:
-+
-+A/V Jumper configuration J77
-+----------------------------
-+
-+| J77 | Description |
-+|-----|--------------------------|
-+| 1+2 | X_MCASP0_AHCLKX_GPIO3_21 |
-+| 2+3 | nUSB1_OC_GPIO3_19 |
-+
-+Caution: If J77 is set to 2+3 , J78 also has to be set to 2+3 !
-+
-+
-+GPIO - Pin-mapping (with installed expansion board)
-+---------------------------------------------------
-+
-+| Physical Pin | Pin-Name | Pin-Map / Sysfs GPIO | Def. usage | Connector|
-+|--------------|---------------|----------------------|------------|----------|
-+| 31 | X_GPIO3_9 | 105 | OUT LED3 | X69 |
-+| 33 | X_GPIO3_10 | 106 | IN S3 | X69 |
-+| 35 | X_GPIO2_18 | 82 (busy) | OUT LED1 | X69 |
-+| 36 | X_GPIO2_19 | 83 | OUT LED2 | X69 |
-+| 37 | X_GPIO0_20 | 20 (busy) | IN S1 | X69 |
-+| 38 | X_GPIO0_7 | 7 | IN S2 | X69 |
-+| 42 | X_GPIO3_7 | 103 | IN | X69 |
-+| 44 | X_GPIO1_31 | 63 | IN | X69 |
-+|--------------|---------------|----------------------|------------|----------|
-+| 5 (105) | X_GPIO1_30 | 62 | IN | X71 |
-+| 6 (106) | X_GPIO3_19 or | 115 | IN | X71 |
-+| | X_GPIO3_21 | 117 | IN | X71 |
-+
-+Info: (busy) means, that it is used by kernel driver!
++Pin | Schematics Label | Signal Name | Type | SL | Description
++-----|------------------------------|-----------------|--------|---------|-------------------------------------------------
++1 | VCC3V3 | | OUT | 3.3 V | 3.3V power supply
++2 | VCC5V | | OUT | 5.0 V | 5V power supply
++3 | VCC1V5 | | OUT | 1.5 V | 1.8V power supply
++4 | GND | | - | - | Ground
++5 | X_ECSPI1_SS0 | ECSPI1_SS0 | OUT | 3.3 V | SPI 1 chip select 0
++6 | X_ECSPI1_MOSI | ECSPI1_MOSI | OUT | 3.3 V | SPI 1 master output / slave input
++7 | X_ECSPI1_MISO | ECSPI1_MISO | IN | 3.3 V | SPI 1 master input / slave output
++8 | X_ECSPI1_SCLK | ECSPI1_SCLK | OUT | 3.3 V | SPI 1 clock output
++9 | GND | | - | - | Ground
++10 | X_UART2_RX_DATA | UART2_RX_DATA | IN | 3.3 V | UART 2 receive data (standard debug interface)
++11 | X_I2C1_SDA | I2C1_SDA | I/O | 3.3 V | I2C 1 Data
++12 | X_UART2_TX_DATA | UART2_TX_DATA | OUT | 3.3 V | UART 2 transmit data (standard debug interface)
++13 | X_I2C1_SCL | I2C1_SCL | I/O | 3.3 V | I2C 1 Clock
++14 | GND | | - | - | Ground
++15 | X_JTAG_TMS | | IN | 3.3 V | JTAG Chain Test Mode Select signal
++16 | X_JTAG_TRSTB | | IN | 3.3 V | JTAG Chain Test Reset
++17 | X_JTAG_TDI | | IN | 3.3 V | JTAG Chain Test Data Input
++18 | X_JTAG_TDO | | OUT | 3.3 V | JTAG Chain Test Data Output
++19 | GND | | - | - | Ground
++20 | X_JTAG_TCK | | IN | 3.3 V | JTAG Chain Test Clock signal
++21 | X_USB1_DP_EXP | | I/O | Diff | USB host data +
++22 | X_USB1_DM_EXP | | I/O | Diff | USB host data -
++23 | X_nRESET | | OUT | 3.3 V | Reset
++24 | GND | | - | - | Ground
++25 | X_SD3_CMD | GPIO7_IO02 | I/O | 3.3 V | GPIO7_IO02
++26 | X_SD3_DATA0 | GPIO7_IO04 | I/O | 3.3 V | GPIO7_IO04
++27 | X_SD3_CLK | GPIO7_IO03 | I/O | 3.3 V | GPIO7_IO03
++28 | X_SD3_DATA1 | GPIO7_IO05 | I/O | 3.3 V | GPIO7_IO05
++29 | GND | | - | - | Ground
++30 | X_SD3_DATA2 | GPIO7_IO06 | I/O | 3.3 V | GPIO7_IO06
++31 | X_CSI0_DAT11/ECSPI2_SS0 | GPIO5_IO29 | I/O | 3.3 V | GPIO5_IO29
++32 | X_SD3_DATA3 | GPIO7_IO07 | I/O | 3.3 V | GPIO7_IO07
++33 | X_CSI0_DAT10/ECSPI2_MISO | GPIO5_IO28 | I/O | 3.3 V | GPIO5_IO28
++34 | GND | | - | - | Ground
++35 | X_SD3_DATA4 | GPIO7_IO01 | I/O | 3.3 V | GPIO7_IO01
++36 | X_SD3_DATA5 | GPIO7_IO00 | I/O | 3.3 V | GPIO7_IO00
++37 | X_SATA_TXP | | OUT | Diff | SATA transmit positive
++38 | X_SD3_DATA6 | GPIO6_IO18 | I/O | 3.3 V | GPIO6_IO18
++39 | X_SATA_TXN | | OUT | Diff | SATA transmit negative
++40 | X_SD3_DATA7 | GPIO6_IO17 | I/O | 3.3 V | GPIO6_IO17
++41 | GND | | - | - | Ground
++42 | X_ECSPI2_RDY/nPMON_PWRFAIL | GPIO5_IO02 | I/O | 3.3 V | GPIO5_IO02
++43 | X_SATA_RXP | | IN | Diff | SATA receive positive
++44 | X_CSI0_DAT8/ECSPI2_SCLK | GPIO5_IO26 | I/O | 3.3 V | GPIO5_IO26
++45 | X_SATA_RXN | | IN | Diff | SATA receive negative
++46 | GND | | - | - | Ground
++47 | X_FLEXCAN1_TX_EXP | | OUT | 3.3 V | CAN 1 transmit data
++48 | X_FLEXCAN1_RX_EXP | | IN | 3.3 V | CAN 1 receive data
++49 | X_USB_OTG_OC/FLEXCAN2_TX | GPIO4_IO14 | I/O | 3.3 V | GPIO4_IO14
++50 | X_USB_OTG_PWR/FLEXCAN2_RX | GPIO4_IO15 | I/O | 3.3 V | GPIO4_IO15
++51 | GND | | - | - | Ground
++52 | X_CSI0_DAT9/ECSPI2_MOSI | GPIO5_IO27 | I/O | 3.3 V | GPIO5_IO27
++53 | X_USB1_ID | | IN | 3.3 V | USB 1 identification
++54 | X_USB1_VBUS | | OUT | 5.0 V | USB 1 bus voltage
++55 | X_USB_OTG_CHD_B | | OUT | 3.3 V | USB 1 charger enable
++56 | GND | | - | - | Ground
++57 | VCC_BL | | OUT | NS | Backlight power supply
++58 | X_ECSPI2_SS1 | GPIO2_IO27 | I/O | 3.3 V | GPIO2_IO27
++59 | GND | | - | - | Ground
++60 | VCC5V_IN | | IN | 5.0 V | 5 V input supply voltage
++
++
++Preassigned devices on debug expansion PEB-EVAL-01
++--------------------------------------------------
++
++Pin | Signal | Type | Device label
++-----|--------------|--------|-----------------
++31 | GPIO5_IO29 | OUT | LED3
++33 | GPIO5_IO28 | IN | S3
++35 | GPIO7_IO01 | OUT | LED1
++36 | GPIO7_IO00 | OUT | LED2
++37 | | | S1 (not mounted
++38 | GPIO6_IO18 | IN | S2
++
++Remaining Connectors
++--------------------
++
++Connector X13 and X14 are used for high speed A/V Expansions. Connector
++X3 is used for CAN and is not supported in mraa. Connector X23 is used
++for RS232 and RS485 and is not yet supported in mraa.
++
++
diff --git a/include/arm/mira.h b/include/arm/mira.h
new file mode 100644
index 0000000..554270f