Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use GPIOs

676 bytes added, 15:48, 9 January 2012
no edit summary
NOTE: Make sure that MMC2_DAT4 and MMC2_DAT5 are not used, for more information visit this [[Mux_configuration|page]]. With IGEP v2 RC5 (version without WIFI) this pins are not used by default.
=== Configure Mux ===
Go to:/sys/kernel/debug/omap_mux, and change the this mux configuration:
<pre>echo 0x104&gt;sdmmc2_dat4
echo 0x104&gt;sdmmc2_dat5
</pre>
Use cat to check it:<br>
<pre>
echo 0x104cat sdmmc2_dat4cat sdmmc2_dat5</pre><br>The result will be similar than this:<pre>root@localhost:/sys/kernel/debug/omap_mux# cat sdmmc2_dat4name: sdmmc2_dat4.gpio_136 (0x48002164/0x134 = 0x0104), b ae4, t NAmode: OMAP_PIN_INPUT | OMAP_MUX_MODE4signals: sdmmc2_dat4| sdmmc2_dir_dat0 | NA | sdmmc3_dat0 | gpio_136 | NA | NA | safe_mode</pre>andecho 0x104<pre>root@localhost:/sys/kernel/debug/omap_mux# cat sdmmc2_dat5name: sdmmc2_dat5.gpio_137 (0x48002166/0x136 = 0x0104), b ah3, t NAmode: OMAP_PIN_INPUT | OMAP_MUX_MODE4signals: sdmmc2_dat5| sdmmc2_dir_dat1 | cam_global_reset | sdmmc3_dat1 | gpio_137 | hsusb3_tll_stp | mm3_rxdp | safe_mode
</pre>
Use cat to check
=== Link GPIO ===
4,199
edits