Difference between revisions of "Mux instructions"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 5: Line 5:
 
For more information go to [[Mux configuration|this page]].  
 
For more information go to [[Mux configuration|this page]].  
  
= Feedback and Contributing =
+
= Feedback and Contributing =
  
At any point, if you see a mistake you can contribute to this How-To.
+
At any point, if you see a mistake you can contribute to this How-To.  
 +
 
 +
= Disable Peripherals  =
 +
 
 +
=== BT/WIFI  ===
 +
 
 +
See [[Frequently Asked Questions and Their Answers#Is_it_possible_to_config_the_wireless_LAN_and_bluetooth_so_they_are_completely_off.2C_and_not_consuming_any_power_at_all.3F|FAQ]] to see with pins need to configure.<br>
 +
 
 +
==== Bluetooth<br>  ====
 +
 
 +
===== First way:  =====
 +
 
 +
Logging with root user via SSH or Serial cable.<br>
 +
 
 +
Go to /sys/kernel/debug/omap_mux/<br>
 +
 
 +
Set sdmmc2_dat5 to gpio137 (mode 4):
 +
<pre>echo 0x004 &gt; sdmmc2_dat5 </pre>
 +
Revise that:
 +
<pre>root@localhost:/sys/kernel/debug/omap_mux# cat sdmmc2_dat5
 +
name: sdmmc2_dat5.gpio_137 (0x48002166/0x136 = 0x0004), b ah3, t NA
 +
mode: OMAP_PIN_OUTPUT | OMAP_MUX_MODE4
 +
signals: sdmmc2_dat5 | sdmmc2_dir_dat1 | cam_global_reset | sdmmc3_dat1 | gpio_137 | hsusb3_tll_stp | mm3_rxdp | safe_mode
 +
</pre>
 +
Go to: /sys/class/gpio/
 +
 
 +
Check that gpio137 is in user space:
 +
<pre>root@localhost:/sys/class/gpio# ls
 +
export  gpio137  gpio138  gpio139  gpio170  gpio64  gpiochip0  gpiochip128  gpiochip160  gpiochip192  gpiochip32  gpiochip64  gpiochip96  unexport
 +
root@localhost:/sys/class/gpio#
 +
</pre>
 +
If you don't have it, you should export gpio137: <br>
 +
<pre>echo 137 &gt; /sys/class/gpio/export </pre>
 +
Set gpio137 to low value to disable bluetooth:
 +
<pre>echo 0 &gt; /sys/class/gpio/gpio137/value</pre>
 +
Revise that:
 +
<pre>root@localhost:/sys/class/gpio# cat /sys/class/gpio/gpio137/value
 +
0
 +
root@localhost:/sys/class/gpio#
 +
</pre>
 +
 
 +
<br>
 +
 
 +
=== TP65950 PCM VSP<br>  ===
 +
 
 +
Please contribute<br>
  
 
= Edit mux  =
 
= Edit mux  =
Line 20: Line 65:
 
                 default: yes
 
                 default: yes
  
More information about RS485 [[Connectors_Summary#J940_connector|here]] and [http://en.wikipedia.org/wiki/RS-485 here]:
+
More information about RS485 [[Connectors Summary#J940_connector|here]] and [http://en.wikipedia.org/wiki/RS-485 here]:  
  
 
You can test new configuration using [[How to use UARTs|this tutorial]]:  
 
You can test new configuration using [[How to use UARTs|this tutorial]]:  
  
 
'''Under construction'''
 
'''Under construction'''

Revision as of 16:23, 31 January 2012

Overview

Detailed instructions to configure mux

For more information go to this page.

Feedback and Contributing

At any point, if you see a mistake you can contribute to this How-To.

Disable Peripherals

BT/WIFI

See FAQ to see with pins need to configure.

Bluetooth

First way:

Logging with root user via SSH or Serial cable.

Go to /sys/kernel/debug/omap_mux/

Set sdmmc2_dat5 to gpio137 (mode 4):

echo 0x004 > sdmmc2_dat5 

Revise that:

root@localhost:/sys/kernel/debug/omap_mux# cat sdmmc2_dat5
name: sdmmc2_dat5.gpio_137 (0x48002166/0x136 = 0x0004), b ah3, t NA
mode: OMAP_PIN_OUTPUT | OMAP_MUX_MODE4
signals: sdmmc2_dat5 | sdmmc2_dir_dat1 | cam_global_reset | sdmmc3_dat1 | gpio_137 | hsusb3_tll_stp | mm3_rxdp | safe_mode

Go to: /sys/class/gpio/

Check that gpio137 is in user space:

root@localhost:/sys/class/gpio# ls
export  gpio137  gpio138  gpio139  gpio170  gpio64  gpiochip0  gpiochip128  gpiochip160  gpiochip192  gpiochip32  gpiochip64  gpiochip96  unexport
root@localhost:/sys/class/gpio# 

If you don't have it, you should export gpio137:

echo 137 > /sys/class/gpio/export 

Set gpio137 to low value to disable bluetooth:

echo 0 > /sys/class/gpio/gpio137/value

Revise that:

root@localhost:/sys/class/gpio# cat /sys/class/gpio/gpio137/value 
0
root@localhost:/sys/class/gpio# 


TP65950 PCM VSP

Please contribute

Edit mux

UART1 in J990

Use ebuddies to configure UART1 in J990, go to igep.ini:

 board.ei485=  [yes, no]
               Format: <string>
               no: disable ei485, use UART1 as RS232, supported by igep0020
               default: yes

More information about RS485 here and here:

You can test new configuration using this tutorial:

Under construction