1-wire

From Gumstix User Wiki

Jump to: navigation, search

Contents

1-wire ?

1-wire functionality/module is turned off by default.

Based on this wiki resource and other discussion forums, it looks like nobody has succeeded to make it work till now. Please, contribute, if you did!

How It Works

(TBD)

Making Modifications

U-Boot needs to be modified. Currently all the GPIO multiplexing for the Overo's is being done by the bootloader U-Boot, so the conventional way to modify the pin muxing is to edit overo.h and rebuild U-Boot.

You can also change the mux configuration from within Linux. One simple approach is to do it from userspace accessing /dev/mem. A program devmem2 is part of the omap3-console-image and will work. See the remuxing example below.

Related Pins

40 Pin Expansion Header

Pin 19 - gpio170
The HDQ/1-Wire output. Not used unless you explicitly enable the 1-wire module.
User exportable
Output only - configured this way in the u-boot muxing

Enabling 1-wire module

(TBD)


GPIO Software for the Overo

Dave Hylands has written several software packages to facilitate GPIO programming on the Overos.

GPIO Event Driver allows multiple GPIO lines to be monitored from user-space.

User GPIO Driver is a reflection of the kernel's gpiolib API into user space.

More Links

1-wire interface on the OMAP (Matthew Percival / 18 pages / 2005)

OMAP35x 1-wire forum at Texas Instruments

Here is another article BeagleBoardPinMux talking about OMAP3 pin muxing.


Related pages on the old wiki:

http://docwiki.gumstix.org/index.php/Tips_and_tricks#Access_GPIOs_from_user-space

http://docwiki.gumstix.org/index.php/Sample_code/C/gpregs

http://docwiki.gumstix.org/index.php/Kernel_programming

.

Personal tools