Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Mux configuration

3,751 bytes added, 10:55, 17 February 2014
no edit summary
= Overview =
This How-To wiki is meant to be a starting point for people to learn configure mux for IGEP 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.
• '''Wake-up''' bits (2 bits):
-&gt;WAKEUPENABLE: Enable wake-up detection on input. It is also the off mode input enable value.
-&gt;WAKEUPEVENT: Wake-up event status for the pin.'''<br>'''
| Mode 7 (Safe Mode)<br>
|}
 
'''Definitions:'''
'''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.'''<br>
=== Pull Selection ===
When a pin is in output mode, pulls are automatically disable. The next table show shows all configurations avaliable:<br> capabilities.
{| 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.  For proper functioning of some peripherals INPUTENABLE must be set to 1 for pads configured to drive output clocks: SDRC, GPMC, McSPIi, I2Ci, MMCi, McBSPi, HSUSB HOST. <br>
=== '''Off mode values''' and '''Wake-up''' ===
Please contribute.
[http://www.ti.com/generallit/docsug/litspruf98x/getliteraturespruf98x.tsp?literatureNumber=spruf98v&fileType=pdf More information] about mux. = Available peripherals on external connector = === Important tips<br> === Use the following tips to configure mux without problems:
*= Configure Mux can connect multiple connectors at the same peripheral, this improper use can damage the processor. Make sure to disable old connector configuration before use new one. *Some peripherals are only available if you place or replace some resistances. View schematics for more information.<br> *Some connectors share multiples peripherals. You should disable unused peripherals to avoid interferences.&nbsp; For example: if you want to control WIFI module via J990 disable OMAP or if you want use UART2 at j990 disable Bluetooth.<br> =
=== Configure Mux options are vast, at the beginning can be difficult and tedious change some configurations. Before configure mux<br> ===, use the following tips to avoid problems:
IgepV2 Board has a default *Mux can connect multiple connectors at the same peripheral, this improper use can damage the processor. Before configure mux configuration, but revise that this peripheral is not used in other pads. See schematics or [[Connectors Summary|connectors summary]] for more information. *Some peripherals are only available if you place or replace some cases are necessary change itresistances. See schematics for more information.<br> *Some connectors share multiples peripherals like OMAP, WIFI/BT combo, for etc. You should disable unused peripherals to avoid interferences.&nbsp; For example your project needs : if you want to control WIFI module via J990 disable OMAP or if you want use [[How to set up UART2 in J990|UART2 at j990]] connector disable Bluetooth. See schematics of board or [[Connectors Summary|connectors summary]] or [[Mux_instructions#Disable_Peripherals|how-to disable peripherals]] or [[How_to_use_GPIOs|how-to transmit data. Mux options are vastuse gpios]] for more information. There are three ways to configure mux at DM37xx and OMAP35xx:<br>
*Editing OS User Space. this mode has a issue, when your system reboot or shutdown you will need to configure again. [[How to set up UART2 in J990#First_way|Example]]. *Using kernel buddies. This way is not avaliable in some cases. [[How to set up UART2 in J990#Second_way|Example]]. [[Linux Kernel 2.6.37.y#Kernel_Parameters|Buddies examples]].<br> *Editing and compile kernel sources. [[How to set up UART2 in J990#Third_way|Example]].=== IGEPv2 ===
=== Next table pretends help you to configure IGEPv2. First column shows some OMAP35xx/DM37xx peripherals and first row shows all IGEPv2 connectors. Read articles about connector and peripheral before use them. Each configuration can take different solutions. <br> There are some connectors than have more peripherals available, but they don't have all signals to use it. <br> ===Table shows four answers:&nbsp;
Use the next table to change mux *"'''Yes, default configuration in IGEPv2 as you need(utility)'''": Peripheral enabled by default. First column "utility" shows all avaliable peripherals and first row shows all avaliable connectorsif this peripheral is used. There are some connectors than have more peripherals<br> *"'''Yes, but they not default configuration(information)'''": Peripheral don't have all pads avaliable enabled by default. Maybe you need to use it. For exampledisable other one<br> *"'''No, via hardware'''": MMC3 in J990Not available, but via hardware (placing or replacing some resistances) can be enabled. <br> *"'''No'''"
{| cellspacing="1" cellpadding="1" border="1" style="width: 823px933px; height: 190px409px;"
|-
| <br>
| [[Connectors Summary#JC30_connector|JC30]]
| [[Connectors Summary#JA42_connector|JA42]]
| [[Connectors Summary#JA41_connector|JA41]] | [http://en.wikipedia.org/wiki/Test_point TP]
|-
| [[Peripherals Summary#UART|UART1]]
| No
| Yes, not default configuration ([[Mux instructions#UART1_in_J990UART1_in_J960|Yes: disable RS485]] | No )
| No
| No
| No
| No
| No<br>Yes, not default configuration ([[Mux_instructions#TFP410|disable DVI]])
|-
| [[Peripherals Summary#UART|UART2]]
| Yes, not default configuration ([[How to set up UART2 in J990|Yes: disable BTBluetooth]] )
|
Yes: No, [[How to use UARTs#RS232_Schematic_Igep_V2|via hardware]],
[[Mux instructions#Bluetooth|disable BTBluetooth]]
| No
| No
| No
| [[Peripherals Summary#UART|UART3]]
| No
| Yes: , default configuration ([[Mux instructions#UART3_in_J960| No Serial debug]])
| No
| No
| No
| No
| NoYes, not default configuration ([[Mux_instructions#TFP410|disable DVI]])
|-
| [[Peripherals Summary#UART|UART4]]
| No
| No
| No
| [[Peripherals Summary#GPIO|GPIO]]
|
Yes, default configuration ([[Mux instructions#GPIO_in_J990|Yes: not default configurationinfo]] )
| No
| No
| Yes, not default configuration ([[Mux instructions#GPIO_in_JTAGGPIO_in_J990|Yes: not default configurationdisable JTAG]] ) | [[Mux instructions#GPIO_in_JC30|Yes: , default configuration]] | [[Mux instructions#GPIO_in_JA42|Yes: not , default configuration]] | [[Mux instructions#GPIO_in_JA41|Yes: , not default configuration]]<br> | ([[Mux instructionsMux_instructions#GPIO_in_TPTFP410|Yesdisable DVI]])
|-
| [[Peripherals Summary#SPI|McSPI1]]
| No<br>
| No
| No
| No
| No
| Yes: default configuration<br>
| No
| Yes, default configuration
| No
|-
| [[Peripherals Summary#SPI|McSPI2]]
| No<br>
| No
| No
| [[Peripherals Summary#SPI|McSPI3]]
|
Yes: dissable , not default configuration ([[Mux instructions#WIFI |disable WIFI]])
| No
| No
| No
| No Yes, not default configuration ([[Mux_instructions#TFP410| Nodisable DVI]])<br>
|-
| [[Peripherals Summary#SPI|McSPI4]]
| Yes: , not default configuration ([[Mux instructions#GPIO_in_J990|disable McBSP1<br> | No GPIOs]])
| No
| No
|-
| [[Peripherals Summary#BSP|McBSP1]]
| Yes: , not default configuration<br> ([[Mux instructions#GPIO_in_J990| No disable GPIOs]])
| No
| No
|-
| [[Peripherals Summary#BSP|McBSP2]]
| No
| No
| No
|-
| [[Peripherals Summary#BSP|McBSP3]]
| Yes: used by BT , default configuration ([[Mux instructions#TP65950_PCM_VSP|Bluetooth audio | No ]])
| No
| No
| No
| No
| Yes: , not default configuration<br> ([[Mux instructions#GPIO_in_J990| No disable GPIOs]])
| No
|-
| [[Peripherals Summary#BSP|McBSP5]]
| No
| No
| No
|-
| [[Peripherals Summary#MMC|MMC1]]
| No
| No
| No
|-
| [[Peripherals Summary#MMC|MMC2]]
| Yes: used by , default configuration ([[Mux instructions#WIFI | No WIFI]])
| No
| No
|-
| [[Peripherals Summary#MMC|MMC3]]
| No
| No
| No
|-
| [[Peripherals Summary#I2C|I2C1]]
| No
| No
| No
|-
| [[Peripherals Summary#I2C|I2C2]]
| Yes: , default configuration
| No
| No
| No
| Yes: No, [[Connectors Summary#JC30_connector|via hardware<br> | No ]]
| No
| No
| No
| No
| Yes: shared with , default configuration (DVI<br> | No)
|-
| [[Peripherals Summary#I2C|I2C4]]
| No
| No
| No
|}
=== IGEP MODULE<br> ===
Next table pretends help you to configure IGEP MODULE. First column shows some OMAP35xx/DM37xx peripherals and first row shows all IGEP MODULE connectors. Read articles about connector and peripheral before use them. Each configuration can take different solutions. <br> There are some connectors than have more peripherals available, but they don't have all signals to use it. <br> Table shows four answers:&nbsp;
*"'''Yes, default configuration(utility)'''": Peripheral enabled by default. "utility" shows if this peripheral is used.<br>
*"'''Yes, not default configuration(information)'''": Peripheral don't enabled by default. Maybe you need to disable other one<br>
*"'''No, via hardware'''": Not available, but via hardware (placing or replacing some resistances) can be enabled.<br>
*"'''No'''"
'''Under construction''' {| cellspacing="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|}
[[Category:How_to_forgeWork_in_progress]] [[Category:TutorialsPeripherals]]