88
edits
Changes
From IGEP - ISEE Wiki
no edit summary
= Overview =
This How-To wiki is meant to be a starting point for people to learn configure mux for IGEP v2 devices as quickly and easily as possible. For this how-This wiki contains:<br> *Mux characteristics summary*Tips to avoid problems*Ways to i used configure mux*Tables that links peripherals and connectors for IGEPv2 and IGEP MODULE There are three ways to configure mux in IGEP Boards based in OMAP35xx and DM37xx:<br> *[[Mux_instructions|Configuring MUX from OS User Space]]. This mode has a issue, when your system reboot or shutdown you will need to configure again. [[http://releasesHow to set up UART2 in J990#First_way|Example]].linaro*Configuring MUX by using kernel commandline buddies.org/platform/linaro-m/headless/final/linaro-m-headless-tar-20101108-This way is not avaliable in some cases. [[How to set up UART2 in J990#Second_way|Example]] and [[Linux Kernel 2.tar6.37.gz Linaro Headlessy#Kernel_Parameters|buddies parametres] ].<br> *Editing and Ubuntu 10compile kernel sources.04 with Linaro Toolchain[[How to set up UART2 in J990#Third_way|Example]]. <br> = Introduction =
Mux (or multiplexer) is a Omap peripheral that can be controlled via software. Its function is connect other peripherals to some available Omap pins.
• '''INPUTENABLE''' (1 bit) drives an input enable signal to the I/O CTRL.
• '''Off mode values''' (5 bits) override the pin state when the OFFENABLE bit CONTROL. This feature is used for power saving management. Pins in off mode can be configured like output with HIGH or LOW value or input with wake-up detection feature. For input pins, OFFOUTENABLE and OFFOUTVALUE bits can not be configured:
->OFFENABLE: Off mode pin state override control. Set to 1 to enable the feature and to 0 to disable it.
• '''Wake-up''' bits (2 bits):
->WAKEUPENABLE: Enable wake-up detection on input. It is also the off mode input enable value.<br> ->WAKEUPEVENT: Wake-up event status for the pin.'''<br>''' NOTE: Off mode can be configured like pin output with a HIGH or LOW value or pin input with wake-up detection feature.
{| cellspacing="1" cellpadding="1" border="1" align="center" width="200"
|-
|
|}
=== Mode selection ===
The next table shows all capabilities.<br>
{| cellspacing="1" cellpadding="1" border="1" style="width: 287px; height: 235px;"
|}
'''Mode 0''' is the primary mode. When mode 0 is set, the function mapped to the pin corresponds to the name of the pin. In IGEP some pads don't use primary mode by default.
'''Mode 1 to mode 6''' are possible modes for alternate functions. On each pin, some modes are used effectively for alternate functions, while other modes are unused and correspond to no functional configuration.
'''The safe mode''' (default mode 7) '''avoids any risk of electrical contention by configuring the pin as an input with no functional interface mapped to it. The safe mode is used mainly as the default mode for all pins containing no mandatory interface at the release of power-on reset. NOTE: For most pads, the reset value for the MUXMODE field is 0b111. The exceptions are pads to be used at boot time to transfer data from selected peripherals to the external flash memory. <br>
=== Pull Selection ===
{| cellspacing="1" cellpadding="1" border="1" style="width: 696px; height: 1px;"
| Pull-up selected and activated if pin is NOT configured as OUTPUT
|}
When a pin is in output mode, pulls are automatically disable.
=== Input Enable ===
INPUTENABLE = 0: Input Disable. Pin is configured in output only mode.
INPUTENABLE = 1: Input Enable. Pin is configured in bidirectional mode. <br>
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#UART|UART3]]
| No
| Yes, default configuration ([[Mux instructions#UART3_in_J960|Serial debug]])
| No
| No
| No
| No
| Yes, not default configuration ([[Mux_instructions#TFP410|disable DVI]])
|-
| [[Peripherals Summary#UART|UART4]]
| No
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#GPIO|GPIO]]
|
Yes, default configuration ([[Mux instructions#GPIO_in_J990|info]])
| No
| No
| Yes, not default configuration ([[Mux instructions#GPIO_in_J990|disable JTAG]])
| Yes, default configuration
| Yes, default configuration
| Yes, not default configuration ([[Mux_instructions#TFP410|disable DVI]])
|-
| [[Peripherals Summary#SPI|McSPI1]]
| No
| No
| No
| No
| No
| Yes, default configuration
| No
|-
| [[Peripherals Summary#SPI|McSPI2]]
| No
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#SPI|McSPI3]]
|
Yes, not default configuration ([[Mux instructions#WIFI|disable WIFI]])
| No
| No
| No
| No
| No
| Yes, not default configuration ([[Mux_instructions#TFP410|disable DVI]])<br>
|-
| [[Peripherals Summary#SPI|McSPI4]]
| Yes, not default configuration ([[Mux instructions#GPIO_in_J990|disable GPIOs]])
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#BSP|McBSP1]]
| Yes, not default configuration ([[Mux instructions#GPIO_in_J990|disable GPIOs]])
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#BSP|McBSP2]]
| No
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#BSP|McBSP3]]
| Yes, default configuration ([[Mux instructions#TP65950_PCM_VSP|Bluetooth audio]])
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#BSP|McBSP4]]
| No
| No
| No
| No
| No
| Yes, not default configuration ([[Mux instructions#GPIO_in_J990|disable GPIOs]])
| No
|-
| [[Peripherals Summary#BSP|McBSP5]]
| No
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#MMC|MMC1]]
| No
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#MMC|MMC2]]
| Yes, default configuration ([[Mux instructions#WIFI|WIFI]])
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#MMC|MMC3]]
| No
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#I2C|I2C1]]
| No
| No
| No
| No
| No
| No
| No
|-
| [[Peripherals Summary#I2C|I2C2]]
| Yes, default configuration
| No
| No
| No
| No, [[Connectors Summary#JC30_connector|via hardware]]
| No
| No
|-
| [[Peripherals Summary#I2C|I2C3]]
| No
| No
| No
| No
| No
| No
| Yes, default configuration (DVI)
|-
| [[Peripherals Summary#I2C|I2C4]]
| No
| No
| No
| No
| No
| No
| No
|}
{| cellspacing= Available peripherals on external connector "1" cellpadding="1" border="1" style="width: 933px; height: 190px;"|-| <br>| [[Connectors Summary#J1_connector|J1]] | [[Connectors Summary#J4_connector|J4]] | [[Connectors Summary#J5_connector|J5]]|-| [[Peripherals Summary#UART|UART1]] | Yes, not default configuration (disable DSS) | Yes, default configuration | No|-| [[Peripherals Summary#UART|UART2]] | Yes, not default configuration(enable: TX and RX) | No | No|-| [[Peripherals Summary#UART|UART3]] | Yes, default configuration | No | No|-| [[Peripherals Summary#UART|UART4]] | No | Yes, not default configuration(disable: GPIO_64 and GPMC_WAIT3) | No|-| [[Peripherals Summary#GPIO|GPIO]] | Yes, default configuration | Yes, default configuration | Yes, default configuration|-| [[Peripherals Summary#SPI|McSPI1]] | No | Yes, default configuration | No|-| [[Peripherals Summary#SPI|McSPI2]] | No | No | No|-| [[Peripherals Summary#SPI|McSPI3]] | Yes, not default configuration (disable DSS) | No | No|-| [[Peripherals Summary#SPI|McSPI4]] | No | No | No|-| [[Peripherals Summary#BSP|McBSP1]] | No | No | No|-| [[Peripherals Summary#BSP|McBSP2]] | No | No | No|-| [[Peripherals Summary#BSP|McBSP3]] | Yes, not default configuration (disable UART2) | No | No|-| [[Peripherals Summary#BSP|McBSP4]] | No | Yes, not default configuration (disable GPMCs) | No|-| [[Peripherals Summary#BSP|McBSP5]] | No | Yes, not default configuration (disable GPIOs) | No|-| [[Peripherals Summary#MMC|MMC1]] | No | No | No|-| [[Peripherals Summary#MMC|MMC2]] | No | No | No|-| [[Peripherals Summary#MMC|MMC3]] | No | No | Yes, not default configuration (disable GPIOs)|-| [[Peripherals Summary#I2C|I2C1]] | No | No | No|-| [[Peripherals Summary#I2C|I2C2]] | No | No | No|-| [[Peripherals Summary#I2C|I2C3]] | Yes, default configuration (J5) | No | Yes, default configuration (J1)|-| [[Peripherals Summary#I2C|I2C4]] | No | No | No|}