2006-09-11 12:13:03 1-wire
Arne Jan Dahl (NORWAY)
Message: 13257 Which pin is used by the Dallas 1-wire driver?
Regards
Arne Jan Dahl
QuoteReplyEditDelete
2006-09-11 15:40:57 RE: 1-wire
Robin Getz (UNITED STATES)
Message: 13276 Arne:
I don't think anyone here has validated the Dallas 1-wire driver yet, so it may not work.
What do you need it for (what pheripheral?)
Thanks
-Robin
QuoteReplyEditDelete
2006-09-11 21:30:43 RE: 1-wire
Arne Jan Dahl (NORWAY)
Message: 13287 We are planning to use the DS2502-E48 which contains a MAC-address. Each chip has a uniqe and valid MAC-address. We believe this is the easiest way to buy valid MAC-addresses.
Regards
Arne Jan Dahl
QuoteReplyEditDelete
2011-05-11 16:11:50 Re: 1-wire
James Kosin (UNITED STATES)
Message: 100589
Any ideas on this. I'm looking at using the 1-wire module but there is very little documentation on how to setup the module.
QuoteReplyEditDelete
2011-07-11 16:25:10 Re: 1-wire
James Kosin (UNITED STATES)
Message: 102329
The 1-wire linux kernel driver does work....
Additions to the /arch/mach-bfxxx/board/file
#if defined(CONFIG_W1_MATER_GPIO) || defined(CONFIG_W1_MASTER_GPIO_MODULE)
#include <linux/w1-gpio.h>
static struct w1_gpio_platform_data bfin_w1_gpio_pdata = {
.pin = GPIO_P??,
.is_open_drain = 0,
};
static struct platform_device bfin_w1_device = {
.name = "w1-gpio",
.id = -1,
.dev.platform_data = &bfin_w1_gpio_pdata,
};
#endif
.... then add the &bfin_w1_device to the data structure for device registration.
The is_open_drain needs to be set to 0, since the blackfin doesn't have an open drain type output. This tells the driver it needs to change direction to read the data bits. Also, don't forget the configuration and the GPIO pin information.... I left that out of the config above; since, it really is platform specific.
QuoteReplyEditDelete