11-26-2016, 04:18 PM
(05-29-2016, 03:49 PM)martinayotte Wrote: Just to let people know that I've finally got the "w1-gpio" working on Pin64 with a DS18B20.
The issue that I was facing is a discrepancy in DTS that I've not seen in other ARM boards but only on Pine64, but after doing kernel debugging, I've found a simple workaround in DTS.
Mainly, here it is :
Code:onewire_device@0 {
compatible = "w1-gpio";
gpio = <0x30 0x2 0x8 0x0>;
// gpios = <0x30 0x2 0x8 0x0 0x0 0x0 0x0>;
pinctrl-names = "default";
pinctrl-0 = <0xba>;
status = "okay";
};
The issue is when using "gpios = <0x30 0x2 0x8 0x0>;", the DT parser give out this error : "arguments longer than property", it seems that plural "gpios" means you need to provide multiple gpios, not only one. Removing the "s" seems to do identical job with a single gpio.
I am trying to get my DS18B20 to work with my pine.
I have the following
Kernel : 3.10.104-1-pine64-longsleep
lsmod: w1_gpio 12739 0
wire 23744 1 w1_gpio
I see w1_master_driver in /sys/bus/w1/devices
I have power on pin 1, Data on pin 7 and ground on pin 6. From the chart here -> http://joey.hazlett.us/pine64/pine64_pins.html
I have tested this temp sensor on two different Raspberry pi boards, pi 2 and a pi 3. And it works on both using the same pin numbers. I have read over this thread and i don't know what i am missing.
Any pointers on how i can get this to work?