1Wire kernel drivers with DALLAS DS1820

szkrisz
 
Posts: 2
Joined: Fri Jan 08, 2016 12:52 pm

1Wire kernel drivers with DALLAS DS1820

Wed Jan 13, 2016 6:15 pm

Hi All!

I've connected a DALLAS DS1820 to GPIO0-port on VoCore (pull up resistor 4.7K).
I've updated the Openwrt kernel to 15.05

I've installed kmod-w1-gpio, kmod-w1-gpio-custom, kmod-slave-w1-therm

I wrote two module configuration file
/etc/modules.d/w1-gpio --> w1-gpio
/etc/modules.d/w1-gpio-custom --> w1-gpio-custom bus0=0,0,0

When I boot dmesg says:
[ 18.100000] w1-gpio w1-gpio.0: no of_node; not parsing pinctrl DT
[ 18.100000] w1-gpio w1-gpio.0: Failed to parse gpio property for data pin (-2)
[ 18.110000] w1-gpio: probe of w1-gpio.0 failed with error -2

lsmod | grep w1
w1_gpio 2112 0
w1_gpio_custom 800 0
w1_therm 2000 0
wire 14528 2 w1_therm

Seems the modules loaded...

If it is count I've used the GPIO0 port before to control a relay but now I've set it back to directon --> in

What have I missed?

Thank You

Vonger
 
Posts: 741
Joined: Sun Oct 19, 2014 6:00 am

Re: 1Wire kernel drivers with DALLAS DS1820

Sun Jan 17, 2016 8:31 am

[ 18.100000] w1-gpio w1-gpio.0: no of_node; not parsing pinctrl DT

This log means this driver did not registered to device tree. We can do it by update the file in openwrt source code named VOCORE.dts.
About how to patch it: you must check the source code of the driver, and also read [linux source folder]/Documentation/ search its txt instructions

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 1 guest