- err = platform_device_register(pdev);w1-gpio-custom bus0=0,1,0" but i cant loading w1-gpio, which seems to be needed.
+ err = platform_device_add(pdev);
the module is loading with "modprobe
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beagleboard/-/UxU0F39-MGYJ.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
> Hello,
>
> i want to use Dallas One Wire Sensors DS1820 with Beaglebone. The HDQ pin seems not to be available. I have build the w1-gpio driver for the 12.26 image. This module is not initializing:
>
> [ 8062.844312] gpio_request: gpio-265068 (w1) status -22
Is that gpio actually available?
>
Thanks,
wjr
> Hello,
>
> i want to use Dallas One Wire Sensors DS1820 with Beaglebone. The HDQ pin seems not to be available. I have build the w1-gpio driver for the 12.26 image. This module is not initializing:
>
> [ 8062.844312] gpio_request: gpio-265068 (w1) status -22
> [ 8062.844350] w1-gpio: probe of w1-gpio.0 failed with error -22
>
> I thin there is an problem with the pin configuration. Where i can do this?
Have a look at http://dominion.thruhere.net/koen/cms/using-1-wire-on-a-beaglebone
looking closer, I see 3 wires/pins connected :)
Koen,
I did, as you can see in the output below. no devices were detected
....
tnx
Bastiaan.
-- To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard...@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq
Tnx for your comment! pull up is needed? I thought beagle one has internal pull up? Will try soon. tnx
you have a pull up for each ds18? but they are all on the same bus? 4 resistors of 5k each like that is the same as on of 1250 ohm.
actually, your other comment did it for me: make sure you connect it correctly. somehow I was confused by the ds18b20 data sheet. the drawing with the pin assignments is from the *bottom*. I now have 3 on the same bus without pull resistors. it works perfectly.
still I am wondering how I can send other commands and if I can connect other 1-wire devices.....
tnx
Hi,
I am using AM335x board, the temperature sensor DS18B20 is not working on my board. I have connected the sensor as per the data sheet. I have provided a pull up resistor of 4.7k ohm between the data pin(DQ) and supply pin(VDD).
I have used the GPIO 1_6 pin as the GPIO in the AM335x board for 1 wire communication. I have enabled the Dallas 1 wire protocol in the device drivers using menuconfig. In the menuconfig I have enabled the "GPIO 1-wire busmaster" as the master and "Thermal family implementation" as the slave.
In the board file board-am335xevm.c I have made the following addition to configure for 1 wire communication
static struct w1_gpio_platform_data w1_gpio_pdata = {
.pin = GPIO_TO_PIN(1, 6),
.is_open_drain = 0,
};
static struct platform_device w1_device = {
.name = "w1-gpio",
.id = -1,
.dev.platform_data = &w1_gpio_pdata,
};
void w1_init(void)
{
int err;
err = platform_device_register(&w1_device);
if (err) {
pr_err("failed to register w1 temp sensor device: ds18b20\n");
}
else
{
printk("successful regn of temp sensor \n");
}
}I am not able to see any directory for this temperature sensor in the sysfs, I feel this sensor is not detected by the AM335x processor.
root@am335x-evm:/sys/devices/w1_bus_master1# ls
driver w1_master_pointer
power w1_master_pullup
subsystem w1_master_remove
uevent w1_master_search
w1_master_add w1_master_slave_count
w1_master_attempts w1_master_slaves
w1_master_max_slave_count w1_master_timeout
w1_master_name
root@am335x-evm:/sys/devices/w1_bus_master1#I have also tried the other temperature sensor DS18S20 which did not work.I would request you to help me out and provide me support to make the temperature sensor work on my AM335x board.
http://e2e.ti.com/support/arm/sitara_arm/f/791/p/264704/926603.aspx
Thanks and regards,
Ajit
On Saturday, 31 December 2011 00:41:18 UTC+5:30, Frank wrote:
Hello,
i want to use Dallas One Wire Sensors DS1820 with Beaglebone. The HDQ pin seems not to be available. I have build the w1-gpio driver for the 12.26 image. This module is not initializing:
[ 8062.844312] gpio_request: gpio-265068 (w1) status -22
[ 8062.844350] w1-gpio: probe of w1-gpio.0 failed with error -22
I thin there is an problem with the pin configuration. Where i can do this?
My second try was build the w1-gpio-custom module from OpenWRT (https://dev.openwrt.org/browser/trunk/package/w1-gpio-custom/src?rev=15245)
Wehn i load this module with bus0=0,X,0 (x=1..264796) i get following error messages:
[ 8042.178371] Custom GPIO-based W1 driver version 0.1.0
[ 8042.178409] kobject (cf9cfa10): tried to init an initialized object, something is seriously wrong.
[ 8042.187917] [<c000f615>] (unwind_backtrace+0x1/0x8c) from [<c0125aa7>] (kobject_init+0x21/0x6a)
[ 8042.187961] [<c0125aa7>] (kobject_init+0x21/0x6a) from [<c015efc5>] (device_initialize+0x15/0x50)
[ 8042.187998] [<c015efc5>] (device_initialize+0x15/0x50) from [<c016189f>] (platform_device_register+0xd/0x1a)
[ 8042.188045] [<c016189f>] (platform_device_register+0xd/0x1a) from [<bfc7a063>] (w1_gpio_custom_add_one+0x62/0x7c [w1_gpio_custom])
[ 8042.188101] [<bfc7a063>] (w1_gpio_custom_add_one+0x62/0x7c [w1_gpio_custom]) from [<bfc7a093>] (w1_gpio_custom_init+0x16/0x6b [w1_gpio_custom])
[ 8042.188146] [<bfc7a093>] (w1_gpio_custom_init+0x16/0x6b [w1_gpio_custom]) from [<c000858d>] (do_one_initcall+0x65/0xf0)
[ 8042.188189] [<c000858d>] (do_one_initcall+0x65/0xf0) from [<c0043449>] (sys_init_module+0xeed/0x1060)
[ 8042.188232] [<c0043449>] (sys_init_module+0xeed/0x1060) from [<c000c301>] (ret_fast_syscall+0x1/0x44)
After reading http://plugcomputer.org/plugforum/index.php?action=printpage;topic=163.0 i have changed this in module code: